:root {
  --bg: #f6f9fc;
  --bg-2: #eaf1f8;
  --card: #ffffff;
  --ink: #0f1e2e;
  --sub: #33475b;
  --mut: #64778b;
  --accent: #1B92C4;
  --accent-dark: #126E96;
  --accent-soft: #E8F5FB;
  --accent-2: #C5302A;
  --accent-2-dark: #9E221D;
  --accent-2-soft: #FDECEC;
  --line: rgba(15, 30, 46, .11);
  --line-o: rgba(27, 146, 196, .42);
  --line-r: rgba(197, 48, 42, .42);
  --thai: "IBM Plex Sans Thai", system-ui, sans-serif;
  --head: "Prompt", "IBM Plex Sans Thai", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--thai); font-size: 16px; line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fffffff5;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 4px solid var(--accent);
  border-image: linear-gradient(90deg, var(--accent) 0%, var(--accent) 65%, var(--accent-2) 65%, var(--accent-2) 100%) 1;
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--head); }
.logo-img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; }
.logo-txt { font-weight: 600; font-size: 15.5px; letter-spacing: .3px; color: var(--ink); line-height: 1.25; }
.logo-txt small { display: block; font-size: 10.5px; color: var(--accent-2); letter-spacing: 1.6px; font-weight: 600; margin-top: 2px; }
.menu { display: flex; gap: 24px; font-size: 14.5px; }
.menu a { color: var(--sub); padding: 6px 2px; border-bottom: 2px solid transparent; font-weight: 500; transition: color .15s, border-color .15s; }
.menu a:hover, .menu a.on { color: var(--accent); border-bottom-color: var(--accent-2); }
.nav-cta {
  background: var(--accent-2);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(197, 48, 42, .28);
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: var(--accent-2-dark); transform: translateY(-1px); }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--accent); width: 40px; height: 40px; border-radius: 6px; font-size: 18px; cursor: pointer; }

.hero {
  position: relative;
  padding: 96px 0 84px;
  border-bottom: 5px solid var(--accent-2);
  isolation: isolate;
  overflow: hidden;
  background: #0b1928;
}
.hero-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
.hero:before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  background: linear-gradient(95deg, rgba(10, 24, 38, .92) 0%, rgba(12, 31, 48, .78) 52%, rgba(15, 30, 46, .42) 100%);
}
@media(max-width:760px) {
  .hero:before { background: linear-gradient(180deg, rgba(10, 24, 38, .82), rgba(10, 24, 38, .92)); }
}
.hero h1, .hero .sub { color: #fff; }
.hero h1 em { color: #67CEF5; font-style: normal; }
.hero h1 .red-hl { color: #FF7A74; font-style: normal; }
.hero .en { color: #ffffffcc; margin-top: 8px; font-size: 13.5px; letter-spacing: 1px; }
.kicker {
  font-family: var(--head);
  font-size: 12.5px;
  letter-spacing: 3px;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kicker:before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.hero .kicker { color: #7CCDF0; }
.hero .kicker:before { background: var(--accent-2); width: 22px; }
h1 { font-family: var(--head); font-size: clamp(28px, 4.6vw, 48px); line-height: 1.25; font-weight: 600; color: var(--ink); }
h1 em { font-style: normal; color: var(--accent); }
.hero p.sub { margin-top: 18px; font-size: 17.5px; max-width: 680px; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-block; font-family: var(--thai); font-weight: 600; font-size: 15.5px; padding: 13px 26px; border-radius: 6px; cursor: pointer; border: none; transition: all .18s; }
.btn-gold { background: var(--accent-2); color: #fff; box-shadow: 0 4px 14px rgba(197, 48, 42, .38); }
.btn-gold:hover { background: var(--accent-2-dark); transform: translateY(-1px); }
.btn-blue { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(27, 146, 196, .35); }
.btn-blue:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-line { background: #ffffffeb; color: var(--ink); border: 1.5px solid var(--accent); }
.btn-line:hover { background: var(--accent); color: #fff; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.stat b { font-family: var(--head); font-size: 29px; color: #67CEF5; font-weight: 600; }
.stat span { display: block; font-size: 13px; color: #ffffffd9; margin-top: 2px; }
a.stat { color: inherit; text-decoration: none; }
a.stat:hover b { text-decoration: underline; text-underline-offset: 5px; }
.hero-point { margin-top: 14px; font-size: 16px; color: #fff; max-width: 680px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.hero-point b { color: #7CCDF0; font-weight: 600; }
.hero-badges { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-badges span {
  font-size: 13.5px;
  color: #fff;
  background: rgba(15, 30, 46, .68);
  border: 1px solid rgba(124, 205, 240, .42);
  padding: 6px 14px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-badges b { color: #7CCDF0; font-weight: 600; }

.biz-links { margin-top: 26px; font-size: 14.5px; color: var(--sub); line-height: 1.9; }
.biz-links a { color: var(--accent); font-weight: 600; }
.biz-links a:hover { color: var(--accent-2); }
.proof .card h3 { font-size: 16.5px; line-height: 1.45; margin-top: 0; }
.proof .proof-links { font-size: 13.5px; margin-top: 14px; line-height: 1.8; }
.proof .proof-links a { color: var(--accent); font-weight: 600; }
.proof .proof-links a:hover { color: var(--accent-2); }

section { padding: 72px 0; }
.sec-head { margin-bottom: 38px; }
.sec-head .kicker { margin-bottom: 8px; }
h2 { font-family: var(--head); font-size: clamp(23px, 3.3vw, 33px); font-weight: 600; line-height: 1.35; color: var(--ink); }
h2 small { display: block; font-family: var(--head); font-size: 13.5px; color: var(--mut); letter-spacing: 1px; margin-top: 6px; font-weight: 400; }
.sec-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.on-photo h2, .on-photo p, .on-photo .stat span { color: #fff; }
.on-photo .kicker { color: #7CCDF0; }

.cat-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: 10px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  box-shadow: 0 2px 10px rgba(15, 30, 46, .05);
}
.cat-banner.red { border-left-color: var(--accent-2); }
.cat-banner h3 { font-family: var(--head); font-size: 20px; font-weight: 600; color: var(--ink); margin: 0; }
.cat-banner p { font-size: 14px; color: var(--sub); margin: 4px 0 0; }
.cat-badge {
  display: inline-block;
  font-family: var(--head);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  letter-spacing: .5px;
}
.cat-banner.red .cat-badge { background: var(--accent-2-soft); color: var(--accent-2); }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2, .vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.vcard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(15, 30, 46, .08); }
.vcard video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.vcard .vbody { padding: 14px 16px 16px; }
.vcard .vbody h3 { font-size: 16.5px; color: var(--ink); font-family: var(--head); }
.vcard .vbody p { margin-top: 4px; font-size: 13.5px; color: var(--sub); }
@media(max-width:760px) { .vgrid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 26px 22px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 6px rgba(15, 30, 46, .05);
}
.card:nth-child(even) { border-top-color: var(--accent-2); }
.card:hover { border-color: var(--line-o); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 30, 46, .1); }
.card .num { font-family: var(--head); color: var(--accent-2); font-size: 13px; letter-spacing: 2px; font-weight: 600; }
.card h3 { font-family: var(--head); font-size: 19px; font-weight: 600; margin: 10px 0 2px; color: var(--ink); }
.card .en { font-size: 11.5px; color: var(--accent); letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; }
.card p { font-size: 14.5px; color: var(--sub); margin-top: 12px; }
.card a.more { display: inline-block; margin-top: 16px; font-size: 13.5px; color: var(--accent-2); font-weight: 600; }
.card a.more:hover { color: var(--accent); }

.proj {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f1e2e;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(15, 30, 46, .1);
}
.proj:hover { box-shadow: 0 10px 26px rgba(15, 30, 46, .2); }
.proj .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent);
  font-weight: 600;
  z-index: 2;
}
.proj .tag.red { background: var(--accent-2); }
.proj h3 { font-family: var(--head); font-size: 18px; font-weight: 600; color: #fff; position: relative; z-index: 2; }
.proj p { font-size: 13.5px; color: #ffffffe0; margin-top: 4px; position: relative; z-index: 2; }
.proj .im { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.proj:hover .im { transform: scale(1.04); }
.proj .ov { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(15, 30, 46, 0) 35%, rgba(15, 30, 46, .88) 90%); }

.fbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.fbar button {
  font-family: var(--thai);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--sub);
  cursor: pointer;
  transition: all .15s;
}
.fbar button:hover { border-color: var(--accent); color: var(--accent); }
.fbar button.on { background: var(--accent-2); border-color: var(--accent-2); color: #fff; box-shadow: 0 3px 10px rgba(197, 48, 42, .25); }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 30, 46, .06);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.pcard:hover { box-shadow: 0 12px 28px rgba(15, 30, 46, .15); transform: translateY(-3px); border-color: var(--line-o); }
.pcard .pimg { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e5eef7; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pcard:hover .pimg img { transform: scale(1.05); }
.pchip {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11.5px;
  letter-spacing: .8px;
  color: #fff;
  padding: 4px 11px;
  border-radius: 4px;
  background: var(--accent);
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,.22);
}
.pchip.red, .pchip.build { background: var(--accent-2); }
.pchip.design { background: var(--accent); }
.pbody { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.pbody h3 { font-family: var(--head); font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.pbody p { font-size: 13.5px; color: var(--sub); margin-top: 6px; flex: 1; }
.pcard.featured { grid-column: span 2; }
.pcard.featured .pimg { aspect-ratio: 16 / 8.5; }
.pcard.featured .pbody h3 { font-size: 19px; }
@media(max-width:900px) {
  .pgrid { grid-template-columns: 1fr; }
  .pcard.featured { grid-column: span 1; }
}

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.why div { padding: 26px 14px; border: 1px solid var(--line); border-bottom: 3px solid var(--accent); border-radius: 10px; background: var(--card); box-shadow: 0 2px 6px rgba(15, 30, 46, .05); }
.why div:nth-child(even) { border-bottom-color: var(--accent-2); }
.why b { font-family: var(--head); display: block; font-size: 17px; font-weight: 600; color: var(--accent); }
.why div:nth-child(even) b { color: var(--accent-2); }
.why span { font-size: 13px; color: var(--sub); margin-top: 4px; display: block; }

.art { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: var(--card); display: block; box-shadow: 0 1px 3px rgba(15, 30, 46, .05); }
.art:hover { border-color: var(--line-o); box-shadow: 0 8px 22px rgba(15, 30, 46, .1); }
.art time { display: block; font-size: 12.5px; color: var(--accent-2); letter-spacing: 1px; margin-bottom: 8px; font-weight: 600; }
.art h3 { font-family: var(--head); font-size: 17.5px; font-weight: 600; margin: 8px 0; line-height: 1.5; color: var(--ink); }
.art p { font-size: 14px; color: var(--sub); }

.case-sec { padding: 44px 0 0; }
.case-box { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; padding: 30px 28px; box-shadow: 0 4px 16px rgba(15, 30, 46, .06); }
.case-box h2 { margin-bottom: 22px; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 34px; margin: 0; }
.case-grid dt { font-family: var(--head); font-size: 13px; letter-spacing: .5px; color: var(--accent-2); font-weight: 600; margin-bottom: 4px; }
.case-grid dd { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.7; }
.case-note { margin-top: 18px; font-size: 13.5px; color: var(--mut); }
.branches { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.branches b { font-family: var(--head); font-weight: 600; color: var(--ink); }
.branches ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 18px; }
.branches li { font-size: 14.5px; color: var(--sub); }
.branches li:before { content: "◆ "; color: var(--accent-2); font-size: 10px; vertical-align: 2px; }
@media(max-width:760px) { .case-grid { grid-template-columns: 1fr; } .case-box { padding: 24px 18px; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.c-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.c-item .ic { color: var(--accent-2); font-size: 20px; width: 28px; }
.c-item b { font-family: var(--head); font-size: 15px; font-weight: 600; display: block; color: var(--ink); }
.c-item a, .c-item span.v { color: var(--sub); font-size: 15px; }
.c-item a:hover { color: var(--accent); }
form .f { margin-bottom: 14px; }
form label { display: block; font-size: 13.5px; color: var(--sub); margin-bottom: 6px; font-weight: 500; }
form input, form textarea, form select { width: 100%; background: #fff; border: 1px solid rgba(15, 30, 46, .2); border-radius: 6px; color: var(--ink); font-family: var(--thai); font-size: 15px; padding: 12px 14px; }
form input:focus, form textarea:focus, form select:focus { outline: 2px solid rgba(27, 146, 196, .28); outline-offset: 1px; border-color: var(--accent); }
form .req { color: var(--accent-2); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:520px) { .f-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--mut); margin-top: 10px; }
.form-note a { color: var(--sub); text-decoration: underline; }
.form-ok { background: #eaf6ec; border: 1px solid #b5dcbc; color: #2c6b38; padding: 14px 16px; border-radius: 6px; font-size: 14.5px; margin-top: 14px; display: none; }
.form-ok a { color: #2c6b38; font-weight: 600; text-decoration: underline; }
.form-err { background: #fdecea; border: 1px solid #f3b7b1; color: #9c2d22; padding: 12px 14px; border-radius: 6px; }

footer {
  background: #0f1e2e;
  color: #cbd6e2;
  padding: 48px 0 30px;
  border-top: 4px solid var(--accent);
  border-image: linear-gradient(90deg, var(--accent) 0%, var(--accent) 65%, var(--accent-2) 65%, var(--accent-2) 100%) 1;
}
footer .logo-img { background: #fff; border-radius: 8px; padding: 4px; }
footer .logo-txt { color: #fff; }
footer .logo-txt small { color: #7CCDF0; }
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot h4 { font-family: var(--head); font-size: 13.5px; color: #7CCDF0; letter-spacing: 1.5px; margin-bottom: 12px; font-weight: 600; }
.foot a, .foot span { display: block; font-size: 13.5px; color: #a7b8c9; margin-bottom: 8px; }
.foot a:hover { color: #fff; }
.copy { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: #7e92a6; text-align: center; }

.page-hero { padding: 56px 0 42px; background: linear-gradient(135deg, #eaf3fb 0%, #f6f9fc 65%, #fdecec 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { color: var(--ink); }
.page-hero .sub { color: var(--sub) !important; }
.page-hero.on-img { color: #fff; border-bottom: none; min-height: 400px; display: flex; align-items: center; background-color: #0f1e2e; background-size: cover; background-position: center; background-repeat: no-repeat; }
.page-hero.on-img h1 { color: #fff; }
.page-hero.on-img .kicker { color: #7CCDF0; }
.page-hero.on-img .sub { color: #ffffffe6 !important; }
.page-hero.on-img .pyear { color: #fff; background: rgba(197, 48, 42, .85); }
.page-hero.proj-hero { padding: 0 0 34px; background: var(--bg-2); }
.proj-hero .ph-img { height: clamp(260px, 60vh, 580px); background: #0f1e2e; overflow: hidden; }
.proj-hero .ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-hero .wrap { padding-top: 30px; }
.proj-hero h1 { font-size: clamp(26px, 4vw, 40px); }
.proj-hero .sub { max-width: 860px; }
@media(max-width:640px) {
  .proj-hero .ph-img { height: 62vw; min-height: 220px; }
  .proj-hero .wrap { padding-top: 22px; }
}

.trust { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.trust .wrap { display: flex; align-items: center; gap: 14px 30px; flex-wrap: wrap; justify-content: center; }
.trust .t-label { font-family: var(--head); font-size: 12px; letter-spacing: 2px; color: var(--accent-2); text-transform: uppercase; font-weight: 600; }
.trust span.t-item { font-family: var(--head); font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.trust span.t-item:before { content: "◆ "; color: var(--accent); font-size: 10px; vertical-align: 2px; }
.trust span.t-item:nth-child(even):before { color: var(--accent-2); }

.pyear {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: .3px;
}
.pyear.red { color: var(--accent-2); background: var(--accent-2-soft); }
.pbody .more { display: inline-block; margin-top: 10px; margin-left: 8px; font-size: 13.5px; color: var(--accent-2); font-weight: 600; }
.pcard:hover .pbody .more { color: var(--accent); }

#scs-chat-hint {
  position: fixed;
  right: 92px;
  bottom: 34px;
  z-index: 89;
  background: #fff;
  color: var(--ink);
  font-family: var(--thai);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(15, 30, 46, .18);
  border: 1px solid var(--line-o);
  white-space: nowrap;
}
#scs-chat-hint b { color: var(--accent-2); }
@media(max-width:600px) {
  #scs-chat-hint { font-size: 12px; right: 84px; bottom: 30px; max-width: calc(100vw - 104px); overflow: hidden; text-overflow: ellipsis; }
}
#scs-chat-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 26px;
  box-shadow: 0 6px 22px rgba(197, 48, 42, .42);
  display: grid;
  place-items: center;
}
#scs-chat-btn:hover { background: var(--accent); }
#scs-chat {
  position: fixed;
  right: 22px;
  bottom: 94px;
  z-index: 91;
  width: 368px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 130px);
  background: #f6f9fc;
  border-radius: 14px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 44px rgba(15, 30, 46, .3);
  border: 1px solid var(--line-o);
}
#scs-chat.open { display: flex; }
.ch-head { background: linear-gradient(90deg, var(--accent-dark), var(--accent)); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.ch-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #b9ffcb; }
.ch-head b { font-family: var(--head); font-size: 15px; font-weight: 600; }
.ch-head small { display: block; font-size: 11.5px; color: #ffffffd9; }
.ch-head .x { margin-left: auto; background: none; border: none; color: #ffffffe6; font-size: 18px; cursor: pointer; }
.ch-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 12px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.msg.bot { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 3px; align-self: flex-start; }
.msg.me { background: var(--accent); color: #fff; border-bottom-right-radius: 3px; align-self: flex-end; }
.msg.typing { color: var(--mut); font-style: italic; background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.msg a { color: var(--accent-2); text-decoration: underline; font-weight: 600; word-break: break-all; }
.social { display: flex; gap: 10px; margin-top: 4px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; transition: transform .15s; }
.social a:hover { transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social .fb { background: #1877f2; }
.social .ig { background: radial-gradient(circle at 30% 107%, #fdf497, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social .tt { background: #111; }
.social .ln { background: #06c755; }
.ch-line { display: block; text-align: center; background: #06c755; color: #fff; font-size: 13.5px; font-weight: 600; padding: 9px; margin: 0 14px 8px; border-radius: 8px; }
.ch-in { display: flex; gap: 8px; padding: 12px 14px; background: #fff; border-top: 1px solid var(--line); }
.ch-in input { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px 16px; font-family: var(--thai); font-size: 14.5px; color: var(--ink); }
.ch-in input:focus { outline: none; border-color: var(--accent); }
.ch-in button { background: var(--accent-2); border: none; color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 17px; cursor: pointer; }

@media(max-width:900px) {
  .grid4, .why { grid-template-columns: repeat(2, 1fr); }
  .grid3, .contact-grid { grid-template-columns: 1fr; }
}
@media(max-width:760px) {
  .menu { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 10px 22px 16px; border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .nav-cta { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  section { padding: 54px 0; }
}

.article-body { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 2; color: var(--ink); }
.article-body p { margin: 0 0 18px; color: var(--sub); }
.article-body h2 { font-family: Prompt, sans-serif; font-size: 21px; font-weight: 600; margin: 34px 0 12px; color: var(--ink); }
.article-body ul { margin: 0 0 18px 24px; color: var(--sub); }
.article-body li { margin-bottom: 10px; }
.article-body b { color: var(--ink); font-weight: 600; }

.slider { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0f1e2e; aspect-ratio: 16 / 10; box-shadow: 0 10px 30px rgba(15, 30, 46, .14); }
.slider .sl { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity .8s ease; }
.slider .sl.on { opacity: 1; }
.slider .sl img { width: 100%; height: 100%; object-fit: cover; }
.slider .sl .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 20px 16px; background: linear-gradient(transparent, rgba(15, 30, 46, .88)); color: #fff; font-size: 14.5px; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.slider .arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; background: #ffffffe0; color: var(--ink); font-size: 18px; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.slider .arr:hover { background: #fff; }
.slider .arr.prev { left: 14px; }
.slider .arr.next { right: 14px; }
.sdots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.sdots button { width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer; background: var(--line); padding: 0; transition: background .2s, transform .2s; }
.sdots button.on { background: var(--accent-2); transform: scale(1.25); }
@media(max-width:760px) { .slider { aspect-ratio: 4 / 3; } .slider .arr { width: 36px; height: 36px; } }

.proc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.proc-step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px; }
.proc-step b { display: block; font-family: var(--head); font-size: 13px; letter-spacing: 2px; color: var(--accent); }
.proc-step h3 { font-family: var(--head); font-size: 17px; font-weight: 600; margin: 6px 0; color: var(--ink); }
.proc-step p { margin: 0; font-size: 14px; color: var(--sub); line-height: 1.7; }
.proc-step.key { border: 2px solid var(--accent-2); background: var(--accent-2-soft); }
.proc-step.key b { color: var(--accent-2); }
.proc-photos { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.proc-photos figure { margin: 0; }
.proc-photos .pimg { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.proc-photos img { width: 100%; height: 100%; object-fit: cover; }
.proc-photos figcaption { margin: 6px 0 0; font-size: 13px; color: var(--sub); }

/* ===== Homepage v2 (portfolio-first, SCS homepage layout) ===== */
.btn-lineapp { background: #06C755; color: #fff; box-shadow: 0 4px 14px rgba(6, 199, 85, .35); }
.btn-lineapp:hover { background: #05a948; transform: translateY(-1px); }
.hero-home { padding: 120px 0 110px; min-height: 560px; display: flex; align-items: center; }
.hero-home:before { background: linear-gradient(95deg, rgba(10, 24, 38, .72) 0%, rgba(10, 24, 38, .45) 55%, rgba(10, 24, 38, .15) 100%); }
.hero-home h1 { font-size: clamp(34px, 5.4vw, 60px); text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero-home h1 em { display: inline-block; margin-top: 6px; font-size: .5em; color: #fff; background: rgba(27, 146, 196, .88); padding: 4px 14px; border-radius: 6px; text-shadow: none; }
.hero-home .cta-row { margin-top: 26px; }
.home .sec-head h2 { margin-bottom: 0; }
.sec-head.row { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.more-link { color: var(--accent-2); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(15,30,46,.06); transition: transform .15s, box-shadow .15s; }
.wcard:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,30,46,.12); }
.wcard .wimg { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0f1e2e; }
.wcard .wimg img { width: 100%; height: 100%; object-fit: cover; }
.wcard .pchip { top: 8px; left: 8px; font-size: 11px; padding: 3px 9px; }
.wcard b { display: block; padding: 10px 12px; font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.35; }
.center { text-align: center; margin-top: 26px; }
.svc .card { text-align: center; padding: 22px 14px; display: block; }
.svc .ic { font-size: 34px; line-height: 1; }
.svc .card h3 { font-size: 17px; margin-top: 10px; }
.vone { max-width: 860px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(15,30,46,.12); }
.vone video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.why3 { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why3 li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 16px; font-size: 15px; color: var(--sub); }
.why3 li:nth-child(2) { border-left-color: var(--accent-2); }
.why3 b { color: var(--ink); }
.cta-photo h2 { color: #fff; }
.cta-photo .qr { display: inline-block; margin-top: 20px; background: #fff; padding: 8px; border-radius: 10px; }
.cta-photo .qr img { width: 110px; height: 110px; }
.cta-photo .addr { margin-top: 12px; font-size: 14px; color: #ffffffe0; }
@media(max-width:900px) { .wgrid { grid-template-columns: repeat(2, 1fr); } .why3 { grid-template-columns: 1fr; } }
@media(max-width:760px) {
  .hero.hero-home { padding: 0; height: min(calc(100svh - 62px), 782px); min-height: 540px; align-items: flex-end; }
  .hero-home .hero-bg img { object-position: center 75%; }
  .hero-home .wrap { padding-bottom: 46px; width: 100%; }
  .hero-home:before { background: linear-gradient(180deg, rgba(10,24,38,.05) 0%, rgba(10,24,38,.25) 40%, rgba(10,24,38,.85) 100%); }
  .hero-home h1 { font-size: 38px; }
  .hero-home h1 em { font-size: 16px; padding: 5px 10px; }
  .hero-home .cta-row { gap: 10px; margin-top: 20px; }
  .hero-home .cta-row .btn { flex: 1; text-align: center; padding: 13px 8px; font-size: 15px; white-space: nowrap; }
  .hero-home .hero-badges { margin-top: 14px; gap: 8px; }
  .hero-home .hero-badges span { font-size: 12.5px; padding: 5px 11px; }
  .wgrid { gap: 10px; }
  .wcard b { font-size: 13.5px; padding: 8px 10px; }
  .wcard .pchip { font-size: 10px; padding: 2px 7px; letter-spacing: .3px; }
  .svc { gap: 10px; }
  .svc .card { padding: 16px 8px; }
  .svc .card h3 { font-size: 15px; }
}

/* ===== Site-wide mobile tidy-up ===== */
@media(max-width:760px) {
  section { padding: 40px 0; }
  .sec-head { margin-bottom: 20px; }
  .sec-head h2 small { font-size: 13px; margin-top: 4px; }
  .kicker { font-size: 11px; letter-spacing: 1.6px; margin-bottom: 8px; }
  h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  .hero { padding: 48px 0 40px; }
  .hero p.sub { font-size: 15px; }
  .page-hero { padding: 32px 0 26px; }
  .page-hero.on-img { min-height: 260px; }
  .page-hero .sub { font-size: 14.5px; }
  .nav-in { height: 62px; }
  .menu { top: 62px; }
  .logo-img { width: 40px; height: 40px; }
  .logo-txt { font-size: 14px; }
  .logo-txt small { font-size: 9px; letter-spacing: 1px; }
  .trust { padding: 12px 0; }
  .trust .wrap { gap: 6px 14px; }
  .trust span.t-item { font-size: 13px; white-space: normal; }
  .card { padding: 18px 16px; }
  .btn { padding: 12px 18px; font-size: 14.5px; }
  footer { padding: 34px 0 90px; }
  #scs-chat-hint { display: none !important; }
  #scs-chat-btn { width: 50px; height: 50px; font-size: 22px; right: 14px; bottom: 14px; }
  #scs-chat { right: 10px; bottom: 74px; }
}

/* ===== Hero v3: bright civil-work photo, light overlay, chat never over content ===== */
.hero-home:before { background: linear-gradient(90deg, rgba(8, 22, 36, .62) 0%, rgba(8, 22, 36, .30) 45%, rgba(8, 22, 36, 0) 75%); }
.hero-home .hero-bg img { object-position: center 60%; }
.hero-home .kicker, .hero-home .hero-badges span { text-shadow: 0 1px 6px rgba(0,0,0,.5); }
@media(max-width:760px) {
  .hero-home:before { background: linear-gradient(180deg, rgba(8,22,36,0) 0%, rgba(8,22,36,0) 45%, rgba(8,22,36,.55) 72%, rgba(8,22,36,.78) 100%); }
  .hero-home .hero-bg img { object-position: center 40%; }
  .hero-home .wrap { padding-bottom: 76px; }
  .hero-home h1 { font-size: 36px; line-height: 1.25; }
  .hero-home h1 em { white-space: nowrap; font-size: 15.5px; }
  .hero-home .hero-badges span { background: rgba(8,22,36,.55); }
  #scs-chat-btn { width: 46px; height: 46px; font-size: 20px; right: 12px; bottom: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
  body { padding-bottom: 0; }
  footer { padding-bottom: 80px; }
}

/* chat hint pill removed everywhere: never covers content */
#scs-chat-hint { display: none !important; }

/* ===== Mobile fixed bottom contact bar (QC r3): replaces floating chat button on mobile ===== */
#scs-bar { display: none; }
@media(max-width:760px) {
  #scs-chat-btn { display: none !important; }
  #scs-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line-o); box-shadow: 0 -4px 16px rgba(15,30,46,.12);
  }
  #scs-bar a, #scs-bar button {
    display: flex; align-items: center; justify-content: center; gap: 6px; height: 56px;
    font-family: var(--thai); font-size: 15px; font-weight: 700; text-decoration: none;
    border: none; background: none; cursor: pointer; color: var(--ink);
  }
  #scs-bar .bb-call { background: #1B92C4; color: #fff; }
  #scs-bar .bb-line { background: #06C755; color: #fff; }
  #scs-bar .bb-chat { background: #C5302A; color: #fff; }
  body.has-scs-bar { padding-bottom: calc(56px + env(safe-area-inset-bottom)) !important; }
  body.has-scs-bar footer { padding-bottom: 28px; }
  .hero.hero-home { height: min(calc(100svh - 62px - 56px - env(safe-area-inset-bottom)), 782px); min-height: 520px; }
  .hero-home .wrap { padding-bottom: 28px; }
  #scs-chat { right: 8px; left: 8px; width: auto; max-width: none; bottom: calc(64px + env(safe-area-inset-bottom)); height: min(500px, calc(100svh - 150px)); max-height: none; }
}
