/* Thiankun Studio · หน้าตาเว็บ (ตามต้นแบบ webhand/design_reference_Home.html) */
:root {
  --navy: #123167; --navy-dark: #0e2654; --gold: #fed267; --ink: #1c2333; --text: #3d4659; --gray: #5b6478;
  --line: #e3e7ef; --field: #d5dbe8; --soft: #eef3fc; --red: #b3261e; --green: #06c755;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Prompt, sans-serif; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: #0b1f45; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, .45); } 50% { box-shadow: 0 0 0 12px rgba(6, 199, 85, 0); } }
.rise { animation: rise .7s ease-out both; }
.d2 { animation-delay: .15s; }
.d3 { animation-delay: .3s; }

/* แถบบน */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.top-left { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.logo img { height: 40px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; }
.nav { align-items: center; }
.nav a, .dd-btn { text-decoration: none; color: var(--text); }
.nav a:hover, .dd-btn:hover, .nav a[aria-current="page"], .dd-btn.here { color: var(--navy); }
.nav > a[aria-current="page"], .dd-btn.here { font-weight: 600; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; min-height: 40px; }
.dd-caret { transition: transform .2s; }
.dd-btn[aria-expanded="true"] .dd-caret { transform: rotate(180deg); }
.dd-menu { position: absolute; left: -16px; top: 100%; z-index: 25; min-width: 180px; background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(18, 49, 103, .16); padding: 8px; animation: rise .2s ease-out both; }
.dd-menu[hidden] { display: none; }
.dd-menu a { white-space: nowrap; display: flex; align-items: center; min-height: 44px; padding: 4px 14px; border-radius: 8px; color: var(--ink); font-size: 16px; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: var(--soft); color: var(--navy); }
.top-right { display: flex; align-items: center; gap: 14px; }
.lang { position: relative; padding-right: 14px; border-right: 1px solid var(--line); }
.flag-btn { width: 44px; height: 44px; border: 0; background: none; padding: 7px; cursor: pointer; border-radius: 50%; }
.flag { border-radius: 50%; display: block; }
.lang-menu { position: absolute; right: 0; top: 52px; z-index: 20; background: #fff; border-radius: 8px; box-shadow: 0 8px 28px rgba(18, 49, 103, .16); padding: 8px; width: 190px; animation: rise .2s ease-out both; }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; font-size: 15px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.lang-menu a:hover { background: var(--soft); }
.btn-book { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--navy); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 500; }
.btn-book:hover { color: #fff; background: #0b1f45; }

/* หัวเว็บ + กล่องคิดราคา */
.hero { background: linear-gradient(180deg, #dce8fb 0%, #f3f7fe 70%, #fff 100%); padding: 64px 24px 48px; text-align: center; }
.hero-lead { margin: 0; font-size: 22px; color: var(--text); font-weight: 300; }
.hero h1 { margin: 6px 0 0; font-size: clamp(32px, 7.5vw, 58px); font-weight: 600; color: var(--navy); min-height: 1.4em; line-height: 1.4; }
.caret { display: inline-block; width: 3px; height: .9em; background: var(--navy); margin-left: 4px; vertical-align: -4px; animation: blink 1s steps(1) infinite; }
.hero-note { margin: 8px 0 32px; color: var(--text); }
.calc { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(18, 49, 103, .12); padding: 22px; text-align: left; scroll-margin-top: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row + .row { margin-top: 12px; }
.type { flex: 1 1 150px; min-height: 56px; border: 1.5px solid var(--field); background: #fff; border-radius: 10px; font: inherit; font-size: 16px; cursor: pointer; color: var(--ink); }
.type.small { flex: 1 1 120px; min-height: 48px; font-size: 15px; }
.type.on { border-color: var(--navy); background: var(--soft); color: var(--navy); font-weight: 600; }
.area-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; align-items: center; }
.area-row label, .area-row .unit { font-size: 15px; color: var(--text); }
.area-row input { flex: 1 1 120px; min-width: 0; min-height: 48px; border: 1.5px solid var(--field); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 17px; }
.price-box { flex: 2 1 220px; text-align: right; }
.price-label { font-size: 14px; color: var(--gray); }
.price { font-size: 30px; font-weight: 600; color: var(--navy); }
.price.ask { font-size: 20px; }
.regular { margin-left: 8px; color: var(--gray); text-decoration: line-through; }
.promo-note { font-size: 13px; color: var(--red); font-weight: 500; }
.btn-line { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 16px; background: var(--green); color: #fff; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 17px; text-align: center; padding: 0 12px; }
.btn-line:hover { color: #fff; background: #05b04b; }

/* หัวเว็บแบบรูปหน้างานเต็มจอ (หน้าแรก) */
.hero-photo { background: linear-gradient(180deg, rgba(14, 38, 84, .8), rgba(14, 38, 84, .62)), url(../images/house-exterior.jpg) center / cover no-repeat; padding: 104px 24px 96px; }
.hero-photo .hero-lead, .hero-photo .hero-note { color: #dbe4f5; }
.hero-photo h1 { color: var(--gold); }
.hero-photo .caret { background: var(--gold); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-btns .btn-line { margin-top: 0; padding: 0 28px; min-width: 220px; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 160px; padding: 0 28px; border: 2px solid #fff; color: #fff; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 17px; }
.btn-ghost:hover { background: #fff; color: var(--navy); }

/* หน้าราคา */
.page-head { background: linear-gradient(180deg, #dce8fb 0%, #f3f7fe 70%, #fff 100%); padding: 56px 24px 32px; text-align: center; }
.page-head h1 { margin: 0; font-size: clamp(30px, 5vw, 42px); font-weight: 600; color: var(--navy); line-height: 1.35; }
.page-head p { margin: 8px 0 28px; color: var(--text); }
.rates { padding-top: 24px; padding-bottom: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.rates h2 { margin: 0 0 14px; font-size: 22px; font-weight: 600; color: var(--navy); }
.rate-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rate-table th, .rate-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rate-table th { color: var(--gray); font-weight: 500; font-size: 14px; }
.rate-table th:last-child { text-align: right; }
.rate-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); white-space: nowrap; }
.terms { margin: 0; padding-left: 20px; color: var(--text); }
.terms li { margin-bottom: 8px; }
.terms li::marker { color: var(--gold); }

/* ขอบเขตการตรวจ: การ์ดรูปพื้นกรมท่า กดแถบขาวเพื่อกางรายการ */
.scope { padding-bottom: 72px; }
.scope h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 32px); font-weight: 600; line-height: 1.35; color: var(--navy); text-align: center; }
.scope h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin: 12px auto 0; }
.scope .lead { margin: 0 auto 28px; max-width: 640px; text-align: center; color: var(--text); text-wrap: balance; }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; align-items: start; }
.scope-card { display: flex; flex-direction: column; min-height: 300px; padding: 28px 28px 24px; border-radius: 16px; background-size: cover; background-position: center; color: #fff; box-shadow: 0 6px 24px rgba(18, 49, 103, .18); }
.scope-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.scope-card h3 { margin: 0; white-space: nowrap; font-size: 22px; font-weight: 600; line-height: 1.35; }
.chip { flex: none; padding: 2px 12px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: 13px; white-space: nowrap; }
.scope-card > p { margin: 8px 0 20px; color: #d6deef; font-size: 15px; text-wrap: pretty; }
.scope-card template { display: none; }
.scope-more { margin-top: auto; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 18px 10px 12px; border: 0; border-radius: 10px; background: #fff; font: inherit; font-weight: 500; color: var(--navy); text-align: left; cursor: pointer; }
.s-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: var(--navy); }
.s-ic.sm { width: 34px; height: 34px; }
.s-ic svg, .s-arr, .sc-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-ic.sm svg { width: 18px; height: 18px; }
.s-ic svg { stroke: var(--gold); }
.s-arr { margin-left: auto; transition: transform .25s; }
.scope-more:hover .s-arr { transform: translateX(4px); }

/* หน้าต่างรายการที่ตรวจ */
.sc-dlg { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 20px 60px rgba(14, 38, 84, .35); }
.sc-dlg[open] { display: flex; flex-direction: column; }
.sc-dlg::backdrop { background: rgba(14, 38, 84, .55); }
.sc-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.sc-head::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--gold); flex: none; }
.sc-head h3 { margin: 0; flex: 1; font-size: 22px; font-weight: 600; color: var(--navy); }
.sc-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); color: var(--navy); cursor: pointer; }
.sc-x svg { width: 18px; height: 18px; }
.sc-body { overflow-y: auto; padding: 20px 24px 24px; background: #f6f8fc; }
.sc-group { background: #fff; border-left: 4px solid var(--navy); border-radius: 12px; box-shadow: 0 2px 10px rgba(18, 49, 103, .07); padding: 20px 22px 18px; }
.sc-group + .sc-group { margin-top: 16px; }
.sc-group h4 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 18px; font-weight: 600; color: var(--navy); }
.sc-group ul { margin: 0; padding: 0; list-style: none; }
.sc-group li { position: relative; padding: 10px 12px 10px 42px; border-radius: 8px; }
.sc-group li:nth-child(odd) { background: #f6f8fc; }
.sc-group li::before { content: ""; position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123167' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.sc-group li b { display: block; font-weight: 500; color: var(--ink); }
.sc-group li small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--gray); }
@media (max-width: 640px) {
  .scope-grid { grid-template-columns: 1fr; }
  .scope-card { padding: 22px 18px 18px; min-height: 0; }
  .sc-dlg { width: 100%; max-height: calc(100vh - 24px); margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .sc-head { padding: 16px 18px; }
  .sc-body { padding: 14px 12px 20px; }
  .sc-group { padding: 16px 14px 14px; }
}

/* การ์ดรูปหน้างาน */
.works { padding-top: 48px; padding-bottom: 56px; }
.card { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(18, 49, 103, .08); padding: 18px 28px 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 6px 12px; font: inherit; font-size: 15px; color: var(--text); cursor: pointer; min-height: 44px; }
.tab.on { color: var(--navy); border-color: var(--navy); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: 8px; height: 150px; margin: 0; }
.tile[hidden] { display: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.08); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 38, 84, 0) 35%, rgba(14, 38, 84, .85) 100%); }
.tile figcaption { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 12px; color: #fff; font-weight: 600; font-size: 17px; line-height: 1.35; }
.tile figcaption small { display: block; font-weight: 400; font-size: 13px; opacity: .85; }

/* แบนเนอร์เลื่อน */
.banners { padding-top: 56px; padding-bottom: 64px; }
.slider { position: relative; overflow: hidden; border-radius: 16px; }
.slides { display: flex; transition: transform .6s ease; }
.slide { flex: 0 0 100%; padding: 40px 48px; min-height: 200px; }
.slide p { margin: 0; }
.slide .kicker { font-weight: 500; }
.slide .big { margin-top: 4px; font-size: clamp(24px, 4.5vw, 34px); font-weight: 600; line-height: 1.3; }
.slide .sub { margin-top: 6px; }
.s-navy { background: var(--navy); color: #fff; }
.s-navy .kicker { color: var(--gold); }
.s-navy .sub { color: #c9d2e6; }
.s-gold { background: var(--gold); color: var(--navy); }
.s-soft { background: #e8eef9; color: var(--navy); }
.s-soft .sub { color: var(--text); }
.dots { position: absolute; left: 48px; bottom: 16px; display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(128, 140, 170, .6); cursor: pointer; transition: width .3s; }
.dot.on { width: 28px; }

/* ขั้นตอนการให้บริการ: เส้นเวลาแนวตั้ง สลับซ้าย-ขวาบนจอกว้าง */
.steps { padding-bottom: 72px; }
.steps h2, .report h2, .works h2 { margin: 0 0 28px; font-size: clamp(26px, 4vw, 32px); font-weight: 600; line-height: 1.35; }
.steps h2, .works h2 { color: var(--navy); text-align: center; }
.works h2 { margin-bottom: 8px; }
.works .lead { margin: 0 0 24px; text-align: center; color: var(--text); }
.steps h2::after, .works h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin: 12px auto 0; }
/* แนวนอน: วงกลมเลขบนเส้นเดียวกัน การ์ดอยู่ใต้วงกลม · จอแคบกลับเป็นแนวตั้ง */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 40px auto 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 10%; right: 10%; height: 3px; background: linear-gradient(90deg, var(--navy), #9fb3d9); border-radius: 2px; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; }
.timeline .num { position: relative; z-index: 1; flex: none; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; background: var(--navy); color: #fff; border: 4px solid var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; }
.timeline .step { flex: 1; width: 100%; text-align: center; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; box-shadow: 0 4px 18px rgba(18, 49, 103, .06); }
.step b { display: block; font-size: 18px; color: var(--navy); }
.step p { margin: 6px 0 0; color: var(--text); font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.nw { white-space: nowrap; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.timeline li:nth-child(2) { transition-delay: .1s; } .timeline li:nth-child(3) { transition-delay: .2s; }
.timeline li:nth-child(4) { transition-delay: .3s; } .timeline li:nth-child(5) { transition-delay: .4s; }
@media (max-width: 1100px) {
  .timeline { display: block; max-width: 560px; }
  .timeline::before { top: 8px; bottom: 8px; left: 24px; right: auto; width: 3px; height: auto; background: linear-gradient(180deg, var(--navy), #9fb3d9); }
  .timeline li { display: block; padding: 0 0 20px 68px; transition-delay: 0s !important; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline .num { position: absolute; left: 0; top: 0; margin: 0; }
  .timeline .step { text-align: left; }
}

/* ตัวอย่างรายงาน */
.report { background: var(--navy-dark); color: #fff; scroll-margin-top: 0; }
.report .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.report-text { flex: 1 1 380px; min-width: 0; }
.report h2 { margin-bottom: 14px; }
.report-text p { margin: 0 0 28px; color: #c9d2e6; font-size: 17px; max-width: 30em; }
.btn-gold { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; background: var(--gold); color: var(--navy); border-radius: 10px; text-decoration: none; font-weight: 600; }
.btn-gold:hover { color: var(--navy); background: #ffdc85; }
.stack { flex: 1 1 460px; min-width: 0; position: relative; height: 440px; }
.pg { position: absolute; background: #fff; box-shadow: 0 24px 50px rgba(0, 0, 0, .4); transition: transform .4s ease; }
.pg1 { left: 4%; top: 30px; width: 250px; height: 354px; transform: rotate(-5deg); padding: 20px; color: var(--navy); text-align: center; }
.pg2 { left: 34%; top: 0; width: 280px; height: 396px; transform: rotate(3deg); padding: 18px; color: var(--ink); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); overflow: hidden; }
.stack:hover .pg1 { transform: rotate(-8deg) translateX(-14px); }
.stack:hover .pg2 { transform: rotate(5deg) translateX(14px); }
.pg1 .p-logo { width: 110px; height: auto; margin-top: 18px; }
.pg1 .p-title { margin-top: 22px; font-size: 15px; font-weight: 600; }
.pg1 .p-sub { font-size: 10px; color: var(--text); margin-top: 4px; }
.mini-sum { margin-top: 22px; text-align: left; }
.mini-sum .intro { font-size: 7px; color: #5b6478; }
.mini-bar { display: flex; height: 12px; margin-top: 6px; }
.mini-cnt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 7px; }
.mini-cnt div { border-top: 2px solid; padding-top: 3px; color: #1c2333; }
.mini-cnt b { display: block; font-size: 14px; font-weight: 500; line-height: 1.2; }
.mini-cnt span { display: block; font-size: 6.5px; font-weight: 600; }
.p-head { border-bottom: 2px solid var(--gold); padding-bottom: 5px; font-size: 8px; color: var(--gray); display: flex; justify-content: space-between; }
.p-head b { color: var(--navy); }
.p-zone { background: var(--navy); color: #fff; font-size: 10px; font-weight: 600; padding: 6px 8px; margin-top: 12px; display: flex; justify-content: space-between; }
.p-item { border: 1px solid var(--field); margin-top: 8px; padding: 8px; }
.pill { font-size: 7px; font-weight: 600; padding: 1px 6px; border-radius: 8px; }
.pill.mid { background: #fed267; color: var(--navy); }
.pill.hi { background: #c62828; color: #fff; }
.p-item .t { font-size: 10px; font-weight: 600; margin-top: 5px; line-height: 1.4; }
.p-item .d { font-size: 8px; color: var(--text); margin-top: 3px; line-height: 1.5; }
.p-item img { width: 100%; object-fit: cover; display: block; margin-top: 6px; }

/* ท้ายเว็บ + ปุ่มลอย */
.foot { background: var(--navy); color: #c9d2e6; font-size: 15px; }
.foot-cols { padding-top: 48px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.foot p { margin: 0; }
.foot .h { margin: 0 0 10px; color: #fff; font-weight: 600; font-size: 17px; }
.foot a { color: #c9d2e6; text-decoration: none; transition: color .2s; }
.foot a:hover, .foot a:focus-visible { color: #fff; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-contact a { display: inline-flex; align-items: center; gap: 8px; }
.foot-contact svg { width: 18px; height: 18px; flex: none; color: #fff; }
.foot-contact .cut { fill: var(--navy); }
.foot-contact .fc-hours { display: flex; align-items: flex-start; gap: 8px; line-height: 1.6; font-size: 13px; margin-top: 6px; }
.foot-contact .fc-hours svg { margin-top: 2px; }
.foot-bar { background: #0b1d40; }
.foot-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.social a { display: inline-flex; color: #fff; opacity: .85; transition: opacity .2s, color .2s; }
.social a[hidden] { display: none; }
.social a:hover, .social a:focus-visible { opacity: 1; color: var(--gold); }
.social svg { width: 20px; height: 20px; display: block; }
.social .cut { fill: #0b1d40; }
.foot-lang { display: flex; gap: 8px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .25); }
.foot-lang a { display: inline-flex; border-radius: 50%; overflow: hidden; opacity: .9; }
.foot-lang a:hover { opacity: 1; }
.foot-lang .flag { border-radius: 50%; display: block; }
.foot .copy { margin-left: auto; color: #9fb0d0; font-size: 13px; }
.float { transition: opacity .3s, transform .3s; }
.float.away { opacity: 0; transform: translateY(16px); }
.float.away a { pointer-events: none; }
.float { position: fixed; left: 0; right: 0; bottom: 20px; z-index: 30; display: flex; justify-content: center; gap: 10px; pointer-events: none; }
.float a { pointer-events: auto; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 24px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.f-tel { background: #fff; color: var(--navy); box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }
.f-line { background: var(--green); color: #fff; animation: pulse 2.2s infinite; }
.f-line:hover { color: #fff; }

/* มือถือ */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top .wrap { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding-top: 10px; padding-bottom: 6px; }
  .top-left { display: contents; }
  .logo { grid-column: 1; grid-row: 1; }
  .top-right { grid-column: 2; grid-row: 1; gap: 8px; }
  .lang { padding-right: 8px; }
  .nav { grid-column: 1 / -1; grid-row: 2; }
  .nav { gap: 0 14px; font-size: 14.5px; flex-wrap: nowrap; justify-content: space-between; }
  .nav a { display: inline-flex; align-items: center; min-height: 40px; white-space: nowrap; }
  .dd-btn { gap: 4px; white-space: nowrap; }
  .dd-menu { left: -8px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { height: 130px; }
  .tile figcaption { left: 10px; right: 10px; bottom: 8px; font-size: 14px; }
  .tile figcaption small { font-size: 11px; }
  .hero { padding: 40px 16px 36px; }
  .hero-photo { padding: 64px 16px 56px; }
  .hero-btns a { flex: 1 1 100%; }
  .hero-lead { font-size: 19px; }
  .calc { padding: 16px; }
  .price-box { text-align: left; }
  .card { padding: 12px 16px 18px; }
  .tabs { gap: 0 14px; }
  .slide { padding: 28px 24px 44px; }
  .dots { left: 24px; }
  .stack { height: 400px; flex-basis: 100%; transform: scale(.86); transform-origin: left top; }
  .pg1 { left: 0; }
  .pg2 { left: 90px; }
  .float { bottom: 12px; gap: 8px; }
  .float a { padding: 0 16px; font-size: 15px; }
}

/* ลดการเคลื่อนไหว */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tile:hover img { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
.ib { display: inline-block; }
.step p .nw, .scope-card > p .nw { display: inline-block; white-space: normal; }

/* ผลงานรายโครงการ: การ์ดรูป กดแล้วเปิดหน้าต่างรูปหน้างาน */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.proj { position: relative; display: block; overflow: hidden; height: 240px; padding: 0; border: 0; border-radius: 14px; background: var(--navy); font: inherit; color: #fff; text-align: left; cursor: pointer; box-shadow: 0 6px 22px rgba(18, 49, 103, .14); }
.proj img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.proj:hover img { transform: scale(1.06); }
.proj::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 38, 84, 0) 30%, rgba(14, 38, 84, .9) 100%); }
.proj-txt { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 14px; }
.proj-txt b { display: block; font-size: 19px; font-weight: 600; line-height: 1.35; }
.proj-txt small { display: block; margin-top: 2px; font-size: 13.5px; color: #d6deef; text-wrap: pretty; }
.proj .chip { position: absolute; z-index: 1; top: 14px; right: 14px; background: rgba(14, 38, 84, .65); }
.sc-head h3 small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--gray); }
.wk-body { background: #fff; }
.wk-show { display: block; width: 100%; max-width: 560px; margin: 0 auto 16px; border-radius: 12px; box-shadow: 0 2px 12px rgba(18, 49, 103, .12); }
.wk-show + .wk-show { margin-top: 0; }
.wk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wk-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; display: block; }
.wk-grid img.big { grid-column: 1 / -1; cursor: zoom-out; }
@media (max-width: 640px) {
  .proj { height: 210px; }
  .wk-grid { grid-template-columns: repeat(2, 1fr); }
}

/* หน้าออกแบบ · เขียนแบบ · ประมาณราคา */
.svc { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; scroll-margin-top: 72px; }
.svc + .svc { border-top: 1px solid #e3e9f4; }
.svc.flip .svc-text { order: 2; }
.svc h2 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 30px); font-weight: 600; color: var(--navy); line-height: 1.35; }
.svc h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--gold); margin-top: 10px; }
.svc-text > p { margin: 0 0 16px; color: var(--text); font-size: 17px; text-wrap: pretty; }
.svc ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.svc li { display: flex; gap: 10px; align-items: flex-start; }
.svc li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; padding: 4px; border-radius: 50%; background: var(--gold); stroke: var(--navy); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.svc-note { margin: 0; font-size: 14px; color: var(--text); }
.svc .btn-line { max-width: 340px; }
.svc-card { height: 340px; }
.svc-card img { object-position: top; }
.wk-grid.doc img { object-fit: contain; background: #f3f6fb; }
@media (max-width: 820px) {
  .svc { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
  .svc.flip .svc-text { order: 0; }
  .svc-card { height: 260px; }
  .svc .btn-line { max-width: none; }
}

/* ทำไมต้องตรวจบ้านกับเรา (หน้าหลัก) */
.why { padding-top: 56px; padding-bottom: 56px; }
.why h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 32px); font-weight: 600; line-height: 1.35; color: var(--navy); text-align: center; }
.why h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin: 12px auto 0; }
.why .lead { margin: 0 0 28px; text-align: center; color: var(--text); font-style: italic; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-grid li { background: #fff; border: 1px solid #e3e9f4; border-radius: 14px; padding: 22px 22px 20px; box-shadow: 0 4px 20px rgba(18, 49, 103, .06); }
.why-grid li:nth-child(3n+2) { transition-delay: .08s; }
.why-grid li:nth-child(3n) { transition-delay: .16s; }
/* ไอคอนสองสี: วงกลมฟ้าอ่อน · เส้นกรมท่า · .f สีเติมฟ้า · .w สีขาว · .b ป้ายทอง */
.why-ic, .st-ic { display: inline-flex; width: 60px; height: 60px; border-radius: 50%; background: #eaf0fa; align-items: center; justify-content: center; margin-bottom: 12px; }
.why-ic svg, .st-ic svg { width: 32px; height: 32px; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.why-ic .f, .st-ic .f { fill: #bcd1ef; }
.why-ic .w, .st-ic .w { fill: #fff; }
.why-ic .b, .st-ic .b { fill: var(--gold); stroke: #fff; stroke-width: 1.3; }
.why-ic .bk, .st-ic .bk { stroke: var(--navy); stroke-width: 1.5; }
.st-ic { width: 56px; height: 56px; margin-bottom: 8px; }
.st-ic svg { width: 30px; height: 30px; }
.why-grid b { display: block; font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.why-grid p { margin: 6px 0 0; color: var(--text); font-size: 15px; text-wrap: pretty; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; gap: 12px; } .why-grid li { padding: 18px; } }
.foot-brand img { display: block; width: auto; height: 60px; }
.foot-brand p { margin: 14px 0 0; color: #c9d2e6; font-size: 14px; font-style: italic; max-width: 22em; }
.sub-brand { display: block; height: 56px; width: auto; margin: 0 auto 14px; }

/* หน้าหลัก: ภาพเปิดเต็มจอ */
.hero-full { min-height: calc(100vh - 73px); min-height: calc(100svh - 73px); display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(8, 20, 46, .78), rgba(8, 20, 46, .66)), url(../images/hero-drone.jpg) center / cover no-repeat; }
.hero-full h1 { margin: 0; color: #fff; font-size: clamp(34px, 6vw, 64px); line-height: 1.3; min-height: 0; }
.hero-full .h1a, .hero-full .h1b { display: block; }
.hero-full .h1b { color: var(--gold); min-height: 1.3em; }
.hero-sub { margin: 18px auto 30px; max-width: 34em; color: #e3e9f6; font-size: clamp(16px, 1.6vw, 19px); text-wrap: balance; }
.hero-outline { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-outline .btn-ghost { min-width: 170px; background: rgba(255, 255, 255, .06); }
.hero-outline .btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.hero-book { margin-top: 16px; min-width: 260px; padding: 0 28px; }
.hero-full .hero-note { margin: 18px 0 0; font-size: 14px; color: #b9c6e0; }
@media (max-width: 640px) {
  .hero-outline .btn-ghost { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 16px; }
  .hero-book { align-self: stretch; min-width: 0; }
}
@media (max-width: 760px) { .hero-full { min-height: calc(100svh - 108px); } }
.hero-outline .btn-ghost { white-space: nowrap; }
@media (max-width: 640px) { .hero-outline { align-self: stretch; } }

/* หัวหน้าบริการ: ภาพพื้นหลังวิ่ง */
.ph-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-dark); padding-top: 64px; padding-bottom: 56px; }
.ph-slides, .ph-slides i { position: absolute; inset: 0; }
.ph-slides { z-index: -1; }
.ph-slides i { background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s linear; }
.ph-slides i.on { opacity: 1; transform: scale(1); }
.ph-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 46, .80), rgba(8, 20, 46, .70)); }
.ph-dark h1 { color: #fff; }
.ph-dark > p { color: #dbe4f5; }
@media (prefers-reduced-motion: reduce) { .ph-slides i { transition: none; transform: none; } }

/* ตัวอย่างราคาแพ็กเกจ (หน้าตรวจบ้าน) */
.ptable { padding-top: 8px; padding-bottom: 56px; }
.ptable h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 32px); font-weight: 600; line-height: 1.35; color: var(--navy); text-align: center; }
.ptable h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin: 12px auto 0; }
.ptable .lead { margin: 0 0 24px; text-align: center; color: var(--text); }
.pt-box { max-width: 860px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 24px rgba(18, 49, 103, .08); border: 1px solid #e3e9f4; }
.pt { width: 100%; border-collapse: collapse; font-size: 16px; }
.pt thead th { background: var(--navy); color: #fff; font-weight: 600; padding: 14px 12px; text-align: right; }
.pt thead th:first-child { text-align: left; }
.pt tbody th { text-align: left; font-weight: 500; color: var(--navy); padding: 12px; white-space: nowrap; }
.pt td { text-align: right; padding: 12px; font-variant-numeric: tabular-nums; color: var(--ink); }
.pt tbody tr:nth-child(even) { background: #f4f7fc; }
.pt tbody tr:hover { background: #fff7dc; }
.pt-note { max-width: 860px; margin: 12px auto 0; font-size: 14px; color: var(--text); text-align: center; }
@media (max-width: 560px) {
  .pt { font-size: 14px; }
  .pt thead th, .pt tbody th, .pt td { padding: 10px 8px; }
  .pt thead th { font-size: 13px; line-height: 1.35; }
}
/* แถบภาพสูงเท่ากันทุกหน้าบริการ · ส่วนที่เกิน (กล่องคิดราคา) อยู่บนพื้นสว่างใต้แถบ */
.ph-dark { --band: 360px; background: linear-gradient(180deg, var(--navy-dark) 0, var(--navy-dark) var(--band), #f3f7fe var(--band), #fff 100%); min-height: var(--band); box-sizing: border-box; }
.ph-slides { bottom: auto; height: var(--band); }
@media (max-width: 640px) { .ph-dark { --band: 330px; } }
.pt { table-layout: fixed; }
.pt td { white-space: nowrap; }
@media (max-width: 560px) { .pt td { font-size: 13px; padding: 10px 6px; } .pt thead th:first-child { width: 22%; } }
.pt td b { display: block; font-weight: 600; color: var(--navy); }
.pt td s { display: block; font-size: .82em; color: #8a93a6; }
.pt-promo { width: fit-content; margin: -10px auto 18px; padding: 4px 14px; border-radius: 20px; background: #fff3cd; color: #8a6200; font-size: 14px; font-weight: 600; }
.pt-promo[hidden] { display: none; }
/* สโลแกนบรรทัดเดียวเสมอ */
.why .lead, .foot-brand p { white-space: nowrap; }
.foot-brand p { max-width: none; }
.foot-cols { grid-template-columns: minmax(max-content, 1.3fr) repeat(3, minmax(170px, 1fr)); }
@media (min-width: 1180px) { .foot-cols { grid-template-columns: minmax(max-content, 1.3fr) repeat(2, minmax(170px, 1fr)) minmax(max-content, 1fr); } }
@media (max-width: 1100px) { .foot-cols { grid-template-columns: repeat(2, 1fr); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; } .why .lead { font-size: min(16px, 3.9vw); } .foot-brand p { font-size: min(14px, 3.6vw); } }
@media (max-width: 560px) { html[lang="en"] .why .lead, html[lang="en"] .foot-brand p { white-space: normal; font-size: 15px; } }
.pt tr > :first-child { padding-left: 28px; }
.pt tr > :last-child { padding-right: 28px; }
@media (max-width: 560px) { .pt tr > :first-child { padding-left: 14px; } .pt tr > :last-child { padding-right: 14px; } }
/* แถบภาพหน้าบริการใหญ่ขึ้น */
.ph-dark { --band: 500px; padding-top: 110px; }
@media (max-width: 640px) { .ph-dark { --band: 420px; padding-top: 72px; } }
/* แถบภาพหน้าบริการเต็มจอเหมือนหน้าแรก */
.ph-dark { --band: calc(100svh - 73px); min-height: var(--band); padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--navy-dark); }
.ph-dark .calc { width: 100%; }
.ph-slides { bottom: 0; height: auto; }
@media (max-width: 760px) { .ph-dark { --band: calc(100svh - 108px); padding-top: 40px; padding-bottom: 40px; } }
/* แถบภาพหน้าบริการ: ระหว่าง 500 px กับเต็มจอ */
.ph-dark { --band: max(560px, 75svh); }
@media (max-width: 760px) { .ph-dark { --band: max(460px, 68svh); } }
.sub-brand { height: 96px; margin-bottom: 18px; }
@media (max-width: 640px) { .sub-brand { height: 76px; } }
/* ขั้นตอนการให้บริการ: โผล่ทีละขั้น (ปรับเร็วขึ้น 2026-12-03) */
.timeline li.reveal { transition-duration: .8s; }
.timeline li:nth-child(2) { transition-delay: .2s; } .timeline li:nth-child(3) { transition-delay: .4s; }
.timeline li:nth-child(4) { transition-delay: .6s; } .timeline li:nth-child(5) { transition-delay: .8s; }
/* ทำไมต้องตรวจบ้านกับเรา: โผล่ไล่ตามคอลัมน์ (ปรับเร็วขึ้น 2026-12-03) */
.why-grid li.reveal { transition-duration: .8s; }
.why-grid li:nth-child(3n+2) { transition-delay: .2s; }
.why-grid li:nth-child(3n) { transition-delay: .4s; }
@media (max-width: 900px) { .why-grid li:nth-child(n) { transition-delay: 0s; } .why-grid li:nth-child(2n) { transition-delay: .2s; } }
@media (max-width: 560px) { .why-grid li:nth-child(n) { transition-delay: 0s; } }

/* หน้าต่าง QR LINE (คอม) */
.line-dlg { width: min(380px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 28px 28px 22px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.line-dlg::backdrop { background: rgba(8, 20, 46, .6); }
.line-dlg[open] { animation: rise .25s ease-out both; }
.line-dlg .sc-x { position: absolute; top: 14px; right: 14px; }
.ld-logo { height: 52px; width: auto; }
.line-dlg h3 { margin: 12px 0 2px; font-size: 20px; font-weight: 600; color: var(--navy); }
.line-dlg p { margin: 0; color: var(--text); font-size: 15px; }
.ld-qr { display: block; width: 220px; height: auto; margin: 16px auto 0; padding: 10px; border: 2px solid #06c755; border-radius: 14px; box-sizing: border-box; }
.ld-open { margin-top: 18px; }
.line-dlg .ld-tel { margin-top: 12px; font-size: 14px; color: var(--gray); }
.ld-tel a { color: var(--navy); }

/* หน้าเกี่ยวกับเรา */
.about { padding-top: 64px; padding-bottom: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-text > p { margin: 0 0 18px; font-size: 17px; color: var(--ink); text-wrap: pretty; }
.about-text h2 { margin: 28px 0 12px; font-size: 24px; font-weight: 600; color: var(--navy); }
.about-text h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--gold); margin-top: 8px; }
.exp { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.exp li { background: #f4f7fc; border-left: 4px solid var(--navy); border-radius: 10px; padding: 12px 16px; }
.exp b { display: block; color: var(--navy); font-weight: 600; }
.exp span { color: var(--text); }
.founder { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 32px rgba(18, 49, 103, .12); border: 1px solid #e3e9f4; }
.founder img { display: block; width: 100%; height: auto; }
.founder figcaption { padding: 16px 20px 20px; text-align: center; border-top: 4px solid var(--gold); }
.founder b { display: block; font-size: 20px; font-weight: 600; color: var(--navy); }
.founder span { display: block; color: var(--text); font-weight: 500; }
.founder small { display: block; margin-top: 8px; color: var(--gray); font-size: 14px; }
.about-reach { padding-top: 8px; padding-bottom: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-reach h2 { margin: 0 0 14px; font-size: 22px; font-weight: 600; color: var(--navy); }
.ar-line { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 18px; font-weight: 600; color: var(--navy); }
.ar-line svg, .ar-contact svg { width: 22px; height: 22px; flex: none; color: var(--navy); }
.ar-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ar-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 17px; }
.ar-contact a:hover { color: var(--navy); text-decoration: underline; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .founder { max-width: 420px; margin: 0 auto; }
  .about-reach { grid-template-columns: 1fr; }
}
/* เกี่ยวกับเรา: หัวหน้าพื้นเรียบ (ยังไม่มีรูปทีม) + เรื่องราวใต้หัวข้อ */
.ph-about { min-height: 0; padding-top: 64px; padding-bottom: 64px; }
.ph-about .about-text { max-width: 820px; margin: 24px auto 0; text-align: left; }
.ph-about .about-text > p { color: #e3e9f6; }
.ph-about .about-text h2 { color: #fff; }
.ph-about .exp li { background: rgba(255, 255, 255, .08); border-left-color: var(--gold); }
.ph-about .exp b { color: var(--gold); }
.ph-about .exp span { color: #dbe4f5; }
.about { grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; }
.founder { max-width: none; }
/* ทีมงาน: การ์ดรูปเต็ม ชื่อวางบนรูป */
.team { padding-top: 56px; padding-bottom: 40px; }
.team h2 { margin: 0 0 20px; font-size: 24px; font-weight: 600; color: var(--navy); }
.team h2 + .team-grid { margin-bottom: 40px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.person { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 3.4; background: #e8edf5; box-shadow: 0 10px 30px rgba(18, 49, 103, .16); }
.person img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .5s ease; }
.person:hover img { transform: scale(1.04); }
.person::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 46, 0) 50%, rgba(8, 20, 46, .88) 100%); }
.person figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.person .tag { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 20px; background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.person b { display: block; font-size: 19px; font-weight: 600; line-height: 1.3; }
.person small { display: block; margin-top: 2px; font-size: 13.5px; color: #dbe4f5; }
@media (max-width: 560px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .person b { font-size: 16px; } .person figcaption { left: 12px; right: 12px; bottom: 12px; } }
.ar-contact a { gap: 12px; }
.ar-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ar-contact .ar-ic svg { width: 18px; height: 18px; color: #fff; }
.ar-ic .cut { fill: var(--navy); }
.ar-contact a:hover .ar-ic { background: var(--gold); color: var(--navy); }
.ar-contact a:hover .ar-ic svg { color: var(--navy); }
.ar-contact a:hover .ar-ic .cut { fill: var(--gold); }
/* เกี่ยวกับเรา: จัดกลางทั้งหมด */
.ph-about .about-text { text-align: center; }
.ph-about .about-text h2::after { margin-left: auto; margin-right: auto; }
.ph-about .exp li { text-align: center; border-left: 0; border-top: 3px solid var(--gold); }
.team h2 { text-align: center; }
.team-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 280px)); justify-content: center; }
@media (max-width: 560px) { .team-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 180px)); } }
/* เกี่ยวกับเรา: เส้นทองอยู่ใต้หัวข้อหลัก ไม่ใช่ใต้ "ประสบการณ์ของเรา" */
.ph-about .about-text h2::after { display: none; }
.ph-about h1::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin: 14px auto 0; }
/* การ์ดคนเล็กลง */
.team-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 220px)); }
.person b { font-size: 17px; }
@media (max-width: 560px) { .team-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 160px)); } .person b { font-size: 15px; } }

/* เกี่ยวกับเรา: คำมั่นของเรา + แถบคติ */
.commit { padding-top: 64px; padding-bottom: 56px; }
.commit h2 { margin: 0 0 28px; font-size: clamp(26px, 4vw, 32px); font-weight: 600; color: var(--navy); text-align: center; }
.commit h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin: 12px auto 0; }
.motto { background: linear-gradient(135deg, var(--navy) 0%, #1d4a96 100%); color: #fff; text-align: center; }
.motto .wrap { padding-top: 44px; padding-bottom: 44px; }
.motto-k { margin: 0 0 8px; color: var(--gold); font-weight: 600; letter-spacing: .04em; }
.motto-t { margin: 0; font-size: clamp(20px, 3vw, 28px); font-weight: 500; line-height: 1.5; }
.motto-t::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--gold); margin: 18px auto 0; }
@media (max-width: 560px) { .motto-t { font-size: min(20px, 4.6vw); white-space: nowrap; } }
@media (max-width: 560px) { .motto-t { font-size: min(20px, 3.9vw); } }
@media (max-width: 560px) { html[lang="en"] .motto-t { white-space: normal; font-size: 18px; } }

/* เกี่ยวกับเรา: ผังองค์กร */
.org { padding-top: 16px; padding-bottom: 56px; text-align: center; }
.org h2 { margin: 0 0 28px; font-size: clamp(26px, 4vw, 32px); font-weight: 600; color: var(--navy); }
.org h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin: 12px auto 0; }
.org-tree { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; }
.org-node { position: relative; min-width: 260px; padding: 14px 24px; border-radius: 14px; background: #fff; border: 1px solid #e3e9f4; border-top: 4px solid var(--gold); box-shadow: 0 6px 20px rgba(18, 49, 103, .08); }
.org-node + .org-node { margin-top: 40px; }
.org-node + .org-node::before { content: ""; position: absolute; left: 50%; top: -44px; width: 3px; height: 40px; margin-left: -1.5px; background: #9fb3d9; }
.org-node b { display: block; font-size: 18px; font-weight: 600; color: var(--navy); }
.org-node small { display: block; color: var(--text); font-size: 14px; }
.org-node.top { background: var(--navy); border-color: var(--navy); border-top-color: var(--gold); }
.org-node.top b { color: #fff; }
.org-node.top small { color: #dbe4f5; }
.org-node.team { background: #f4f7fc; }
.org .person figcaption { text-align: left; }

/* หน้าติดต่อเรา */
.ph-contact { padding-top: 56px; padding-bottom: 96px; }
.ph-contact h1::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin: 14px auto 0; }
.pv-upd { color: #c9d2e6 !important; margin-top: 12px !important; }
.contact { margin-top: -56px; margin-bottom: 72px; display: grid; grid-template-columns: 1.45fr 1fr; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 48px rgba(18, 49, 103, .16); background: #fff; position: relative; }
.cf { padding: 40px 44px; }
.cf h2, .cf-side h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 30px); font-weight: 600; }
.cf h2 { color: var(--navy); }
.cf-lead { margin: 0 0 22px; color: var(--text); }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cf-f { margin-bottom: 16px; }
.cf-f label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--ink); font-size: 15px; }
.cf-f .req { color: #c62828; }
.cf input[type=text], .cf input[type=tel], .cf input[type=email], .cf select, .cf textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border: 1.5px solid #dbe3f0; border-radius: 10px; background: #f7f9fc; font: inherit; font-size: 16px; color: var(--ink); }
.cf textarea { resize: vertical; min-height: 130px; }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(18, 49, 103, .12); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; font-size: 15px; color: var(--text); cursor: pointer; }
.cf-consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.cf-pv { padding: 0; border: 0; background: none; font: inherit; color: var(--navy); font-weight: 600; text-decoration: underline; cursor: pointer; }
.cf-send { width: 100%; min-height: 54px; border: 0; border-radius: 12px; background: var(--navy); color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: background .2s; }
.cf-send:hover { background: #1d4a96; }
.cf-send:disabled { opacity: .6; cursor: wait; }
.cf-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.cf-status.ok { background: #e7f7ee; color: #0b6b35; }
.cf-status.err { background: #fdecec; color: #a32020; }
.cf-side { padding: 44px 40px; color: #fff; background: linear-gradient(150deg, var(--navy) 0%, #1d4a96 100%); }
.cf-side > p { margin: 0 0 24px; color: #dbe4f5; }
.cs-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.cs-list li { display: flex; gap: 14px; align-items: flex-start; }
.cs-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; }
.cs-ic svg { width: 20px; height: 20px; color: var(--gold); }
.cs-ic .cut { fill: #1a3f80; }
.cs-list b { display: block; color: var(--gold); font-weight: 600; }
.cs-list a, .cs-list span { color: #fff; text-decoration: none; word-break: break-word; }
.cs-list a:hover { text-decoration: underline; }
.cs-follow { margin: 0 0 10px; font-weight: 600; }
.cs-social { display: flex; gap: 10px; }
.cs-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.cs-social a:hover { background: var(--gold); color: var(--navy); }
.cs-social svg { width: 18px; height: 18px; }
.cs-social .cut { fill: #1d4a96; }
.cs-social a:hover .cut { fill: var(--gold); }
/* นโยบายความเป็นส่วนตัว (หน้าต่าง + หน้าเต็ม) */
.pv-intro { margin: 0 0 18px; padding: 16px 18px; border-radius: 12px; background: #f4f7fc; border: 1px solid #e3e9f4; color: var(--ink); }
.pv-sec { margin-bottom: 18px; }
.pv-sec h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 18px; font-weight: 600; color: var(--navy); }
.pv-sec h3 span { flex: none; width: 30px; height: 30px; border-radius: 8px; background: #e6edf9; color: var(--navy); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.pv-sec p { margin: 0 0 8px; color: var(--text); }
.pv-sec ul { margin: 0 0 8px; padding-left: 1.2em; color: var(--text); }
.pv-sec li { margin-bottom: 4px; }
.pv-sec li::marker { color: var(--gold); }
.pv-page { max-width: 860px; padding-top: 48px; padding-bottom: 72px; }
.pv-dlg .sc-body { background: #fff; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; margin-top: -40px; }
  .cf { padding: 28px 20px; }
  .cf-side { padding: 28px 20px; }
  .cf-grid { grid-template-columns: 1fr; }
}

/* บทความ */
.ar-list { padding-top: 48px; padding-bottom: 72px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ar-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #e3e9f4; box-shadow: 0 6px 24px rgba(18, 49, 103, .08); text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.ar-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(18, 49, 103, .14); }
.ar-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e8edf5; }
.ar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-txt { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.ar-tag { align-self: flex-start; display: inline-block; padding: 2px 12px; border-radius: 20px; background: #fff3cd; color: #8a6200; font-size: 13px; font-weight: 600; }
.ar-txt b { font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--navy); }
.ar-txt small { color: var(--text); font-size: 15px; line-height: 1.6; }
.ar-date { margin-top: auto; padding-top: 8px; color: var(--gray); font-size: 13px; }
.ar-page { max-width: 780px; padding-top: 40px; padding-bottom: 72px; }
.ar-crumb { margin: 0 0 12px; font-size: 14px; color: var(--gray); }
.ar-crumb a { color: var(--navy); }
.ar-page h1 { margin: 0; font-size: clamp(28px, 4.4vw, 38px); font-weight: 600; line-height: 1.35; color: var(--navy); }
.ar-meta { margin: 8px 0 20px; color: var(--gray); font-size: 14px; }
.ar-cover { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; margin-bottom: 28px; }
.ar-body { font-size: 17px; color: var(--ink); }
.ar-body p { margin: 0 0 16px; }
.ar-body h2 { margin: 32px 0 12px; font-size: 23px; font-weight: 600; color: var(--navy); }
.ar-body ul { margin: 0 0 16px; padding-left: 1.3em; }
.ar-body li { margin-bottom: 8px; }
.ar-body li::marker { color: var(--gold); }
.ar-tip { margin-top: 28px !important; padding: 16px 18px; border-left: 4px solid var(--gold); border-radius: 10px; background: #f4f7fc; color: var(--navy); }
.ar-cta { margin-top: 36px; padding: 24px; border-radius: 16px; background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ar-cta b { font-size: 20px; font-weight: 600; flex-basis: 100%; }
.ar-cta span { color: #dbe4f5; flex-basis: 100%; margin-top: -8px; }
.ar-cta .btn-line { margin-top: 0; padding: 0 24px; }
.ar-cta .btn-ghost { min-height: 52px; }
/* เมนูบนมือถือ: ซ่อน "หน้าหลัก" (กดโลโก้กลับหน้าหลักได้) ให้ 5 รายการพอดีจอ */
@media (max-width: 640px) { .nav > a:first-child { display: none; } }
@media (max-width: 370px) { .nav { gap: 0 10px; font-size: 14px; } }
/* ติดต่อเรา: ฟอร์มกล่องเดียวกลางหน้า (ไม่มีกรอบช่องทางอื่นด้านขวา) */
.contact { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; }
.works h2 { margin-bottom: 28px; }
/* กล่องคิดราคาบนมือถือ: ประเภทอาคารเต็มแถว · ปุ่มรอบตรวจไม่ตัดคำ */
@media (max-width: 560px) {
  .calc .row .type:not(.small) { flex: 1 1 100%; min-height: 48px; }
  .calc .type.small { flex: 1 1 0; font-size: 14px; white-space: nowrap; padding: 0 6px; min-height: 48px; }
}

/* หน้าผลงาน: การ์ดติดตามผลงานใน Facebook */
.works { padding-top: 56px; }
.fb-follow { padding-top: 24px; padding-bottom: 72px; text-align: center; }
.fb-follow h2 { margin: 0 0 8px; font-size: clamp(24px, 3.6vw, 30px); font-weight: 600; line-height: 1.35; color: var(--navy); }
.fb-follow h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin: 12px auto 0; }
.fb-follow .lead { margin: 0 0 28px; color: var(--text); }
.fb-card { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 24px 28px; border: 1px solid #e3e9f4; border-radius: 18px; background: linear-gradient(180deg, #f3f7fd, #fff); box-shadow: 0 10px 30px rgba(18, 49, 103, .08); text-align: left; }
.fb-logo { flex: none; width: 60px; height: 60px; border-radius: 50%; background: #1877f2; color: #fff; display: grid; place-items: center; }
.fb-logo svg { width: 30px; height: 30px; }
.fb-name { flex: 1; min-width: 0; }
.fb-name b { display: block; font-size: 20px; font-weight: 600; color: var(--navy); }
.fb-name span { color: var(--text); font-size: 15px; }
.fb-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; background: #1877f2; color: #fff; font-weight: 600; text-decoration: none; }
.fb-btn:hover { background: #0f63d6; }
.fb-btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .fb-card { flex-direction: column; text-align: center; padding: 22px 18px; } }

/* สไลด์โปรโมชัน: ลูกศร · ปุ่มหยุด · จุดกลาง · แถบเวลา */
.slider .slide { padding-left: 88px; padding-right: 88px; padding-bottom: 52px; }
.slider .dots { left: 50%; transform: translateX(-50%); bottom: 20px; }
.sl-arrow, .sl-pause { position: absolute; z-index: 2; display: grid; place-items: center; border: 0; padding: 0; border-radius: 50%; cursor: pointer; color: var(--navy); background: rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(18, 49, 103, .18); transition: transform .2s, background .2s; }
.sl-arrow { top: 50%; width: 44px; height: 44px; margin-top: -22px; }
.sl-arrow:hover, .sl-pause:hover { background: var(--gold); transform: scale(1.06); }
.sl-prev { left: 20px; }
.sl-next { right: 20px; }
.sl-pause { top: 14px; right: 14px; width: 34px; height: 34px; }
.sl-arrow svg, .sl-pause svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sl-pause svg { width: 16px; height: 16px; }
.sl-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(128, 140, 170, .3); }
.sl-prog i { display: block; height: 100%; width: 0; background: var(--gold); }
.s-gold ~ .sl-prog i { background: var(--navy); }
.sl-prog.run i { animation: slProg var(--dur, 5000ms) linear forwards; }
@keyframes slProg { to { width: 100%; } }
@media (max-width: 640px) {
  .slider .slide { padding: 26px 22px 48px; }
  .sl-arrow { display: none; }
}

/* ภาพหัวหน้าพับเก็บตอนเลื่อนลง (หน้าหลัก บริการ เกี่ยวกับเรา) — หัวค้างอยู่ ส่วนถัดไปเลื่อนขึ้นมาทับ (--p 0→1 จาก site.js) */
.fold { position: sticky; top: var(--fold-top, 0px); z-index: 0; }
.fold > *:not(.ph-slides) { translate: 0 calc(var(--p, 0) * -70px); scale: calc(1 - var(--p, 0) * .08); filter: opacity(calc(1 - var(--p, 0) * 1.4)); will-change: translate, scale, filter; }
.fold::after { content: ""; position: absolute; inset: 0; background: #08142e; opacity: calc(var(--p, 0) * .55); pointer-events: none; }
.fold ~ section, .fold ~ * { position: relative; z-index: 1; }
main:has(.fold) ~ .foot { position: relative; z-index: 1; }
.fold + section { margin-top: -28px; }
.fold + section::before { content: ""; position: absolute; top: 0; bottom: -100000px; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; background: #fff; border-radius: 28px 28px 0 0; box-shadow: 0 -18px 40px rgba(8, 20, 46, .28); }
main:has(.fold) { overflow: clip; }   /* พื้นขาวรองยาวลงไปถึงท้าย main แล้วตัดทิ้ง */

/* สไลด์โปรโมชัน: รูปด้านขวา ไล่จางเข้าสีพื้นของแผ่น */
.slide { position: relative; overflow: hidden; }
.slide > p { position: relative; z-index: 1; max-width: 56%; }
.sl-img { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; background-size: cover; background-position: center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
@media (max-width: 640px) {
  .slide > p { max-width: none; }
  .sl-img { width: 100%; opacity: .22; -webkit-mask-image: none; mask-image: none; }
}

/* เกี่ยวกับเรา: การ์ดผู้ก่อตั้งอยู่บนสุด การ์ดทีมงานกระจายออกจากใต้การ์ดนี้ (site.js) */
.person.spread-src { z-index: 3; }
.org .person { z-index: 2; will-change: translate, scale, opacity; }

/* เกี่ยวกับเรา: คำมั่นของเรา — พื้นอ่อนเต็มจอ · เลข 01–06 ตัวโปร่งขอบทอง · คอลัมน์กลางเยื้องลง · แถบทองยืดตอนชี้ */
.commit { position: relative; isolation: isolate; padding-top: 80px; padding-bottom: 96px; }
.commit::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: radial-gradient(circle at 1px 1px, rgba(18, 49, 103, .07) 1px, transparent 0) 0 0 / 22px 22px, linear-gradient(180deg, #f3f6fc, #eef2fa); }
.commit h2 { margin-bottom: 44px; }
.commit .why-grid { counter-reset: cm; gap: 28px; align-items: start; }
.commit .why-grid li { counter-increment: cm; position: relative; overflow: hidden; border: 0; border-radius: 20px; padding: 30px 28px 34px; background: #fff;
  box-shadow: 0 1px 2px rgba(18, 49, 103, .05), 0 14px 34px rgba(18, 49, 103, .08); transition: transform .35s ease, box-shadow .35s ease; }
.commit .why-grid li::before { content: counter(cm, decimal-leading-zero); display: block; margin-bottom: 14px; font-size: 54px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold); letter-spacing: .02em; transition: color .35s ease; }
.commit .why-grid li::after { content: ""; position: absolute; left: 28px; bottom: 0; width: 44px; height: 4px; border-radius: 4px 4px 0 0; background: var(--gold); transition: width .45s ease, left .45s ease; }
.commit .why-grid li:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(18, 49, 103, .05), 0 22px 44px rgba(18, 49, 103, .14); }
.commit .why-grid li:hover::before { color: var(--gold); }
.commit .why-grid li:hover::after { left: 0; width: 100%; }
.commit .why-grid b { font-size: 19px; }
.commit .why-grid p { margin-top: 8px; line-height: 1.7; }
@media (min-width: 901px) { .commit .why-grid li:nth-child(3n+2) { margin-top: 36px; } }
@media (max-width: 560px) { .commit { padding-top: 56px; padding-bottom: 64px; } .commit .why-grid li { padding: 24px 22px 28px; } .commit .why-grid li::before { font-size: 44px; } }

/* หน้าบริการ/เกี่ยวกับเรา: หัวอยู่บนเนื้อหา ตัด (clip) ขอบล่างตามเนื้อหาที่เลื่อนขึ้นมา จนเหลือแถบโลโก้ค้างไว้ */
.fold.band { z-index: 2; }
.fold.band + section { margin-top: 0; }
.fold.band + section::before { border-radius: 0; box-shadow: none; }
.fold.band::after { opacity: calc(var(--p, 0) * .35); }
.fold > .fold-keep { position: relative; z-index: 1; translate: none; scale: none; filter: none; }
.fold.banded { box-shadow: 0 6px 20px rgba(8, 20, 46, .25); }
main:has(.fold.band) [id] { scroll-margin-top: 130px; }   /* ลิงก์ #report ฯลฯ ไม่ไปจมใต้แถบโลโก้ */

/* คำมั่นของเรา = H·O·N·E·S·T : ตัวอักษรโปร่งขอบทองแทนเลข + คำอังกฤษ */
.commit .why-grid li::before { content: none; }
.cm-k { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.cm-k em { font-style: normal; font-size: 60px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.6px var(--gold); transition: color .35s ease; }
.cm-k span { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8a97b3; }
.commit .why-grid li:hover .cm-k em { color: var(--gold); }
@media (max-width: 560px) { .cm-k em { font-size: 48px; } }

/* เกี่ยวกับเรา: ส่วนผู้ก่อตั้งอยู่เหนือส่วนทีมงาน การ์ดทีมงานจึงออกมาจากใต้การ์ดผู้ก่อตั้ง */
.team:not(.org) { position: relative; z-index: 2; }

/* ขอบเขตการตรวจ 9 การ์ด (3×3) · จำนวนเช็กลิสต์ · เครื่องมือที่ใช้ · หมายเหตุข้อจำกัด */
.scope-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 1000px) { .scope-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .scope-grid { grid-template-columns: 1fr; } }
.sc-count { margin: -8px auto 28px; width: fit-content; padding: 4px 16px; border-radius: 999px; background: #fff4d1; color: #7a5a00; font-size: 14px; font-weight: 600; }
.sc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; font-size: 12.5px; }
.sc-tools > span:first-child { color: var(--gold); font-weight: 600; margin-right: 2px; }
.sc-tools .tool { padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; white-space: nowrap; }
.sc-tools.in-dlg { margin: 0 0 14px; font-size: 13.5px; }
.sc-tools.in-dlg > span:first-child { color: var(--navy); }
.sc-tools.in-dlg .tool { background: #fff; color: var(--navy); border: 1px solid #d8e1f0; }
.sc-note { margin: 24px auto 0; max-width: 860px; text-align: center; font-size: 14px; color: var(--gray); }
.sc-note a { color: var(--navy); font-weight: 600; }

/* แถบเมนูบนสุด: กว้างกว่าเนื้อหา ไม่บีบกลางบนจอใหญ่ */
.top .wrap { max-width: 1560px; padding-left: clamp(16px, 3vw, 48px); padding-right: clamp(16px, 3vw, 48px); }

/* ติดต่อเรา: หน้าต่างตรวจสอบข้อมูลก่อนส่ง */
.cfc-dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 28px 28px 24px; border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(8, 20, 46, .35); color: var(--ink); }
.cfc-dlg::backdrop { background: rgba(8, 20, 46, .55); }
.cfc-dlg h3 { margin: 0; font-size: 22px; font-weight: 600; color: var(--navy); }
.cfc-lead { margin: 6px 0 18px; font-size: 14.5px; color: var(--gray); }
.cfc-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; padding: 16px 18px; border-radius: 12px; background: #f6f8fc; }
.cfc-list dt { font-size: 14px; color: var(--gray); }
.cfc-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.cfc-msg { white-space: pre-wrap; max-height: 180px; overflow-y: auto; }
.cfc-btns { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.cfc-btns button { padding: 12px 22px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.cfc-back { border: 1px solid #cfd9ea; background: #fff; color: var(--navy); }
.cfc-ok { border: 0; background: var(--navy); color: #fff; }
.cfc-ok:hover { background: var(--navy-dark); }
@media (max-width: 480px) { .cfc-list { grid-template-columns: 1fr; gap: 2px; } .cfc-list dd { margin-bottom: 8px; } .cfc-btns button { flex: 1; } }

/* การ์ดผลงานที่ยังไม่มีรูปหน้างาน: ไม่เปิดหน้าต่าง */
.proj-static { cursor: default; }
.proj-static:hover img { transform: none; }

/* บทความ: ภาพประกอบ + ป้ายระดับ */
.ar-fig { margin: 8px 0 20px; }
.ar-fig img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.ar-fig figcaption { margin-top: 10px; font-size: 15px; color: var(--gray); line-height: 1.6; }
.ar-lv { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; vertical-align: 1px; }
.lv-ok { background: #e3f4ea; color: #1e6b41; }
.lv-watch { background: #fdf1d0; color: #7a5a00; }
.lv-eng { background: #fbe4e2; color: var(--red); }
