:root {
  --brand-navy: #1d4a6b;
  --brand-mint: #6dc7ae;
  --brand-gray: #dadadc;
  --brand-warm: #fef8f8;
  --navy-950: #173d59;
  --navy-900: #1d4a6b;
  --navy-800: #245b82;
  --solar-500: #6dc7ae;
  --solar-400: #86d1bc;
  --ink-950: #17232c;
  --ink-800: #31404a;
  --ink-600: #64717a;
  --ink-500: #7f898f;
  --line-200: #dadadc;
  --line-100: #ecebed;
  --surface-50: #f5f4f5;
  --surface-warm: #fef8f8;
  --white: #ffffff;
  --success: #167a54;
  --danger: #b42318;
  --container: 1280px;
  --container-narrow: 980px;
  --header-h: 76px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-soft: 0 18px 50px rgba(6, 26, 48, 0.08);
  --shadow-input: 0 0 0 4px rgba(29, 74, 107, 0.07);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--white); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink-950);
  background: var(--white);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: rgba(109, 199, 174, .32); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--navy-950);
  color: white;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 96px), var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(calc(100% - 96px), var(--container-narrow)); margin-inline: auto; }
.section { padding: 112px 0; }
.section--compact { padding: 76px 0; }
.section--surface { background: var(--surface-50); }
.section--warm { background: var(--surface-warm); }
.section--navy { background: var(--navy-950); color: var(--white); }
.section-rule { border-top: 1px solid var(--line-200); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.section--navy .eyebrow { color: var(--solar-400); }
.display {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.6rem, 5vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 720;
}
.h1 {
  margin: 0;
  font-size: clamp(2.45rem, 4.2vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 720;
}
.h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 700;
}
.h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 700;
}
.lead {
  margin: 22px 0 0;
  max-width: 760px;
  color: var(--ink-600);
  font-size: clamp(1.06rem, 1.3vw, 1.24rem);
  line-height: 1.75;
}
.section--navy .lead { color: rgba(255,255,255,.72); }
.muted { color: var(--ink-600); }
.small { font-size: .88rem; }
.kicker-row { display:flex; align-items:end; justify-content:space-between; gap:32px; margin-bottom: 48px; }
.kicker-row .lead { max-width: 560px; margin: 0; }

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .96rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(245,181,27,.42); outline-offset: 3px; }
.btn--primary { background: var(--solar-500); color: var(--navy-950); }
.btn--primary:hover { background: var(--solar-400); }
.btn--dark { background: var(--navy-900); color: white; }
.btn--ghost { border-color: rgba(8,43,85,.22); background: transparent; color: var(--navy-900); }
.section--navy .btn--ghost { color: white; border-color: rgba(255,255,255,.3); }
.text-link { display:inline-flex; align-items:center; gap:8px; color:var(--navy-900); font-weight:700; }
.text-link::after { content:''; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(4px); }
.section--navy .text-link { color: white; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(227,231,236,.9);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { display:flex; align-items:center; gap:12px; min-width:0; }
.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  display:grid;
  place-items:center;
  border: 2px solid var(--navy-950);
  color: var(--navy-950);
  font-size: 14px;
  font-weight: 900;
  letter-spacing:-.03em;
}
.brand-copy { line-height:1.05; min-width:0; }
.brand-copy strong { display:block; font-size: 14px; letter-spacing:.01em; white-space:nowrap; }
.brand-copy span { display:block; margin-top:5px; color:var(--ink-500); font-size:10px; letter-spacing:.12em; }
.desktop-nav { display:flex; align-items:center; justify-content:center; gap: 30px; }
.desktop-nav a { position:relative; font-size:.93rem; font-weight:620; color:var(--ink-800); white-space:nowrap; }
.desktop-nav a::after { content:''; position:absolute; left:0; right:100%; bottom:-9px; height:2px; background:var(--navy-900); transition:right .2s ease; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { right:0; }
.header-actions { display:flex; align-items:center; gap:9px; }
.lang-switch {
  height: 44px;
  min-width: 52px;
  border: 1px solid var(--line-200);
  background: white;
  border-radius: var(--radius-xs);
  font-weight: 750;
  cursor:pointer;
}
.menu-toggle { display:none; width:46px; height:46px; border:1px solid var(--line-200); background:white; border-radius:var(--radius-xs); cursor:pointer; }
.menu-toggle span { display:block; width:19px; height:2px; background:var(--navy-950); margin:4px auto; }
.mobile-panel { display:none; }

.hero { padding: 54px 0 78px; }
.hero-grid {
  display:grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(42px, 6vw, 92px);
  align-items:center;
}
.hero-copy { padding: 38px 0; }
.hero-copy .lead { max-width: 690px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }
.hero-note { margin:18px 0 0; max-width:580px; color:var(--ink-500); font-size:.91rem; }
.hero-media { position:relative; }
.media-frame {
  --media-ratio: 16 / 10;
  position:relative;
  overflow:hidden;
  aspect-ratio: var(--media-ratio);
  border-radius: var(--radius-sm);
  background:#dfe8ee;
}
.media-frame img { width:100%; height:100%; object-fit:cover; }
.hero-media .media-frame { --media-ratio: 16 / 11; }
.media-caption {
  position:absolute;
  right:-18px;
  bottom:-18px;
  width:min(310px, 64%);
  padding:18px 20px;
  background:var(--navy-950);
  color:white;
  border-top: 4px solid var(--solar-500);
  box-shadow: var(--shadow-soft);
}
.media-caption strong { display:block; font-size:1rem; }
.media-caption span { display:block; margin-top:5px; font-size:.82rem; color:rgba(255,255,255,.68); }

.trust-strip { background:var(--navy-950); color:white; }
.trust-grid { display:grid; grid-template-columns: repeat(3,1fr); }
.trust-item { padding:30px 34px; border-right:1px solid rgba(255,255,255,.13); }
.trust-item:first-child { padding-left:0; }
.trust-item:last-child { border-right:0; }
.trust-value { display:block; color:var(--solar-400); font-size:clamp(1.55rem, 2.5vw, 2.3rem); font-weight:800; line-height:1.1; }
.trust-label { display:block; margin-top:8px; color:rgba(255,255,255,.73); font-size:.9rem; }

.card-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution-card, .project-card {
  border:1px solid var(--line-200);
  background:white;
  border-radius:var(--radius-sm);
  overflow:hidden;
  transition: transform .22s var(--ease), border-color .22s ease, box-shadow .22s ease;
}
.solution-card:hover, .project-card:hover { transform:translateY(-3px); border-color:#cdd4dc; box-shadow:0 18px 46px rgba(6,26,48,.07); }
.solution-card .media-frame, .project-card .media-frame { border-radius:0; --media-ratio: 16 / 10; }
.card-body { padding:28px; }
.card-body p { margin:12px 0 22px; color:var(--ink-600); }
.card-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.meta-chip { padding:5px 9px; background:var(--surface-50); border:1px solid var(--line-200); border-radius:3px; font-size:.76rem; color:var(--ink-600); font-weight:700; }

.feature-projects { display:grid; grid-template-columns: 1.45fr .75fr; gap:20px; }
.feature-stack { display:grid; gap:20px; }
.project-card--featured .media-frame { --media-ratio: 16 / 10; }
.feature-stack .project-card { display:block; }
.feature-stack .project-card .media-frame { --media-ratio: 16 / 10; }

.value-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:1px; background:var(--line-200); border:1px solid var(--line-200); }
.value-item { background:white; padding:40px; min-height:220px; }
.value-index { display:block; margin-bottom:36px; color:var(--solar-500); font-size:.8rem; font-weight:900; letter-spacing:.12em; }
.value-item p { margin:12px 0 0; color:var(--ink-600); }

.process-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:0; margin-top:50px; border-top:1px solid rgba(255,255,255,.2); }
.process-item { position:relative; padding:32px 30px 0 0; }
.process-item::before { content:''; position:absolute; width:9px; height:9px; top:-5px; left:0; background:var(--solar-500); border-radius:50%; }
.process-number { color:var(--solar-400); font-size:.78rem; font-weight:900; letter-spacing:.12em; }
.process-item h3 { margin:17px 0 8px; font-size:1.25rem; }
.process-item p { margin:0; color:rgba(255,255,255,.66); font-size:.92rem; }

.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items:center; }
.split--top { align-items:start; }
.bullet-list { list-style:none; margin:30px 0 0; padding:0; border-top:1px solid var(--line-200); }
.bullet-list li { display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--line-200); color:var(--ink-800); }
.bullet-list li::before { content:''; color:var(--navy-900); font-weight:900; }
.number-list { list-style:none; margin:40px 0 0; padding:0; counter-reset:item; }
.number-list li { counter-increment:item; display:grid; grid-template-columns:48px 1fr; gap:16px; padding:22px 0; border-top:1px solid var(--line-200); }
.number-list li::before { content:'0' counter(item); color:var(--navy-900); font-weight:900; font-size:.84rem; letter-spacing:.08em; }
.number-list li:last-child { border-bottom:1px solid var(--line-200); }

.page-hero { padding:84px 0 72px; border-bottom:1px solid var(--line-200); }
.page-hero .lead { max-width:800px; }
.breadcrumb { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px; color:var(--ink-500); font-size:.84rem; }
.breadcrumb a:hover { color:var(--navy-900); }

.system-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; margin-top:42px; }
.system-card { padding:34px; border:1px solid var(--line-200); background:white; min-height:260px; }
.system-icon { width:48px; height:48px; display:grid; place-items:center; border:1px solid var(--line-200); background:var(--surface-50); margin-bottom:34px; font-weight:900; color:var(--navy-900); }
.system-card p { color:var(--ink-600); margin:13px 0 0; }
.service-list { display:grid; grid-template-columns:repeat(2,1fr); border-top:1px solid var(--line-200); margin-top:38px; }
.service-list div { padding:22px 0; border-bottom:1px solid var(--line-200); display:flex; gap:16px; align-items:flex-start; }
.service-list div:nth-child(odd) { padding-right:28px; }
.service-list div:nth-child(even) { padding-left:28px; border-left:1px solid var(--line-200); }
.service-list span:first-child { color:var(--solar-500); font-weight:900; }

.faq { border-top:1px solid var(--line-200); margin-top:38px; }
.faq details { border-bottom:1px solid var(--line-200); }
.faq summary { list-style:none; cursor:pointer; padding:24px 46px 24px 0; font-weight:750; position:relative; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:'+'; position:absolute; right:0; top:20px; font-size:1.5rem; color:var(--navy-900); }
.faq details[open] summary::after { content:'−'; }
.faq p { margin:0; padding:0 0 24px; color:var(--ink-600); max-width:780px; }

.project-filters { display:flex; flex-wrap:wrap; gap:8px; margin:34px 0; }
.filter-btn { min-height:42px; padding:8px 15px; background:white; border:1px solid var(--line-200); border-radius:4px; cursor:pointer; font-weight:700; }
.filter-btn[aria-pressed="true"] { background:var(--navy-950); color:white; border-color:var(--navy-950); }
.projects-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.projects-grid .project-card[hidden] { display:none; }

.case-hero { display:grid; grid-template-columns: .78fr 1.22fr; gap:50px; align-items:end; }
.case-specs { display:grid; grid-template-columns:repeat(2,1fr); margin-top:32px; border-top:1px solid var(--line-200); }
.case-spec { padding:17px 12px 17px 0; border-bottom:1px solid var(--line-200); }
.case-spec span { display:block; color:var(--ink-500); font-size:.8rem; }
.case-spec strong { display:block; margin-top:3px; }
.case-content { display:grid; grid-template-columns: .7fr 1.3fr; gap:70px; }
.case-index { position:sticky; top:110px; align-self:start; }
.case-index a { display:block; padding:10px 0; color:var(--ink-600); border-bottom:1px solid var(--line-200); }
.case-block { padding-bottom:60px; margin-bottom:60px; border-bottom:1px solid var(--line-200); }
.case-block p { color:var(--ink-600); font-size:1.06rem; }
.case-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-200); border:1px solid var(--line-200); margin-top:28px; }
.case-metric { background:var(--surface-50); padding:24px; }
.case-metric strong { display:block; font-size:1.5rem; color:var(--navy-900); }
.case-metric span { display:block; color:var(--ink-500); font-size:.8rem; margin-top:4px; }
.prototype-note { padding:15px 18px; border-left:3px solid var(--solar-500); background:#fff8e7; color:#6d5414; font-size:.88rem; }

.standard-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:40px; }
.standard-card { padding:32px; border:1px solid var(--line-200); background:white; }
.standard-card strong { color:var(--navy-900); }
.standard-card p { margin:8px 0 0; color:var(--ink-600); }

.about-story { display:grid; grid-template-columns: repeat(3,1fr); gap:1px; background:var(--line-200); border:1px solid var(--line-200); margin-top:42px; }
.about-story article { background:white; padding:36px; }
.about-story .number { color:var(--solar-500); font-weight:900; font-size:.8rem; letter-spacing:.1em; }
.about-story p { color:var(--ink-600); }
.location-panel { display:grid; grid-template-columns: 1fr 1fr; gap:0; background:var(--navy-950); color:white; }
.location-panel > div { padding:54px; }
.location-art { min-height:360px; background:url('/assets/surin-engineering.svg') center/cover no-repeat; }

.contact-grid { display:grid; grid-template-columns: .72fr 1.28fr; gap:70px; align-items:start; }
.contact-methods { margin-top:32px; border-top:1px solid var(--line-200); }
.contact-method { padding:18px 0; border-bottom:1px solid var(--line-200); display:grid; grid-template-columns:92px 1fr; gap:18px; }
.contact-method span { color:var(--ink-500); font-size:.85rem; }
.contact-method strong { color:var(--navy-900); overflow-wrap:anywhere; }

.lead-shell {
  position:relative;
  background:var(--surface-warm);
  border:1px solid #e7e3d9;
  border-radius:var(--radius-lg);
  padding: clamp(26px, 4vw, 46px);
  box-shadow: 0 22px 70px rgba(6,26,48,.07);
}
.lead-shell::before {
  content:'';
  position:absolute;
  top:0;
  left:30px;
  right:30px;
  height:3px;
  background:var(--solar-500);
}
.lead-head { max-width:700px; margin-bottom:30px; }
.lead-head p { color:var(--ink-600); margin:8px 0 0; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.field { display:flex; flex-direction:column; gap:8px; }
.field--full { grid-column:1/-1; }
.field label, .field-label { font-size:.88rem; font-weight:750; color:var(--ink-800); }
.req { color:var(--danger); }
.input,
.select,
.remark-box {
  width:100%;
  border:1px solid #dfe3e8;
  background:rgba(255,255,255,.88);
  color:var(--ink-950);
  border-radius:10px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease, min-height .25s var(--ease);
}
.input, .select { min-height:56px; padding:0 16px; }
.input::placeholder, .remark-box::placeholder { color:#9aa3ad; }
.input:hover, .select:hover, .remark-box:hover { border-color:#c5ccd4; }
.input:focus, .select:focus, .remark-box:focus { border-color:var(--navy-900); box-shadow:var(--shadow-input); background:white; }
.remark-wrap { position:relative; }
.remark-box { min-height:78px; max-height:210px; resize:vertical; padding:17px 18px 38px; line-height:1.65; }
.remark-box:focus, .remark-box:not(:placeholder-shown) { min-height:146px; }
.remark-meta { position:absolute; right:14px; bottom:10px; color:var(--ink-500); font-size:.76rem; pointer-events:none; }
.suggestion-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.suggestion { border:1px solid #ddd8cb; background:#fff; border-radius:999px; padding:7px 12px; font-size:.8rem; color:var(--ink-600); cursor:pointer; transition:background .18s ease, border-color .18s ease, color .18s ease; }
.suggestion:hover { background:#fff8e8; border-color:#e6c86f; color:var(--ink-950); }
.interest-grid { display:flex; flex-wrap:wrap; gap:9px; margin-top:4px; }
.interest-chip { position:relative; cursor:pointer; }
.interest-chip input { position:absolute; opacity:0; pointer-events:none; }
.interest-chip span { min-height:43px; display:inline-flex; align-items:center; padding:8px 13px; border:1px solid #dfe3e8; background:white; border-radius:8px; font-size:.86rem; font-weight:680; transition:all .16s ease; }
.interest-chip input:checked + span { background:var(--navy-950); color:white; border-color:var(--navy-950); box-shadow:0 7px 18px rgba(6,26,48,.13); }
.interest-chip input:focus-visible + span { outline:3px solid rgba(245,181,27,.4); outline-offset:2px; }
.field-help { color:var(--ink-500); font-size:.78rem; }
.consent { display:flex; gap:11px; align-items:flex-start; margin-top:4px; color:var(--ink-600); font-size:.82rem; }
.consent input { margin-top:4px; width:18px; height:18px; accent-color:var(--navy-900); }
.consent a { text-decoration:underline; text-underline-offset:2px; }
.form-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:26px; }
.form-status { min-height:24px; color:var(--ink-600); font-size:.84rem; }
.form-status.error { color:var(--danger); }
.turnstile-slot { min-height:0; margin-top:12px; }
.form-success { display:none; padding:42px 0 8px; }
.form-success.is-visible { display:block; }
.form-success-icon { width:52px; height:52px; display:grid; place-items:center; border-radius:50%; background:#e7f5ef; color:var(--success); font-weight:900; margin-bottom:20px; }
.form-success p { color:var(--ink-600); max-width:650px; }
.form-success-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }

.ask-dock {
  position:fixed;
  right:max(22px, env(safe-area-inset-right));
  bottom:max(22px, env(safe-area-inset-bottom));
  z-index:90;
  width:min(500px, calc(100vw - 44px));
  background:rgba(255,255,255,.97);
  border:1px solid rgba(8,43,85,.15);
  border-radius:12px;
  box-shadow:0 18px 55px rgba(6,26,48,.16);
  backdrop-filter:blur(15px);
  transition:transform .25s var(--ease), box-shadow .25s ease;
}
.ask-dock:focus-within { transform:translateY(-2px); box-shadow:0 22px 64px rgba(6,26,48,.2); }
.ask-top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 14px 0; color:var(--ink-500); font-size:.72rem; font-weight:800; letter-spacing:.05em; }
.ask-top span:last-child { color:#16834d; }
.ask-form { display:grid; grid-template-columns:1fr auto; gap:8px; padding:8px; }
.ask-input { min-width:0; height:48px; border:0; background:transparent; outline:none; padding:0 8px; color:var(--ink-950); }
.ask-input::placeholder { color:#8b949e; }
.ask-send { min-width:52px; height:48px; border:0; border-radius:8px; background:var(--navy-950); color:white; cursor:pointer; font-weight:800; }
.ask-toast { display:none; padding:0 14px 12px; color:var(--ink-500); font-size:.78rem; }
.ask-toast.show { display:block; }

.final-cta { padding:86px 0; background:var(--solar-500); color:var(--navy-950); }
.final-cta-inner { display:flex; align-items:end; justify-content:space-between; gap:50px; }
.final-cta .lead { color:rgba(6,26,48,.72); }
.final-cta .btn--dark { flex:0 0 auto; }

.site-footer { background:#061522; color:white; padding:72px 0 28px; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:48px; }
.footer-brand p { max-width:390px; color:rgba(255,255,255,.62); font-size:.9rem; }
.footer-col h3 { margin:0 0 18px; font-size:.84rem; text-transform:uppercase; letter-spacing:.1em; color:rgba(255,255,255,.48); }
.footer-col a, .footer-col span { display:block; margin:9px 0; color:rgba(255,255,255,.78); font-size:.9rem; }
.footer-col a:hover { color:white; }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:60px; padding-top:24px; border-top:1px solid rgba(255,255,255,.12); color:rgba(255,255,255,.5); font-size:.78rem; }
.footer-legal { display:flex; flex-wrap:wrap; gap:20px; }

.legal { width:min(calc(100% - 96px), 900px); margin:0 auto; padding:90px 0 120px; }
.legal article { margin-top:42px; padding-top:32px; border-top:1px solid var(--line-200); }
.legal p { color:var(--ink-600); font-size:1.03rem; }

@media (max-width: 1120px) {
  .container, .container--narrow { width:min(calc(100% - 64px), var(--container)); }
  .header-inner { grid-template-columns:190px 1fr auto; gap:18px; }
  .desktop-nav { gap:19px; }
  .desktop-nav a { font-size:.86rem; }
  .header-actions .btn { display:none; }
  .hero-grid { gap:44px; }
  .feature-projects { grid-template-columns:1fr 1fr; }
  .feature-stack .project-card { display:block; }
  .feature-stack .project-card .media-frame { aspect-ratio:16/10; min-height:0; }
  .contact-grid { grid-template-columns:.85fr 1.15fr; gap:44px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .container, .container--narrow { width:min(calc(100% - 48px), var(--container)); }
  .section { padding:82px 0; }
  .section--compact { padding:62px 0; }
  .desktop-nav, .header-actions .btn { display:none; }
  .header-inner { grid-template-columns:1fr auto; }
  .header-actions { grid-column:2; }
  .menu-toggle { display:block; }
  .header-actions { display:flex; }
  .mobile-panel {
    position:fixed;
    inset:var(--header-h) 0 0;
    background:white;
    padding:24px;
    overflow:auto;
    z-index:99;
  }
  .mobile-panel.is-open { display:block; }
  .mobile-nav a { display:flex; align-items:center; justify-content:space-between; min-height:58px; border-bottom:1px solid var(--line-200); font-size:1.08rem; font-weight:700; }
  .mobile-nav a::after { content:''; width:15px; height:15px; background:currentColor; -webkit-mask:url('/icons/arrow-right.svg') center/contain no-repeat; mask:url('/icons/arrow-right.svg') center/contain no-repeat; color:var(--ink-500); }
  .mobile-cta { margin-top:24px; width:100%; }
  .hero { padding:36px 0 64px; }
  .hero-grid, .split, .case-hero, .case-content, .contact-grid { grid-template-columns:1fr; }
  .hero-copy { padding:12px 0 0; }
  .hero-media { max-width:760px; }
  .media-caption { right:14px; bottom:14px; }
  .trust-grid { grid-template-columns:1fr 1fr 1fr; }
  .trust-item { padding:24px 18px; }
  .card-grid, .projects-grid { grid-template-columns:repeat(2,1fr); }
  .feature-projects { grid-template-columns:1fr; }
  .feature-stack { grid-template-columns:1fr 1fr; }
  .feature-stack .project-card { display:block; }
  .process-grid { grid-template-columns:repeat(2,1fr); row-gap:34px; }
  .system-grid { grid-template-columns:1fr; }
  .standard-grid { grid-template-columns:1fr; }
  .about-story { grid-template-columns:1fr; }
  .location-panel { grid-template-columns:1fr; }
  .location-art { min-height:300px; }
  .case-index { position:static; }
  .footer-grid { grid-template-columns:1.5fr 1fr 1fr; }
  .footer-brand { grid-column:1/-1; }
  .kicker-row, .final-cta-inner { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 640px) {
  .container, .container--narrow, .legal { width:min(calc(100% - 36px), var(--container)); }
  .section { padding:64px 0; }
  .section--compact { padding:52px 0; }
  .page-hero { padding:58px 0 52px; }
  .brand-copy strong { font-size:12px; }
  .brand-copy span { display:none; }
  .brand-mark { width:34px; }
  .lang-switch { min-width:46px; height:42px; }
  .menu-toggle { width:42px; height:42px; }
  .display, .h1 { letter-spacing:-.035em; }
  .hero-grid { gap:28px; }
  .hero-media .media-frame { --media-ratio: 4 / 3; }
  .media-caption { position:relative; right:auto; bottom:auto; width:100%; border-top-width:3px; }
  .trust-grid { grid-template-columns:1fr; }
  .trust-item, .trust-item:first-child { padding:20px 0; border-right:0; border-bottom:1px solid rgba(255,255,255,.12); }
  .trust-item:last-child { border-bottom:0; }
  .card-grid, .projects-grid, .feature-stack { grid-template-columns:1fr; }
  .solution-card .media-frame, .project-card .media-frame, .feature-stack .project-card .media-frame { --media-ratio: 16 / 10; aspect-ratio:16/10; }
  .value-grid, .case-metrics { grid-template-columns:1fr; }
  .value-item { min-height:auto; padding:30px 24px; }
  .value-index { margin-bottom:20px; }
  .process-grid { grid-template-columns:1fr; }
  .process-item { padding-right:0; }
  .service-list { grid-template-columns:1fr; }
  .service-list div:nth-child(odd), .service-list div:nth-child(even) { padding-left:0; padding-right:0; border-left:0; }
  .case-specs { grid-template-columns:1fr; }
  .location-panel > div { padding:36px 24px; }
  .form-grid { grid-template-columns:1fr; }
  .field--full { grid-column:auto; }
  .lead-shell { border-radius:12px; padding:26px 18px; }
  .form-actions { flex-direction:column; align-items:stretch; }
  .form-actions .btn { width:100%; }
  .ask-dock { right:12px; left:12px; width:auto; bottom:max(12px, env(safe-area-inset-bottom)); }
  .ask-top { padding-top:9px; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
  .footer-brand { grid-column:1/-1; }
  .footer-bottom { flex-direction:column; align-items:flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}


/* =========================================================
   v0.2 - Modern Engineering Corporate refinement
   Stable image ratios, calm typography, Tesla-like ask bar,
   lightweight consent UI and production content slots.
   ========================================================= */

html {
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
    "Noto Sans Thai", "Leelawadee UI", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.008em;
  font-feature-settings: "kern" 1, "liga" 1;
}

.h1, .h2, .h3, .display {
  font-family: inherit;
  text-wrap: balance;
}

.h1 { font-weight: 660; letter-spacing: -0.038em; }
.h2 { font-weight: 650; letter-spacing: -0.032em; }
.h3 { font-weight: 620; letter-spacing: -0.018em; }
.lead { font-weight: 400; letter-spacing: -0.01em; }
.eyebrow { font-weight: 700; letter-spacing: .115em; }
.desktop-nav a { font-weight: 560; }
.btn { font-weight: 620; }

.site-header {
  background: rgba(255,255,255,.94);
  border-bottom-color: rgba(15,36,56,.09);
  backdrop-filter: saturate(140%) blur(14px);
}
.brand--logo { width: 186px; min-width: 0; }
.brand-logo-image {
  width: 100%;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}
.footer-logo {
  width: min(290px, 100%);
  background: white;
  border-radius: 4px;
  padding: 2px 8px;
}
.footer-logo .brand-logo-image { height: 68px; }

.hero--editorial { padding-top: 48px; }
.hero--editorial .hero-grid { grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); }
.hero--editorial .hero-copy { max-width: 680px; }
.hero--editorial .h1 { font-size: clamp(2.7rem, 4.6vw, 5rem); }
.hero--editorial .lead { max-width: 650px; }
.media-frame--hero,
.hero-media .media-frame {
  --media-ratio: 16 / 10;
  aspect-ratio: 16 / 10;
}
.media-caption--calm {
  right: 18px;
  bottom: 18px;
  width: min(360px, 68%);
  border-top: 0;
  border-left: 3px solid var(--solar-500);
  border-radius: 3px;
  box-shadow: 0 14px 34px rgba(6,26,48,.12);
}
.photo-slot-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 4px;
  background: rgba(6,26,48,.82);
  color: rgba(255,255,255,.92);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .01em;
  backdrop-filter: blur(8px);
}

.kicker-row--balanced { align-items: end; }
.section-link-row { margin-top: 28px; }

.solution-offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
.solution-offer {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-200);
  border-radius: 8px;
  background: #fff;
  transition: transform .22s var(--ease), border-color .22s ease, box-shadow .22s ease;
}
.solution-offer:hover {
  transform: translateY(-2px);
  border-color: #cbd2d9;
  box-shadow: 0 18px 42px rgba(6,26,48,.065);
}
.solution-offer a { display: block; height: 100%; }
.solution-offer-media {
  --media-ratio: 16 / 10;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}
.solution-offer-body { padding: 22px 22px 24px; }
.solution-offer-eyebrow {
  margin: 0 0 9px;
  color: var(--navy-800);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .09em;
}
.solution-offer-body .h3 { font-size: clamp(1.15rem, 1.45vw, 1.48rem); }
.solution-offer-body > p:not(.solution-offer-eyebrow) {
  margin: 10px 0 20px;
  color: var(--ink-600);
  font-size: .91rem;
  line-height: 1.68;
}
.solution-offer--compact .solution-offer-body { min-height: 238px; display: flex; flex-direction: column; }
.solution-offer--compact .text-link { margin-top: auto; }

.value-grid--soft {
  gap: 12px;
  background: transparent;
  border: 0;
}
.value-grid--soft .value-item {
  border: 1px solid var(--line-200);
  border-radius: 7px;
  background: rgba(255,255,255,.88);
}
.context-note {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--solar-500);
  color: var(--ink-600);
  font-size: .93rem;
  line-height: 1.7;
}
.context-note--light { color: rgba(255,255,255,.68); }
.sticky-copy { align-self: start; }
.process-intro { max-width: 850px; }
.micro-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.micro-proof-list span {
  padding: 7px 10px;
  border: 1px solid var(--line-200);
  border-radius: 4px;
  background: var(--surface-50);
  color: var(--ink-600);
  font-size: .79rem;
}

.final-cta--calm {
  position: relative;
  background: #f2efe7;
  color: var(--navy-950);
  border-top: 1px solid #e1dccf;
}
.final-cta--calm::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--solar-500);
}

/* Professional LINE action: local SVG, zero external icon request. */
.btn--line {
  background: #06c755;
  color: white;
  border-color: #06c755;
  box-shadow: none;
}
.btn--line:hover { background: #05b94f; border-color: #05b94f; }
.line-icon,
.button-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

/* Tesla-inspired "Ask" dock: one calm utility bar rather than a chat bubble. */
.ask-dock--tesla {
  left: 50%;
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 40px));
  padding: 0;
  border: 1px solid #cfd2d5;
  border-radius: 5px;
  background: #f4f4f4;
  box-shadow: 0 5px 20px rgba(0,0,0,.08);
  backdrop-filter: none;
  transition: box-shadow .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}
.ask-dock--tesla:focus-within {
  transform: translateX(-50%);
  border-color: #adb2b7;
  background: white;
  box-shadow: 0 8px 24px rgba(0,0,0,.11);
}
.ask-form--tesla {
  display: grid;
  grid-template-columns: 24px auto minmax(120px,1fr) 38px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 5px 7px 5px 16px;
}
.ask-chat-icon { color: #65686d; }
.ask-chat-icon svg { width: 22px; height: 22px; }
.ask-label {
  color: #4f5358;
  font-size: .85rem;
  font-weight: 650;
  white-space: nowrap;
}
.ask-input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #22262a;
  font-size: .84rem;
}
.ask-input::placeholder {
  color: #999da2;
  font-weight: 520;
}
.ask-send {
  min-width: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: #d8dadc;
  color: white;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.ask-send:hover { background: var(--navy-900); transform: translateY(-1px); }
.ask-send svg { width: 20px; height: 20px; }
.ask-toast {
  padding: 8px 14px 11px;
  border-top: 1px solid #dddfe1;
  color: var(--ink-600);
  font-size: .78rem;
}
.cookie-pending .ask-dock {
  opacity: 0;
  pointer-events: none;
}

/* Lead form: calmer, more inviting interaction without SaaS styling. */
.lead-shell {
  border-radius: 10px;
  border-color: #dfe3e6;
  box-shadow: 0 18px 48px rgba(6,26,48,.055);
}
.input, .select, .remark-box {
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  font-weight: 430;
}
.input:focus, .select:focus, .remark-box:focus {
  box-shadow: 0 0 0 4px rgba(8,43,85,.055);
}
.remark-wrap {
  border-radius: 10px;
  background: linear-gradient(180deg,#fff 0%,#fbfbfa 100%);
}
.remark-box {
  min-height: 84px;
  padding: 18px 18px 40px;
}
.remark-box:focus, .remark-box:not(:placeholder-shown) { min-height: 154px; }
.interest-grid { gap: 8px; }
.interest-chip span {
  min-height: 42px;
  border-radius: 7px;
  font-weight: 570;
}
.interest-chip input:checked + span {
  background: #102f51;
  border-color: #102f51;
  box-shadow: none;
}

/* Contact & map */
.contact-aside { align-self: start; }
.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 24px;
}
.contact-note {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #e4dfd4;
  border-radius: 7px;
  background: #faf7ef;
  color: var(--ink-600);
  font-size: .88rem;
  line-height: 1.65;
}
.map-panel { min-height: 460px; }
.map-placeholder {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-200);
  border-radius: 8px;
  background: #edf1f2;
}
.map-placeholder__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(8,43,85,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,43,85,.045) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map-placeholder__grid::before,
.map-placeholder__grid::after {
  content: "";
  position: absolute;
  height: 2px;
  background: rgba(8,43,85,.11);
  transform-origin: left center;
}
.map-placeholder__grid::before { width: 120%; left: -5%; top: 36%; transform: rotate(9deg); }
.map-placeholder__grid::after { width: 105%; left: 0; top: 67%; transform: rotate(-6deg); }
.map-placeholder__content {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 48px));
  padding: 34px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 7px;
  background: rgba(255,255,255,.91);
  box-shadow: 0 22px 60px rgba(6,26,48,.11);
}
.map-placeholder__content > p:not(.eyebrow) { color: var(--ink-600); }
.map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.map-iframe { width: 100%; min-height: 460px; border: 0; }

/* Cookie consent */
.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 120;
  width: min(980px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid #d5d9dd;
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 22px 70px rgba(6,26,48,.18);
  transform: translateX(-50%);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent__summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 26px;
}
.cookie-kicker {
  margin: 0 0 5px;
  color: var(--navy-800);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .11em;
}
.cookie-consent h2 { margin: 0; font-size: 1.06rem; font-weight: 650; }
.cookie-consent p:not(.cookie-kicker) {
  margin: 6px 0 0;
  max-width: 640px;
  color: var(--ink-600);
  font-size: .8rem;
  line-height: 1.55;
}
.cookie-link {
  display: inline-flex;
  margin-top: 7px;
  color: var(--navy-800);
  font-size: .77rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-actions,
.cookie-settings-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn--small { min-height: 40px; padding: 7px 13px; font-size: .8rem; }
.cookie-consent__settings { display: grid; gap: 0; }
.cookie-setting-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-100);
}
.cookie-setting-row:first-child { padding-top: 0; }
.cookie-setting-row strong { display: block; font-size: .86rem; }
.cookie-setting-row span:not(.cookie-required) {
  display: block;
  margin-top: 3px;
  color: var(--ink-600);
  font-size: .76rem;
}
.cookie-setting-row input { width: 20px; height: 20px; accent-color: var(--navy-900); }
.cookie-required { color: var(--ink-500); font-size: .75rem; }
.cookie-settings-actions { justify-content: flex-end; padding-top: 16px; }
.cookie-preferences-link {
  position: fixed;
  left: 16px;
  bottom: 14px;
  z-index: 89;
  padding: 5px 7px;
  border: 0;
  background: transparent;
  color: rgba(73,80,88,.78);
  font-size: .68rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Legal pages */
.legal-review-note {
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 3px solid var(--solar-500);
  background: #fbf8ef;
  color: var(--ink-600);
  font-size: .86rem;
  line-height: 1.65;
}
.legal-sections { margin-top: 42px; border-top: 1px solid var(--line-200); }
.legal-sections section {
  display: grid;
  grid-template-columns: minmax(190px,.36fr) minmax(0,.64fr);
  gap: 46px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-200);
}
.legal-sections h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.03rem;
  line-height: 1.45;
  font-weight: 650;
}
.legal-sections p { margin: 0; font-size: .96rem; line-height: 1.78; }

/* Footer refinements */
.site-footer { padding-bottom: 66px; }
.footer-col h3 { font-weight: 650; }
.footer-col a, .footer-col span { font-weight: 430; }
.footer-bottom { font-weight: 400; }

@media (max-width: 1120px) {
  .brand--logo { width: 166px; }
  .solution-offer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .solution-offer--compact .solution-offer-body { min-height: 215px; }
}

@media (max-width: 900px) {
  .hero--editorial .hero-grid { grid-template-columns: 1fr; }
  .hero--editorial .hero-copy { max-width: 820px; }
  .media-frame--hero,
  .hero-media .media-frame { aspect-ratio: 16 / 10; --media-ratio: 16 / 10; }
  .brand--logo { width: 155px; }
  .cookie-consent__summary { grid-template-columns: 1fr; align-items: start; }
  .cookie-actions { justify-content: flex-start; }
  .legal-sections section { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 640px) {
  .brand--logo { width: 136px; }
  .brand-logo-image { height: 44px; }
  .hero-media .media-frame,
  .media-frame--hero { aspect-ratio: 16 / 10; --media-ratio: 16 / 10; }
  .solution-offer-grid { grid-template-columns: 1fr; }
  .solution-offer--compact .solution-offer-body { min-height: 0; }
  .photo-slot-badge { left: 10px; bottom: 10px; font-size: .66rem; }
  .ask-dock--tesla {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    transform: none;
  }
  .ask-dock--tesla:focus-within { transform: none; }
  .ask-form--tesla {
    grid-template-columns: 22px minmax(0,1fr) 38px;
    gap: 8px;
    padding-left: 12px;
  }
  .ask-label { display: none; }
  .ask-input { font-size: .8rem; }
  .cookie-consent {
    width: calc(100vw - 24px);
    bottom: 12px;
    padding: 16px;
    max-height: min(82vh, 650px);
    overflow: auto;
  }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .cookie-actions .btn:last-child { grid-column: 1/-1; }
  .cookie-setting-row { gap: 12px; }
  .cookie-preferences-link { left: 10px; bottom: 8px; }
  .map-placeholder { min-height: 410px; }
  .map-placeholder__content { width: calc(100% - 28px); padding: 24px 20px; }
  .map-iframe { min-height: 410px; }
  .contact-quick-actions { flex-direction: column; align-items: stretch; }
  .contact-quick-actions .btn { width: 100%; }
}

.footer-cookie-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.footer-cookie-button:hover { color: white; }


/* =========================================================
   v0.3 - Brand palette + premium presentation refinement
   Inspired by premium product storytelling without copying
   any specific vendor UI. No runtime dependency added.
   ========================================================= */

:root {
  --page-gutter: 48px;
  --section-space: 104px;
  --content-radius: 0px;
  --utility-radius: 6px;
}

html {
  background: var(--brand-warm);
}

body {
  background: var(--brand-warm);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
    "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
  color: var(--ink-950);
  font-weight: 400;
  letter-spacing: -0.011em;
}

.container { width: min(calc(100% - (var(--page-gutter) * 2)), var(--container)); }
.container--narrow { width: min(calc(100% - (var(--page-gutter) * 2)), var(--container-narrow)); }

.section { padding: var(--section-space) 0; }
.section--surface { background: #f1f1f2; }
.section--warm { background: var(--brand-warm); }
.section--navy { background: var(--brand-navy); }

.eyebrow {
  color: var(--brand-mint);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .105em;
}
.section--navy .eyebrow { color: #a9ddcf; }

.display { font-weight: 600; letter-spacing: -.047em; }
.h1 { font-weight: 600; letter-spacing: -.042em; }
.h2 { font-weight: 600; letter-spacing: -.036em; }
.h3 { font-weight: 590; letter-spacing: -.024em; }
.lead { font-weight: 400; line-height: 1.72; }

.btn {
  border-radius: var(--utility-radius);
  font-weight: 580;
  box-shadow: none;
}
.btn--primary {
  background: var(--brand-navy);
  color: #fff;
}
.btn--primary:hover { background: #173d59; }
.btn--dark { background: #173d59; }
.btn--ghost { border-color: rgba(29,74,107,.22); color: var(--brand-navy); background: transparent; }
.btn:focus-visible,
.lang-switch:focus-visible,
.menu-toggle:focus-visible,
.filter-btn:focus-visible,
.ask-send:focus-visible {
  outline: 3px solid rgba(109,199,174,.34);
  outline-offset: 3px;
}

/* Local SVG arrow rather than a typographic symbol. */
.text-link::after {
  content: '';
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url('/icons/arrow-right.svg') center / contain no-repeat;
  mask: url('/icons/arrow-right.svg') center / contain no-repeat;
  transition: transform .18s ease;
}
.text-link:hover::after { transform: translateX(3px); }

.site-header {
  background: rgba(254,248,248,.9);
  border-bottom-color: rgba(29,74,107,.08);
  backdrop-filter: saturate(150%) blur(18px);
}
.desktop-nav a { font-size: .88rem; font-weight: 500; }
.desktop-nav a::after { height: 1px; background: var(--brand-navy); }
.lang-switch { border-color: rgba(29,74,107,.14); background: rgba(255,255,255,.72); font-weight: 600; }

/* Product-storytelling rhythm: image and copy are the card, not a framed container. */
.media-frame,
.hero-media .media-frame,
.media-frame--hero,
.solution-card .media-frame,
.project-card .media-frame,
.solution-offer-media {
  border-radius: 0 !important;
  background: #ecebed;
}
.media-frame,
.hero-media .media-frame,
.media-frame--hero,
.solution-offer-media,
.solution-card .media-frame,
.project-card .media-frame,
.project-card--featured .media-frame,
.feature-stack .project-card .media-frame {
  --media-ratio: 4 / 3;
  aspect-ratio: 4 / 3;
}
.media-frame img { display:block; width:100%; height:100%; object-fit:cover; }

.hero--editorial { padding-top: 52px; padding-bottom: 74px; }
.hero--editorial .hero-grid { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); }
.hero--editorial .h1 { font-size: clamp(2.55rem, 4.25vw, 4.6rem); }
.hero-note { font-size: .88rem; }
.media-caption--calm {
  right: 0;
  bottom: 0;
  width: min(390px, 72%);
  border: 0;
  border-radius: 0;
  background: rgba(23,61,89,.94);
  box-shadow: none;
}

.trust-strip { background: var(--brand-navy); }
.trust-value { color: #a9ddcf; font-weight: 620; }
.trust-label { color: rgba(255,255,255,.74); }

.kicker-row { margin-bottom: 42px; }
.kicker-row .h2 { max-width: 760px; }

.solution-offer-grid {
  gap: 30px 18px;
}
.solution-offer {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
  transition: transform .28s var(--ease);
}
.solution-offer:hover { transform: translateY(-3px); border: 0; box-shadow: none; }
.solution-offer-body { padding: 20px 0 0; }
.solution-offer--compact .solution-offer-body { min-height: 214px; }
.solution-offer-eyebrow { color: var(--brand-mint); font-size:.68rem; font-weight:650; }
.solution-offer-body > p:not(.solution-offer-eyebrow) { font-size: .9rem; }

.project-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  transition: transform .28s var(--ease);
}
.project-card:hover { transform: translateY(-3px); border:0; box-shadow:none; }
.project-card .card-body { padding: 20px 0 0; }
.card-meta { gap: 0; margin-bottom: 10px; }
.meta-chip {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-500);
  font-size: .72rem;
  font-weight: 560;
}
.meta-chip + .meta-chip::before { content: '/'; padding: 0 8px; color: #b1b3b6; }

.value-grid--soft { gap: 1px; background: var(--line-200); }
.value-grid--soft .value-item {
  border: 0;
  border-radius: 0;
  background: rgba(255,255,255,.86);
}
.value-index { color: var(--brand-mint); font-weight: 650; }
.context-note { border-left-color: var(--brand-mint); }
.process-item::before { background: var(--brand-mint); }
.process-number { color: #a9ddcf; font-weight: 650; }

.system-card,
.standard-card,
.about-story article {
  border-color: rgba(29,74,107,.12);
  box-shadow: none;
}
.system-icon {
  border-color: rgba(29,74,107,.14);
  background: transparent;
  color: var(--brand-navy);
}

.bullet-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: .62em;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-mint);
}

.prototype-note,
.legal-review-note { border-left-color: var(--brand-mint); background: #f5f4f2; color: #5d666c; }

.final-cta--calm { background: #ecebed; border-top-color: #dadadc; }
.final-cta--calm::before { background: var(--brand-mint); width: 4px; }

/* Lead UI remains soft and welcoming, but not SaaS-like. */
.lead-shell {
  border-radius: 8px;
  border-color: rgba(29,74,107,.12);
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 46px rgba(29,74,107,.055);
}
.input, .select, .remark-box {
  border-radius: 6px;
  border-color: #d9d9dc;
}
.input:focus, .select:focus, .remark-box:focus { border-color: rgba(29,74,107,.48); box-shadow: 0 0 0 4px rgba(109,199,174,.11); }
.remark-wrap { border-radius: 7px; background: #fff; }
.interest-chip span { border-radius: 5px; }
.interest-chip input:checked + span { background: var(--brand-navy); border-color: var(--brand-navy); }

/* Tesla-inspired ask bar with immediate typed-state feedback. */
.ask-dock--tesla {
  border-color: #d0d0d2;
  border-radius: 5px;
  background: rgba(245,245,246,.96);
  box-shadow: 0 5px 20px rgba(29,74,107,.075);
}
.ask-dock--tesla:focus-within { border-color: #b9bec1; background:#fff; box-shadow:0 7px 24px rgba(29,74,107,.10); }
.ask-label { font-weight: 580; }
.ask-input { font-weight: 420; }
.ask-send {
  background: #d7d7d9;
  color: #fff;
  opacity: .72;
  cursor: default;
}
.ask-send:hover { background:#d7d7d9; transform:none; }
.ask-send[data-active="true"] {
  background: var(--brand-navy);
  color: #fff;
  opacity: 1;
  cursor: pointer;
}
.ask-send[data-active="true"]:hover { background:#173d59; transform:translateY(-1px); }

/* Lightweight presentation reveals: transform + opacity only. */
html.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity .52s var(--ease) var(--reveal-delay, 0ms),
    transform .52s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.motion-ready [data-reveal="media"] { transform: translate3d(0, 16px, 0) scale(1.008); }
html.motion-ready [data-reveal].is-visible { opacity:1; transform:translate3d(0,0,0) scale(1); }

/* Language switch stays in the current document. Root View Transitions are intentionally
   not used because browser snapshots can briefly paint at scrollTop=0. */
.lang-switch { transition: opacity .15s ease, border-color .18s ease, background-color .18s ease; }
html[data-lang-loading="true"] .lang-switch { opacity: .55; pointer-events: none; }

/* About location uses a real image slot asset rather than a CSS illustration. */
.location-panel { background: var(--brand-navy); }
.location-media { min-height: 100%; }
.location-media .media-frame { height: 100%; min-height: 360px; aspect-ratio: auto; }
.location-media img { width:100%; height:100%; object-fit:cover; }

/* Keep map utility restrained. */
.map-placeholder,
.map-placeholder__content,
.contact-note,
.cookie-consent { border-radius: 6px; }

@media (max-width: 1120px) {
  :root { --page-gutter: 32px; --section-space: 88px; }
  .solution-offer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .hero--editorial .hero-grid { grid-template-columns: 1fr; }
  .hero--editorial .hero-copy { max-width: 760px; }
  .feature-projects { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --page-gutter: 18px; --section-space: 62px; --header-h: 66px; }
  body { font-size: 15px; line-height: 1.62; }
  .section { padding: var(--section-space) 0; }
  .section--compact { padding: 48px 0; }
  .page-hero { padding: 48px 0 46px; }
  .hero--editorial { padding-top: 28px; padding-bottom: 54px; }
  .hero-copy { padding-top: 0; }
  .hero--editorial .h1,
  .h1 { font-size: clamp(1.9rem, 8.45vw, 2.18rem); line-height: 1.11; letter-spacing: -.034em; }
  .h2 { font-size: clamp(1.62rem, 7vw, 1.85rem); line-height: 1.16; }
  .h3 { font-size: clamp(1.22rem, 5vw, 1.42rem); }
  .lead { font-size: .98rem; line-height: 1.68; margin-top: 16px; }
  .eyebrow { font-size: .66rem; margin-bottom: 10px; }
  .hero-actions { margin-top: 24px; }
  .hero-note { font-size: .82rem; }
  .media-caption--calm { position:relative; width:100%; right:auto; bottom:auto; }
  .kicker-row { gap: 16px; margin-bottom: 30px; }

  /* Apple-store-like horizontal collection rhythm on small screens. */
  .solution-offer-grid,
  .solution-offer-grid--page {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 320px);
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: calc(var(--page-gutter) * -1);
    padding-inline: var(--page-gutter);
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .solution-offer-grid::-webkit-scrollbar { display:none; }
  .solution-offer { scroll-snap-align: start; }
  .solution-offer--compact .solution-offer-body { min-height: 190px; }
  .solution-offer-body { padding-top: 16px; }

  .feature-stack { grid-template-columns: 1fr; }
  .project-card .card-body { padding-top: 16px; }
  .trust-value { font-size: 1.45rem; }
  .btn { min-height: 46px; font-size: .9rem; }

  .ask-form--tesla { min-height: 50px; }
  .ask-input { font-size: .82rem; }
  .ask-send { width:36px; height:36px; }

  .location-panel > div { padding: 32px 22px; }
  .location-media { padding: 0 !important; }
  .location-media .media-frame { min-height: 280px; }
}

/* Explicit compact iPhone baseline: 375 x 667 and similar. */
@media (max-width: 390px) {
  :root { --page-gutter: 16px; --section-space: 54px; }
  body { font-size: 14.5px; }
  .brand--logo { width: 126px; }
  .brand-logo-image { height: 40px; }
  .lang-switch { min-width: 42px; height: 40px; font-size: .8rem; }
  .menu-toggle { width: 40px; height: 40px; }
  .hero--editorial .h1,
  .h1 { font-size: 2rem; }
  .h2 { font-size: 1.66rem; }
  .h3 { font-size: 1.28rem; }
  .lead { font-size: .94rem; }
  .hero-grid { gap: 24px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .solution-offer-grid,
  .solution-offer-grid--page { grid-auto-columns: min(84vw, 304px); }
  .lead-shell { padding: 22px 16px; }
  .input, .select { min-height: 50px; }
  .remark-box { font-size: .92rem; }
  .ask-dock--tesla { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .ask-form--tesla { padding-left: 10px; gap: 7px; }
  .ask-chat-icon svg { width: 20px; height: 20px; }
  .cookie-consent { width: calc(100vw - 20px); }
}

@media (prefers-reduced-motion: reduce) {
  html.motion-ready [data-reveal] { opacity:1 !important; transform:none !important; transition:none !important; }
}
.form-success-icon svg { width: 24px; height: 24px; }
.media-frame--portrait { --media-ratio: 4 / 5 !important; aspect-ratio: 4 / 5 !important; }
.media-frame--square { --media-ratio: 1 / 1 !important; aspect-ratio: 1 / 1 !important; }

/* =========================================================
   v0.3.1: responsive navigation, tactile media and projects
   No new runtime dependency.
   ========================================================= */

/* Thai typography uses Thai-native metrics. Negative Latin tracking is avoided. */
html:lang(th) body,
html:lang(th) button,
html:lang(th) input,
html:lang(th) textarea,
html:lang(th) select {
  font-family: "Leelawadee UI", "Thonburi", "Sukhumvit Set", "Noto Sans Thai", Tahoma, sans-serif;
  letter-spacing: 0;
}
html:lang(th) .display,
html:lang(th) .h1,
html:lang(th) .h2,
html:lang(th) .h3 {
  letter-spacing: -.008em;
  font-weight: 600;
}
html:lang(th) .lead { letter-spacing: 0; }
html:lang(en) body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
}

/* Mobile menu: fixed viewport panel with iOS-safe page locking. */
body.menu-open { overflow: hidden; overscroll-behavior: none; }
body.menu-open .ask-dock {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 12px, 0);
}
.menu-toggle span {
  transform-origin: center;
  transition: transform .24s var(--ease), opacity .18s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Shared mobile collection controls. Native overflow remains the primary touch path. */
.horizontal-scroller { min-width: 0; }
.horizontal-scroller__controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.horizontal-scroller__arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(29,74,107,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  color: var(--brand-navy);
  cursor: pointer;
  transition: background-color .18s ease, opacity .18s ease, transform .18s var(--ease);
}
.horizontal-scroller__arrow:active { transform: translateY(1px); }
.horizontal-scroller__arrow:disabled { opacity: .28; cursor: default; }
.horizontal-scroller__arrow-icon {
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url('/icons/arrow-right.svg') center / contain no-repeat;
  mask: url('/icons/arrow-right.svg') center / contain no-repeat;
}
.horizontal-scroller__arrow--prev .horizontal-scroller__arrow-icon { transform: rotate(180deg); }
.horizontal-scroller__dots { display: flex; align-items: center; justify-content: center; gap: 7px; }
.horizontal-scroller__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8cccf;
  cursor: pointer;
  transition: width .22s var(--ease), background-color .22s ease, border-radius .22s ease;
}
.horizontal-scroller__dot[aria-current="true"] {
  width: 22px;
  border-radius: 999px;
  background: var(--brand-navy);
}

/* System Fit gets the full content width rather than nesting three cards in half a split. */
.system-fit-intro { max-width: 880px; }
.system-fit-intro .lead { max-width: 800px; }
.system-grid--balanced {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.system-grid--balanced .system-card {
  min-width: 0;
  min-height: 0;
  padding: 30px 30px 34px;
}
.system-grid--balanced .system-card .h3 {
  max-width: 15ch;
  font-size: clamp(1.45rem, 2vw, 1.82rem);
}
.system-grid--balanced .system-card p { max-width: 38ch; }

/* Featured installation carousel. Photos are standalone replaceable 16:9 assets. */
.home-project-showcase { margin-top: 28px; }
.project-showcase { width: 100%; }
.project-showcase__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e6e8e9;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}
.project-showcase__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .62s var(--ease), visibility .62s step-end;
}
.project-showcase__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .62s var(--ease), visibility 0s step-start;
}
.project-showcase__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.project-showcase__scrim {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(9,31,46,.68), rgba(9,31,46,0));
  pointer-events: none;
}
.project-showcase__caption {
  position: absolute;
  left: clamp(18px, 3vw, 42px);
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 38px);
  display: grid;
  gap: 5px;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0,0,0,.18);
}
.project-showcase__caption small { font-size: .72rem; font-weight: 600; letter-spacing: .05em; opacity: .78; }
.project-showcase__caption strong { font-size: clamp(1.25rem, 2.4vw, 2.15rem); font-weight: 590; line-height: 1.14; }
.project-showcase__caption > span:last-child { font-size: .86rem; opacity: .8; }
.project-showcase__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-bottom: 1px solid rgba(29,74,107,.12);
}
.project-showcase__dots { display: flex; align-items: center; gap: 7px; }
.project-showcase__dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  background: #c8cccf;
  cursor: pointer;
  transition: width .22s var(--ease), background-color .22s ease;
}
.project-showcase__dot[aria-current="true"] { width: 48px; background: var(--brand-navy); }
.project-showcase__counter { color: var(--ink-500); font-size: .74rem; letter-spacing: .05em; }
.project-showcase__counter strong { color: var(--brand-navy); font-weight: 650; }
.home-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

/* Footer uses the same eight-solution data source as the main solution UI. */
.footer-grid { grid-template-columns: 1.15fr 1.55fr .78fr .92fr; }
.footer-solution-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.footer-solution-links a { min-width: 0; }

/* Tactile photography treatment for precise pointer devices only.
   Hover reveals 10 percent breathing room around the image, centered.
   Pressing settles the image down by 2px. */
.media-frame img,
.solution-offer-media img,
.project-showcase__slide img {
  transform-origin: 50% 50%;
  transition: transform .72s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .media-frame:hover img,
  .solution-offer-media:hover img,
  .project-showcase__slide.is-active:hover img {
    transform: scale(.90);
  }
  .media-frame:active img,
  .solution-offer-media:active img,
  .project-showcase__media:active .project-showcase__slide.is-active img {
    transform: translate3d(0,2px,0) scale(.90);
    transition-duration: .26s;
  }
}

@media (max-width: 900px) {
  .mobile-panel {
    display: block;
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    max-width: 100vw;
    padding: 20px var(--page-gutter) calc(24px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: rgba(254,248,248,.985);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0,-8px,0);
    transition: opacity .22s ease, transform .28s var(--ease), visibility .22s step-end;
    z-index: 99;
  }
  .mobile-panel::-webkit-scrollbar { display: none; }
  .mobile-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0,0,0);
    transition: opacity .22s ease, transform .28s var(--ease), visibility 0s step-start;
  }
  .mobile-nav { max-width: 680px; margin: 0 auto; }
  .mobile-nav a { font-weight: 560; }
  .mobile-cta { max-width: 680px; margin-left: auto; margin-right: auto; }

  .system-grid--balanced { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .system-grid--balanced .system-card:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px 28px; }
  .footer-brand, .footer-col--solutions { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  /* iPhone Safari-safe horizontal solution collection. */
  .horizontal-scroller {
    width: calc(100% + (var(--page-gutter) * 2));
    max-width: 100vw;
    margin-inline: calc(var(--page-gutter) * -1);
    overflow: hidden;
  }
  .horizontal-scroller .solution-offer-grid,
  .horizontal-scroller .solution-offer-grid--page {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0 var(--page-gutter) 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--page-gutter);
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
  }
  .horizontal-scroller .solution-offer-grid::-webkit-scrollbar,
  .horizontal-scroller .solution-offer-grid--page::-webkit-scrollbar { display: none; }
  .horizontal-scroller .solution-offer {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
  .horizontal-scroller__controls { display: flex; padding-inline: var(--page-gutter); }

  .system-grid--balanced { grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
  .system-grid--balanced .system-card:last-child { grid-column: auto; }
  .system-grid--balanced .system-card { padding: 24px; }
  .system-grid--balanced .system-card .h3 { max-width: none; }

  .home-project-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 22px 12px;
  }
  .home-project-grid { margin-top: 26px; }
  .projects-grid .project-card .h3,
  .home-project-grid .project-card .h3 { font-size: 1.02rem; line-height: 1.28; }
  .projects-grid .project-card .card-body > p,
  .home-project-grid .project-card .card-body > p { font-size: .78rem; line-height: 1.5; margin: 8px 0 10px; }
  .projects-grid .project-card .text-link,
  .home-project-grid .project-card .text-link { font-size: .78rem; }
  .projects-grid .meta-chip,
  .home-project-grid .meta-chip { font-size: .66rem; }

  .project-showcase__caption strong { font-size: 1.22rem; }
  .project-showcase__caption > span:last-child { font-size: .74rem; }
  .project-showcase__footer { min-height: 44px; }
  .project-showcase__dot { width: 20px; }
  .project-showcase__dot[aria-current="true"] { width: 36px; }

  .footer-solution-links { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 18px; }
}

@media (max-width: 390px) {
  .horizontal-scroller .solution-offer { flex-basis: min(84vw, 304px); }
  .project-showcase__caption { left: 14px; right: 14px; bottom: 14px; }
  .project-showcase__caption small { font-size: .62rem; }
  .project-showcase__caption strong { font-size: 1.08rem; }
  .project-showcase__caption > span:last-child { font-size: .69rem; }
  .home-project-grid,
  .projects-grid { gap: 20px 10px; }
  .footer-col a, .footer-col span { font-size: .84rem; }
}

@media (max-width: 339px) {
  .home-project-grid,
  .projects-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-panel,
  .menu-toggle span,
  .horizontal-scroller__dot,
  .project-showcase__slide,
  .project-showcase__dot,
  .media-frame img,
  .solution-offer-media img,
  .project-showcase__slide img { transition: none !important; }
}
html, body { max-width: 100%; }
body { overflow-x: hidden; }
body.menu-open { overflow: hidden; }
@media (max-width: 900px) {
  body.menu-open .site-header { position: fixed; inset: 0 0 auto 0; width: 100%; }
}
html:lang(th) .h1 { line-height: 1.14; }
html:lang(th) .h2 { line-height: 1.17; }
html:lang(th) .h3 { line-height: 1.26; }


/* =========================================================
   v0.3.2: fixed-position language swap + refined tactile media
   Uses transform/opacity only. No animation library.
   ========================================================= */

/* Language copy changes in-place. Keep the page interactive while the opposite
   dictionary is being resolved; only the language button is temporarily disabled. */

/* Photography zooms inward by 10% around the same visual center.
   Overflow stays clipped by the media frame, so there is no layout shift. */
.media-frame img,
.solution-offer-media img,
.project-showcase__slide img {
  transform-origin: 50% 50%;
  transition: transform .72s cubic-bezier(.16,1,.3,1);
  backface-visibility: hidden;
}

/* Small/editorial media gets a restrained lift. Large hero/showcase media is excluded. */
.solution-offer,
.project-card,
.solution-card,
.section .split .media-frame:not(.media-frame--hero),
.case-block .media-frame,
.media-frame--square,
.media-frame--portrait {
  transition: transform .52s cubic-bezier(.16,1,.3,1);
}

@media (hover: hover) and (pointer: fine) {
  .media-frame:hover img,
  .solution-offer-media:hover img,
  .project-showcase__slide.is-active:hover img {
    transform: scale(1.10);
  }

  .media-frame:active img,
  .solution-offer-media:active img,
  .project-showcase__media:active .project-showcase__slide.is-active img {
    transform: translate3d(0,2px,0) scale(1.10);
    transition-duration: .24s;
  }

  .solution-offer:hover,
  .project-card:hover,
  .solution-card:hover,
  .section .split .media-frame:not(.media-frame--hero):hover,
  .case-block .media-frame:hover,
  .media-frame--square:hover,
  .media-frame--portrait:hover {
    transform: translate3d(0,-3px,0);
  }

  .solution-offer:active,
  .project-card:active,
  .solution-card:active,
  .section .split .media-frame:not(.media-frame--hero):active,
  .case-block .media-frame:active,
  .media-frame--square:active,
  .media-frame--portrait:active {
    transform: translate3d(0,0,0);
    transition-duration: .22s;
  }

  /* The home hero and featured 16:9 project showcase keep a fixed outer frame. */
  .hero-media,
  .project-showcase,
  .project-showcase__media,
  .location-media {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .solution-offer,
  .project-card,
  .solution-card,
  .section .split .media-frame,
  .case-block .media-frame,
  .media-frame--square,
  .media-frame--portrait,
  .media-frame img,
  .solution-offer-media img,
  .project-showcase__slide img {
    transition: none !important;
    transform: none !important;
  }
}


/* =========================================================
   v0.3.3: production-depth pass
   - real Solution detail routes
   - 2px tactile solution lift/press
   - Project Case Study gallery 1 + 3
   - transform/opacity only for interaction motion
   ========================================================= */

/* Solution cards: calm 2px lift on hover and 2px press on hold/touch. */
.solution-offer {
  transition: transform .22s cubic-bezier(.22,.61,.36,1) !important;
}
@media (hover: hover) and (pointer: fine) {
  .solution-offer:hover { transform: translate3d(0,-2px,0) !important; }
}
.solution-offer:active {
  transform: translate3d(0,2px,0) !important;
  transition-duration: .12s !important;
}

/* Solution detail */
.solution-detail-hero {
  display: grid;
  grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr);
  gap: clamp(42px,6vw,88px);
  align-items: center;
}
.solution-detail-hero__copy { min-width: 0; }
.solution-detail-hero__media { aspect-ratio: 4 / 3; }
.solution-detail-facts {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 34px;
  border-top: 1px solid var(--line-200);
}
.solution-detail-facts > div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-200);
}
.solution-detail-facts span {
  color: var(--ink-500);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .06em;
}
.solution-detail-facts strong { font-size: .94rem; font-weight: 560; line-height: 1.55; }
.solution-detail-layout {
  display: grid;
  grid-template-columns: minmax(180px,.28fr) minmax(0,1fr);
  gap: clamp(46px,7vw,96px);
}
.solution-detail-index {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  border-top: 1px solid var(--line-200);
}
.solution-detail-index a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-200);
  color: var(--ink-600);
  font-size: .84rem;
}
.solution-detail-index a:hover { color: var(--navy-900); }
.solution-detail-content { min-width: 0; }
.solution-detail-block {
  padding-bottom: clamp(54px,6vw,86px);
  margin-bottom: clamp(54px,6vw,86px);
  border-bottom: 1px solid var(--line-200);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.solution-detail-block:last-child { margin-bottom: 0; }
.solution-detail-copy {
  max-width: 900px;
  margin: 24px 0 0;
  color: var(--ink-600);
  font-size: clamp(1.02rem,1.25vw,1.18rem);
  line-height: 1.8;
}
.solution-detail-points,
.solution-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line-200);
}
.solution-detail-points article,
.solution-outcome-grid article {
  padding: 28px 28px 6px 0;
}
.solution-detail-points article + article,
.solution-outcome-grid article + article {
  padding-left: 28px;
  border-left: 1px solid var(--line-200);
}
.solution-detail-points span,
.solution-outcome-grid span {
  display: block;
  color: var(--brand-mint);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.solution-detail-points p,
.solution-outcome-grid p {
  margin: 18px 0 0;
  color: var(--ink-700,var(--ink-600));
  line-height: 1.72;
}
.solution-detail-support-media { margin-top: 42px; aspect-ratio: 16 / 9; }
.solution-scope-list { margin-top: 34px; border-top: 1px solid var(--line-200); }
.solution-scope-list > div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-200);
}
.solution-scope-list span { color: var(--brand-mint); font-size: .76rem; font-weight: 700; }
.solution-scope-list strong { font-weight: 560; }
.solution-related-projects { margin-top: 34px; }

/* Case Study: one large image with three supporting images on desktop. */
.case-gallery { min-width: 0; display: grid; gap: 10px; }
.case-gallery__main,
.case-gallery__thumb {
  overflow: hidden;
  background: #ecebed;
}
.case-gallery__main { aspect-ratio: 4 / 3; }
.case-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.case-gallery__thumb { aspect-ratio: 4 / 3; }
.case-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
  transition: transform .48s cubic-bezier(.16,1,.3,1);
}
@media (hover: hover) and (pointer: fine) {
  .case-gallery__main:hover img,
  .case-gallery__thumb:hover img { transform: scale(1.035); }
}

@media (max-width: 900px) {
  .solution-detail-hero,
  .solution-detail-layout { grid-template-columns: 1fr; }
  .solution-detail-index { position: static; display: none; }
  .solution-detail-points,
  .solution-outcome-grid { grid-template-columns: 1fr; }
  .solution-detail-points article,
  .solution-detail-points article + article,
  .solution-outcome-grid article,
  .solution-outcome-grid article + article {
    padding: 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-200);
  }
  .solution-detail-points article:last-child,
  .solution-outcome-grid article:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .solution-detail-facts > div { grid-template-columns: 1fr; gap: 5px; }
  .solution-detail-support-media { aspect-ratio: 4 / 3; }
  .case-gallery { gap: 6px; }
  .case-gallery__thumbs { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .solution-offer,
  .case-gallery img { transition: none !important; transform: none !important; }
}


/* v0.4.0 footer contact / social rail */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.footer-social-link {
  width: 42px;
  height: 42px;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  background: #fff;
  color: #2f3a3d;
  box-shadow: 0 7px 18px rgba(0,0,0,.14);
  transition: transform .18s var(--ease), box-shadow .18s ease, background-color .18s ease;
}
.footer-social-link img {
  width: 20px;
  height: 20px;
  opacity: .9;
}
.footer-social-link:hover {
  transform: translateY(-2px);
  background: #f8faf9;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.footer-social-link:active {
  transform: translateY(1px);
}
.footer-social-link:focus-visible {
  outline: 3px solid rgba(109,199,174,.45);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .footer-social-link { transition: none; }
}

/* About component local styles, exported for static dashboard package */

  .about-location-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    padding: 0 !important;
    overflow: hidden;
    align-items: stretch !important;
  }

  .about-location-hero__copy {
    min-width: 0;
    padding: clamp(44px, 5vw, 76px);
    align-self: center;
  }

  .about-location-hero__media {
    position: relative;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--surface-muted, #dadadc);
  }

  .about-location-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
  }

  .company-profile__head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: end;
  }

  .company-profile__title {
    max-width: 780px;
  }

  .company-profile__lead {
    margin: 0;
    max-width: 560px;
  }

  .company-profile__principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(52px, 6vw, 82px);
    border-top: 1px solid var(--line-200);
  }

  .company-profile__principle {
    min-width: 0;
    padding: 34px clamp(24px, 3vw, 42px) 4px 0;
  }

  .company-profile__principle + .company-profile__principle {
    padding-left: clamp(24px, 3vw, 42px);
    border-left: 1px solid var(--line-200);
  }

  .company-profile__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
  }

  .company-profile__number,
  .company-profile__label {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
  }

  .company-profile__number {
    color: var(--navy-900);
  }

  .company-profile__label {
    color: var(--solar-500);
  }

  .company-profile__principle-title {
    margin: 0;
    max-width: 340px;
    color: var(--ink-950);
    font-size: clamp(1.3rem, 1.65vw, 1.7rem);
    font-weight: 650;
    line-height: 1.38;
    letter-spacing: -.02em;
  }

  .company-profile__principle-desc {
    margin: 16px 0 0;
    max-width: 380px;
    color: var(--ink-600);
    line-height: 1.75;
  }

  @media (max-width: 900px) {
    .about-location-hero {
      grid-template-columns: 1fr !important;
    }

    .about-location-hero__copy {
      padding: 40px 28px;
    }

    .about-location-hero__media {
      min-height: 0;
      aspect-ratio: 4 / 3;
    }

    .about-location-hero__media img {
      position: absolute;
    }

    .company-profile__head {
      grid-template-columns: 1fr;
      gap: 24px;
    }

    .company-profile__principles {
      grid-template-columns: 1fr;
      margin-top: 42px;
    }

    .company-profile__principle,
    .company-profile__principle + .company-profile__principle {
      padding: 28px 0;
      border-left: 0;
      border-top: 1px solid var(--line-200);
    }

    .company-profile__principle:first-child {
      border-top: 0;
    }
  }

  @media (max-width: 390px) {
    .about-location-hero__copy {
      padding: 32px 20px;
    }

    .company-profile__principle-title {
      font-size: 1.22rem;
    }

    .company-profile__principle-desc {
      font-size: .92rem;
      line-height: 1.7;
    }
  }


/* Static dashboard package helpers */
.cookie-banner{position:fixed;left:18px;right:18px;bottom:18px;z-index:120;background:#fff;border:1px solid var(--line-200);box-shadow:0 16px 44px rgba(6,26,48,.14);padding:18px}.cookie-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1180px;margin:auto}.cookie-inner p{margin:0;color:var(--ink-600)}.cookie-actions{display:flex;gap:8px;flex:0 0 auto}.map-placeholder{width:100%;min-height:260px;border:1px solid var(--line-200);background:var(--surface-50);color:var(--navy-900);font-weight:700;cursor:pointer}.map-shell iframe{width:100%;height:320px;border:0}.case-gallery__main,.case-gallery__thumb{padding:0;border:0;background:transparent;cursor:pointer}.case-gallery__main img,.case-gallery__thumb img{width:100%;height:100%;object-fit:cover}.case-gallery__main{display:block;width:100%;aspect-ratio:4/3}.case-gallery__thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}.case-gallery__thumb{aspect-ratio:4/3;overflow:hidden}.about-location-hero{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;padding:0!important;overflow:hidden;align-items:stretch!important}.about-location-hero__copy{min-width:0;padding:clamp(44px,5vw,76px);align-self:center}.about-location-hero__media{position:relative;min-width:0;min-height:100%;margin:0;overflow:hidden}.about-location-hero__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}@media(max-width:900px){.about-location-hero{grid-template-columns:1fr!important}.about-location-hero__media{aspect-ratio:4/3}.cookie-inner{align-items:flex-start;flex-direction:column}.cookie-actions{width:100%;flex-wrap:wrap}.case-gallery__thumbs{overflow-x:auto;grid-auto-flow:column;grid-auto-columns:72%;grid-template-columns:none;scroll-snap-type:x mandatory}.case-gallery__thumb{scroll-snap-align:start}}
