/* ==========================================================================
   VTA Design — ระบบดีไซน์ของเว็บ (พื้นดำทั้งเว็บ ตามไฟล์ mockup ของทีม)
   ทำโดย Web · 19 ต.ค. 2569 · ใช้ร่วมกันทั้ง 5 หน้า (Home · About · Service · Project · Contact)

   เทียบกับงานก่อสร้าง: ไฟล์นี้คือ "รายการประกอบแบบ (Specification)"
   ทุกหน้าอ้างใช้วัสดุชุดเดียวกัน แก้ที่นี่ที่เดียว เปลี่ยนทั้งเว็บ
   ========================================================================== */

/* ---------- ① ตัวแปรสีและขนาด (เปลี่ยนค่าที่นี่ = เปลี่ยนทั้งเว็บ) ---------- */
:root {
  --bg: #0a0a0a;          /* พื้นหลักของทุกหน้า */
  --panel: #161616;       /* การ์ดเทาเข้ม (V/T/A · ข้อมูลติดต่อ · FAQ) */
  --olive: #1f211d;       /* การ์ดเทาอมเขียว (ขั้นตอน · Credentials · ข้อมูล 3 อย่าง) */
  --olive-line: #34372f;
  --line: #262626;        /* เส้นคั่น */
  --line-2: #333333;
  --gold: #cfa503;        /* ทองแบรนด์ — ใช้บนพื้นดำเท่านั้น (contrast 9.04:1) */
  --gold-2: #e8bc1e;      /* ทองตอนเอาเมาส์ชี้ */
  --white: #f5f5f2;       /* หัวข้อ */
  --text: #e4e4de;        /* เนื้อความหลัก */
  --muted: #a3a39c;       /* เนื้อความรอง (contrast ≥ 6:1 บนการ์ด) */
  --dim: #85857e;         /* ตัวเล็กมาก เช่น ลิขสิทธิ์ (ใช้บนพื้นดำเท่านั้น) */
  --radius: 16px;
  --wrap: 1324px;                        /* ความกว้างเนื้อหา (ตาม mockup 1440 − 58×2) */
  --gutter: clamp(16px, 4vw, 58px);      /* ระยะขอบซ้าย-ขวา */
  --font: "IBM Plex Sans Thai", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

/* ---------- ② พื้นฐานทั้งเว็บ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.7;   /* ภาษาไทยมีสระบน-ล่าง ต้อง ≥ 1.6 */
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--white); font-weight: 700; line-height: 1.35; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #000;
        padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden;
                   clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ③ สลับภาษา TH / EN (ข้อความทุกจุดมี 2 ภาษาอยู่คู่กัน) ---------- */
html:not([data-lang="en"]) .en { display: none !important; }
html[data-lang="en"] .th { display: none !important; }

/* ---------- ④ หัวเว็บ + เมนู 5 หน้า ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 10, .97);
               border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 84px;
                    width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; background: #000; padding: 10px 14px;
         border-radius: 2px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 3.4vw, 56px); margin-left: auto; }
.nav a { color: var(--white); font-weight: 700; font-size: 19px; text-decoration: none;
         padding: 6px 0; transition: color .15s; }
.nav a:hover { color: var(--gold-2); }
.nav a[aria-current="page"] { color: var(--gold); }
.lang { display: inline-flex; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 13px/1 var(--font);
               padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--gold); color: #000; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2);
            border-radius: 10px; width: 46px; height: 42px; cursor: pointer; color: var(--white); }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }

/* ---------- ⑤ ปุ่ม ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       min-height: 52px; padding: 0 34px; border-radius: 999px; font: 700 18px/1.2 var(--font);
       text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
       cursor: pointer; }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: var(--gold-2); }
.btn-dark { background: #0a0a0a; color: var(--white); border-color: #3c3c3c; }
.btn-dark:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-black { background: #0a0a0a; color: #fff; }
.btn-black:hover { background: #222; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #2b2d28; color: #d6d6cf;
        border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 600; text-decoration: none; }
.pill:hover { background: #3a3d36; color: #fff; }

/* ---------- ⑥ ตัวอักษรหัวข้อส่วน ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.tight { padding-top: 0; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 15px; letter-spacing: .04em;
           text-transform: uppercase; margin: 0 0 18px; line-height: 1.4; }
.page-title { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 10px; }
.sec-title { font-size: clamp(26px, 2.5vw, 34px); margin-bottom: 8px; }
.lead { color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.75; max-width: 60em; }
.gold { color: var(--gold); }
.divider { border: 0; border-top: 1px solid var(--line-2); margin: 0; }

/* ---------- ⑦ ตาราง (grid) และการ์ด ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 35px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid #2a2a2a; border-radius: var(--radius);
        padding: clamp(22px, 2.2vw, 28px); }
.card.olive { background: var(--olive); border-color: var(--olive-line); }
.card .num { display: block; color: var(--white); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.card h3 { color: var(--gold); font-size: clamp(19px, 1.55vw, 22px); line-height: 1.45; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.75; }
.card p + p { margin-top: 8px; }
.card .go { display: inline-block; margin-top: 16px; color: var(--gold); font-weight: 700; font-size: 15.5px; text-decoration: none; }
.card .go:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.sub-title { font-size: clamp(20px, 1.8vw, 24px); margin: clamp(40px, 4vw, 56px) 0 8px; }
.doc-card { margin: 0; padding: 16px; }
.doc-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #0e0e0e; border-radius: 8px; }
.doc-card figcaption { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 12px; }
.doc-card b { color: var(--text); }

/* ---------- ⑧ Hero หน้าแรก (ภาพเต็มจอ + กล่องตัวเลข) ---------- */
.hero { position: relative; display: flex; align-items: center; overflow: hidden; background: #000;
        min-height: min(calc(100vh - 85px), 880px); }
.slides { position: absolute; inset: 0; }
.slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.slides figure.is-on { opacity: 1; }
.slides picture, .slider picture { display: block; width: 100%; height: 100%; }
.slides img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8, 8, 8, .80) 0%, rgba(8, 8, 8, .74) 58.4%,
                                     rgba(8, 8, 8, .10) 58.4%, rgba(8, 8, 8, .04) 100%); }
.hero .wrap { position: relative; z-index: 2; padding: clamp(48px, 9vh, 100px) 0 clamp(60px, 9vh, 90px); }
.hero h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.3; margin: 0 0 18px; }
.hero h1 .l2 { display: block; color: var(--gold); }
.hero .sub { color: #ecece6; font-size: clamp(17px, 1.55vw, 22px); line-height: 1.75; max-width: 27em; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(36px, 8vh, 96px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 634px;
         background: rgba(17, 17, 17, .93); border: 1px solid #2c2c2c; border-radius: 18px;
         padding: clamp(22px, 2.6vw, 34px) clamp(22px, 2.4vw, 32px); }
.stats b { display: block; color: var(--gold); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.25; }
.stats span { color: var(--muted); font-size: 16px; }
.dots { display: flex; gap: 10px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
               background: rgba(255, 255, 255, .45); }
.dots button[aria-current="true"] { background: #fff; }
.hero > .dots { position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%); }

/* สไลด์ภาพขนาดเล็ก (About · Featured) — ภาพซ้อนกัน + จุดบอกภาพ */
.slider { position: relative; overflow: hidden; background: #111; }
.slider figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.slider figure.is-on { opacity: 1; }
.slider img { width: 100%; height: 100%; object-fit: cover; }
.slider > .dots { position: absolute; z-index: 2; bottom: 14px; left: 50%; transform: translateX(-50%); }
.slider > .dots button { width: 6px; height: 6px; }
.credit { color: var(--dim); font-size: 13.5px; line-height: 1.6; margin-top: 10px; }

/* ---------- ⑨ หน้า About ---------- */
.about-top { display: grid; grid-template-columns: minmax(0, 600fr) minmax(0, 645fr); gap: clamp(28px, 5vw, 72px); align-items: start;
             padding-bottom: clamp(32px, 3vw, 36px); }
.about-top .about-title { color: var(--gold); font-size: clamp(30px, 3vw, 40px); margin-bottom: 26px; }
.about-top .story { color: var(--white); font-size: clamp(18px, 1.55vw, 22px); line-height: 1.85; max-width: 28em; }
.about-top .slider { aspect-ratio: 645 / 480; }
.vta-card { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; row-gap: 22px; align-items: center; align-content: start; }
.vta-card .letter { color: var(--gold); font-size: 48px; font-weight: 700; line-height: 1; }
.vta-card h3 { color: var(--white); font-size: 26px; margin: 0; }
.vta-card p { grid-column: 1 / -1; }
.person { display: flex; flex-direction: column; gap: 6px; }
.person .role { color: var(--gold); font-weight: 700; font-size: 15px; }
.person h3 { color: var(--white); font-size: 21px; margin: 0; }
.person .field { color: var(--text); font-size: 16px; }
.person .note { color: var(--muted); font-size: 15px; line-height: 1.7; }
.cred h3 { margin-bottom: 18px; }
.cred .facts { color: var(--text); font-size: 17px; line-height: 1.85; }
.cred .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.cred .hint { color: var(--muted); font-size: 13.5px; }
.cred .doc { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.cred .doc:hover { color: var(--gold-2); }
.one-team { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
            border: 1px solid rgba(207, 165, 3, .8); border-radius: 18px; background: #0e0e0d;
            padding: clamp(28px, 3vw, 44px) clamp(24px, 2.4vw, 34px); }
.one-team h2 { font-size: clamp(24px, 2.3vw, 32px); margin-bottom: 10px; }
.one-team p { color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.8; max-width: 44em; }

/* ---------- ⑩ หน้า Service ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc-card { display: block; background: #0f0f0f; text-decoration: none; overflow: hidden; }
.svc-card img { width: 100%; aspect-ratio: 321 / 275; object-fit: cover; filter: brightness(.86);
                transition: filter .25s, transform .4s; }
.svc-card:hover img { filter: brightness(1); transform: scale(1.02); }
.svc-card .meta { padding: 18px 20px 20px; }
.svc-card .n { display: block; color: var(--gold); font-weight: 700; font-size: 15px; }
.svc-card .t { display: block; color: var(--white); font-weight: 700; font-size: 18px; margin-top: 6px; line-height: 1.45; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 118px); align-items: center;
           margin-bottom: clamp(48px, 5vw, 64px); }
.svc-row.flip .svc-media { order: -1; }
.svc-row h2 { color: var(--gold); font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 22px; }
.svc-row .desc { color: var(--text); font-size: 18px; line-height: 1.9; max-width: 32em; }
.svc-media .slider, .svc-media > img { width: 100%; aspect-ratio: 605 / 335; object-fit: cover; }
.more { margin-top: clamp(28px, 4vw, 60px); }
.more summary { display: inline-flex; gap: 10px; color: var(--muted); font-weight: 600; font-size: 15px;
                cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; color: var(--white); }
.more[open] summary::after { content: "−"; }
.more summary:hover { color: var(--white); }
.sub-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.sub-list li { border-left: 2px solid var(--gold); padding: 2px 0 2px 16px; }
.sub-list b { display: block; color: var(--white); font-size: 16.5px; }
.sub-list span.d { display: block; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.note-free { color: var(--muted); font-size: 15px; margin-top: 22px; }
.note-free b { color: var(--gold); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
            background: var(--gold); color: #0a0a0a; border-radius: 16px;
            padding: clamp(26px, 3vw, 40px) clamp(22px, 2.4vw, 34px); }
.cta-band h2 { color: #0a0a0a; font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 6px; }
.cta-band p { color: #2b2200; font-size: 17px; }

/* ---------- ⑪ หน้า Project ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 clamp(32px, 3vw, 44px); }
.filters button { background: #151515; border: 1px solid #343434; color: var(--white); border-radius: 999px;
                  padding: 10px 20px; font: 600 15px/1.2 var(--font); cursor: pointer; }
.filters button:hover { border-color: var(--gold); }
.filters button[aria-pressed="true"] { background: var(--gold); color: #000; border-color: var(--gold); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 35px);
             align-items: start; }
.proj-card[hidden] { display: none; }
.proj-card img { width: 100%; aspect-ratio: 410 / 280; object-fit: cover; }
.proj-card h3 { color: var(--white); font-size: 19px; line-height: 1.5; margin: 18px 0 4px; }
.proj-card .cat { color: var(--gold); font-size: 14.5px; }
.proj-card .ref { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.proj-card .more { margin-top: 12px; }
.proj-card dl { margin: 14px 0 0; display: grid; gap: 10px; }
.proj-card dt { color: var(--muted); font-size: 13.5px; }
.proj-card dd { margin: 2px 0 0; color: var(--text); font-size: 15.5px; line-height: 1.65; }
.proj-card .gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.proj-card .gal img { aspect-ratio: 4 / 3; }
.featured h2.fp-title { color: var(--gold); font-size: clamp(26px, 2.5vw, 34px); margin-bottom: 16px; }
.featured .fp-lead { color: var(--text); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.85; max-width: 40em; }
.featured .slider { aspect-ratio: 1327 / 745; margin-top: clamp(36px, 5vw, 70px); }
.fp-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: clamp(28px, 3vw, 38px) 0; }
.fp-info dt { color: var(--muted); font-size: 14px; }
.fp-info dd { margin: 12px 0 0; color: var(--white); font-weight: 700; font-size: 17px; line-height: 1.55; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 30px); }
.thumbs img { width: 100%; aspect-ratio: 300 / 200; object-fit: cover; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.8vw, 25px); margin-top: clamp(32px, 4vw, 62px); }
.pair img { width: 100%; aspect-ratio: 652 / 430; object-fit: cover; }
.fp-sub { font-size: clamp(24px, 2.2vw, 32px); margin: clamp(48px, 5vw, 68px) 0 16px; }

/* ---------- ⑫ หน้า Contact ---------- */
.contact-head { text-align: center; max-width: 660px; margin-inline: auto; }
.contact-head h1 { font-size: clamp(32px, 3vw, 42px); margin-bottom: 14px; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 44px; }
.contact-grid { display: grid; grid-template-columns: 822fr 471fr; gap: clamp(20px, 2.4vw, 34px); margin-top: clamp(48px, 5vw, 72px); }
.info-card { background: var(--panel); border: 1px solid #2a2a2a; border-radius: 18px; padding: clamp(28px, 2.8vw, 40px) clamp(22px, 2.4vw, 34px); }
.info-card h2 { font-size: clamp(24px, 2vw, 28px); margin-bottom: 18px; }
.info-card dl { margin: 0; }
.info-card dl > div { padding: 20px 0; border-bottom: 1px solid #2d2d2d; }
.info-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-card dt { color: var(--gold); font-weight: 700; font-size: 15px; }
.info-card dd { margin: 10px 0 0; color: var(--white); font-weight: 700; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.info-card dd a { text-decoration: none; }
.info-card dd a:hover { color: var(--gold-2); }
.info-card dd small { display: block; color: var(--muted); font-weight: 400; font-size: 15px; margin-top: 6px; }
.map-card { position: relative; display: block; min-height: 420px; border-radius: 18px; overflow: hidden;
            background: #d9d7cd; text-decoration: none; }
.map-card svg.grid-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-card .pin { position: absolute; left: 51%; top: 40%; width: 64px; height: 64px; border-radius: 50%;
                 background: var(--gold); border: 3px solid #111; transform: translate(-50%, -50%);
                 display: grid; place-items: center; }
.map-card .pin::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #111; }
.map-card .label { position: absolute; left: 14%; right: 14%; bottom: 8%; background: #0a0a0a; border-radius: 14px;
                   padding: 20px 24px; }
.map-card .label b { display: block; color: var(--gold); font-size: 21px; }
.map-card .label span { color: var(--muted); font-size: 15.5px; }
.map-card .label em { display: block; font-style: normal; color: var(--white); font-size: 14px; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.start3 { border: 1px solid rgba(207, 165, 3, .8); border-radius: 18px; padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 34px);
          margin-top: clamp(48px, 5vw, 80px); }
.start3 h2 { font-size: clamp(24px, 2.2vw, 30px); }
.start3 ol { list-style: none; margin: clamp(24px, 2.6vw, 34px) 0 0; padding: 0; display: grid;
             grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3.4vw, 50px); }
.start3 li { display: flex; gap: 26px; background: var(--olive); border: 1px solid var(--olive-line);
             border-radius: 14px; padding: 26px 28px 40px; color: var(--white); font-weight: 600;
             font-size: 17px; line-height: 1.85; }
.start3 li b { color: var(--gold); font-size: 25px; line-height: 1.3; }
.faq-list { margin-top: 26px; display: grid; gap: 14px; }
.faq-list details { background: var(--panel); border: 1px solid #2a2a2a; border-radius: 14px; padding: 0 clamp(18px, 2vw, 26px); }
.faq-list summary { display: flex; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none;
                    padding: 20px 0; color: var(--white); font-weight: 700; font-size: clamp(16.5px, 1.4vw, 18px); line-height: 1.6; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1.2; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list .ans { color: var(--muted); padding: 0 0 22px; line-height: 1.85; }
.faq-list .ans strong { color: var(--text); }
.faq-list .ans a { color: var(--gold); }

/* ---------- ⑬ ท้ายเว็บ ---------- */
.site-footer { border-top: 1px solid #2a2a2a; margin-top: clamp(40px, 5vw, 72px); }
.site-footer .bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap;
                    width: min(1344px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 22px 0 30px; }
.site-footer .brand img { height: 36px; }
.site-footer .tag { color: var(--muted); font-size: 15px; margin-top: 16px; }
.site-footer .reach { text-align: right; }
.site-footer .reach p { color: var(--white); font-size: 17px; }
.site-footer .reach a { text-decoration: none; }
.site-footer .reach a:hover { color: var(--gold-2); }
.site-footer .reach small { display: block; color: var(--dim); font-size: 15px; margin-top: 8px; }
.site-footer .reach small a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ⑭ จอขนาดกลางและมือถือ ---------- */
@media (max-width: 1100px) {
  .nav a { font-size: 17px; }
  .svc-cards { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { position: fixed; top: 85px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
         background: #0a0a0a; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
         transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { font-size: 19px; padding: 14px 0; border-bottom: 1px solid #1d1d1d; }
  .site-header .lang { margin-left: auto; }
  .menu-btn { margin-left: 4px; order: 4; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 8, 8, .70), rgba(8, 8, 8, .82)); }
  .g3, .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .about-top, .svc-row, .contact-grid { grid-template-columns: 1fr; }
  .svc-row.flip .svc-media { order: 0; }
  .svc-row .svc-media { order: -1; }
  .fp-info { grid-template-columns: repeat(2, 1fr); }
  .start3 ol { grid-template-columns: 1fr; }
  .start3 li { padding-bottom: 26px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { height: 34px; }
  .site-header .bar { height: 72px; gap: 12px; }
  .nav { top: 73px; }
  .g2, .g3, .g4, .proj-grid, .svc-cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; }
  .stats span { font-size: 13.5px; line-height: 1.5; }
  .hero-actions .btn { flex: 1 1 auto; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .pair { grid-template-columns: 1fr; }
  .site-footer .reach { text-align: left; }
  .one-team .btn, .cta-band .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- ⑮ ส่วนเสริมของบล็อกที่สร้างจาก Excel (generate.py รุ่น 2 · 19 ต.ค. 69) ---------- */
[id] { scroll-margin-top: 100px; }                 /* กดลิงก์ไป #svc-01 แล้วหัวข้อไม่จมใต้แถบเมนูที่ติดด้านบน */
.svc-media > picture { display: block; }
.svc-media > picture img { width: 100%; aspect-ratio: 605 / 335; object-fit: cover; }
.proj-card picture { display: block; }
.proj-card .card-link { display: block; color: inherit; text-decoration: none; }
.proj-card .card-link img { transition: filter .25s; }
.proj-card .card-link:hover img { filter: brightness(1.08); }
.proj-card .card-link:hover h3 { color: var(--gold-2); }
.proj-card .go { display: inline-block; margin-top: 12px; color: var(--gold); font-weight: 700; font-size: 15px; text-decoration: none; }
.proj-card .go:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.proj-card .more summary { font-size: 14.5px; }
