/* SriSom Studio — Warm Healing & Luxury Boutique
   พื้นครีมอุ่น · ตัวหนังสือน้ำตาลเข้ม · ปุ่มกรมท่า · เส้นทองด้าน · เขียวเสจเป็นแถบรอง
   ห้ามฟ้า/น้ำเงินสด/เขียวสด/แดงสด/ชมพูสดตามบรีฟลูกค้า · ทุกส่วนต้องไม่ล้นจอที่ 360px */

:root {
  --accent: #1E2740;
  --accent-ink: #F8F2E7;
  --ink: #2B211B;
  --muted: #65584D;
  --paper: #F4ECDF;
  --paper-2: #EDE2D1;
  --gold: #B08D57;
  --gold-ink: #8A6A38;
  --sage: #DDDFD0;
  --sage-ink: #5E6957;
  --espresso: #2B211B;
  --line: #D9CCB7;
  --font: 'IBM Plex Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --display: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
  --gap: clamp(64px, 9vw, 128px);
  --pad: clamp(18px, 4vw, 40px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.7;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: clamp(27px, 3vw, 34px); }
h4 { font-size: 23px; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 820px; }
.sec { padding-block: var(--gap); }
.sec-tight { padding-block: clamp(44px, 6vw, 72px); }
.sec-alt { background: var(--paper-2); }
.sec-dark { background: var(--accent); color: var(--accent-ink); }
.sec-head { max-width: 70ch; margin-bottom: clamp(32px, 5vw, 60px); }
.sec-head > p:not(.eyebrow) { color: var(--muted); margin-top: 14px; font-size: 18px; }
.sec-dark .sec-head > p:not(.eyebrow) { color: inherit; opacity: .85; }
.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 14px; }
.lede { font-family: var(--display); font-size: clamp(21px, 2.1vw, 25px); line-height: 1.35; color: var(--muted); margin-bottom: 18px; }
.credit { font-weight: 500; }
.fine { font-size: 15px; color: var(--muted); }
.sec-note { margin-top: 36px; max-width: 80ch; }
.prose p { margin-top: 16px; }
.text-link { display: inline-block; margin-top: 18px; color: var(--gold-ink); font-weight: 500; text-underline-offset: 4px; text-decoration: underline; text-decoration-thickness: 1px; min-height: 44px; }

.ticks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .68em; width: 11px; height: 1.5px; background: var(--gold); }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 26px; min-height: 48px; border-radius: 2px; font-size: 16px; font-weight: 500; line-height: 1.3;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; text-align: center;
  border: 1px solid var(--accent); cursor: pointer; font-family: inherit;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: #2C3756; border-color: #2C3756; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #21190F; }
.btn-gold:hover { background: #C09E68; border-color: #C09E68; }
.btn-line-light { background: transparent; color: var(--accent-ink); border-color: currentColor; }
.btn-line-light:hover { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row:empty { display: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.ic-solid { fill: currentColor; stroke: none; }

/* ---------- หัวเว็บ — ห้าม backdrop-filter/transform เพราะครอบเมนูมือถือ fixed ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: block; flex: none; }
.logo img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); font-size: 15.5px; }
.nav-links a:not(.btn) { text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { border-bottom-color: var(--gold); }
.nav-cta { font-size: 15px; padding-inline: 18px; }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; z-index: 41; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: top .2s ease, rotate .2s ease; }
.nav-toggle span:first-child { top: 19px; }
.nav-toggle span:last-child { top: 28px; }
.nav-open .nav-toggle span { top: 24px; }
.nav-open .nav-toggle span:first-child { rotate: 45deg; }
.nav-open .nav-toggle span:last-child { rotate: -45deg; }

/* ---------- แบนเนอร์หน้าแรก: คอลลาจจานแตกเชื่อมทอง กับรูปลอยสองใบ ---------- */
.hero { position: relative; overflow: hidden; }
.hero-track { display: flex; }
.hero-slide { position: relative; flex: 0 0 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(20px, 3vw, 48px); align-items: center; min-height: min(calc(100vh - 76px), 820px); padding-block: 48px 72px; }
.hero-body { max-width: 620px; position: relative; z-index: 3; }

/* แบนเนอร์หน้ารอง: ข้อความซ้าย รูปขวาตามสัดส่วนจริง */
.hero-compact { border-bottom: 1px solid var(--line); }
.hero-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(44px, 6vw, 84px); }
.hero-compact .hero-body { max-width: none; }
.hero-compact .hero-title { font-size: clamp(36px, 4.4vw, 58px); }
.hero-compact .eyebrow { text-transform: none; letter-spacing: 0; font-family: var(--display); font-size: clamp(20px, 2vw, 24px); line-height: 1.35; font-weight: 500; color: var(--gold-ink); order: 2; }
.hero-compact .hero-body { display: flex; flex-direction: column; align-items: flex-start; }
.hero-compact .hero-title { order: 1; }
.hero-compact .hero-sub { order: 3; }
.hero-compact .btn-row { order: 4; }
.hero-pic img { width: 100%; max-height: 560px; object-fit: contain; object-position: center; margin-inline: auto; width: auto; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 4px; z-index: 3; }
.hero-dots button { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.hero-dots button::after { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: var(--accent); opacity: .3; }
.hero-dots button[aria-current='true']::after { opacity: 1; }

/* ---------- จุดเด่น ---------- */
.trust { background: var(--sage); padding-block: 26px; }
.features-grid { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { flex: none; width: 26px; height: 26px; color: var(--sage-ink); margin-top: 3px; }
.feature-icon svg { width: 100%; height: 100%; }
.feature h3 { font-family: var(--font); font-size: 16.5px; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.feature p { margin: 2px 0 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.sec .feature { padding-top: 22px; border-top: 1px solid var(--gold); }
.sec .feature h3 { font-family: var(--display); font-size: 26px; line-height: 1.2; }
.sec .feature p { margin-top: 8px; font-size: 16.5px; line-height: 1.65; }

/* ---------- เกี่ยวกับ ---------- */
.about { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about.pic-right { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.about.pic-right .about-pic { order: 2; }
.about-pic { position: sticky; top: 104px; }
.about-pic img { width: 100%; }
.about-text h2 { margin-bottom: 16px; }
.about-text .btn { margin-top: 26px; }

/* ---------- บริการหน้าแรก (สรุปเป็นหมวด) ---------- */
.cats { display: grid; gap: clamp(48px, 7vw, 96px); }
.cat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(26px, 5vw, 72px); align-items: start; }
.cat:nth-child(even) .cat-pic { order: 2; }
.cat:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cat-pic img { width: 100%; }
.cat-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.cat-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cat-list p { margin: 4px 0 0; font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.tag { flex: none; max-width: 40%; text-align: right; font-size: 15px; font-weight: 500; color: var(--gold-ink); line-height: 1.4; }
.cat-body h3 { margin-bottom: 10px; }

/* ---------- โปรแกรมเต็ม ---------- */
.programs { display: grid; gap: clamp(56px, 8vw, 104px); }
.program { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(26px, 5vw, 72px); align-items: start; }
.program-pic { position: sticky; top: 104px; }
.program-pic img { width: 100%; }
.program h3 { margin-bottom: 10px; }
.prices { margin: 26px 0 18px; border-top: 1px solid var(--gold); }
.prices > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prices dt { font-weight: 500; }
.prices dt span { display: block; font-weight: 400; font-size: 15.5px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.prices dd { margin: 0; flex: none; font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.program .btn { margin-top: 16px; }

/* ---------- แกลเลอรี: ไม่ครอป ความสูงตามสัดส่วนไฟล์จริง ---------- */
.gal-sec { padding-top: 0; }
.gal { column-gap: 10px; column-count: 2; }
.gal a { display: block; margin-bottom: 10px; break-inside: avoid; cursor: zoom-in; }
.gal img { width: 100%; }
.sec + .gal-sec { margin-top: calc(var(--gap) * -.45); }
.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.light::backdrop { background: rgba(30, 22, 17, .88); }
.light img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; }
.light button { position: fixed; width: 48px; height: 48px; border: 0; background: var(--paper); color: var(--ink); font-size: 26px; cursor: pointer; transition: background-color .2s ease; }
.light button:hover { background: var(--gold); }
.light-x { top: 12px; right: 12px; }
.light-prev, .light-next { top: 50%; margin-top: -24px; }
.light-prev { left: 12px; }
.light-next { right: 12px; }

/* ---------- วิดีโอ YouTube Shorts แนวตั้ง ---------- */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: clamp(14px, 3vw, 32px); }
.videos figure { margin: 0; }
.videos iframe { width: 100%; aspect-ratio: 9 / 16; border: 0; display: block; background: var(--espresso); }
.videos figcaption { margin-top: 10px; font-size: 15.5px; color: var(--muted); }

/* ---------- รีวิว ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.quote { margin: 0; border-top: 1px solid var(--gold); padding-top: 26px; }
.quote > p { font-family: var(--display); font-size: clamp(23px, 2.5vw, 30px); line-height: 1.32; margin-bottom: 20px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.quote figcaption span span { display: block; opacity: .75; font-size: 15px; }
.quote b { font-weight: 500; }
.review-links { margin-top: clamp(32px, 5vw, 56px); }

/* ---------- คำถาม ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding: 18px 34px 18px 0; cursor: pointer; font-family: var(--display); font-size: clamp(22px, 2.3vw, 26px); font-weight: 600; line-height: 1.25; list-style: none; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-family: var(--font); font-weight: 400; color: var(--gold-ink); }
.faq details[open] summary::after { content: '\2212'; }
.faq-a { padding-bottom: 20px; color: var(--muted); }

/* ---------- แถบชวนติดต่อ พร้อมภาพประกอบ ---------- */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(76px, 11vw, 150px); }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { max-width: 20ch; margin-bottom: 28px; }
.cta-art { position: absolute; inset: 0; }
.cta-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.cta-dark { background: var(--espresso); color: var(--accent-ink); }
.cta-dark .eyebrow { color: #D2B27C; }
.cta-soft { background: var(--paper-2); }
.cta-soft h2 { max-width: 24ch; font-size: clamp(30px, 3.8vw, 46px); }
.cta-soft .cta-art { left: auto; width: min(52%, 640px); right: -40px; opacity: .85; }
.cta-soft .cta-art img { object-fit: contain; mix-blend-mode: multiply; }

/* ---------- ติดต่อ ---------- */
.c-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(36px, 5vw, 60px); }
.c-card { display: grid; gap: 2px; padding: 22px; background: var(--paper-2); text-decoration: none; transition: background-color .2s ease; overflow-wrap: anywhere; }
.c-card:hover { background: var(--sage); }
.c-card svg { width: 24px; height: 24px; color: var(--sage-ink); margin-bottom: 8px; }
.c-card b { font-weight: 500; }
.c-card span { color: var(--muted); font-size: 15.5px; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-solo { grid-template-columns: minmax(0, 1fr); }
.contact-solo > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(26px, 5vw, 64px); }
.lead { display: grid; gap: 18px; }
.lead h3 { margin-bottom: -8px; }
.lead > p:not(.msg) { margin: 0; color: var(--muted); }
.lead label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.lead input, .lead select, .lead textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; min-height: 48px;
  background: #FBF7EF; color: var(--ink); border: 1px solid var(--line); border-radius: 2px;
}
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.msg { margin: 0; min-height: 1.6em; font-size: 15.5px; }
.msg.ok { color: var(--sage-ink); font-weight: 500; }
.msg.bad { color: #8E3B2C; font-weight: 500; }
.place h3 { margin-bottom: 16px; }
.addr { display: flex; gap: 12px; margin-bottom: 12px; }
.addr svg { flex: none; width: 22px; height: 22px; color: var(--sage-ink); margin-top: 3px; }
.hours { list-style: none; padding: 0; margin: 0 0 12px; font-size: 15.5px; }
.hours li { display: flex; justify-content: space-between; gap: 14px; }
.map { width: 100%; height: clamp(300px, 34vw, 400px); border: 0; margin-top: 18px; display: block; }
.contact-solo .map { margin-top: 0; }
.links-sec { text-align: left; border-top: 1px solid var(--line); }
.links-sec .sec-head { margin-bottom: 22px; }
.links-sec h2 { font-size: clamp(28px, 3.4vw, 40px); }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--espresso); color: #E9DFCF; padding-block: clamp(48px, 6vw, 76px); font-size: 15.5px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 64px); }
.foot b { font-family: var(--display); font-size: 25px; line-height: 1.2; display: block; margin-bottom: 10px; font-weight: 600; }
.foot p { margin-bottom: 8px; white-space: pre-line; }
.foot a { text-underline-offset: 3px; }
.foot-nav { display: grid; gap: 6px; align-content: start; }
.foot-nav a { text-decoration: none; padding-block: 5px; min-height: 44px; display: flex; align-items: center; }
.foot-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-nav a:hover { text-decoration: underline; }
.social { display: flex; gap: 4px; margin-top: 14px; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; }
.social svg { width: 22px; height: 22px; }
.foot small { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(233, 223, 207, .2); font-size: 14px; opacity: .8; }

/* ---------- ปุ่มลอยมือถือ ---------- */
.float-contact { display: none; }

/* ---------- ปรากฏตอนเลื่อนถึง: JS เติม reveal-wait ให้เฉพาะของที่ยังไม่เข้าจอ ---------- */
.reveal { transition: opacity .55s ease, translate .55s ease; }
.reveal-wait { opacity: 0; translate: 0 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .btn, .c-card { transition: none; }
  .reveal-wait { opacity: 1; translate: none; }
}

@media (min-width: 480px) { .gal { column-count: 3; } }
@media (min-width: 1024px) { .gal { column-count: 4; } }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  /* เมนูมือถือเต็มจอ — ซ่อนจริงตอนปิด */
  .nav-links { display: none; }
  .nav-open { overflow: hidden; }
  .nav-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: fixed; inset: 0; z-index: 40; background: var(--paper);
    padding: 92px var(--pad) 40px; font-family: var(--display); font-size: 32px; overflow-y: auto;
  }
  .nav-open .nav-links .btn { font-family: var(--font); font-size: 16px; margin-top: 18px; width: 100%; }
}

@media (max-width: 860px) {
  body { font-size: 16.5px; padding-bottom: 72px; }
  .nav > .wrap { min-height: 66px; }
  .logo img { height: 48px; }
  .features-grid { --cols: 2 !important; }
  .about, .about.pic-right, .cat, .cat:nth-child(even), .program, .hero-split, .contact, .foot .wrap, .contact-solo > div { grid-template-columns: minmax(0, 1fr); }
  .about.pic-right .about-pic, .cat:nth-child(even) .cat-pic { order: 0; }
  .about-pic, .program-pic { position: static; }
  .about-pic { max-width: 360px; }
  .program-pic, .cat-pic { max-width: 560px; }
  .hero-pic img { max-height: 420px; }
  .c-cards { grid-template-columns: minmax(0, 1fr); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .cta-soft .cta-art { opacity: .3; width: 90%; right: -30%; }
  .float-contact {
    display: grid; grid-template-columns: 2fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    height: 60px; padding: 6px 10px; background: var(--paper); border-top: 1px solid var(--line);
  }
  .float-contact .btn { min-height: 0; padding: 0 12px; }
  .nav-open .float-contact { display: none; }
}

@media (max-width: 479px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .prices > div { flex-direction: column; gap: 4px; }
  .prices dd { white-space: normal; }
  .cat-list li { flex-direction: column; gap: 6px; }
  .tag { max-width: none; text-align: left; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* =====================================================================
   ชั้นศิลปะ — คอนเซปต์ "รอยแตกที่เชื่อมด้วยทอง" สีเดิมทั้งหมดของแบรนด์
   ส่วนแรกแสดงทุกโหมด · ส่วน html.art เปิดเมื่อไม่ใช่โหมดแก้หน้าเว็บ และผู้ใช้ไม่ได้ตั้งลดการเคลื่อนไหว
   ห้ามใส่ transform/filter/backdrop-filter บน .nav เพราะครอบเมนูมือถือ fixed
   ===================================================================== */

.defs { position: absolute; width: 0; height: 0; }
.intro { display: none; }
.mandala { display: block; fill: none; stroke: currentColor; stroke-width: .55; overflow: visible; }

/* ---------- ตัวเลขใหญ่หลังการ์ดบริการและโปรแกรม ---------- */
.cats, .programs { counter-reset: num; }
.cat, .program { position: relative; counter-increment: num; }
.cat-body, .program-body { position: relative; }
.cat-body::before, .program-body::before {
  content: counter(num, decimal-leading-zero); position: absolute; right: 0; top: -14px; z-index: 0; pointer-events: none;
  font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(64px, 7vw, 104px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--gold);
}
.cat-body > *, .program-body > * { position: relative; z-index: 1; }
.cat-body h3, .program-body h3 { padding-right: clamp(70px, 8vw, 120px); }
.cat-body .lede { padding-right: clamp(70px, 8vw, 120px); }

/* ---------- ปุ่ม: ทองไหลเข้าจากซ้าย ---------- */
.btn {
  background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-size: 0 400px; background-position: left center;
  transition: background-size .45s cubic-bezier(.22,.8,.3,1), background-color .2s ease, color .25s ease, border-color .2s ease, translate .25s cubic-bezier(.22,.8,.3,1);
}
.btn:hover { background-size: 900px 400px; color: #21190F; border-color: var(--gold); }
.btn-gold { background-image: linear-gradient(var(--accent), var(--accent)); }
.btn-gold:hover { color: var(--accent-ink); border-color: var(--accent); background-color: var(--gold); }
.btn-wa:hover, .btn-ghost:hover, .btn-line-light:hover { background-color: transparent; }

/* ---------- เมนู: เส้นทองคลี่จากกลาง ---------- */
.nav { transition: top .35s cubic-bezier(.22,.8,.3,1); }
.nav.away { top: -96px; }
.nav-links a:not(.btn) { position: relative; border-bottom: 0; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px; background: var(--gold); scale: 0 1; transition: scale .3s cubic-bezier(.22,.8,.3,1); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current]::after { scale: 1 1; }

/* ---------- รูปหน้ารอง: แมนดาลาหลังรูป กรอบพอดีรูป ---------- */
.hero-pic { position: relative; width: fit-content; max-width: 100%; justify-self: center; }
.hero-pic picture { display: block; position: relative; z-index: 1; }
.pic-mandala { position: absolute; z-index: 0; width: 128%; height: auto; aspect-ratio: 1; left: -14%; top: 50%; margin-top: -64%; color: var(--gold); opacity: .55; pointer-events: none; }
.hero-compact .hero-body { z-index: 2; }

/* ---------- เกี่ยวกับ ---------- */
.about-pic > img { position: relative; z-index: 1; }

/* ---------- บริการ ---------- */
.cat-list li { position: relative; transition: padding-left .3s cubic-bezier(.22,.8,.3,1); }
.cat-list li::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--gold); scale: 0 1; transform-origin: left; transition: scale .5s cubic-bezier(.22,.8,.3,1); }
.cat-list li:hover { padding-left: 12px; }
.cat-list li:hover::after { scale: 1 1; }
.prices > div { position: relative; transition: padding-left .3s cubic-bezier(.22,.8,.3,1); }
.prices > div:hover { padding-left: 10px; }

/* ---------- แถบปรัชญา ---------- */
.cta-dark h2 { font-size: clamp(50px, 9.4vw, 140px); line-height: .98; letter-spacing: -.02em; max-width: 11ch; font-weight: 500; margin-bottom: 44px; }
.cta-long.cta-dark h2 { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.12; max-width: 24ch; overflow-wrap: anywhere; letter-spacing: 0; }
.cta-band { isolation: isolate; }
/* ไฟล์ภาพประกอบกว้าง 1600px จึงวางกว้างไม่เกิน 800px ให้คมจริงบนจอ retina แล้วเฟดขอบให้กลืนกับพื้นแทนการยืดเต็มจอ */
.cta-dark .cta-art {
  inset: 50% 0 auto auto; translate: 0 -50%; width: min(100%, 800px); aspect-ratio: 16 / 9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%), linear-gradient(transparent, #000 13%, #000 87%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%), linear-gradient(transparent, #000 13%, #000 87%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.cta-soft .cta-art { width: min(52%, 620px); }
.cta-soft .cta-art img { animation: drift-spin 160s linear infinite; }
html:not(.art) .cta-soft .cta-art img { animation: none; }
@keyframes drift-spin { to { rotate: 360deg; } }

/* ---------- วิดีโอ: หัวข้อตรึงซ้าย ไม่ปล่อยที่ว่างครึ่งจอ ---------- */
.video-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.video-layout .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
.videos { justify-content: end; }
.videos figure:nth-child(even) { margin-top: 72px; }

/* ---------- แกลเลอรี ---------- */
.gal a { position: relative; overflow: hidden; }
.gal img { transition: scale .8s cubic-bezier(.22,.8,.3,1), filter .5s ease; }
.gal a:hover img { scale: 1.05; filter: saturate(1.1); }
.gal a::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(210,178,124,.55) 50%, transparent 62%); translate: -110% 0; transition: translate .9s cubic-bezier(.22,.8,.3,1); }
.gal a:hover::after { translate: 110% 0; }
.gal-cols { display: flex; gap: 10px; column-count: auto; align-items: flex-start; }
.gal-col { flex: 1 1 0; min-width: 0; }
.gal-sec { overflow: clip; }
/* ต่อจากส่วนพื้นเข้ม ห้ามดึงขึ้นทับ ไม่งั้นหัวข้อคร่อมรอยต่อสีพื้น */
.sec-alt + .gal-sec { margin-top: 0; padding-top: var(--gap); }
main { overflow-x: clip; }

/* ---------- ส่วนสีเข้ม: แมนดาลาจางเป็นฉากหลัง ---------- */
.sec-dark { position: relative; overflow: hidden; }
.sec-dark > .wrap { position: relative; z-index: 1; }
.bg-mandala { position: absolute; width: min(900px, 130vw); height: auto; aspect-ratio: 1; right: -18%; top: -14%; color: #D2B27C; opacity: .24; }
.quote { position: relative; }
.quote::before { content: '\201C'; position: absolute; top: 14px; right: 0; font-family: var(--display); font-size: 190px; line-height: 1; color: #D2B27C; opacity: .16; pointer-events: none; }
.quote > p, .quote figcaption { position: relative; }

/* ---------- คำถาม: เปิดนุ่ม พร้อมเส้นทองข้าง ---------- */
.faq details { position: relative; transition: padding-left .3s ease; interpolate-size: allow-keywords; }
.faq details::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold); scale: 1 0; transform-origin: top; transition: scale .45s cubic-bezier(.22,.8,.3,1); }
.faq details[open] { padding-left: 18px; }
.faq details[open]::before { scale: 1 1; }
.faq details::details-content { height: 0; overflow: hidden; transition: height .4s cubic-bezier(.22,.8,.3,1), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq summary::after { transition: rotate .3s ease; }
.faq details[open] summary::after { rotate: 180deg; }

/* ---------- ฟอร์มและการ์ดติดต่อ ---------- */
.c-card { position: relative; overflow: hidden; }
.c-card::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold); scale: 0 1; transform-origin: left; transition: scale .45s cubic-bezier(.22,.8,.3,1); }
.c-card:hover::after { scale: 1 1; }
.tilt { transition: transform .35s cubic-bezier(.22,.8,.3,1), background-color .2s ease; will-change: transform; }

/* ---------- ท้ายเว็บ: ชื่อแบรนด์ตัวใหญ่ล้นขอบ ---------- */
.foot { position: relative; overflow: hidden; padding-bottom: 0; }
.foot-mark { font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(90px, 25vw, 400px); line-height: .82; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(210,178,124,.55); margin-top: clamp(20px, 3vw, 40px); margin-bottom: -.1em; white-space: nowrap; user-select: none; }

/* ---------- ลูกเล่นวาดแมนดาลา ---------- */
html:not(.js) .play { display: none; }
.play { position: relative; overflow: hidden; }
.play-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.play-text h2 { margin-bottom: 16px; }
.play-tools { display: grid; gap: 14px; margin: 26px 0; }
.play-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.play-row > span { width: 88px; font-size: 15px; font-weight: 500; color: var(--muted); }
.chip { min-width: 48px; min-height: 48px; padding: 8px 16px; font: inherit; font-size: 15.5px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.swatch { width: 48px; height: 48px; padding: 0; background: var(--c); border: 1px solid rgba(43,33,27,.28); border-radius: 50%; cursor: pointer; transition: box-shadow .2s ease; }
.swatch[aria-pressed='true'] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold-ink); }
.play-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; display: grid; place-items: center; }
.play-canvas { position: relative; z-index: 1; width: 88%; height: 88%; border-radius: 50%; cursor: crosshair; touch-action: none; display: block; }
.play-halo { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .7; }

@media (max-width: 860px) {
  .video-layout, .play-grid { grid-template-columns: minmax(0, 1fr); }
  .video-layout .sec-head { position: static; }
  .videos { justify-content: start; }
  .videos figure:nth-child(even) { margin-top: 40px; }
  .pic-mandala { width: 112%; left: -6%; margin-top: -56%; }
  .bg-mandala { right: -50%; top: -6%; }
  /* เว้นขอบให้นิ้วปัดเลื่อนหน้าได้ เพราะบนวงวาดแตะแล้วหน้าไม่เลื่อน */
  .play-stage { max-width: 84vw; order: 2; }
  /* มือถือ: หัวข้อ → วงวาด → เครื่องมือ เครื่องมือจะได้อยู่ติดวงวาด */
  .play-text { display: contents; }
  .play-text > .eyebrow, .play-text > h2, .play-text > .lede { order: 1; margin-bottom: -8px; }
  .play-tools { order: 3; margin: 0; }
  .play-text > .btn { order: 4; justify-self: start; }
  .play-grid { gap: 22px; }
  .play-row > span { width: 100%; }
  .cat-body::before, .program-body::before { top: -6px; font-size: 56px; }
  .foot-mark { margin-top: 26px; }
}

/* ---------- ฉากเปิด: รอยร้าวทองผ่าหน้าจอ แล้วแยกออก (ครั้งแรกของการเข้าเว็บเท่านั้น) ---------- */
html.art-intro .intro { display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; animation: intro-off 0s linear 1.75s forwards; }
.intro i { position: absolute; inset: 0; background: var(--espresso); animation: 0.8s cubic-bezier(.7,0,.2,1) .85s forwards; }
.intro i:nth-child(1) { clip-path: polygon(0 0, 100% 0, 100% 46%, 82% 50%, 63% 61%, 56% 47%, 47% 38%, 31% 58%, 18% 55%, 0 62%); animation-name: intro-up; }
.intro i:nth-child(2) { clip-path: polygon(0 62%, 18% 55%, 31% 58%, 47% 38%, 56% 47%, 63% 61%, 82% 50%, 100% 46%, 100% 100%, 0 100%); animation-name: intro-down; }
/* เส้นในจอที่ยืดสัดส่วนใช้ non-scaling-stroke จึงวาดด้วยการกวาด clip-path แทน stroke-dashoffset (ใช้คู่กันแล้วกลายเป็นเส้นประ) */
.intro svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #D2B27C; stroke-width: 2; fill: none; clip-path: inset(0 100% 0 0); animation: wipe-in .8s cubic-bezier(.6,0,.3,1) .05s forwards, intro-fade .25s ease 1s forwards; }
.intro path { vector-effect: non-scaling-stroke; }
.intro b { position: absolute; left: 50%; top: 30%; translate: -50% -50%; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(48px, 8vw, 110px); color: #D2B27C; opacity: 0; animation: intro-word 1s ease forwards; }
@keyframes intro-off { to { visibility: hidden; } }
@keyframes intro-up { to { translate: 0 -105%; } }
@keyframes intro-down { to { translate: 0 105%; } }
@keyframes intro-fade { to { opacity: 0; } }
@keyframes intro-word { 20%, 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wipe-in { to { clip-path: inset(0 0 0 0); } }

/* ---------- เปลี่ยนหน้าแบบจางนุ่ม ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .22s ease both vt-out; }
  ::view-transition-new(root) { animation: .38s cubic-bezier(.22,.8,.3,1) both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; translate: 0 14px; } }
}

/* ---------- ทุกอย่างด้านล่าง เปิดเฉพาะโหมดลูกเล่น ---------- */

/* เนื้อกระดาษบางๆ ทั้งหน้า */
html.art::after {
  content: ''; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .13 0 0 0 0 .1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* แมนดาลาหมุนช้ามาก + ค่อยๆ วาดตามการเลื่อน */
html.art .mandala { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drift-spin 150s linear infinite; }
html.art .play-halo { animation-duration: 70s; }

/* ข้อความไล่ขึ้นทีละคำ */
.w { display: inline-block; overflow: hidden; padding-block: .1em .14em; margin-block: -.1em -.14em; padding-inline: .04em; margin-inline: -.04em; vertical-align: top; }
.wi { display: inline-block; }
html.art .split .wi { translate: 0 112%; transition: translate .85s cubic-bezier(.2,.8,.2,1); transition-delay: calc(min(var(--n), 16) * 42ms); }
html.art .split.in .wi { translate: 0 0; }




/* รูปเปิดด้วยการกวาดจากซ้าย */
html.art .cat-pic img, html.art .program-pic img, html.art .about-pic > img, html.art .gal-sec .gal img { transition: clip-path 1.05s cubic-bezier(.7,0,.2,1), scale .8s cubic-bezier(.22,.8,.3,1), filter .5s ease; clip-path: inset(0 0 0 0); }
html.art .reveal-wait .cat-pic img, html.art .reveal-wait .program-pic img, html.art .about-pic.reveal-wait > img { clip-path: inset(0 100% 0 0); }
html.art .reveal-wait .cat-body::before, html.art .reveal-wait .program-body::before { opacity: 0; translate: -30px 0; }
.cat-body::before, .program-body::before { transition: opacity .8s ease .25s, translate 1s cubic-bezier(.2,.8,.2,1) .25s; }

/* แถบปรัชญา: เส้นทองสว่างตามเมาส์ */
html.art .cta-art.has-glow > img:first-child { opacity: .8; }
.cta-glow { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center;
  -webkit-mask-image: radial-gradient(circle 340px at var(--mx, 70%) var(--my, 45%), #000 0, rgba(0,0,0,.6) 45%, transparent 100%);
  mask-image: radial-gradient(circle 340px at var(--mx, 70%) var(--my, 45%), #000 0, rgba(0,0,0,.6) 45%, transparent 100%);
  filter: brightness(1.2); }

/* ขอบบนส่วนสีเข้มเป็นรอยแตก เส้นทองวิ่งตามรอย */
html.art .sec-dark, html.art .cta-dark, html.art .foot {
  position: relative; z-index: 1; margin-top: -30px;
  clip-path: polygon(0 18px, 12% 6px, 19% 26px, 33% 12px, 41% 30px, 58% 8px, 66% 22px, 81% 4px, 90% 20px, 100% 10px, 100% 100%, 0 100%);
}
.edge-seam { position: absolute; left: 0; top: 0; width: 100%; height: 40px; z-index: 2; pointer-events: none; clip-path: inset(0 100% 0 0); }
.edge-seam path { fill: none; stroke: #C9A46A; stroke-width: 3; vector-effect: non-scaling-stroke; }
.edge-seam.in { clip-path: inset(0 0 0 0); transition: clip-path 1.8s cubic-bezier(.4,0,.2,1); }

/* เคอร์เซอร์ */
.cursor-ring { position: fixed; left: -19px; top: -19px; width: 38px; height: 38px; z-index: 80; border: 1.5px solid var(--gold); border-radius: 50%; pointer-events: none; opacity: 0; transition: width .25s ease, height .25s ease, left .25s ease, top .25s ease, opacity .25s ease, background-color .25s ease; }
.cursor-ring.on { opacity: .9; }
.cursor-ring.big { width: 68px; height: 68px; left: -34px; top: -34px; background: rgba(201,164,106,.14); }
.trail { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 79; pointer-events: none; }

/* ลดการเคลื่อนไหว: ไม่มีอะไรหมุน ไม่มีอะไรวิ่ง */
@media (prefers-reduced-motion: reduce) {
  .cta-soft .cta-art img { animation: none; }
  .btn, .faq details, .cat-list li, .tilt { transition: none; }
}

/* =====================================================================
   ชั้นดีไซน์ตามแบบของฟ็อก (design/comps/แบบอ้างอิง-ฟ็อก.png)
   พื้นครีม · ปุ่มทองด้านทรงยาวมน · แถบเอสเปรสโซเข้ม · รอยเชื่อมทองตามขอบรูป
   ===================================================================== */
:root { --accent-ink: #21190F; --max: 1240px; --edge: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }
.sec-dark { background: var(--espresso); color: #F8F2E7; }
.sec-navy { background: #1B2438; }
.cta-dark { color: #F8F2E7; }
.sec-dark .eyebrow { color: #D2B27C; }
.sec-dark .text-link { color: #D2B27C; }

/* ---------- ปุ่ม ---------- */
.btn, .btn-gold { background-color: var(--gold); background-image: linear-gradient(120deg, #C9A96F, #A27E48); background-size: auto; border-color: #A27E48; color: #21190F; border-radius: 999px; font-weight: 600; }
.btn:hover, .btn-gold:hover { background-color: var(--gold); background-image: linear-gradient(120deg, #D8BC89, #B08D57); background-size: auto; border-color: #B08D57; color: #21190F; }
.btn-ghost { background-color: transparent; background-image: none; border-color: var(--gold-ink); color: var(--ink); }
.btn-ghost:hover { background-color: var(--ink); background-image: none; border-color: var(--ink); color: var(--paper); }
.btn-line-light { background-color: transparent; background-image: none; color: #F8F2E7; border-color: currentColor; }
.btn-line-light:hover { background-color: #F8F2E7; background-image: none; border-color: #F8F2E7; color: var(--espresso); }
.chip { border-radius: 999px; }
.chip[aria-pressed='true'] { background: var(--gold); color: #21190F; border-color: var(--gold); }

/* ---------- แถบข้อมูลบนสุด ---------- */
.topbar { background: var(--espresso); color: #E9DFCF; font-size: 14.5px; line-height: 1.3; }
.topbar .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px clamp(18px, 3vw, 40px); min-height: 40px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar a:hover { color: #D2B27C; }
.topbar svg { width: 16px; height: 16px; flex: none; color: #D2B27C; }
.topbar-social a { width: 32px; height: 32px; justify-content: center; }

/* ---------- แบนเนอร์หน้าแรก: ข้อความซ้าย รูปชนขอบขวา ขอบรูปเป็นรอยเชื่อมทอง ---------- */
.hero-full .hero-slide { display: grid; grid-template-columns: minmax(0, 1fr) 39vw; min-height: min(calc(100vh - 116px), 660px); }
.hero-grid { display: flex; align-items: center; min-height: 0; max-width: none; margin: 0; padding-left: var(--edge); padding-right: clamp(20px, 3vw, 48px); padding-block: 48px 56px; }
.hero-body { max-width: 680px; position: relative; z-index: 3; }
.hero-full .eyebrow { display: flex; align-items: center; gap: 16px; text-transform: none; letter-spacing: 0; font-family: var(--display); font-style: italic; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; }
.hero-full .eyebrow::after { content: ''; flex: 0 1 110px; height: 1px; background: var(--gold); }
.hero-title { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 4.7vw, 66px); line-height: 1.08; margin: 0 0 22px; text-wrap: balance; }
.hero-big { display: block; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; font-weight: 500; margin-bottom: 8px; }
.hero-rest { display: block; font-size: clamp(38px, 4.7vw, 66px); line-height: 1.08; }
.hero-sub { font-size: 18px; color: var(--muted); margin-bottom: 26px; max-width: 58ch; }
.hero-media { position: relative; min-height: 100%; }
.hero-media picture { position: absolute; inset: 0; display: block; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.edge-left img { clip-path: polygon(100% 0, 100% 100%, 5% 100%, 8% 93%, 5% 86%, 7% 78%, 3% 71%, 5% 63%, 7% 56%, 4% 49%, 8% 41%, 6% 34%, 10% 27%, 9% 20%, 13% 13%, 11% 7%, 14% 0%); }
.edge-right img { clip-path: polygon(0 0, 86% 0%, 89% 7%, 87% 13%, 91% 20%, 90% 27%, 94% 34%, 92% 41%, 96% 49%, 93% 56%, 95% 63%, 97% 71%, 93% 78%, 95% 86%, 92% 93%, 95% 100%, 0 100%); }
.seam { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; filter: drop-shadow(0 0 2px rgba(201,164,106,.5)); }
.seam path { fill: none; stroke: #C9A46A; stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.seam .thin { stroke-width: 1.3; }
.seam-foot { display: none; }
.edge-right .seam-side { scale: -1 1; }
html.art .seam { clip-path: inset(0 0 100% 0); }
html.art .seam.in { clip-path: inset(-10% -10% -10% -10%); transition: clip-path 1.6s cubic-bezier(.4,0,.2,1); }

/* ---------- จุดเด่นใต้แบนเนอร์ คั่นด้วยเส้นตั้ง ---------- */
.trust { background: transparent; padding-block: 26px; border-block: 1px solid var(--line); }
.trust .features-grid { gap: 20px 0; }
.trust .feature { align-items: center; padding-inline: clamp(12px, 1.6vw, 24px); }
.trust .feature + .feature { border-left: 1px solid var(--line); }
.trust .feature-icon { width: 34px; height: 34px; color: var(--gold-ink); margin-top: 0; }

/* ---------- การ์ดโปรแกรม: รูปสูงเท่ากัน กว้างตามสัดส่วนจริง ไม่ครอป ข้อความอยู่ข้างรูป ---------- */
#programs { padding-block: clamp(56px, 7vw, 96px); }
#programs .wrap { max-width: 1440px; }
#programs .sec-head { max-width: none; text-align: center; margin-inline: auto; }
#programs .sec-head h2 { display: inline-block; position: relative; }
#programs .sec-head h2::before, #programs .sec-head h2::after { content: ''; position: absolute; top: 55%; width: clamp(0px, 12vw, 180px); height: 1px; background: var(--gold); }
#programs .sec-head h2::before { right: calc(100% + 24px); }
#programs .sec-head h2::after { left: calc(100% + 24px); }
.cats { display: flex; flex-wrap: wrap; gap: 40px 28px; --h: 232px; }
.cat, .cat:nth-child(even) { display: flex; gap: 18px; flex: 1 1 calc(var(--h) * var(--ar) + 18px + 175px); min-width: 0; align-items: flex-start; }
.cat:nth-child(even) .cat-pic { order: 0; }
.cat-pic { flex: none; height: var(--h); aspect-ratio: var(--ar); border-radius: 10px; overflow: hidden; }
.cat-pic img { width: 100%; height: 100%; object-fit: cover; }
.cat-body { flex: 1 1 175px; min-width: 175px; }
.cat-body::before { content: none; }
.cat-body h3 { padding-right: 0; font-size: clamp(24px, 2vw, 28px); margin-bottom: 10px; }
.cat-body p { font-size: 15.5px; line-height: 1.55; color: var(--muted); margin-bottom: 0; }
.cat-body .text-link { font-size: 15.5px; line-height: 1.45; margin-top: 12px; }
.cat-body::after { content: ''; display: block; width: 44px; height: 2px; background: var(--gold); margin-top: 8px; }
#programs .sec-note { text-align: center; margin-inline: auto; }

/* ---------- โปรแกรมเด่น: รูปชนขอบซ้าย ---------- */
.spot { position: relative; overflow: clip; background: var(--paper-2); }
.spot-media { position: absolute; left: 0; top: 0; bottom: 0; width: 46vw; }
.spot-media > img { width: 100%; height: 100%; object-fit: cover; }
.spot-grid { padding-block: clamp(48px, 6vw, 84px); }
.spot-body { margin-left: 48%; position: relative; }
.spot-body h2 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 16px; }
.brush { display: inline-block; font-family: var(--display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; line-height: 1.2; color: #21190F; padding: 6px 26px 8px; margin-bottom: 18px; background: linear-gradient(120deg, #C9A96F, #B08D57); border-radius: 3px 14px 4px 12px; }
.spot-sub { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.25; margin-bottom: 10px; }
.spot-sub svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--gold-ink); stroke-width: 1.6; }
.spot-line { font-weight: 500; margin-bottom: 6px; }
.spot-body .fine { margin-top: 10px; }
.spot-body .btn-row { margin-top: 22px; }
.spot-note { margin: 16px 0 0 48%; }
.spot-wide .spot-media { top: 50%; bottom: auto; translate: 0 -50%; aspect-ratio: var(--ar); }
.spot-wide .spot-media > img { display: block; height: auto; }

/* ---------- ขั้นตอน ---------- */
.steps { padding-block: clamp(36px, 4vw, 52px); }
.steps-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.steps h2 { font-size: clamp(28px, 2.8vw, 38px); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.4; font-weight: 500; }
.steps b { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-family: var(--display); font-size: 26px; font-weight: 600; background: #EAD8B8; color: var(--ink); }

/* ---------- แกลเลอรีแถบเข้ม ---------- */
.band { padding-block: clamp(44px, 5vw, 68px); }
.band .wrap { max-width: 1600px; }
.band-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: center; }
.band h2 { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 16px; }
.band-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.band .chip { color: #F8F2E7; border-color: rgba(248,242,231,.45); }
.band .chip[aria-pressed='true'] { color: #21190F; border-color: var(--gold); }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin-right: calc(var(--pad) * -1); padding-bottom: 12px; scrollbar-color: var(--gold) transparent; scrollbar-width: thin; }
.strip a { flex: none; height: clamp(230px, 22vw, 320px); scroll-snap-align: start; cursor: zoom-in; }
.strip a[hidden] { display: none; }
.strip img { height: 100%; width: auto; max-width: none; border-radius: 6px; }

/* ---------- รีวิว ---------- */
.navy-art { position: absolute; right: 0; top: 0; bottom: 0; width: min(30%, 420px); }
.navy-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.navy-art ~ .wrap .sec-head, .navy-art ~ .wrap .quotes, .navy-art ~ .wrap .review-links { max-width: 66%; }

/* ---------- ตารางราคาคู่คำถามที่พบบ่อย ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); max-width: var(--max); margin: 0 auto; padding: var(--gap) var(--pad); align-items: start; }
.duo > section { padding: 0; }
.duo .wrap { max-width: none; padding: 0; }
.duo .sec-head { margin-bottom: 24px; }
.duo h2 { font-size: clamp(30px, 3.2vw, 42px); }
.price-group + .price-group { margin-top: 26px; }
.price-group h3 { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--gold-ink); line-height: 1.4; margin-bottom: 6px; }
.price-group dl { margin: 0; border-top: 1px solid var(--gold); }
.price-group dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.price-group dd { margin: 0; flex: none; max-width: 45%; text-align: right; font-weight: 500; }
.price-sec .sec-note { margin-top: 16px; }
.price-sec .btn-row { margin-top: 20px; }

/* ---------- ติดต่อแถบเข้ม ---------- */
.contact-band-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-band .sec-head { margin-bottom: 16px; }
.contact-band .lede { color: #E9DFCF; font-size: clamp(19px, 1.8vw, 22px); }
.c-rows { display: grid; gap: 2px; margin: 18px 0; }
.c-rows .c-card { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 14px; padding: 8px 0; background: transparent; }
.c-rows .c-card:hover { background: transparent; color: #D2B27C; }
.c-rows .c-card::after { content: none; }
.c-rows .c-card svg { grid-row: span 2; color: #D2B27C; margin: 2px 0 0; }
.c-rows .c-card span { color: #E9DFCF; }
.contact-band .place h3 { font-size: 24px; }
.contact-band .addr svg { color: #D2B27C; }
.contact-band .hours { color: #E9DFCF; }
.contact-band-form { background: rgba(248,242,231,.06); padding: clamp(20px, 3vw, 36px); border-radius: 10px; }
.contact-band .lead > p:not(.msg) { color: #E9DFCF; }
.contact-band .msg.ok { color: #D2DBC8; }
.contact-band .msg.bad { color: #F0B9A8; }
.contact-band .map { margin-top: clamp(28px, 4vw, 48px); border-radius: 10px; }
.lead input, .lead select, .lead textarea { border-radius: 8px; }
.lead .btn { width: 100%; }

/* ---------- ภาพประกอบแถบอ่อน ---------- */
/* ไฟล์กว้าง 1024px และหมุนอยู่ กล่องจัตุรัส 400px ยังคมทุกมุมบนจอ retina */
.cta-soft .cta-art { inset: 50% 4% auto auto; translate: 0 -50%; width: min(40%, 400px); aspect-ratio: 1; opacity: 1; }
/* พื้นภาพเป็นสีครีมเดียวกับพื้นเว็บ ใช้พื้นแถบสีเดียวกันและเฟดขอบภาพ ไม่ให้เห็นกรอบสี่เหลี่ยมตอนหมุน */
.cta-soft { background: var(--paper); border-block: 1px solid var(--line); }
.cta-soft .cta-art img { height: 100%; mix-blend-mode: normal; -webkit-mask-image: radial-gradient(circle closest-side, #000 92%, transparent); mask-image: radial-gradient(circle closest-side, #000 92%, transparent); }

@media (max-width: 1080px) {
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .navy-art { display: none; }
  .navy-art ~ .wrap .sec-head, .navy-art ~ .wrap .quotes, .navy-art ~ .wrap .review-links { max-width: none; }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .about-pic { position: relative; }
  .cta-soft .cta-art { width: min(90%, 400px); right: -20%; opacity: .3; }
  /* จอแคบ: รูปขึ้นก่อน กว้างไม่เกิน 569px เพราะไฟล์ต้นฉบับกว้าง 1024px */
  .hero-full .hero-slide { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-media { order: -1; width: min(100%, 560px); margin-left: auto; height: min(68vw, 400px); min-height: 0; }
  .hero-grid { padding: 22px var(--pad) 36px; }
  .hero-rest { font-size: clamp(34px, 9vw, 52px); }
  .hero-sub { font-size: 16.5px; }
  .edge-left img { clip-path: polygon(0 0, 100% 0, 100% 95%, 80% 92%, 62% 96%, 46% 91%, 29% 97%, 16% 92%, 0 95%); }
  .seam-side { display: none; }
  .seam-foot { display: block; }
  .trust .features-grid { --cols: 2 !important; gap: 18px 0; }
  .trust .feature:nth-child(odd) { border-left: 0; }
  .trust .feature { padding-inline: 0 10px; }
  .trust .feature:nth-child(even) { padding-left: 12px; }
  .spot-media { position: relative; width: 100%; height: 64vw; max-height: 420px; }
  .spot-media > img { clip-path: polygon(0 0, 100% 0, 100% 95%, 80% 92%, 62% 96%, 46% 91%, 29% 97%, 16% 92%, 0 95%); }
  .spot-wide .spot-media { top: auto; translate: none; height: auto; max-width: 688px; max-height: none; margin-inline: auto; }
  .spot-body, .spot-note { margin-left: 0; }
  .spot-grid { padding-block: 24px 44px; }
  .steps ol { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .band-grid, .duo, .contact-band-grid { grid-template-columns: minmax(0, 1fr); }
  .strip a { height: 240px; }
}

@media (max-width: 700px) {
  #programs .sec-head h2::before, #programs .sec-head h2::after { display: none; }
  .cat, .cat:nth-child(even) { flex-direction: column; flex-basis: 100%; }
  .cat-pic { height: auto; width: 100%; max-width: 560px; }
  .cat-body { flex: none; min-width: 0; }
}

@media (max-width: 479px) {
  .price-group dl > div { flex-direction: column; gap: 2px; }
  .price-group dd { max-width: none; text-align: left; color: var(--gold-ink); }
}

/* ---------- หน้าโปรแกรมแยกหน้า: เมนูย่อย การ์ดหน้ารวม เส้นทางหน้า ---------- */
.nav-group { display: flex; flex-direction: column; align-items: flex-start; }
.nav-sub { display: flex; flex-direction: column; align-items: flex-start; padding-left: 18px; font-size: 24px; }
.nav-caret { display: none; }
@media (min-width: 1081px) {
  .nav-group { display: block; position: relative; }
  .nav-caret { display: inline-block; width: 12px; height: 12px; margin-left: 5px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .nav-sub {
    position: absolute; top: 100%; left: -18px; min-width: 170px; padding: 8px 18px; font-size: 15.5px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
    opacity: 0; visibility: hidden; translate: 0 -4px; transition: opacity .2s ease, translate .2s ease, visibility .2s;
  }
  .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { opacity: 1; visibility: visible; translate: 0 0; }
}

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; font-size: 14.5px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-ink); text-underline-offset: 4px; }

/* รูปไม่ครอป: ความกว้างแปรตามสัดส่วนไฟล์ รูปในแถวจึงสูงเท่ากันเอง */
.hub { display: flex; gap: clamp(20px, 2.6vw, 36px); align-items: flex-start; }
.hub-card { position: relative; flex: var(--ar) 1 0; min-width: 0; }
.hub-pic { border-radius: 10px; overflow: hidden; margin-bottom: 18px; aspect-ratio: var(--ar); }
.hub-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hub-card h3 { font-size: clamp(24px, 2vw, 28px); margin-bottom: 8px; }
.hub-card p { font-size: 15.5px; line-height: 1.55; color: var(--muted); margin-bottom: 0; }
.hub-card .text-link { margin-top: 12px; font-size: 15.5px; }
.hub-card .text-link::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hub-pic img { transition: scale .5s cubic-bezier(.22,.8,.3,1); }
  .hub-card:hover .hub-pic img { scale: 1.03; }
}
@media (max-width: 700px) {
  .hub { flex-direction: column; gap: 40px; }
  .hub-card { flex: none; width: 100%; }
  .hub-pic { max-width: 560px; }
}

/* ---------- บทความ: หน้ารวม (การ์ด) และหน้าอ่าน (คอลัมน์แคบแบบนิตยสาร) ---------- */
.blog-sec .sec-head h1 { font-size: clamp(44px, 6vw, 76px); margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(20px, 2.6vw, 36px); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-pic { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--paper-2); margin-bottom: 18px; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; }
.card-body h2, .card-body h4 { font-size: clamp(24px, 2.1vw, 29px); line-height: 1.2; margin-bottom: 10px; }
.card-body h2 a { text-decoration: none; }
.card-body p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.card-body .a-meta { margin-bottom: 8px; }
.card-body .text-link { margin-top: auto; padding-top: 14px; font-size: 15.5px; }
.card-body .text-link::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card-pic img { transition: scale .5s cubic-bezier(.22,.8,.3,1); }
  .card:hover .card-pic img { scale: 1.03; }
}

.a-meta { font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.a-wrap { max-width: calc(760px + var(--pad) * 2); }
.a-page { padding-top: clamp(20px, 3vw, 36px); }
.a-head { margin: clamp(18px, 3vw, 36px) 0 clamp(24px, 3vw, 36px); }
.a-head h1 { font-size: clamp(38px, 5.2vw, 62px); margin-bottom: 16px; }
.a-cover { margin: 0 0 clamp(26px, 4vw, 44px); border-radius: 10px; overflow: hidden; }
.a-cover img { width: 100%; }
.a-lead { color: var(--ink); border-left: 1px solid var(--gold); padding-left: 22px; margin-bottom: 32px; }
.a-toc { background: var(--paper-2); border-top: 1px solid var(--gold); padding: 22px 26px; margin-bottom: 40px; }
.a-toc b { display: block; font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; }
.a-toc ol { margin: 0; padding-left: 22px; }
.a-toc a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.a-page .crumbs a { min-width: 44px; justify-content: center; }
.a-body { font-size: 18px; line-height: 1.8; }
.a-body h2 { font-size: clamp(30px, 3.4vw, 40px); margin: 1.6em 0 .55em; scroll-margin-top: 100px; }
.a-body h3 { font-size: clamp(24px, 2.4vw, 28px); margin: 1.4em 0 .45em; }
.a-body p { margin-bottom: 1.1em; }
.a-body ul, .a-body ol { padding-left: 24px; margin: 0 0 1.2em; }
.a-body li { margin-bottom: 8px; }
.a-body li::marker { color: var(--gold-ink); }
/* ลิงก์ในย่อหน้า: เพิ่มพื้นที่กดบน-ล่างให้ถึง 44px โดยไม่ดันบรรทัด */
.a-body a { color: var(--gold-ink); text-underline-offset: 4px; padding-block: 9px; }
.a-body blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold); }
.a-body blockquote p { font-family: var(--display); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.35; font-style: italic; margin-bottom: 8px; }
.a-body cite { font-size: 15px; font-style: normal; color: var(--muted); }
.a-fig { margin: 2em 0; }
.a-fig img { border-radius: 10px; }
.a-fig figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.a-embed { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.a-embed h3 { margin-bottom: 18px; }
.a-related ul { list-style: none; padding: 0; margin: 0; }
.a-related a { display: flex; min-height: 48px; align-items: center; color: var(--gold-ink); font-family: var(--display); font-size: 22px; text-underline-offset: 4px; }
.a-cta { margin-top: clamp(40px, 5vw, 64px); padding: clamp(26px, 4vw, 40px); background: var(--espresso); color: #F8F2E7; border-radius: 10px; }
.a-cta p { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; margin-bottom: 18px; }
.a-cta .btn { background: var(--gold); border-color: var(--gold); color: #21190F; }

@media (max-width: 900px) { .cards { --cols: 2 !important; } }
@media (max-width: 600px) {
  .cards { --cols: 1 !important; }
  .a-body { font-size: 17px; }
  .a-toc { padding: 18px 20px; }
}
