/* ==========================================================================
   Kylerlink — stylesheet เดียวของทั้งเว็บ
   mobile-first · ฐาน 390px · breakpoint 2 จุด: 768px และ 1080px
   ค่าทั้งหมดอ้างอิง mockup/ (Main, Mobile, Works, WorksMobile)
   ไฟล์นี้ deploy ที่ /css/styles.css คู่กับ /css/fonts.css
   ========================================================================== */

/* --- 1. Design tokens ---------------------------------------------------- */

:root {
  --ink: #0F0D0A;
  --grey: #57544E;
  --mute: #6B665C;
  --bg: #FDFCFA;
  --soft: #F1EDE6;
  --line: #E2DCD2;
  --brown: #563318;
  --brown-light: #7A5232;
  --red: #C42D20;
  --red-btn: #D93A2B;
  --dark: #0B0906;
  --darker: #14100C;
  --logo-red: #FF0101;

  --on-dark: #FFFFFF;
  --on-dark-strong: rgba(255, 255, 255, 0.78);
  --on-dark-body: rgba(255, 255, 255, 0.65);
  --on-dark-mute: rgba(255, 255, 255, 0.48);
  /* 0.35 ให้ contrast 3.1:1 บนพื้น #0B0906 ซึ่งไม่ผ่าน AA ที่ 11px
     0.55 ให้ 5.0:1 — ใช้กับข้อความเล็กบนแถบเข้มเท่านั้น */
  --on-dark-faint: rgba(255, 255, 255, 0.55);
  --on-dark-line: rgba(255, 255, 255, 0.14);

  --sans: 'IBM Plex Sans', 'IBM Plex Sans Thai', 'Noto Sans Thai', 'Leelawadee UI', sans-serif;
  --thai: 'IBM Plex Sans Thai', 'Noto Sans Thai', 'Leelawadee UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --lh-body: 1.95;
  --track-heading: -0.02em;
  --track-eyebrow: 0.2em;

  /* ขอบซ้าย-ขวา: มือถือล็อก 24px ตาม mockup 390 · ตั้งแต่ 768px ขึ้นไปไล่ขึ้นจนถึง
     120px ที่ 1240px ซึ่งเป็นค่าที่ mockup เดสก์ท็อปใช้ (9.68vw ของ 1240 = 120)
     ใช้ clamp ตัวเดียวไม่ได้ เพราะ 9.7vw ที่ 390px จะให้ 38px ทับค่ามือถือที่อนุมัติแล้ว */
  --gutter: 24px;
  --tap: 44px;
}

@media (min-width: 768px) {
  :root { --gutter: clamp(32px, 9.68vw, 120px); }
}

/* --- 2. Base ------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: var(--lh-body);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red-btn);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

/* --- 3. Utilities -------------------------------------------------------- */

.container {
  /* width: 100% จำเป็น เพราะ .container บางตัวเป็นลูกของ flex (เช่น .hero-inner)
     ถ้าไม่ใส่ ความกว้างจะยืดตามเนื้อหา แล้ว margin-inline:auto จะจัดกึ่งกลาง
     ทำให้ขอบซ้ายขยับตามความยาวข้อความ — เห็นชัดตอนสลับไทย/อังกฤษ */
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 18px;
  background: var(--red-btn);
  color: var(--on-dark);
  font-family: var(--thai);
  font-size: 15px;
  font-weight: 600;
}

.skip-link:focus {
  top: 8px;
  color: var(--on-dark);
}

.section {
  padding-block: 56px;
}

.section--wide {
  padding-block: 64px;
}

.section--tight {
  padding-block: 44px;
}

.section--band {
  padding-block: 52px;
}

.section--soft {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section--brown {
  background: var(--brown);
  color: var(--on-dark);
}

.section--dark {
  background: var(--darker);
  color: var(--on-dark);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--track-eyebrow);
  color: var(--mute);
  margin-bottom: 18px;
}

.section--brown .eyebrow {
  color: rgba(255, 255, 255, 0.58);
}

.section--dark .eyebrow {
  color: var(--on-dark-mute);
}

/* หัวข้อใหญ่ — clamp เชื่อม 390px ↔ 1240px ตามค่าคู่ mobile/desktop ของ mockup */
.h1-home {
  font-family: var(--thai);
  font-size: clamp(22px, 18.33px + 0.94vw, 30px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

.h1-page {
  font-family: var(--thai);
  font-size: clamp(28px, 16.99px + 2.82vw, 52px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: var(--track-heading);
  text-wrap: pretty;
}

.h2 {
  font-family: var(--thai);
  font-size: clamp(28px, 21.58px + 1.65vw, 42px);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: var(--track-heading);
  text-wrap: pretty;
}

.h2--page {
  font-size: clamp(27px, 21.03px + 1.53vw, 40px);
}

.h2--cta {
  font-size: clamp(27px, 21.95px + 1.29vw, 38px);
}

.h2--band {
  font-size: clamp(26px, 21.41px + 1.18vw, 36px);
}

.h2--teaser {
  font-size: clamp(25px, 19.95px + 1.29vw, 36px);
}

.h3 {
  font-family: var(--thai);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

.h3--lead {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: var(--track-heading);
}

.h3--step {
  font-size: 17px;
}

.h3--group {
  font-size: 21px;
  line-height: 1.4;
}

/* body text — ล็อกขนาด ไม่ใช้ clamp */
.lede {
  font-family: var(--thai);
  font-size: 15.5px;
  line-height: var(--lh-body);
  color: var(--grey);
}

.body {
  font-family: var(--thai);
  font-size: 15px;
  line-height: var(--lh-body);
  color: var(--grey);
}

.body--sm {
  font-size: 14.5px;
  line-height: 1.9;
}

.caption {
  font-family: var(--thai);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--grey);
  margin-top: 9px;
}

.section--brown .lede,
.section--brown .body {
  color: var(--on-dark-strong);
}

.section--dark .lede,
.section--dark .body {
  color: var(--on-dark-body);
}

.rule-top {
  border-top: 2px solid var(--brown);
}

/* ปุ่ม */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: var(--tap);
  padding: 17px 26px;
  font-family: var(--thai);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.btn--primary {
  background: var(--red-btn);
  color: var(--on-dark);
}

.btn--light {
  background: var(--bg);
  color: var(--brown);
}

.btn--primary:hover,
.btn--light:hover {
  color: inherit;
  opacity: 0.9;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn-icon {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: square;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: var(--tap);
  font-family: var(--thai);
  font-size: 16px;
  font-weight: 600;
}

.link-arrow .btn-icon {
  stroke-width: 2;
}

/* --- 4. Logo ------------------------------------------------------------- */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  flex-shrink: 0;
}

.logo:hover {
  color: inherit;
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo-frame {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.21;
}

.logo-block {
  fill: var(--brown);
}

.logo-bolt {
  fill: var(--logo-red);
}

.logo-word {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: var(--track-heading);
}

/* --- 5. Header / nav ----------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

/* จอแคบ — เมนูเป็นแผงใต้หัวเว็บ วางแบบ absolute จึงเปิดปิดได้โดยไม่ดันเลย์เอาต์ (CLS = 0)
   ไม่มี JS แผงนี้เปิดไม่ได้ → /css/no-js.css ที่โหลดผ่าน <noscript> แสดงลิงก์ให้แทน */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  z-index: 4;
  flex-direction: column;
  padding: 4px var(--gutter) 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-family: var(--thai);
}

.page-home .nav-menu {
  background: var(--dark);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.menu-open .nav-menu {
  display: flex;
}

/* ล็อกการเลื่อนพื้นหลัง — คลาสอยู่ที่ <html> ใส่โดย app.js ทั้งตอนเปิดเมนูและ lightbox
   body ถูกตรึงด้วย position:fixed + top ติดลบ (app.js เป็นคนใส่ค่า) จึงไม่เห็นหน้ากระโดด
   ตอนล็อก และ app.js เลื่อนกลับที่เดิมให้ตอนปลดล็อก */
.scroll-locked {
  overflow: hidden;
}

.scroll-locked body {
  position: fixed;
  inset-inline: 0;
  width: 100%;
}

/* ฉากหลังแผงเมนู — บอกว่าเนื้อหาข้างหลังถูกพักไว้ และกันการกดโดนของที่มองไม่เห็น
   position: fixed จึงไม่กินที่ในเลย์เอาต์ (CLS = 0) · คลิกโดนแล้ว app.js ปิดเมนูให้
   z-index ต่ำกว่าหัวเว็บ (3) และแผงเมนู (4) หัวเว็บจึงยังกดได้ตามปกติ */
.menu-open body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  background: rgba(11, 9, 6, 0.5);
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 16px;
  color: var(--grey);
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* เป้ากดกว้าง 44px ตาม WCAG 2.2 SC 2.5.8 แต่ margin ลบดึงกลับ ระยะห่างที่ตาเห็น
   จึงเท่าเดิมกับ mockup — ตัวอักษร "EN" กว้างแค่ 18px นิ้วโป้งเล็งไม่ถูก */
.nav-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  padding-inline: 13px;
  margin-inline: -13px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.nav-call {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
}

/* หน้าแรก — nav ลอยทับแบนเนอร์ */
.page-home .site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  background: none;
  border-bottom-color: rgba(255, 255, 255, 0.14);
  color: var(--on-dark);
}

.page-home .logo-frame {
  stroke: rgba(255, 255, 255, 0.55);
}

.page-home .logo-block {
  fill: var(--brown-light);
}

.page-home .nav-lang {
  color: rgba(255, 255, 255, 0.65);
}

.page-home .nav-link {
  color: rgba(255, 255, 255, 0.82);
}

.page-home .site-header a:hover {
  color: var(--on-dark);
}

/* แถบโทรใต้ nav — เฉพาะหน้าผลงานบนมือถือ */
.callbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  background: var(--red-btn);
  color: var(--on-dark);
  font-family: var(--thai);
  font-size: 15.5px;
  font-weight: 600;
}

.callbar:hover {
  color: var(--on-dark);
}

.callbar .btn-icon {
  stroke-width: 2;
}

/* --- 6. หน้าแรก · แบนเนอร์ ------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 660px;
  padding-top: 64px;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  z-index: 1;
  width: 100%;
  pointer-events: none;
}

.hero::before {
  top: 0;
  height: 100%;
  background: linear-gradient(175deg, rgba(11, 9, 6, 0.86) 0%, rgba(11, 9, 6, 0.72) 34%, rgba(11, 9, 6, 0.86) 62%, rgba(11, 9, 6, 0.95) 100%);
}

.hero::after {
  bottom: 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(11, 9, 6, 0) 0%, rgba(11, 9, 6, 0.78) 100%);
  opacity: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 34px;
  padding-bottom: 22px;
}

.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  margin-bottom: 24px;
  color: var(--on-dark);
}

.hero-title span {
  display: inline;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.hero-actions .link-arrow {
  display: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat-value {
  font-family: var(--thai);
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}

.hero-stat-label {
  font-family: var(--thai);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 6px;
}

/* --- 7. หน้าแรก · บริการ --------------------------------------------------- */

.services-intro {
  margin-bottom: 32px;
}

.service-lead {
  border: 1px solid var(--brown);
  background: var(--soft);
  padding: 26px 22px;
  margin-bottom: 34px;
}

.service-lead .h3--lead {
  margin-bottom: 12px;
}

.service-lead .body {
  margin-bottom: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: var(--thai);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 7px 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.card-tick {
  width: 30px;
  height: 3px;
  background: var(--brown);
  margin-bottom: 18px;
}

.card .h3 {
  margin-bottom: 11px;
}

/* --- 8. หน้าแรก · มาตรฐาน / ขอบเขตระบบ ------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.split-intro .h2 {
  margin-bottom: 16px;
}

.spec-list {
  margin: 0;
}

.spec-row {
  display: block;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.spec-row:last-child {
  border-bottom: 1px solid var(--line);
}

.spec-label {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
}

.spec-label--thai {
  font-family: var(--thai);
  font-size: 16px;
  font-weight: 600;
}

.spec-row--systems {
  padding-block: 18px;
}

/* สลับข้อความสั้น/ยาวตามความกว้าง — คีย์ `.mobile` ใน content/copy-en.md */
.only-mobile {
  display: block;
}

.only-desktop {
  display: none;
}

.spec-row.only-desktop {
  display: none;
}

/* --- 9. หน้าแรก · แถบรูปเต็มความกว้าง -------------------------------------- */

.band-img {
  width: 100%;
  aspect-ratio: 1240 / 400;
  object-fit: cover;
}

/* --- 10. ขั้นตอนการทำงาน --------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.step {
  border-top: 2px solid var(--brown);
  padding-block: 20px 26px;
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 11px;
}

.step .h3 {
  margin-bottom: 10px;
}

/* --- 11. หลังส่งมอบ -------------------------------------------------------- */

.after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.after-item {
  border-top: 2px solid var(--brown);
  padding-block: 18px 24px;
}

.after-item .h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* --- 12. หน้าแรก · แถบผลงาน / CTA ------------------------------------------ */

.promo .h2 {
  margin-bottom: 14px;
}

.promo .lede {
  margin-bottom: 24px;
}

.promo-actions {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* --- 13. หน้าแรก · ติดต่อ --------------------------------------------------- */

.contact-title {
  color: var(--on-dark);
  margin-bottom: 16px;
}

.contact-intro {
  margin-bottom: 34px;
}

.contact-link {
  display: block;
  color: var(--on-dark);
  margin-bottom: 28px;
}

.contact-link:hover {
  color: var(--on-dark);
}

.contact-link-label {
  display: block;
  font-family: var(--thai);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}

.contact-phone {
  display: inline-block;
  font-family: var(--mono);
  font-size: 29px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--track-heading);
  border-bottom: 2px solid var(--red-btn);
  padding-bottom: 6px;
}

.contact-email {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.checklist {
  padding-top: 30px;
}

.checklist ol {
  counter-reset: checklist;
}

.checklist-item {
  display: flex;
  gap: 14px;
  padding-block: 16px;
  border-top: 1px solid var(--on-dark-line);
  counter-increment: checklist;
}

/* เลขลำดับ 01–04 เป็นของประดับ สร้างจาก counter ไม่ต้องมีข้อความใน HTML */
.checklist-item::before {
  content: counter(checklist, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--red-btn);
  padding-top: 3px;
  flex-shrink: 0;
}

.checklist-title {
  font-family: var(--thai);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--on-dark);
  margin-bottom: 5px;
}

.checklist-body {
  font-family: var(--thai);
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}

/* --- 14. หน้าผลงาน --------------------------------------------------------- */

.page-hero {
  padding-block: 36px 32px;
}

.page-hero .h1-page {
  margin-bottom: 18px;
}

.page-hero .lede {
  font-size: 16px;
}

.gallery-group + .gallery-group {
  margin-top: 44px;
}

.gallery-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.gallery-heading-rule {
  display: none;
  flex: 1;
  height: 1px;
  background: var(--line);
}

.gallery-intro {
  font-size: 14.5px;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.gallery-figure img {
  width: 100%;
  aspect-ratio: 760 / 570;
  object-fit: cover;
  background: var(--soft);
}

.design-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.design-grid img {
  width: 100%;
  aspect-ratio: 760 / 570;
  object-fit: cover;
}

.cta-band .h2 {
  margin-bottom: 14px;
}

.cta-band .lede {
  margin-bottom: 26px;
}

/* --- 15. Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: 30px;
}

.site-footer .logo-frame {
  stroke: rgba(255, 255, 255, 0.55);
}

.site-footer .logo-block {
  fill: var(--brown-light);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.footer-name {
  font-family: var(--thai);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--on-dark);
}

.footer-address {
  font-family: var(--thai);
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}

.footer-taxid {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}

.footer-copyright {
  font-family: var(--thai);
  font-size: 11px;
  line-height: 1.6;
  color: var(--on-dark-faint);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   16. ≥768px — สองคอลัมน์ ระยะห่างเริ่มกว้างขึ้น
   ========================================================================== */

@media (min-width: 768px) {
  .callbar {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  /* กว้างพอให้ลิงก์ทั้งสี่อยู่ในแถวเดียวกับโลโก้แล้ว */
  .nav-menu {
    display: flex;
    position: static;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0;
    background: none;
    border-bottom: 0;
  }

  .page-home .nav-menu {
    background: none;
  }

  /* ไม่มีแผงเมนูให้บังแล้ว — เผื่อคลาสยังค้างจากตอนย่อจอ */
  .menu-open body::after {
    content: none;
  }

  .nav-link {
    font-size: 15px;
  }

  .nav-call {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    font-family: var(--thai);
    font-size: 14.5px;
    font-weight: 600;
    border-bottom: 2px solid var(--red-btn);
    padding-bottom: 3px;
  }

  .page-home .nav-call {
    gap: 9px;
    padding: 12px 20px;
    border-bottom: 0;
    background: var(--red-btn);
    color: var(--on-dark);
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }

  .hero-actions .btn {
    flex-shrink: 0;
  }

  .hero-actions .link-arrow {
    display: inline-flex;
    color: var(--on-dark);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 4px;
  }

  .card-grid,
  .steps,
  .after-grid,
  .gallery-grid,
  .design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    gap: 48px 56px;
  }

  .steps .step:last-child {
    border-bottom: 0;
  }

  .after-grid {
    gap: 56px;
  }

  .after-item {
    padding-block: 22px 0;
  }

  .promo-actions {
    flex-direction: row;
  }

  .promo-actions .btn {
    flex: 1;
  }

  .checklist-item {
    gap: 20px;
    padding-block: 20px;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: start;
  }

  .checklist {
    padding-top: 0;
  }
}

/* ==========================================================================
   17. ≥1080px — ค่าเดสก์ท็อปเต็มตาม mockup 1240px
   ========================================================================== */

@media (min-width: 1080px) {
  .section {
    padding-block: 96px;
  }

  .section--wide {
    padding-block: 100px;
  }

  .section--tight {
    padding-block: 72px;
  }

  .section--band {
    padding-block: 80px;
  }

  .eyebrow {
    font-size: 11.5px;
    letter-spacing: 0.22em;
    margin-bottom: 22px;
  }

  .h3 {
    font-size: 21px;
  }

  .h3--lead {
    font-size: 30px;
  }

  .h3--step {
    font-size: 18px;
  }

  .h3--group {
    font-size: 24px;
  }

  .lede {
    font-size: 16.5px;
  }

  .body {
    font-size: 15.5px;
  }

  .body--sm {
    font-size: 14.5px;
  }

  .caption {
    font-size: 14px;
    margin-top: 11px;
  }

  .btn {
    font-size: 16px;
    padding: 17px 28px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .logo-word {
    font-size: 19px;
  }

  .logo {
    gap: 12px;
  }

  .site-header .container {
    height: 86px;
  }

  .page-home .site-header .container {
    height: 88px;
  }

  .nav-menu {
    gap: 34px;
  }

  .nav-link[aria-current='page'] {
    font-weight: 600;
    color: var(--ink);
    border-bottom: 2px solid var(--red-btn);
    padding-bottom: 4px;
  }

  .page-home .nav-link[aria-current='page'] {
    border-bottom-color: var(--on-dark);
  }

  .nav-side {
    gap: 22px;
  }

  .nav-lang {
    font-size: 13px;
  }

  /* แบนเนอร์หน้าแรก */
  .hero {
    min-height: 720px;
    padding-top: 88px;
  }

  .hero::before {
    background: linear-gradient(100deg, rgba(11, 9, 6, 0.95) 0%, rgba(11, 9, 6, 0.90) 40%, rgba(11, 9, 6, 0.72) 62%, rgba(11, 9, 6, 0.30) 82%, rgba(11, 9, 6, 0.12) 100%);
  }

  .hero::after {
    opacity: 1;
  }

  .hero-img {
    object-position: 72% center;
  }

  .hero-inner {
    padding-top: 64px;
    padding-bottom: 30px;
  }

  .hero-title {
    max-width: 820px;
    margin-bottom: 34px;
  }

  .hero-title span {
    display: block;
  }

  .hero-stats {
    display: flex;
    gap: 56px;
    padding-top: 0;
    border-top: 0;
  }

  .hero-stat-value {
    font-size: 30px;
  }

  .hero-stat-label {
    font-size: 13px;
    margin-top: 8px;
  }

  /* บริการ */
  .services-intro {
    max-width: 660px;
    margin-bottom: 56px;
  }

  .services-intro .h2 {
    max-width: 760px;
    margin-bottom: 18px;
  }

  .service-lead {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: start;
    padding: 38px 40px;
    margin-bottom: 44px;
  }

  .service-lead .h3--lead {
    margin-bottom: 0;
  }

  .service-lead .body {
    margin-bottom: 20px;
  }

  .chips {
    gap: 9px;
  }

  .chip {
    font-size: 13.5px;
    padding: 8px 14px;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 52px;
  }

  .card-tick {
    width: 34px;
    margin-bottom: 22px;
  }

  .card .h3 {
    margin-bottom: 14px;
  }

  /* มาตรฐาน */
  .split {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
  }

  .split-intro .h2 {
    margin-bottom: 22px;
  }

  .spec-row {
    display: flex;
    gap: 26px;
    padding-block: 26px;
  }

  .spec-label {
    width: 132px;
    flex-shrink: 0;
    font-size: 19px;
    margin-bottom: 0;
  }

  .spec-label--thai {
    font-size: 17px;
  }

  .spec-row--systems {
    gap: 30px;
    padding-block: 24px;
  }

  .spec-row--systems .spec-label {
    width: 280px;
  }

  .only-mobile {
    display: none;
  }

  .only-desktop {
    display: block;
  }

  .spec-row.only-desktop {
    display: flex;
  }

  /* ขั้นตอน */
  .steps--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px;
  }

  .step {
    padding-block: 22px 0;
  }

  .steps--four .step .body {
    font-size: 14.5px;
    line-height: 1.9;
  }

  .step-num {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .step .h3 {
    margin-bottom: 11px;
  }

  /* หลังส่งมอบ */
  .after-grid .h2 {
    margin-bottom: 40px;
  }

  .after-item .h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  /* แถบผลงานหน้าแรก */
  .promo {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
  }

  .promo-text {
    max-width: 640px;
  }

  .promo .h2 {
    margin-bottom: 16px;
  }

  .promo .lede {
    margin-bottom: 0;
  }

  .promo-actions {
    flex-direction: column;
    flex-shrink: 0;
    gap: 12px;
  }

  .promo-actions .btn {
    flex: none;
  }

  /* ติดต่อ */
  .contact-grid {
    gap: 80px;
  }

  .contact-title {
    margin-bottom: 22px;
  }

  .contact-intro {
    max-width: 440px;
    margin-bottom: 40px;
  }

  .contact-link {
    margin-bottom: 26px;
  }

  .contact-link-label {
    font-size: 13px;
  }

  .contact-phone {
    display: inline-flex;
    align-items: center;
    font-size: 38px;
  }

  .contact-email {
    font-size: 21px;
  }

  .checklist-item {
    padding-block: 20px;
  }

  .checklist-item::before {
    font-size: 12px;
  }

  .checklist-title {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .checklist-body {
    font-size: 14.5px;
  }

  /* หน้าผลงาน */
  .page-hero {
    padding-block: 72px 64px;
  }

  .page-hero .eyebrow {
    margin-bottom: 26px;
  }

  .page-hero .h1-page {
    max-width: 860px;
    line-height: 1.3;
    margin-bottom: 28px;
  }

  .page-hero .lede {
    max-width: 720px;
    font-size: 19px;
    line-height: 1.9;
  }

  .works-gallery {
    padding-bottom: 88px;
  }

  .works-gallery .lede,
  .works-design .lede,
  .works-systems .lede {
    max-width: 680px;
  }

  .gallery-group + .gallery-group {
    margin-top: 64px;
  }

  .gallery-heading {
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .gallery-heading-rule {
    display: block;
  }

  .gallery-intro {
    max-width: 700px;
    font-size: 15.5px;
    margin-bottom: 26px;
  }

  .gallery-grid,
  .design-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* กลุ่มที่มี 4 รูปลงตัวเป็น 2×2 พอดี — mockup ใช้สองคอลัมน์ให้ภาพใหญ่ขึ้น */
  .gallery-grid:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-grid {
    gap: 22px;
  }

  .cta-band {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
  }

  .cta-band-text {
    max-width: 640px;
  }

  .cta-band .h2 {
    margin-bottom: 18px;
  }

  .cta-band .lede {
    font-size: 17px;
    margin-bottom: 0;
  }

  /* footer */
  .site-footer {
    padding-block: 38px;
  }

  .site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .footer-brand {
    align-items: center;
    margin-bottom: 0;
  }

  .footer-name {
    font-size: 14.5px;
  }

  .footer-address {
    font-size: 12px;
    margin-top: 3px;
    margin-bottom: 0;
  }

  .footer-meta {
    text-align: right;
    flex-shrink: 0;
  }

  .footer-taxid {
    font-size: 11.5px;
  }

  .footer-copyright {
    font-size: 11.5px;
    margin-top: 5px;
    padding-top: 0;
    border-top: 0;
  }
}

/* --- 18. Lightbox — <dialog> ที่ app.js สร้างตอนรันไทม์ ---------------------- */

.zoomable {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}

.lightbox {
  position: relative;
  max-width: min(92vw, 1000px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  background: rgba(11, 9, 6, 0.62);
  color: var(--on-dark);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--ink);
}

.lightbox::backdrop {
  background: rgba(11, 9, 6, 0.88);
  cursor: zoom-out;
}

.lightbox img {
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 570;
  object-fit: contain;
  background: var(--soft);
}

.lightbox-caption {
  font-family: var(--thai);
  font-size: 14px;
  line-height: 1.75;
  color: var(--grey);
  padding: 12px 16px 16px;
}

/* --- 19. ผู้ใช้ที่ขอลดการเคลื่อนไหว ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
