/* =========================================================
   SNP Micropile — design tokens (matched to the brand mockup)
   ========================================================= */
:root {
  --navy-900: #061638;
  --navy-800: #0a2156;
  --navy-700: #0b2b6f;
  --navy-600: #143a8c;
  --blue-500: #2457c5;
  --blue-400: #3b74e0;
  --blue-200: #c9d8f3;
  --blue-100: #e6eefc;
  --blue-50: #f2f6fd;
  --ink: #0d1b3a;
  --ink-2: #33415e;
  --ink-3: #66738f;
  --line: #dde5f2;
  --line-green: #06c755;

  --font-head: "Kanit", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", "Kanit", system-ui, sans-serif;
  --fs-h2: clamp(1.7rem, 1.15rem + 1.9vw, 2.5rem);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(10, 33, 86, .05), 0 4px 14px rgba(10, 33, 86, .07);
  --shadow-md: 0 12px 30px -12px rgba(10, 33, 86, .28);
  --shadow-lg: 0 30px 60px -22px rgba(10, 33, 86, .38);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-sm: .25s;
  --dur-md: .5s;
  --wrap: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: #fff; line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy-700); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.5em; border-radius: 999px; border: 0; background: var(--navy-700); color: #fff;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; line-height: 1.2;
  transition: transform var(--dur-sm) var(--ease-out), box-shadow var(--dur-sm) var(--ease-out), background var(--dur-sm);
}
.btn--primary { background: linear-gradient(135deg, var(--navy-600), var(--navy-800)); box-shadow: 0 10px 24px -10px rgba(11, 43, 111, .7), inset 0 1px 0 rgba(255,255,255,.15); }
.btn--primary:hover { box-shadow: 0 16px 30px -10px rgba(11, 43, 111, .8), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--ghost { background: #fff; color: var(--navy-700); box-shadow: inset 0 0 0 1.5px var(--blue-200), var(--shadow-sm); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy-600), var(--shadow-md); }
.btn--white { background: #fff; color: var(--navy-700); }
.btn--line { background: var(--line-green); }
.btn--line .ic { fill: #fff; stroke: none; }
.btn--lg { font-size: 1.06rem; padding: .9em 1.7em; }
.btn--sm { font-size: .92rem; padding: .6em 1.2em; }
.btn--block { width: 100%; }
.btn:active { transform: scale(.97); }
.pill { display: inline-flex; align-items: center; gap: .35em; padding: .42em 1.05em; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--navy-700); background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue-200); transition: box-shadow var(--dur-sm), transform var(--dur-sm) var(--ease-out); white-space: nowrap; }
.pill:hover { box-shadow: inset 0 0 0 1.5px var(--navy-600); transform: translateX(2px); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); transition: box-shadow var(--dur-md); }
.header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(10, 33, 86, .5); }
.header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; color: var(--navy-700); }
.logo__svg { width: 106px; height: 80px; overflow: visible; }
.logo--light { --logo-ink: #fff; --logo-face: transparent; --logo-cut: var(--navy-900); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; gap: 4px; padding: .48em 1em; border-radius: 999px; font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--ink-2); transition: color var(--dur-sm), background var(--dur-sm); }
.nav > a:hover, .nav__dd > a:hover { color: var(--navy-700); background: var(--blue-50); }
.nav a.is-active { color: #fff; background: var(--navy-700); box-shadow: 0 8px 18px -10px rgba(11, 43, 111, .9); }
.nav__chev { width: .95em; height: .95em; transition: transform var(--dur-sm) var(--ease-out); }
.nav__dd { position: relative; }
.dd {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 260px; padding: 8px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s, transform .35s var(--ease-out), visibility .25s;
}
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dd a { display: flex; gap: 10px; padding: .6em .9em; border-radius: 10px; font-size: .95rem; color: var(--ink-2); }
.dd a .ic { color: var(--blue-500); }
.dd a:hover { background: var(--blue-50); color: var(--navy-700); }
.nav__dd:hover .dd, .nav__dd:focus-within .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__dd:hover .nav__chev, .nav__dd:focus-within .nav__chev { transform: rotate(180deg); }
.burger { display: none; margin-left: auto; background: var(--blue-50); border: 0; width: 46px; height: 46px; border-radius: 12px; color: var(--navy-700); }
.burger .ic { width: 24px; height: 24px; }
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(6, 22, 56, .45); backdrop-filter: blur(4px); }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 360px); background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 18px; animation: drawerIn .45s var(--ease-out); }
.drawer__logo { width: 90px; height: 70px; color: var(--navy-700); }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { font-family: var(--font-head); font-size: 1.15rem; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.drawer nav a.is-active { color: var(--navy-700); font-weight: 600; }
.drawer__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; background: var(--blue-50); border-radius: 12px; color: var(--navy-700); }
@keyframes drawerIn { from { transform: translateX(100%); } }

/* ---------- swoosh (brand wave at the bottom of hero panels) ---------- */
.swoosh { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(60px, 9vw, 140px); pointer-events: none; z-index: 2; }
.swoosh--sm { height: clamp(40px, 6vw, 90px); }

/* ---------- home hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(520px, 62vw, 720px); display: flex; align-items: center; padding: 40px 0 clamp(90px, 10vw, 150px);
  background: radial-gradient(60% 80% at 10% 20%, #fff 0%, rgba(255,255,255,0) 70%), linear-gradient(160deg, #f6f9ff 0%, #e8eef8 60%, #dfe7f4 100%); }
.hero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: min(46%, 640px); z-index: -1; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(232, 238, 248, .55), rgba(232, 238, 248, 0) 35%); }
.hero__in { position: relative; }
.hero__copy { max-width: 560px; }
.hero__title { font-size: clamp(2.4rem, 1.2rem + 4vw, 4.4rem); font-weight: 800; font-style: italic; color: var(--navy-700); line-height: 1.08; letter-spacing: -.01em; }
.hero__title .line { display: block; overflow: hidden; padding: 0 .15em .08em 0; white-space: nowrap; }
.hero__title .line > span { display: inline-block; }
.hero__title .big { font-size: 1.32em; background: linear-gradient(100deg, var(--navy-700) 20%, var(--blue-500) 55%, var(--navy-700) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 220% 100%; animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.hero__lead { margin-top: 18px; font-size: clamp(1.08rem, 1rem + .45vw, 1.35rem); color: var(--ink-2); font-weight: 500; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* features overlapping the hero */
.features-wrap { position: relative; z-index: 3; margin-top: clamp(-70px, -5vw, -40px); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { text-align: center; padding: 26px 18px 22px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); transition: transform var(--dur-md) var(--ease-out), box-shadow var(--dur-md) var(--ease-out); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature__ic { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 10px; color: var(--navy-700); transition: transform var(--dur-md) var(--ease-out); }
.feature:hover .feature__ic { transform: scale(1.12) rotate(-6deg); }
.feature__ic svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.12rem; color: var(--navy-700); font-weight: 700; }
.feature p { font-size: .9rem; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
.features--plain .feature { box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(70px, 9vw, 120px); background: linear-gradient(160deg, #f6f9ff 0%, #e9eff9 70%, #e1e9f6 100%); overflow: hidden; }
.page-hero--center { text-align: center; }
.page-hero p { color: var(--ink-2); margin-top: 10px; font-size: 1.1rem; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(11, 43, 111, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 43, 111, .045) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(70% 90% at 50% 20%, #000, transparent 75%); }
.page-hero .wrap { position: relative; }

/* ---------- sections ---------- */
.section { padding: clamp(60px, 8vw, 104px) 0; position: relative; }
.section--flush { padding-top: clamp(24px, 3vw, 40px); }
.section--top { padding-top: clamp(40px, 6vw, 72px); }
.section--tint { background: linear-gradient(180deg, var(--blue-50), #fff 70%); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(30px, 4.5vw, 48px); }
.sec-head p { color: var(--ink-2); margin-top: 10px; font-size: 1.05rem; }
.sec-head--left { text-align: left; margin: 0; }
.sec-head--left .btn { margin-top: 22px; }
.sec-title { font-size: var(--fs-h2); font-weight: 700; color: var(--navy-700); display: inline-flex; align-items: center; gap: 18px; }
.sec-title--left { display: block; }
.rule { display: inline-block; width: clamp(26px, 6vw, 64px); height: 3px; border-radius: 2px; background: currentColor; }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }

/* media */
.media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(140deg, #dbe7fb, #b9cdf2); }
.media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: transform var(--dur-md) var(--ease-out), box-shadow var(--dur-md) var(--ease-out); scroll-margin-top: calc(var(--header-h) + 20px); }
.svc:hover { box-shadow: var(--shadow-lg); }
.svc:hover .media > img { transform: scale(1.07); }
.svc:target { box-shadow: 0 0 0 3px var(--blue-400), var(--shadow-lg); }
.svc__body { padding: 18px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.svc h2, .svc h3 { display: flex; gap: 8px; align-items: center; font-size: 1.14rem; color: var(--navy-700); font-weight: 700; }
.svc h2 .ic, .svc h3 .ic { color: var(--navy-700); width: 1.35em; height: 1.35em; }
.svc p { color: var(--ink-2); font-size: .95rem; margin-top: 6px; line-height: 1.6; }
.mini { margin-top: 10px; display: grid; gap: 4px; }
.mini li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--ink-3); }
.mini li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-400); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .92rem; color: var(--blue-500); }
.more .ic { transition: transform var(--dur-sm) var(--ease-out); }
.more:hover .ic { transform: translateX(4px); }

/* why (3D) */
.why__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.why__copy > p { color: var(--ink-2); margin: 14px 0 22px; font-size: 1.05rem; }
.why__copy .btn { margin-top: 26px; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.checks span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--blue-100); color: var(--navy-700); flex: none; }
.checks--dot span { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-700); color: #fff; }
.checks--dot .ic { width: 15px; height: 15px; stroke-width: 3; }
.scene { position: relative; aspect-ratio: 1 / .92; border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(90% 60% at 50% 0%, #cfe2ff 0%, rgba(207, 226, 255, 0) 70%), linear-gradient(180deg, #eaf2ff 0%, #f7faff 46%, #e9eef7 100%); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.scene__fallback { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; background: linear-gradient(180deg, transparent 0 44%, #a88a66 44% 47%, #8d6e4d 47% 62%, #6e7a85 62% 78%, #c4a873 78%); }
.scene.no-webgl .scene__fallback { opacity: 1; }
.tag { position: absolute; z-index: 2; padding: .35em .85em; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--navy-700); white-space: nowrap; background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); pointer-events: none; }
.tag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--blue-500); }
.tag--a { top: 18%; left: 5%; }
.tag--b { top: 56%; right: 5%; }
.tag--b::before { background: #9b7a52; }
.tag--c { bottom: 8%; left: 5%; }
.tag--c::before { background: #c9a660; }

/* home process flow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; position: relative; }
.flow::before { content: ""; position: absolute; top: 30px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--blue-200) 0 8px, transparent 8px 14px); }
.flow li { position: relative; text-align: center; padding: 0 6px; }
.flow b { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: var(--navy-700); color: #fff; font-family: var(--font-head); font-size: 1.2rem; box-shadow: 0 0 0 8px #fff, var(--shadow-md); position: relative; }
.flow strong { font-family: var(--font-head); font-weight: 500; color: var(--ink); line-height: 1.4; display: block; }

/* CTA band */
.cta { position: relative; padding: clamp(48px, 6vw, 72px) 0; color: #fff; overflow: hidden; background: radial-gradient(80% 140% at 90% 0%, #2457c5 0%, rgba(36, 87, 197, 0) 60%), linear-gradient(120deg, var(--navy-800), var(--navy-700)); }
.cta::after { content: ""; position: absolute; right: -10%; bottom: -60%; width: 60%; height: 160%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 700; }
.cta p { color: #c9d6f1; margin-top: 6px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* machine + steps (portfolio page) */
.mp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.machine, .steps { border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); }
.machine { display: grid; grid-template-columns: 1fr .85fr; overflow: hidden; }
.machine__copy { padding: 30px; }
.machine h2, .steps h2 { font-size: 1.5rem; color: var(--navy-700); font-weight: 700; }
.machine__copy > p { color: var(--ink-2); margin: 8px 0 20px; }
.media--tall { aspect-ratio: auto; height: 100%; min-height: 300px; margin: 14px 14px 14px 0; border-radius: var(--r-md); }
.steps { padding: 30px; }
.steps__list { margin-top: 18px; display: grid; gap: 12px; }
.steps__list li { display: flex; gap: 14px; align-items: center; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--dur-sm), transform var(--dur-sm) var(--ease-out); }
.steps__list li:hover { background: var(--blue-100); transform: translateX(4px); }
.steps__list b { flex: none; display: grid; place-items: center; width: 42px; height: 32px; border-radius: 999px; background: var(--navy-700); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.steps__list span { font-family: var(--font-head); font-weight: 500; color: var(--ink); }
.portfolio { margin-top: clamp(48px, 7vw, 80px); }
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pf { margin: 0; border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.pf .media { aspect-ratio: 4 / 3.3; }
.pf:hover .media > img { transform: scale(1.08); }
.pf figcaption { padding: 12px 16px 14px; line-height: 1.35; }
.pf b { font-family: var(--font-head); font-weight: 500; color: var(--navy-700); display: block; }
.pf small { color: var(--ink-3); font-size: .85rem; }

/* reviews */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 18px; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.review { margin: 0; scroll-snap-align: start; position: relative; padding: 24px 24px 20px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.review__q { width: 34px; height: 34px; fill: var(--navy-700); }
.review p { color: var(--ink-2); margin: 10px 0 18px; flex: 1; font-size: 1.02rem; }
.review footer { display: flex; align-items: center; gap: 10px; }
.review footer b { font-family: var(--font-head); font-weight: 500; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--navy-700); }
.avatar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.carousel__btn { position: absolute; top: 40%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy-700); box-shadow: var(--shadow-md); display: grid; place-items: center; transition: transform var(--dur-sm) var(--ease-out); }
.carousel__btn:hover { transform: scale(1.08); }
.carousel__btn.prev { left: -22px; }
.carousel__btn.next { right: -22px; }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: #c8d3ea; transition: width var(--dur-sm) var(--ease-out), background var(--dur-sm); }
.dots button.is-on { width: 24px; background: var(--navy-700); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--navy-700); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform var(--dur-md) var(--ease-out); color: var(--blue-500); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }

/* articles */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.art { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: transform var(--dur-md) var(--ease-out), box-shadow var(--dur-md); }
.art:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.art:hover .media > img { transform: scale(1.06); }
.art__body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.art h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--ink); flex: 1; }
.art time { font-size: .85rem; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.posts { display: grid; gap: 28px; max-width: 820px; }
.post { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.post time { font-size: .85rem; color: var(--blue-500); font-weight: 600; }
.post h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); color: var(--navy-700); margin: 6px 0 14px; font-weight: 700; }
.post p { color: var(--ink-2); margin-bottom: 12px; }
.post ul { margin: 0 0 12px; display: grid; gap: 6px; }
.post li { position: relative; padding-left: 22px; color: var(--ink-2); }
.post li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-700); }

/* about */
.about-hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 10vw, 130px); background: linear-gradient(160deg, #f6f9ff 0%, #e9eff9 70%, #e1e9f6 100%); overflow: hidden; }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about__copy > p { color: var(--ink-2); margin: 16px 0 24px; font-size: 1.05rem; }
.about__photo { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; transform: perspective(900px) rotateY(-6deg); transform-origin: left center; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 28px; }
.stats div { padding: 18px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); text-align: center; }
.stats dt { font-family: var(--font-head); font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem); font-weight: 700; color: var(--navy-700); line-height: 1.1; }
.stats dd { margin: 4px 0 0; color: var(--ink-3); font-size: .9rem; }
.area { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.area__lead { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 1.08rem; margin: 14px 0 22px; }
.area__lead .ic { color: var(--navy-700); width: 1.6em; height: 1.6em; }
.area__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.area__list li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.area__list .ic { color: #fff; background: var(--navy-700); border-radius: 50%; padding: 4px; width: 1.5em; height: 1.5em; stroke-width: 3; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map__prov path { fill: #d5deec; stroke: #fff; stroke-width: 3; stroke-linejoin: round; transition: fill var(--dur-md); }
.map__prov path:hover { fill: #bfcde6; }
.map__prov path.is-bkk { fill: #a3b8de; }
.map__labels text { font-family: var(--font-body); font-size: 12px; fill: var(--ink-3); font-weight: 500; }
.map__bkk { font-family: var(--font-head); font-size: 14px; fill: var(--navy-700); font-weight: 600; }
.pin { fill: var(--navy-700); }
.pulse { fill: rgba(36, 87, 197, .35); transform-origin: center; animation: pulse 2.4s var(--ease-out) infinite; }
.pulse--2 { animation-delay: 1.2s; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(5); opacity: 0; } }

/* contact */
.contact { background: linear-gradient(160deg, #f6f9ff 0%, #eef3fb 60%, #e4ecf8 100%); overflow: hidden; padding-bottom: clamp(140px, 15vw, 200px); }
.contact__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; position: relative; z-index: 1; }
.contact__copy > p { color: var(--ink-2); margin: 12px 0 26px; font-size: 1.1rem; }
.channels { display: grid; gap: 14px; max-width: 460px; }
.channels a, .channels .nolink { display: flex; align-items: center; gap: 14px; padding: 8px 22px 8px 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: transform var(--dur-sm) var(--ease-out), box-shadow var(--dur-sm); }
.channels a:hover { transform: translateX(6px); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--blue-200); }
.channels b { font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; color: var(--ink); line-height: 1.3; word-break: break-word; }
.ch { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.ch svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ch--phone, .ch--mail, .ch--pin { background: var(--navy-700); }
.ch--line { background: var(--line-green); }
.ch--line svg { fill: #fff; stroke: none; }
.form { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.form h2 { font-size: 1.4rem; color: var(--navy-700); font-weight: 700; margin-bottom: 4px; }
.field { position: relative; display: block; }
.field > .ic { position: absolute; left: 14px; top: 14px; color: var(--ink-3); pointer-events: none; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fbfcff; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px 11px 42px; appearance: none; transition: border-color var(--dur-sm), box-shadow var(--dur-sm), background var(--dur-sm); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(59, 116, 224, .15); background: #fff; }
.field.is-invalid input { border-color: #d93636; box-shadow: 0 0 0 4px rgba(217, 54, 54, .12); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); line-height: 1.5; }
.consent a { color: var(--blue-500); text-decoration: underline; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy-700); flex: none; }
.consent.is-invalid { color: #d93636; }
.form__status { font-size: .9rem; min-height: 1.4em; color: var(--navy-700); }
.form__status.is-error { color: #d93636; }
.contact__skyline {
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 15vw, 190px); z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 170' preserveAspectRatio='none'%3E%3Cg fill='%23c6d4ee'%3E%3Cpath d='M0 170V120h40V90h30v30h20V70h40v50h30V100h24V60h36v60h30V80h40v40h30V50h28v70h22V95h40v25h30V40h20l10-20 10 20v100h30V90h36v30h40V70h28v50h30V100h40v20h22V55h40v65h30V85h30v35h40V60h30v60h26V95h40v25h30V45h34v75h30V90h40v30h28V70h30v50h32V100h40v20h30V60h36v60h40V90h40v80z'/%3E%3C/g%3E%3Cg fill='%2393acdc'%3E%3Cpath d='M0 170v-28h60v-18h40v18h50v-30h40v30h60v-16h50v16h70v-24h40v24h60v-20h50v20h60v-34h40v34h70v-22h40v22h60v-14h50v14h70v-28h40v28h60v-18h40v18h70v-26h50v26h60v-16h40v16h40v28z'/%3E%3C/g%3E%3Cg stroke='%2393acdc' stroke-width='3' fill='none'%3E%3Cpath d='M180 120V28M180 30h110M180 30l-40 0M270 30v34M228 30l-48 40'/%3E%3Cpath d='M1220 120V38M1220 40h-100M1220 40h36M1140 40v30M1180 40l40 36'/%3E%3C/g%3E%3Cpath d='M0 170 C 500 168 1000 150 1440 96 V170Z' fill='%230b2b6f' opacity='.9'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.privacy p { color: var(--ink-2); margin-top: 14px; max-width: 70ch; }

/* footer */
.footer { background: radial-gradient(80% 120% at 20% 0%, #13306f, var(--navy-900)); color: #b9c6e2; padding: 56px 0 24px; font-size: .95rem; }
.footer__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; }
.footer p { margin-top: 12px; max-width: 32ch; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.footer ul { display: grid; gap: 8px; }
.footer li a { display: inline-flex; gap: 8px; align-items: center; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

/* floating actions */
.fab { position: fixed; right: 20px; bottom: 24px; z-index: 60; display: grid; gap: 12px; }
.fab__btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 26px -8px rgba(6, 22, 56, .5); transition: transform var(--dur-sm) var(--ease-out); }
.fab__btn:hover { transform: scale(1.1) rotate(-6deg); }
.fab__btn svg { width: 26px; height: 26px; }
.fab__btn--line { background: var(--line-green); }
.fab__btn--line svg { fill: #fff; }
.fab__btn--phone { background: var(--navy-700); animation: ring 4s ease-in-out infinite; }
.fab__btn--phone svg { fill: none; stroke: #fff; stroke-width: 1.9; stroke-linejoin: round; }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 88%, 92%, 96% { transform: rotate(-12deg); } 90%, 94%, 98% { transform: rotate(12deg); } }
.mbar { display: none; }
.cursor { position: fixed; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1.5px solid rgba(11, 43, 111, .45); pointer-events: none; z-index: 90; opacity: 0; transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background .3s, opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(59, 116, 224, .12); border-color: transparent; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* reveal initial state (only while JS motion is active) */
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.js-motion .hero__title .line > span { transform: translateY(110%); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: .48em .75em; font-size: .95rem; }
  .mp { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .logo__svg { width: 76px; height: 60px; }
  .nav { display: none; }
  .burger { display: grid; place-items: center; }
  .hero { flex-direction: column; align-items: stretch; padding-top: 0; min-height: 0; }
  .hero__photo { position: relative; width: 100%; height: 320px; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); z-index: 0; }
  .hero__photo::after { background: linear-gradient(0deg, rgba(232, 238, 248, .5), transparent 40%); }
  .hero__photo img { width: 118%; max-width: none; margin-left: -18%; object-position: 50% 92%; }
  .hero__in { margin-top: 24px; }
  .why__in, .about, .area, .contact__in, .faq-wrap { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .features-wrap { margin-top: -30px; }
  .svc-grid, .art-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow::before { top: 10px; bottom: 10px; left: 29px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--blue-200) 0 8px, transparent 8px 14px); }
  .flow li { display: flex; align-items: center; gap: 16px; text-align: left; }
  .flow b { margin: 0; flex: none; }
  .carousel__track { grid-auto-columns: calc((100% - 20px) / 2); }
  .carousel__btn { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about__photo { transform: none; }
  .footer__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { padding-bottom: 70px; }
  .hero__photo { height: 260px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .features { gap: 10px; }
  .feature { padding: 18px 10px; }
  .feature__ic svg { width: 36px; height: 36px; }
  .feature p { font-size: .82rem; }
  .svc-grid, .art-grid { grid-template-columns: 1fr; }
  .machine { grid-template-columns: 1fr; }
  .media--tall { min-height: 260px; margin: 0 14px 14px; }
  .pf-grid { gap: 12px; }
  .carousel__track { grid-auto-columns: 86%; }
  .row-head { flex-wrap: wrap; }
  .area__list { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; }
  .channels b { font-size: 1rem; }
  .cta__actions .btn { flex: 1 1 100%; }
  .fab { display: none; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); box-shadow: 0 -8px 24px -12px rgba(6, 22, 56, .35); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px; border-radius: 12px; font-family: var(--font-head); font-weight: 500; background: var(--blue-50); color: var(--navy-700); }
  .mbar__line { background: var(--line-green) !important; color: #fff !important; }
  .mbar__line .ic { fill: #fff; stroke: none; }
  .mbar__cta { background: var(--navy-700) !important; color: #fff !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- facts / other services (services page) ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { padding: 24px 20px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); text-align: center; }
.facts b { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem); color: var(--navy-700); line-height: 1.15; white-space: nowrap; }
.facts b small { font-size: .45em; font-weight: 500; color: var(--blue-500); }
.facts span { display: block; margin-top: 8px; color: var(--ink-2); font-size: .92rem; line-height: 1.55; }
.pros { margin-top: 22px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); }
.pros h3 { font-size: 1.3rem; color: var(--navy-700); font-weight: 700; margin-bottom: 16px; }
.pros .checks { grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.pros .checks li { align-items: flex-start; font-weight: 400; color: var(--ink-2); }
.others { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.others li { display: flex; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: transform var(--dur-md) var(--ease-out), box-shadow var(--dur-md); }
.others li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--blue-200); }
.others__ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--blue-100); color: var(--navy-700); }
.others__ic .ic { width: 26px; height: 26px; }
.others h3 { font-size: 1.12rem; color: var(--navy-700); font-weight: 700; }
.others p { color: var(--ink-2); font-size: .94rem; margin-top: 4px; }
.art-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .art-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } .pros .checks, .others { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .art-grid--4 { grid-template-columns: 1fr; } .facts { gap: 10px; } .facts li { padding: 18px 12px; } }

/* ---------- breadcrumbs ---------- */
.crumbs { background: #f6f9ff; font-size: .85rem; color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 10px 0 0; }
.crumbs li { display: inline-flex; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "›"; color: var(--blue-200); }
.crumbs a { color: var(--blue-500); }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- service detail + article pages ---------- */
.svc h2 a { display: flex; gap: 8px; align-items: center; }
.svc h2 a:hover { color: var(--blue-500); }
.svc-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.svc-hero .sec-title { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
.svc-hero__img { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; max-width: 440px; justify-self: end; width: 100%; }
.svc-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.prose h2 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); color: var(--navy-700); font-weight: 700; margin: 1.6em 0 .5em; }
.prose > h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); margin-bottom: 1em; font-size: 1.03rem; }
.prose ul { display: grid; gap: 8px; margin-bottom: 1em; }
.prose li { position: relative; padding-left: 24px; color: var(--ink-2); }
.prose li::before { content: ""; position: absolute; left: 5px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-700); }
.prose a { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.svc-grid--5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.svc-grid--5 .svc h3 { font-size: 1rem; }
.svc-grid--5 .svc p { font-size: .88rem; }
.article { max-width: 820px; }
.article header time { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; color: var(--blue-500); font-weight: 600; margin-bottom: 8px; }
.article__img { margin: 22px 0 28px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; max-width: 560px; box-shadow: var(--shadow-md); }
.article__img img { width: 100%; height: 100%; object-fit: cover; }
.related { margin-top: 28px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--line); }
.related h2 { font-size: 1.1rem; color: var(--navy-700); margin-bottom: 12px; }
.related ul { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-flex; gap: 8px; align-items: center; padding: .5em 1em; border-radius: 999px; background: #fff; color: var(--navy-700); font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--blue-200); }
.related a:hover { box-shadow: inset 0 0 0 1.5px var(--navy-600); }
.footer__area { font-size: .85rem; opacity: .85; }
.footer li span { display: inline-flex; gap: 8px; align-items: center; }
.notfound { min-height: 60vh; display: grid; align-items: center; }
.notfound__code { font-family: var(--font-head); font-weight: 800; font-style: italic; font-size: clamp(4rem, 14vw, 9rem); line-height: 1; color: var(--blue-100); }
.notfound p { color: var(--ink-2); margin-top: 10px; }
@media (max-width: 900px) {
  .svc-hero, .detail { grid-template-columns: 1fr; }
  .svc-hero__img { justify-self: start; }
  .side { position: static; }
}

/* ---------- real brand logo (image) ---------- */
.logo__img { height: 70px; width: auto; display: block; mix-blend-mode: multiply; }
.logo--light { background: #fff; padding: 8px 14px; border-radius: 16px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.logo--light .logo__img { height: 66px; mix-blend-mode: normal; }
.drawer__logo { height: 84px; width: auto; align-self: flex-start; }
@media (max-width: 900px) { .logo__img { height: 60px; } }
.header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.logo__img { mix-blend-mode: normal; }
