/* ==========================================================================
   Si Thep Beyond Time — ระบบดีไซน์
   โทน ดำ–ทอง–น้ำเงินเข้ม ตัดด้วยครีม  ฟอนต์เดียวทั้งเว็บ แยกด้วยน้ำหนัก
   ========================================================================== */

:root {
  /* พื้นเข้ม */
  --ink:        #0A0C13;
  --ink-2:      #10141F;
  --navy:       #101B33;
  --navy-2:     #16233F;

  /* ทอง */
  --gold:       #C6A03C;
  --gold-lite:  #E4C877;
  --gold-deep:  #8E6F1F;

  /* ครีม */
  --cream:      #F7F3EA;
  --cream-2:    #EFE8D9;
  --paper:      #FCFAF5;

  /* ตัวอักษร */
  --on-dark:    #EFE8DA;
  --on-dark-mu: #A99E86;
  --on-light:   #1B1B18;
  --on-light-mu:#5E594C;

  --green:      #2E5E4E;

  --line-dark:  rgba(198,160,60,.22);
  --line-light: rgba(27,27,24,.12);

  --wrap:       1200px;
  --wrap-text:  68ch;
  --r:          14px;
  --r-sm:       10px;

  --pad-x:      clamp(1rem, 4vw, 2.5rem);
  --sec-y:      clamp(3.5rem, 8vw, 7rem);

  --ease:       cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;          /* 17px */
  font-weight: 400;
  line-height: 1.72;             /* ไทยต้องโปร่ง */
  color: var(--on-light);
  background: var(--paper);
  overflow-x: hidden;            /* กันเลื่อนซ้าย-ขวาบนมือถือ */
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { display: block; max-width: 100%; }
/* คลาสที่ตั้ง display เอง (เช่น .btn) จะทับ [hidden] ของเบราว์เซอร์ ต้องบังคับไว้ */
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: var(--gold); color: var(--ink);
  padding: .7rem 1.2rem; font-weight: 600; border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- ตัวอักษร ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
p  { text-wrap: pretty; }

.eyebrow {
  font-size: .875rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-deep);
}
.on-dark .eyebrow { color: var(--gold); }

.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); line-height: 1.8; color: var(--on-light-mu); }
.on-dark .lead { color: var(--on-dark-mu); }

.prose > * + * { margin-top: 1.15em; }
.prose { max-width: var(--wrap-text); }

/* ---------- โครง ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x); }
.wrap-narrow { max-width: 800px; }
.section { padding-block: var(--sec-y); }

.on-dark  { background: var(--ink);   color: var(--on-dark); }
.on-navy  { background: var(--navy);  color: var(--on-dark); }
.on-cream { background: var(--cream); color: var(--on-light); }

.section-head { max-width: var(--wrap-text); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .eyebrow + h2 { margin-top: .6rem; }
.section-head h2 + p { margin-top: .9rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.rule {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--line-light), transparent);
}
.on-dark .rule { background: linear-gradient(90deg, transparent, var(--line-dark), transparent); }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.6rem;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 20px; height: 20px; flex: none; }

.btn-gold { background: var(--gold); color: #14100A; }
.btn-gold:hover { background: var(--gold-lite); }

.btn-ghost { border-color: var(--line-light); color: var(--on-light); background: transparent; }
.btn-ghost:hover { border-color: var(--on-light); background: rgba(0,0,0,.04); }
.on-dark .btn-ghost { border-color: var(--line-dark); color: var(--on-dark); }
.on-dark .btn-ghost:hover { border-color: var(--gold); background: rgba(198,160,60,.1); }

.btn-line { background: #06C755; color: #fff; }
.btn-line:hover { background: #05b34c; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ป้ายสถานะ */
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .75rem; border-radius: 999px;
  font-size: .875rem; font-weight: 600; line-height: 1.4;
}
.tag-stock    { background: rgba(46,94,78,.12);  color: var(--green); }
.tag-preorder { background: rgba(142,111,31,.15); color: var(--gold-deep); }
.tag-ask      { background: rgba(27,27,24,.08);  color: var(--on-light-mu); }
.on-dark .tag-stock    { background: rgba(96,180,150,.16); color: #7FCBAF; }
.on-dark .tag-preorder { background: rgba(198,160,60,.18); color: var(--gold-lite); }
.on-dark .tag-ask      { background: rgba(255,255,255,.1); color: var(--on-dark-mu); }

/* ==========================================================================
   หัวเว็บ
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,12,19,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none;
  min-height: 44px; padding-block: .25rem; }
.brand img { width: 42px; height: 42px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: .98rem; letter-spacing: .04em; color: var(--gold-lite); }
.brand-sub  { font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-mu); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .55rem .8rem; border-radius: 999px; text-decoration: none;
  font-size: .95rem; font-weight: 500; color: var(--on-dark);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: rgba(198,160,60,.12); color: var(--gold-lite); }
.nav a[aria-current="page"] { color: var(--gold-lite); font-weight: 600; }
.nav .nav-cta { display: none; }   /* ปุ่มไลน์ในเมนู ใช้เฉพาะตอนเป็นเมนูมือถือ */
@media (max-width: 940px) { .nav .nav-cta { display: block; } }

.header-cta { display: flex; align-items: center; gap: .5rem; flex: none; }
.header-cta .btn { min-height: 44px; padding: .5rem 1.1rem; font-size: .92rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line-dark);
  border-radius: 10px; background: transparent; color: var(--on-dark); cursor: pointer;
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--pad-x) 1.25rem;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .95rem .5rem; border-radius: var(--r-sm); font-size: 1.05rem; }
  .nav .nav-cta { margin-top: .75rem; }
  .nav .nav-cta .btn { width: 100%; }
}

/* ==========================================================================
   แบนเนอร์หน้าแรก
   ข้อความและปุ่มถูกออกแบบมาในตัวภาพแล้ว จึงไม่ทับข้อความลงไปอีก
   และไม่ครอป เพื่อไม่ให้ตัวหนังสือในภาพหาย
   ========================================================================== */
.hero { background: var(--ink); position: relative; }
.hero-track { position: relative; max-width: 1600px; margin-inline: auto; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease);
}
.hero-slide[data-active="true"] { position: relative; opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem;
  padding: clamp(1.1rem, 3vw, 1.75rem) var(--pad-x);
  background: var(--ink);
}
.hero-dots { display: flex; gap: 0; align-items: center; }
/* ปุ่มจริงกว้าง-สูง 44px ตามขนาดนิ้ว ส่วนขีดที่เห็นวาดด้วย ::before */
.hero-dot {
  width: 44px; height: 44px; padding: 0; border: 0; background: none;
  display: grid; place-items: center; cursor: pointer;
}
.hero-dot::before {
  content: ''; width: 30px; height: 4px; border-radius: 999px;
  background: rgba(239,232,218,.24);
  transition: background-color .25s var(--ease);
}
.hero-dot[aria-selected="true"]::before { background: var(--gold); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(10,12,19,.5); color: var(--on-dark);
  backdrop-filter: blur(6px); transition: background-color .2s var(--ease);
}
.hero-arrow:hover { background: rgba(10,12,19,.8); }
.hero-arrow[data-dir="prev"] { left: clamp(.5rem, 2vw, 1.25rem); }
.hero-arrow[data-dir="next"] { right: clamp(.5rem, 2vw, 1.25rem); }
@media (max-width: 640px) { .hero-arrow { width: 44px; height: 44px; } }

/* ==========================================================================
   การ์ดสินค้า
   ========================================================================== */
.grid { display: grid; gap: clamp(.75rem, 2vw, 1.75rem); align-items: start; }
.grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px)  { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .2s var(--ease);
}
.card:hover { transform: translateY(-3px); }
.card-media {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--cream-2);
}
.on-dark .card-media { background: var(--ink-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding-top: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.card-title { font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 600; line-height: 1.45; }
.card-sum {
  font-size: .9375rem; line-height: 1.65; color: var(--on-light-mu);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.on-dark .card-sum { color: var(--on-dark-mu); }
.card-price { font-weight: 700; font-size: 1.05rem; color: var(--gold-deep); }
.on-dark .card-price { color: var(--gold-lite); }
.card-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .15rem; }

.pd-thumbs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px;
}
@media (min-width: 640px) { .pd-thumbs { grid-template-columns: repeat(4, 1fr); } }
.pd-thumb {
  border: 0; padding: 0; background: none; cursor: pointer;
  border-radius: 8px; overflow: hidden;
  min-height: 48px;                 /* พื้นที่กดบนมือถือ ภาพแนวนอนจะได้ไม่เตี้ยเกินไป */
  display: grid; place-items: center;
  opacity: .65; transition: opacity .2s var(--ease);
}
.pd-thumb[aria-pressed="true"], .pd-thumb:hover { opacity: 1; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   ผู้พิทักษ์ 5 ตัว — ภาพพื้นหลังโปร่ง ไม่ใส่กรอบ
   ========================================================================== */
.guardian-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px)  { .guardian-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .guardian-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.guardian { text-align: center; }
.guardian-fig {
  aspect-ratio: 1133 / 1388;                 /* สัดส่วนไฟล์จริง */
  display: grid; place-items: end center;
  background: radial-gradient(60% 45% at 50% 88%, rgba(198,160,60,.18), transparent 70%);
}
.guardian-fig img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .3s var(--ease);
}
.guardian:hover .guardian-fig img { transform: translateY(-4px); }
.guardian-fig.is-empty {
  place-items: center;
  border: 1px dashed var(--line-dark); border-radius: var(--r);
}
.guardian-fig.is-empty span {
  font-size: .875rem; color: var(--on-dark-mu); padding: 1rem; line-height: 1.6;
}
.guardian h3 { font-size: 1.05rem; margin-top: .75rem; }
.guardian .en {
  display: block; font-size: .875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); margin-top: .25rem;
}
.guardian p { font-size: .875rem; line-height: 1.6; color: var(--on-dark-mu); margin-top: .5rem; }

/* ==========================================================================
   แกลเลอรี — สัดส่วนไฟล์จริง ไม่ครอป ไม่ใส่กรอบ
   ========================================================================== */
.masonry { columns: 2; column-gap: 10px; }
@media (min-width: 640px)  { .masonry { columns: 3; column-gap: 14px; } }
@media (min-width: 1024px) { .masonry { columns: 4; column-gap: 18px; } }
.masonry figure { break-inside: avoid; margin-bottom: 10px; }
@media (min-width: 640px)  { .masonry figure { margin-bottom: 14px; } }
@media (min-width: 1024px) { .masonry figure { margin-bottom: 18px; } }
.masonry img { width: 100%; border-radius: var(--r-sm); }
.masonry figcaption {
  font-size: .875rem; line-height: 1.55; color: var(--on-light-mu); padding-top: .5rem;
}
.on-dark .masonry figcaption { color: var(--on-dark-mu); }

/* ==========================================================================
   จุดเด่น
   ========================================================================== */
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px)  { .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature .icon { width: 30px; height: 30px; color: var(--gold); }
.feature h3 { font-size: 1.02rem; margin-top: .85rem; }
.feature p  { font-size: .9rem; line-height: 1.65; color: var(--on-light-mu); margin-top: .35rem; }
.on-dark .feature p { color: var(--on-dark-mu); }

/* ==========================================================================
   สลับภาพ-ข้อความ
   ========================================================================== */
.split { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 2; }
}
.split-media img { width: 100%; border-radius: var(--r); }
/* ช่วงแท็บเล็ตคอลัมน์เดียว ไม่ขยายภาพเกินความละเอียดของไฟล์จริง ไม่งั้นภาพจะเบลอ */
@media (min-width: 600px) and (max-width: 899px) {
  .split-media { max-width: 560px; margin-inline: auto; }
}
.split-body > * + * { margin-top: 1rem; }

/* ==========================================================================
   วิดีโอ — โหลดเมื่อกดเท่านั้น ไม่กินเน็ตลูกค้า
   ========================================================================== */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r); background: var(--ink-2);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade {
  position: absolute; inset: 0; display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer; background: var(--ink-2);
}
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video-play {
  position: relative; display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--gold); color: #14100A;
  transition: transform .2s var(--ease);
}
.video-facade:hover .video-play { transform: scale(1.06); }
.video-play .icon { width: 30px; height: 30px; margin-left: 3px; }

.crumbs { font-size: .875rem; color: var(--on-light-mu); margin-bottom: 1rem; }
.crumbs a, .crumbs span {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
}
.crumbs a:hover { color: var(--gold-deep); }
.crumbs .sep { min-height: 0; padding-inline: .35rem; }

/* ==========================================================================
   คำถามที่พบบ่อย
   ========================================================================== */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line-light); }
.on-dark .faq details { border-color: var(--line-dark); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.02rem; line-height: 1.55;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; width: 22px; height: 22px; color: var(--gold-deep); transition: transform .25s var(--ease); }
.on-dark .faq summary .icon { color: var(--gold); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq-answer { padding-bottom: 1.25rem; color: var(--on-light-mu); }
.on-dark .faq-answer { color: var(--on-dark-mu); }
.faq-answer > * + * { margin-top: .8em; }

/* ==========================================================================
   ฟอร์ม
   ========================================================================== */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9375rem; }
.field .req { color: #B3261E; }
.field .hint { font-size: .875rem; color: var(--on-light-mu); line-height: 1.55; }
.on-dark .field .hint { color: var(--on-dark-mu); }

.field input, .field select, .field textarea {
  width: 100%;
  font-size: 1rem;                 /* ห้ามต่ำกว่า 16px ไม่งั้น iOS ซูมเอง */
  padding: .8rem .95rem;
  border: 1px solid var(--line-light); border-radius: var(--r-sm);
  background: #fff; color: var(--on-light);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.on-dark .field input, .on-dark .field select, .on-dark .field textarea {
  background: rgba(255,255,255,.05); border-color: var(--line-dark); color: var(--on-dark);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,160,60,.2);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: #B3261E; }
.field-error { font-size: .875rem; color: #B3261E; font-weight: 600; line-height: 1.5; }
.on-dark .field-error { color: #FFA39C; }

.form-note {
  padding: .95rem 1.1rem; border-radius: var(--r-sm);
  font-size: .9375rem; line-height: 1.65;
}
.form-note[data-kind="ok"]   { background: rgba(46,94,78,.12); color: var(--green); }
.form-note[data-kind="err"]  { background: rgba(179,38,30,.1); color: #B3261E; }
.on-dark .form-note[data-kind="ok"]  { background: rgba(96,180,150,.14); color: #7FCBAF; }
.on-dark .form-note[data-kind="err"] { background: rgba(255,120,110,.14); color: #FFA39C; }

/* ==========================================================================
   ช่องทางติดต่อ
   ========================================================================== */
.contact-list { display: grid; gap: 1.5rem; }
.contact-item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-item .icon { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: .28rem; }
.contact-item dt { font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-mu); }
.contact-item dd { margin: .2rem 0 0; font-size: 1.05rem; font-weight: 600; }
.contact-item a {
  text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;  /* พื้นที่กดบนมือถือ */
}
.contact-item a:hover { color: var(--gold-lite); }
.contact-item dd { line-height: 1.5; }

/* ==========================================================================
   ท้ายเว็บ
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h3 { font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: 0; }
.footer-links a, .footer-links li {
  text-decoration: none; color: var(--on-dark-mu); font-size: .95rem;
  display: inline-flex; align-items: center; min-height: 44px;   /* พื้นที่กดบนมือถือ */
}
.footer-links a:hover { color: var(--gold-lite); }
.footer-about p { color: var(--on-dark-mu); font-size: .95rem; margin-top: .9rem; max-width: 42ch; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .875rem; color: var(--on-dark-mu);
}
.social-row { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social-row a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); border-radius: 50%; color: var(--on-dark-mu);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.social-row a:hover { color: var(--gold-lite); border-color: var(--gold); }

/* ==========================================================================
   ปุ่มลอยล่างจอบนมือถือ — ไลน์กับโทรเท่านั้น
   ========================================================================== */
.dock { display: none; }
@media (max-width: 767px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr;
    height: 58px;
    background: rgba(10,12,19,.94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-dark);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--on-dark);
  }
  .dock a + a { border-left: 1px solid var(--line-dark); }
  .dock .icon { width: 20px; height: 20px; }
  .dock .is-line { color: #4BE07F; }
  .dock .is-call { color: var(--gold-lite); }
  /* เว้นที่ท้ายหน้าไม่ให้ปุ่มลอยทับเนื้อหา */
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   อนิเมชัน — สังเกตได้แต่ไม่รบกวน เล่นครั้งเดียว
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.is-in { transition: none; }
  .btn:hover, .card:hover, .guardian:hover .guardian-fig img { transform: none; }
  .hero-slide { transition: none; }
}

/* ---------- ยูทิลิตี้ ---------- */
.center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: clamp(2.5rem, 5vw, 4rem); }
.stack > * + * { margin-top: 1rem; }
