/* สำนักงานนักสืบเอกชน กรฐิติ — เลย์เอาต์นิตยสาร (design/comps/layout-direction.md)
   หัวข้อตัวใหญ่ชิดซ้าย · กริดไม่สมมาตร · รูปครอปแนวตั้ง (object-fit ไม่ยืด จุดโฟกัสตั้งใน render.js)
   เลขกำกับส่วน 01/02/03 · เส้นบางแบ่งคอลัมน์ · ช่องว่างเยอะ
   สี: กรมท่าเข้มเกือบดำ ตัดทองหม่นตามโลโก้ สลับพื้นงาช้าง · ฟอนต์เดียว Anuphan (400/600/700)
   มือถือก่อน · ไม่มี backdrop-filter/transform/filter บนหัวเว็บ (เมนูมือถือเต็มจอ) */

:root {
  --paper: #0b111c;
  --ink: #eae4d6;
  --accent: #c9a24a;
  --gold-hi: #e2c57c;
  --gold-lo: #a9822f;
  --night: #0b111c;
  --night-2: #111a29;
  --ivory: #f4efe4;
  --ivory-2: #ebe3d3;
  --ink-dark: #1b2130;
  --muted: #a8a191;
  --muted-dark: #5b5a55;
  --line: rgba(201, 162, 74, .38);
  --hair: rgba(234, 228, 214, .14);
  --hair-dark: rgba(27, 33, 48, .16);
  --radius: 2px;
  --font: 'Anuphan', 'Noto Sans Thai', system-ui, sans-serif;
  --wrap: 1240px;
  --gut: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
svg { width: 1.2em; height: 1.2em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--night); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap.narrow { max-width: 860px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 17px/1.45 var(--font); cursor: pointer; text-align: center; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 22px; height: 22px; }
.btn-gold { background: var(--accent); color: #17120a; --line-ink: var(--accent); }
.btn-gold .i-line path:first-child { fill: #17120a; }
.btn-gold:hover { background: var(--gold-hi); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--accent); color: var(--gold-hi); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.sec-light .btn-line { color: var(--ink-dark); border-color: rgba(27, 33, 48, .3); }
.i-line { --line-ink: var(--night); }

/* ---------- แถบบน + หัวเว็บ ---------- */
.topbar { border-bottom: 1px solid var(--hair); font-size: 14px; color: var(--muted); }
.topbar .wrap { display: flex; gap: 0 26px; justify-content: center; flex-wrap: wrap; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.topbar svg { color: var(--accent); width: 15px; height: 15px; }
.topbar a:hover { color: var(--gold-hi); }
.topbar .tb-mail { display: none; }

.nav { position: sticky; top: 0; z-index: 40; background: var(--night); border-bottom: 1px solid var(--hair); }
.nav .wrap { display: flex; align-items: center; gap: 16px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; }
.logo img { width: 50px; height: 50px; border-radius: 50%; flex: none; }
.logo > span { min-width: 0; }
.logo b { display: block; font-size: 16px; line-height: 1.45; color: #fff; }
.logo small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dnav, .nav-cta { display: none; }
.nav-toggle {
  width: 48px; height: 48px; min-width: 48px; flex: none; border: 1px solid var(--line); background: transparent; border-radius: var(--radius);
  display: grid; place-content: center; gap: 5px; cursor: pointer; position: relative; z-index: 60;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* เมนูมือถือเต็มจอ — อยู่นอกหัวเว็บ จึงเต็มจอเสมอ */
.mnav {
  position: fixed; inset: 0; z-index: 50; background: var(--night);
  display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 90px 28px 40px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
body.nav-open { overflow: hidden; }
body.nav-open .mnav { opacity: 1; visibility: visible; }
body.nav-open .nav { z-index: 55; }
.mnav nav { display: grid; counter-reset: m; }
.mnav nav a { counter-increment: m; display: flex; align-items: baseline; gap: 14px; font-size: 26px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.mnav nav a::before { content: counter(m, decimal-leading-zero); font-size: 14px; color: var(--accent); font-weight: 400; }
.mnav nav a[aria-current="page"] { color: var(--gold-hi); }
.mnav-cta { display: grid; gap: 12px; }

/* ---------- เลขกำกับส่วน 01 ── ป้าย ---------- */
.sec-no { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: 15px; color: var(--accent); letter-spacing: .04em; }
.sec-no > span { font-weight: 600; font-variant-numeric: tabular-nums; }
.sec-no i { flex: 1; max-width: 120px; height: 1px; background: var(--line); }
.sec-no small { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.sec-light .sec-no { color: #8d6a20; }
.sec-light .sec-no i { background: rgba(141, 106, 32, .4); }
.sec-light .sec-no small { color: var(--muted-dark); }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); border-bottom: 1px solid var(--hair); }
.hero-track { display: flex; transition: transform .7s cubic-bezier(.3, .7, .2, 1); }
.hero-slide { flex: 0 0 100%; min-width: 100%; }
.hero-grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--accent); flex: none; }
.hero-title {
  font-size: clamp(40px, 10.4vw, 100px); line-height: 1.4; color: #fff; letter-spacing: -.01em; text-wrap: balance;
}
.hero-title em { font-style: normal; display: block; color: var(--accent); }
.hero-foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hair); display: grid; gap: 22px; }
.hero-sub { font-size: 17px; color: #d3ccbc; max-width: 32em; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-pic { position: relative; }
.hero-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-pic figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--night); color: var(--accent);
  font-size: 14px; padding: 6px 12px 0 0; font-variant-numeric: tabular-nums;
}
.hero-dots { display: flex; gap: 4px; padding-bottom: 22px; margin-top: -10px; }
.hero-dots button {
  min-width: 56px; height: 44px; border: 0; border-top: 1px solid var(--hair); background: transparent; cursor: pointer;
  color: var(--muted); font: 600 14px/1.4 var(--font); text-align: left; padding: 10px 0 0;
}
.hero-dots button[aria-current="true"] { color: var(--accent); border-top: 2px solid var(--accent); }

/* หน้ารอง: หัวข้อใหญ่ รูปแนวตั้งแคบด้านขวา */
.hero-compact .hero-title { font-size: clamp(38px, 9vw, 80px); }
.hero-compact .hero-pic img { aspect-ratio: 4 / 5; }

/* ---------- แถบความมั่นใจใต้แบนเนอร์ ---------- */
.trust { border-bottom: 1px solid var(--hair); }
.trust-intro { color: var(--muted); padding-top: 18px; }
.trust-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.trust-row li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.5; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--hair); }
.trust-row li:nth-child(even) { border-left: 1px solid var(--hair); padding-left: 14px; }
.trust-row b { font-weight: 600; display: block; }
.trust-row small { display: block; color: var(--muted); font-size: 14px; }
.trust-row .ic { color: var(--accent); display: grid; place-items: center; flex: none; }
.trust-row .ic svg { width: 24px; height: 24px; }

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding: 76px 0; position: relative; }
.sec-light { background: var(--ivory); color: var(--ink-dark); }
.sec-head { margin-bottom: 40px; max-width: 900px; }
.sec-head h1, .sec-head h2 { font-size: clamp(32px, 7.4vw, 64px); line-height: 1.4; letter-spacing: -.01em; text-wrap: balance; }
.sec-intro { margin-top: 16px; color: var(--muted); max-width: 36em; font-size: 18px; }
.sec-light .sec-intro { color: var(--muted-dark); }
.ic { color: var(--accent); }
.sec-light .ic { color: #8d6a20; }

/* บริการ: คอลัมน์คั่นเส้นบาง รูปแนวตั้ง 3:4 คอลัมน์คู่เยื้องลง */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--hair); }
.card { padding: 18px 12px 26px 0; }
.card:nth-child(even) { padding: 50px 0 26px 12px; border-left: 1px solid var(--hair); }
.card-pic { overflow: hidden; display: block; }
.card-pic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-pic img { transform: scale(1.04); }
.card-body { padding-top: 14px; }
.card-no { display: flex; justify-content: space-between; align-items: center; color: var(--accent); font-size: 14px; font-weight: 600; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
.card-no .ic svg { width: 20px; height: 20px; }
.card-body h3 { font-size: 19px; color: #fff; margin-bottom: 6px; }
.card-body h4 { font-size: 18px; margin-bottom: 6px; }
.card-body p { color: #c3bcad; font-size: 15px; line-height: 1.65; }
.card-price { font-weight: 700; color: var(--gold-hi); }
.rows { display: grid; border-top: 1px solid var(--hair); }
.row-item { display: grid; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--hair); }

/* รูป + ข้อความ ไม่สมมาตร: รูปแนวตั้งคอลัมน์แคบ ข้อความคอลัมน์กว้าง */
.split { display: grid; gap: 34px; align-items: center; }
.split-pic { width: 86%; }
.split.pic-right .split-pic { margin-left: auto; }
.tall img, .split-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-text h2 { font-size: clamp(30px, 6.6vw, 56px); line-height: 1.4; letter-spacing: -.01em; margin-bottom: 22px; text-wrap: balance; }
.split-text .prose { color: #cbc4b5; max-width: 36em; }
.sec-light .split-text .prose { color: #40424a; }
.split-text .btn { margin-top: 26px; }
.split.no-pic { max-width: 900px; }
/* ส่วนรูป+ข้อความต่อกันหลายอัน (หน้าบริการ/การว่าจ้าง) ไม่เว้นซ้อนสองเท่า */
.about-service + .about-service { padding-top: 0; }

.checklist { border-top: 1px solid var(--hair); counter-reset: c; }
.checklist p { counter-increment: c; display: flex; gap: 16px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--hair); font-weight: 600; }
.checklist p::before { content: counter(c, decimal-leading-zero); color: var(--accent); font-weight: 400; font-size: 15px; padding-top: .15em; }

.paylist { border-top: 1px solid var(--hair-dark); }
.paylist p { color: #40424a; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--hair-dark); }
.paylist .bank { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 600; color: var(--ink-dark); line-height: 1.55; }
.paylist .bank img { width: 40px; height: 40px; border-radius: 50%; flex: none; }

/* ขั้นตอน: เลขใหญ่ คอลัมน์คั่นเส้นบาง */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hair-dark); }
.step { display: grid; grid-template-columns: 74px 1fr; gap: 0 14px; padding: 22px 0; border-bottom: 1px solid var(--hair-dark); }
.step-no { grid-row: span 3; font-size: 52px; line-height: 1.4; font-weight: 400; color: #8d6a20; font-variant-numeric: tabular-nums; }
.step .ic { display: none; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted-dark); font-size: 16px; margin-top: 4px; }

/* หลักฐาน: หัวข้อซ้าย รายการขวา คั่นเส้นบาง */
.evidence-in { display: grid; gap: 10px; }
.evidence-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.evidence-list li { display: grid; grid-template-columns: 40px 34px 1fr; gap: 0 12px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.ev-no { color: var(--accent); font-size: 18px; font-weight: 600; }
.evidence-list .ic svg { width: 26px; height: 26px; margin-top: 3px; }
.evidence-list h3 { font-size: 21px; color: #fff; }
.evidence-list p { color: #c3bcad; font-size: 16px; margin-top: 4px; }

/* จุดเด่นทั่วไป */
.features-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hair); }
.feature { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.feature .ic svg { width: 28px; height: 28px; }
.feature h3 { font-size: 20px; color: #fff; margin-bottom: 4px; }
.feature p { color: #c3bcad; font-size: 16px; }

/* แถบคำมั่นเรื่องความลับ: ข้อความใหญ่ชิดซ้ายแบบคำโปรย */
.cta-band { position: relative; padding: 90px 0; overflow: hidden; }
.cta-dark {
  background: linear-gradient(90deg, rgba(11, 17, 28, .97) 0%, rgba(11, 17, 28, .9) 55%, rgba(11, 17, 28, .7) 100%),
    url('/img/sealed-envelope-secret.webp') right center / cover no-repeat;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.cta-soft { background: var(--ivory-2); color: var(--ink-dark); }
.cta-in { display: grid; justify-items: start; gap: 26px; }
.cta-in .sec-no { margin: 0; }
.cta-in .sec-no .ic svg { width: 22px; height: 22px; }
.cta-band h2 { font-size: clamp(30px, 6.4vw, 60px); line-height: 1.4; max-width: 16em; text-wrap: balance; color: #fff; letter-spacing: -.01em; }
.cta-soft h2 { color: var(--ink-dark); }

/* คำถามที่พบบ่อย: หัวข้อซ้าย คำถามขวา คั่นเส้นบาง */
.faq { border-top: 1px solid var(--hair-dark); }
.faq details { border-bottom: 1px solid var(--hair-dark); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: 18px; min-height: 60px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: #8d6a20; transition: transform .25s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 40px 22px 0; color: #40424a; margin: 0; }

/* ติดต่อ */
.contact { display: grid; gap: 40px; }
.contact-info h2 { font-size: clamp(30px, 6.6vw, 56px); line-height: 1.4; margin-bottom: 14px; letter-spacing: -.01em; }
.lead-note { color: #cbc4b5; }
.contact-list { list-style: none; padding: 0; margin: 22px 0; border-top: 1px solid var(--hair); }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.contact-list li > svg { width: 24px; height: 24px; color: var(--accent); }
.contact-list small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.contact-list a, .contact-list span { font-size: 18px; font-weight: 600; word-break: break-word; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-list a:hover { color: var(--gold-hi); }
.hours-24 { display: flex; align-items: center; gap: 10px; color: var(--gold-hi); font-weight: 600; margin: 4px 0 22px; }
.hours { list-style: none; padding: 0; margin: 0 0 22px; }
.hours li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--hair); padding: 6px 0; }
.contact-form { border-top: 2px solid var(--accent); padding-top: 26px; }
.lead { display: grid; gap: 22px; }
.lead label { display: block; font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.lead input, .lead textarea {
  width: 100%; font: 400 17px/1.5 var(--font); color: var(--ink); background: rgba(234, 228, 214, .04);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 12px; min-height: 52px;
}
.lead input::placeholder, .lead textarea::placeholder { color: #8b8576; }
.lead textarea { min-height: 130px; resize: vertical; }
.lead input:focus, .lead textarea:focus { outline: none; border-bottom-color: var(--gold-hi); background: rgba(234, 228, 214, .07); }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead .btn { width: 100%; }
.msg { min-height: 1.5em; margin: 0; font-size: 15px; }
.msg.ok { color: #9fd8a8; }
.msg.bad { color: #ffaaa0; }
.map-wrap { margin-top: 30px; }
.map { width: 100%; height: 340px; border: 0; }

/* ผลงาน/รีวิว (ถ้าลูกค้าเปิดใช้ภายหลัง) */
.gal { columns: 2; column-gap: 10px; }
.gal a { display: block; margin-bottom: 10px; break-inside: avoid; }
.gal img { width: 100%; }
.quotes { display: grid; border-top: 1px solid var(--hair); }
.quote { margin: 0; padding: 24px 0; border-bottom: 1px solid var(--hair); font-size: 19px; }
.quote figcaption { display: flex; gap: 10px; align-items: center; margin-top: 12px; color: var(--muted); font-size: 15px; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* ท้ายเว็บ */
.foot { background: #070b13; border-top: 1px solid var(--hair); padding: 40px 0 calc(90px + env(safe-area-inset-bottom)); color: #c3bcad; font-size: 16px; }
.foot-mark p {
  margin: 0 0 34px; padding-bottom: 24px; border-bottom: 1px solid var(--hair);
  font-size: clamp(30px, 6.8vw, 88px); line-height: 1.4; font-weight: 700; color: var(--accent); letter-spacing: -.01em;
}
.foot-grid { display: grid; gap: 30px; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.foot-brand b { color: #fff; font-size: 17px; display: block; margin-bottom: 6px; }
.foot-brand p { font-size: 15px; }
.foot h3 { font-size: 14px; color: var(--accent); margin-bottom: 10px; font-weight: 600; letter-spacing: .04em; }
.foot-links { display: grid; }
.foot-links a, .foot-list a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-list li { min-height: 32px; }
.foot-links a:hover, .foot-list a:hover { color: var(--gold-hi); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-contact li { display: flex; gap: 10px; align-items: center; }
.foot-contact svg { color: var(--accent); }
.social { display: flex; gap: 10px; margin-top: 10px; }
.social a { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.foot-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--hair); color: var(--muted); }

/* ปุ่มลอยมือถือ: ไลน์ + โทร สูงไม่เกิน 60px */
.float-contact {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); background: #070b13; border-top: 1px solid var(--line);
}
.float-contact a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: var(--radius); font-weight: 600; }
.float-contact svg { width: 22px; height: 22px; }
.fl-line { background: #06c755; color: #fff; --line-ink: #06c755; }
.fl-call { background: var(--accent); color: #17120a; }
body.nav-open .float-contact { display: none; }

/* บทความ (ใช้เมื่อเปิดของเสริมบทความ) */
.a-wrap { max-width: 800px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.a-meta { color: var(--muted); font-size: 15px; }
.a-lead { font-size: 19px; color: #d6cfbf; }
.a-toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 20px 0; }
.a-body h2 { margin: 28px 0 10px; font-size: 28px; }
.a-body h3 { margin: 20px 0 8px; }
.a-cta { margin: 24px 0; }
.light { border: 0; padding: 0; background: transparent; max-width: 94vw; }
.light::backdrop { background: rgba(0, 0, 0, .85); }
.light img { max-height: 88vh; }
.light button { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border-radius: 50%; border: 0; font-size: 26px; cursor: pointer; }

/* ปรากฏตอนเลื่อนถึง — เปิดเฉพาะเมื่อสคริปต์พร้อม (ไม่มีสคริปต์ = เห็นทุกอย่างตามปกติ) */
.rv-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv-on .reveal.in { opacity: 1; transform: none; }

/* ---------- จอใหญ่ขึ้น ---------- */
@media (min-width: 768px) {
  :root { --gut: 32px; }
  .topbar .tb-mail { display: inline-flex; }
  .sec { padding: 120px 0; }
  .trust-row { grid-template-columns: repeat(var(--cols, 4), 1fr); }
  .trust-row li { border-bottom: 0; padding: 22px 16px; }
  .trust-row li:first-child { padding-left: 0; }
  .trust-row li + li { border-left: 1px solid var(--hair); }

  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; align-items: end; padding-top: 64px; padding-bottom: 56px; }
  .hero-body { padding-right: 48px; padding-bottom: 8px; }
  .hero-pic { padding-left: 32px; border-left: 1px solid var(--hair); }
  .hero-pic figcaption { left: 32px; }
  .hero-pic img { max-height: 72vh; }
  .hero-compact .hero-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); padding-top: 72px; }
  .hero-compact .hero-pic img { max-height: 460px; }
  .hero-foot { grid-template-columns: 1fr; }

  .cards { grid-template-columns: repeat(var(--cols, 4), 1fr); }
  .card, .card:nth-child(even) { padding: 24px 22px 10px; border-left: 1px solid var(--hair); }
  .card:first-child { padding-left: 0; border-left: 0; }
  .card:last-child { padding-right: 0; }
  .card:nth-child(even) { padding-top: 96px; }

  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; align-items: center; }
  .split-pic { width: 100%; }
  .split-text { padding-left: 8%; }
  .split.pic-right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split.pic-right .split-pic { order: 2; }
  .split.pic-right .split-text { padding-left: 0; padding-right: 8%; }
  .split.no-pic { grid-template-columns: 1fr; }
  .split.no-pic .split-text { padding: 0; }

  .steps { grid-template-columns: repeat(2, 1fr); border-top: 0; }
  .step { grid-template-columns: 1fr; padding: 26px 26px 30px; border-bottom: 0; border-top: 1px solid var(--hair-dark); border-left: 1px solid var(--hair-dark); }
  .step:nth-child(odd) { border-left: 0; padding-left: 0; }
  .step-no { grid-row: auto; font-size: 72px; margin-bottom: 18px; }

  .evidence-in, .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 6%; align-items: start; }
  .evidence-in { display: grid; }
  .faq-grid { display: grid; }
  .sec-head.side { position: sticky; top: 110px; margin-bottom: 0; }
  .sec-head.side h2 { font-size: clamp(32px, 4.6vw, 56px); }

  .features-grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 8%; align-items: start; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
  .foot-grid > div + div { border-left: 1px solid var(--hair); padding-left: 24px; }
  .foot { padding-bottom: 40px; }
  .float-contact { display: none; }
  .quotes { grid-template-columns: repeat(3, 1fr); column-gap: 30px; }
  .row-item { grid-template-columns: 200px 1fr auto; align-items: center; }
  .gal { columns: 3; }
}

@media (min-width: 1024px) {
  body { font-size: 18px; }
  .nav .wrap { min-height: 84px; gap: 26px; }
  .logo img { width: 58px; height: 58px; }
  .logo b { font-size: 18px; }
  .dnav { display: flex; gap: 0; }
  .dnav a { white-space: nowrap; padding: 10px 12px; font-size: 16px; font-weight: 600; border-bottom: 1px solid transparent; }
  .dnav a:hover { color: var(--gold-hi); }
  .dnav a[aria-current="page"] { color: var(--gold-hi); border-bottom-color: var(--accent); }
  .nav-cta { display: block; }
  .nav-toggle, .mnav { display: none; }
  .steps { grid-template-columns: repeat(var(--cols, 4), 1fr); }
  .step, .step:nth-child(odd) { border-left: 1px solid var(--hair-dark); padding-left: 26px; }
  .step:first-child { border-left: 0; padding-left: 0; }
  .step:nth-child(even) { padding-top: 70px; }
  .features-grid { grid-template-columns: repeat(var(--cols, 3), 1fr); }
  .gal { columns: var(--cols, 4); }
  .hero-sub { font-size: 19px; }
  .hero-full .hero-grid { min-height: calc(100vh - 130px); max-height: 900px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .logo small { display: none; }
  .logo b { font-size: 17px; }
  .dnav a { font-size: 15px; padding: 10px 8px; }
}

@media (max-width: 380px) {
  .logo small { display: none; }
  .logo b { font-size: 15px; }
  .btn { padding: 0 18px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
