:root {
  --ink: #0E1A20;
  --hero: #26323A;
  --panel: #15252D;
  --panel-line: #33454E;
  --ground: #F3F4F0;
  --surface: #FFFFFF;
  --soft: #F9FAF7;
  --line: #D9DCD5;
  --text: #26323A;
  --muted: #4A5560;
  --on-dark: #B8C6CA;
  --accent: #00707A;
  --accent-dark: #004E55;
  --accent-soft: #E1EEEC;
  --amber: #F2A900;
  --amber-soft: #FBEFD2;
  --amber-ink: #8A5A00;
  --display: 'Chakra Petch', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --body: 'IBM Plex Sans Thai', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1280px;
  --pad: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--ground); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 8px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: #4A5E68; color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }

/* Top nav */
.topnav { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid #1F3038; }
.topnav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; }
.mainnav { display: flex; align-items: center; gap: 28px; }
.mainnav a:not(.btn) { color: #C9D4D7; text-decoration: none; font-size: 15px; }
.mainnav a:not(.btn):hover, .mainnav a[aria-current="page"] { color: #fff; }
.mainnav a[aria-current="page"] { font-weight: 600; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid #2C3F48; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }

/* Hero */
.hero { background: var(--hero); color: #fff; padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 58px); font-weight: 700; line-height: 1.28; }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.75; color: var(--on-dark); max-width: 620px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: #9FB0B5; }
.hero-contact a { color: #fff; text-decoration: none; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow-amber { color: var(--amber); }

/* Slider */
.slider { display: flex; flex-direction: column; gap: 14px; }
.slider-track { position: relative; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--panel-line); }
.slide { margin: 0; }
.slide-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.slide .img-ph { aspect-ratio: 16 / 10; background: #1B2C34; color: #7F939B; border: 0; border-radius: 0; }
.slide-link { display: block; }
.slide figcaption { padding: 16px 22px 20px; display: flex; flex-direction: column; gap: 2px; }
.slide-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.slide-title { font-family: var(--display); font-size: 21px; font-weight: 600; color: #fff; }
.slider-controls { display: flex; align-items: center; justify-content: space-between; }
.slider-dots, .slider-arrows { display: flex; gap: 6px; }
.dot { width: 40px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dot span { width: 12px; height: 6px; border-radius: 3px; background: #5A6E78; transition: width .2s, background .2s; }
.dot.is-active span { width: 28px; background: var(--amber); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #4A5E68; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.round-btn:hover { border-color: #fff; }

/* Placeholder image */
.img-ph { width: 100%; height: 100%; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #E7EAE4; color: #6B7780; font-size: 14px; }

/* Sections */
.section { padding: 104px 0; }
.section-tight { padding: 0 0 96px; }
.band-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-flush { border-top: 0; }
.band-dark { background: var(--ink); color: #fff; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3vw, 42px); }
.section-head.split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
.section-head.split > p { max-width: 460px; }
.section-head.center { align-items: center; text-align: center; }
.section-head.center > p { max-width: 640px; }
.rule-top { padding-top: 48px; border-top: 1px solid var(--line); }
.h2-sm { font-size: 26px !important; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Service cards */
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.svc-card h3 { font-size: 23px; font-weight: 600; }
.svc-card p { color: var(--muted); }
.svc-card ul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.9; color: var(--text); }
.svc-icon { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tone-amber .svc-icon { background: var(--amber-soft); color: var(--amber-ink); }
.tone-dark { background: var(--ink); border-color: var(--ink); }
.tone-dark h3 { color: #fff; }
.tone-dark p { color: var(--on-dark); }
.tone-dark ul { color: #E2E9EA; }
.tone-dark .svc-icon { background: #1E3139; color: #2BC4B6; }
.tone-dark .card-link { color: #2BC4B6; }
.card-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-link::after { content: ' ›'; }

/* Logos */
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.logo-grid li { height: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 16px; }
.logo-grid img { max-height: 56px; width: auto; object-fit: contain; }
.section-tight > .wrap > p.muted { margin-bottom: 20px; }

/* Plans */
.toggle { margin-top: 8px; display: inline-flex; gap: 4px; padding: 4px; background: #ECEEE8; border-radius: 999px; }
.toggle button { min-height: 44px; padding: 0 26px; border: 0; border-radius: 999px; background: transparent; font: 500 16px var(--body); color: var(--text); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.plans { align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 36px; background: var(--soft); display: flex; flex-direction: column; gap: 20px; }
.plan.is-featured { border: 2px solid var(--accent); background: var(--surface); }
.plan-flag { position: absolute; top: -15px; left: 36px; padding: 4px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
.plan h3 { font-size: 26px; font-weight: 600; }
.price { font-size: 16px; color: var(--muted); }
.price strong { font-family: var(--display); font-size: 38px; font-weight: 700; color: var(--ink); }
.price strong.price-text { font-size: 26px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.checks-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.plan .btn { margin-top: auto; }

/* Portfolio */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chips button { min-height: 44px; padding: 0 18px; border: 1px solid #C3C9C0; border-radius: 999px; background: var(--surface); font: 15px var(--body); color: var(--text); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.project { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--soft); display: flex; flex-direction: column; }
.project[hidden] { display: none; }
.project-img { position: relative; aspect-ratio: 16 / 10; background: #E7EAE4; border-bottom: 1px solid var(--line); }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-tag { position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.project-body h3 { font-size: 20px; font-weight: 600; line-height: 1.4; }
.project-client { font-weight: 500; color: var(--text); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #E2E5DF; }
.gallery figure.is-big { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: rgba(14, 26, 32, .88); color: #fff; font-size: 14px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { padding-top: 24px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.steps li.is-last { border-color: var(--accent); }
.steps li.is-last .num { color: var(--accent); }
.steps h3 { font-size: 22px; font-weight: 600; }
.steps p { color: var(--muted); }
.num { font-family: var(--mono); font-size: 15px; color: var(--muted); }

/* Quote */
.quote-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.quote-copy { display: flex; flex-direction: column; gap: 22px; }
.quote-copy h2 { font-size: clamp(30px, 3vw, 44px); color: #fff; }
.quote-copy > p { color: var(--on-dark); font-size: 17px; }
.contact-list { margin: 0; padding-top: 24px; border-top: 1px solid #26383F; display: flex; flex-direction: column; gap: 16px; }
.contact-list dt { font-size: 14px; color: #9FB0B5; }
.contact-list dd { margin: 0; font-size: 20px; font-weight: 600; }
.contact-list a { color: #fff; text-decoration: none; }
.form-card { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.detail-side .form-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.qform { display: flex; flex-direction: column; gap: 18px; }
.qform label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.qform input:not([type="checkbox"]), .qform select, .qform textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #C3C9C0; border-radius: 8px; font: 400 16px var(--body); color: var(--ink); background: #fff; }
.qform textarea { padding: 12px 14px; line-height: 1.6; resize: vertical; }
.qform input:focus, .qform select:focus, .qform textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.chipset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chipset legend { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; padding: 0; }
.chip { position: relative; flex-direction: row !important; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #C3C9C0; border-radius: 999px; font-weight: 500; cursor: pointer; background: #fff; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.chip input:checked + span::before { content: '✓'; margin-right: 6px; }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; color: var(--muted); }
label.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 12px 14px; border-radius: 8px; background: #FDECEA; color: #8C1D13; font-size: 14px; }
.sent { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.sent-sm { min-height: 260px; }
.sent h3 { font-size: 28px; }
.sent p { max-width: 420px; color: var(--muted); }
.sent-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }

/* Service detail */
.hero-sub { padding: 48px 0 80px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: #9FB0B5; margin-bottom: 36px; }
.crumbs a { color: #9FB0B5; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }
.hero-grid-sub { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; }
.hero-sub h1 { font-size: clamp(30px, 3.6vw, 52px); }
.spec-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--panel-line); border: 1px solid var(--panel-line); border-radius: 14px; overflow: hidden; }
.spec-grid div { background: var(--panel); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.spec-grid dt { font-family: var(--mono); font-size: 13px; color: #9FB0B5; text-transform: uppercase; letter-spacing: .06em; }
.spec-grid dd { margin: 0; font-size: 17px; font-weight: 600; color: #fff; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 72px; }
.block { display: flex; flex-direction: column; gap: 24px; }
.block > h2 { font-size: 34px; }
.scope-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.scope-card h3 { font-family: var(--body); font-size: 18px; font-weight: 600; }
.scope-card p { font-size: 15px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.timeline li div { display: flex; flex-direction: column; gap: 4px; }
.timeline strong { font-size: 18px; }
.timeline span:not(.num) { font-size: 15px; color: var(--muted); }
.panel { padding: 36px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq { border-top: 1px solid var(--line); }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq summary { font-size: 18px; font-weight: 600; cursor: pointer; min-height: 32px; }
.faq details p { margin-top: 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare thead th { background: var(--ink); color: #fff; font-family: var(--display); font-size: 19px; font-weight: 600; text-align: left; padding: 18px 24px; }
.compare tbody th, .compare td { text-align: left; padding: 18px 24px; border-top: 1px solid var(--line); }
.compare td { color: var(--muted); }
.detail-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.other-svc { background: var(--ink); border-radius: 16px; padding: 24px 28px; display: flex; flex-direction: column; }
.other-svc h2 { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--amber); font-weight: 500; margin-bottom: 8px; }
.other-svc a { color: #fff; text-decoration: none; padding: 12px 0; border-bottom: 1px solid #26383F; display: flex; justify-content: space-between; }
.other-svc a:last-child { border-bottom: 0; }
.other-svc a::after { content: '›'; color: #9FB0B5; }

/* Footer */
.footer { background: #09131A; color: #B8C6CA; padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer-about { display: flex; flex-direction: column; gap: 14px; }
.footer-about p { font-size: 15px; color: #9FB0B5; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col h2 { font-family: var(--body); font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.footer-col a { color: #B8C6CA; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #1F3038; font-size: 14px; color: #8497A0; }

/* Responsive */
@media (max-width: 1100px) {
  .mainnav { gap: 18px; }
  .hero-grid, .hero-grid-sub, .quote-grid, .detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .detail-side { position: static; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .mainnav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 20px; border-bottom: 1px solid #1F3038; }
  .mainnav.is-open { display: flex; }
  .mainnav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid #1F3038; font-size: 16px; }
  .mainnav .btn { margin-top: 14px; }
  .topnav-inner { position: relative; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-tight { padding-bottom: 64px; }
  .hero { padding: 48px 0 56px; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .chips { justify-content: flex-start; }
  .grid-3, .grid-2, .fgrid, .checks-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-grid li { height: 76px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .form-card { padding: 24px; }
  .plan, .svc-card, .panel { padding: 24px; }
  .actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .block > h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
