/*
Theme Name: V&S Communication
Theme URI: https://www.vscomm.co.th
Author: V&S Communication Co., Ltd.
Description: Official bilingual (Thai / English) corporate theme for V&S Communication Co., Ltd. Language routing (/th/ and /en/), page content, SEO tags and the contact form are built in; no plugins are required.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vscomm
*/

/* ---------- Fonts (self-hosted IBM Plex, SIL Open Font License) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-thai-thai-400-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-thai-thai-500-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-thai-thai-600-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }

/* ---------- Tokens ---------- */
:root {
	--navy-950: #080d28;
	--navy-900: #0d1436;
	--navy-800: #151e55;
	--brand: #27348b;
	--brand-dark: #1e2970;
	--gold: #e9a23b;
	--brass: #8f5d10;
	--ink: #131a33;
	--muted: #556079;
	--line: #dce3ee;
	--tint: #f4f6fa;
	--white: #fff;
	--radius: 6px;
	--wrap: 1200px;
	--gutter: 24px;
	--font: "IBM Plex Sans", "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", "Leelawadee UI", sans-serif;
	--shadow: 0 1px 2px rgba(13, 20, 54, .06), 0 8px 24px rgba(13, 20, 54, .06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
.lang-th { line-height: 1.8; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.lang-th h1, .lang-th h2, .lang-th h3 { line-height: 1.4; letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.1875rem; line-height: 1.35; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
address { font-style: normal; }
.icon { flex: none; width: 1.25em; height: 1.25em; vertical-align: -.25em; }
.muted { color: var(--muted); }
.nb { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 800px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 16px; background: var(--gold); color: var(--navy-900); font-weight: 600; }
.skip-link:focus { left: 8px; top: 8px; }

.eyebrow {
	display: flex; align-items: center; gap: 12px;
	margin: 0 0 16px;
	color: var(--brass);
	font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.lang-th .eyebrow { font-size: .9375rem; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.eyebrow--light { color: var(--gold); }
.lead { font-size: 1.1875rem; color: var(--ink); }

/* ---------- Buttons and links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 10px 22px;
	border: 1.5px solid transparent; border-radius: var(--radius);
	font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .9375rem; }
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-dark); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: #f3b558; color: var(--navy-900); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }
.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand); color: var(--white); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Top bar and header ---------- */
.topbar { background: var(--navy-900); color: #c9d2ea; font-size: .875rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar .icon { width: 1em; height: 1em; color: var(--gold); }
.lang { display: flex; flex: none; }
.lang a { padding: 4px 10px; border-left: 1px solid rgba(255, 255, 255, .18); }
.lang a:first-child { border-left: 0; }
.lang a[aria-current] { color: var(--white); font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand__logo { flex: none; width: auto; height: 56px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; color: var(--brand); }
@media (min-width: 1248px) { .brand__name, .brand__sub { white-space: nowrap; } .site-header__inner { gap: 16px; } }
.brand__sub { font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.site-nav ul { display: flex; align-items: center; gap: 2px; }
.site-nav a:not(.btn) {
	display: block; padding: 10px 9px;
	color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
	border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--brand); }
.site-nav a:not(.btn)[aria-current] { color: var(--brand); border-bottom-color: var(--gold); }
.site-nav__cta { margin-left: 12px; }
.site-nav__cta .btn { white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1247px) {
	.js .nav-toggle {
		display: inline-flex; align-items: center; gap: 10px;
		min-height: 44px; padding: 8px 14px;
		background: none; border: 1.5px solid var(--line); border-radius: var(--radius);
		color: var(--ink); font: inherit; font-weight: 500; cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; }
	.nav-toggle__bars { position: relative; }
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -6px; }
	.nav-toggle__bars::after { top: 6px; }
	.site-header__inner { flex-wrap: wrap; padding-block: 10px; }
	.brand { flex: 1 1 0; }
	.nav-toggle { flex: none; }
	.site-nav { flex-basis: 100%; }
	.js .site-nav { display: none; }
	.js .site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
	.site-nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); white-space: normal; }
	.site-nav a:not(.btn)[aria-current] { border-bottom-color: var(--line); }
	.site-nav__cta { margin: 16px 0 0; }
	.site-nav__cta .btn { width: 100%; }
}
@media (max-width: 599px) {
	.brand__logo { height: 44px; }
	.brand__name { font-size: .9375rem; }
	.brand__sub { display: none; }
	.site-header__inner { gap: 12px; }
	.nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.js .nav-toggle { width: 46px; justify-content: center; padding: 8px; }
	.topbar__contact a:nth-child(2) { display: none; }
}

/* ---------- Hero ---------- */
.hero, .page-hero, .section--dark {
	background-color: var(--navy-900);
	background-image:
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
		radial-gradient(1000px 600px at 85% -10%, rgba(39, 52, 139, .85), transparent 70%);
	background-size: 64px 64px, 64px 64px, auto;
	color: var(--white);
}
.hero { padding-top: clamp(48px, 7vw, 96px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero__lead { max-width: 36em; margin-bottom: 32px; color: #cfd6ec; font-size: 1.1875rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { justify-self: end; width: 100%; max-width: 440px; }

.radar { display: block; width: 100%; height: auto; }
.radar__face { fill: rgba(8, 13, 40, .72); }
.radar__rings { fill: none; stroke: rgba(201, 212, 230, .22); stroke-width: 1; }
.radar__ticks { stroke: rgba(201, 212, 230, .5); stroke-width: 1; }
.radar__labels { fill: rgba(201, 212, 230, .7); font-family: "IBM Plex Sans", sans-serif; font-size: 13px; letter-spacing: .08em; }
.radar__coast { fill: none; stroke: rgba(233, 162, 59, .55); stroke-width: 2; stroke-linecap: round; }
.radar__heading { stroke: rgba(255, 255, 255, .55); stroke-width: 1; stroke-dasharray: 5 5; }
.radar__targets circle { fill: var(--gold); }
.radar__targets path { stroke: var(--gold); stroke-width: 1.25; opacity: .7; }
.radar__own { fill: var(--white); }
.radar__sweep { transform-origin: 260px 260px; animation: vs-sweep 7s linear infinite; }
@keyframes vs-sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.radar__sweep { animation: none; transform: rotate(40deg); }
	html { scroll-behavior: auto; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero .stats { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid rgba(255, 255, 255, .16); }
.stat { display: flex; flex-direction: column; padding: 28px 24px 32px; border-left: 1px solid rgba(255, 255, 255, .16); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { order: -1; color: var(--gold); font-family: "IBM Plex Sans", sans-serif; font-size: clamp(2.4rem, 4.4vw, 3.5rem); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat dt { margin-top: 8px; color: var(--white); font-weight: 600; }
.stat__note { color: #b4bedb; font-size: .9375rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--tint); }
.section--dark { padding-block: 16px; }
.section-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-bottom: 0; }
.section-head__lead { margin: 16px 0 0; color: var(--muted); font-size: 1.125rem; }
.section__more { margin: 36px 0 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split .section-head { margin-bottom: 0; }
.split--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.prose > :last-child { margin-bottom: 0; }
.prose p { max-width: 42em; }
.footnote { margin: 40px 0 0; color: var(--muted); font-size: .9375rem; }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
	display: flex; flex-direction: column;
	padding: 28px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--ink);
}
.card h3, .card h2 { margin-bottom: 10px; }
.card h2 { font-size: 1.375rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card > p:last-child, .card > div > p:last-child { margin-bottom: 0; }
.card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	flex: none; width: 48px; height: 48px; margin-bottom: 20px;
	background: #eaedf8; border-radius: var(--radius); color: var(--brand);
}
.card__icon .icon { width: 26px; height: 26px; }
.card__tag { margin-bottom: 8px; color: var(--brass) !important; font-size: .8125rem !important; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lang-th .card__tag { font-size: .9375rem !important; letter-spacing: .01em; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto 0 0 !important; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink) !important; font-size: .9375rem !important; font-weight: 600; }
.card--link { text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--link:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); transform: translateY(-2px); }
.card--link .card__foot .icon { color: var(--brand); }
.card--more { background: var(--brand); border-color: var(--brand); color: var(--white); text-decoration: none; justify-content: space-between; transition: background-color .15s; }
.card--more:hover { background: var(--brand-dark); color: var(--white); }
.card--more h3 { font-size: 1.375rem; }
.card--more .card__tag { color: var(--gold) !important; }
.card--more .card__foot { border-top-color: rgba(255, 255, 255, .25); color: var(--white) !important; }
.card--segment { flex-direction: row; gap: 20px; }
.card--segment .card__icon { margin-bottom: 0; }
.record { margin-top: 16px !important; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink) !important; font-weight: 500; }
.record .lbl { display: block; margin-bottom: 2px; color: var(--brass); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lang-th .record .lbl { font-size: .875rem; letter-spacing: .01em; }
.card--plain h3 { margin-bottom: 12px; }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 2px solid var(--line); }
.steps::before { content: ""; position: absolute; left: 0; top: -2px; width: 100%; height: 2px; background: linear-gradient(90deg, var(--brand), var(--gold)); transform-origin: left center; }
.step { padding: 24px 16px 0 0; }
.step + .step { padding-left: 16px; border-left: 1px solid var(--line); }
.step__num { display: block; margin-bottom: 12px; color: var(--brass); font-family: "IBM Plex Sans", sans-serif; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.lang-th .step p { line-height: 1.7; }

/* ---------- Principals ---------- */
.principals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principals li + li { border-left: 1px solid var(--line); }
.principals a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 28px 24px; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.principals a:hover { background: var(--tint); }
.principals__field { color: var(--brass); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lang-th .principals__field { font-size: .9375rem; letter-spacing: .01em; }
.principals__name { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.principals__host { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; color: var(--brand); font-size: .9375rem; font-weight: 500; }
.principals__host .icon { width: 1em; height: 1em; }

.card--partner dl { display: grid; gap: 16px; margin: 8px 0 24px; }
.card--partner dt { margin-bottom: 2px; color: var(--muted); font-size: .875rem; font-weight: 600; }
.card--partner dd { color: var(--ink); }
.notice { display: flex; gap: 20px; margin-top: 32px; padding: 28px; background: var(--tint); border-left: 3px solid var(--gold); border-radius: var(--radius); }
.notice .card__icon { margin: 0; background: var(--white); }
.notice h2 { font-size: 1.25rem; margin-bottom: 6px; }
.notice p { margin: 0; color: var(--muted); }

/* ---------- Highlights, vision, catalogue, sister company ---------- */
.highlights { border-bottom: 1px solid var(--line); }
.highlights__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.highlights__list li { display: flex; gap: 18px; padding: 36px 28px 36px 0; }
.highlights__list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.highlights__num { flex: none; color: var(--brass); font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.5; }
.highlights h3 { margin-bottom: 6px; }
.highlights p { margin: 0; color: var(--muted); font-size: 1rem; }

.vm__vision { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.vm__vision .card__tag { color: var(--gold) !important; }
.vm__quote { margin: 0; color: var(--white) !important; font-size: 1.3125rem !important; font-weight: 500; line-height: 1.5; }
.lang-th .vm__quote { line-height: 1.7; }
.vm__mission { display: grid; gap: 16px; counter-reset: vm; }
.vm__mission li { position: relative; padding-left: 44px; counter-increment: vm; }
.vm__mission li::before { content: counter(vm, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--brass); font-weight: 600; font-variant-numeric: tabular-nums; }

.catalogue { padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.catalogue:last-child { border-bottom: 0; padding-bottom: 0; }
.catalogue__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 28px; }
.catalogue__head h2 { margin: 0; }
.catalogue__sets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.catalogue__set { padding: 24px 28px 12px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); }
.catalogue__set h3 { margin-bottom: 8px; }
.catalogue__set li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.catalogue__set li > span { color: var(--muted); font-size: 1rem; }
.catalogue__set strong { font-weight: 600; }

.sister { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: center; margin-top: 32px; padding: clamp(24px, 4vw, 40px); background: var(--tint); border-left: 3px solid var(--gold); border-radius: var(--radius); }
.sister h2 { font-size: 1.5rem; }
.sister p { color: var(--muted); }
.sister > div > p:last-child { margin: 0; }
.societies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.societies li { padding: 14px 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--brand); font-family: "IBM Plex Sans", sans-serif; font-size: 1.125rem; font-weight: 600; letter-spacing: .04em; text-align: center; }

.sister-more { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 16px clamp(24px, 4vw, 40px); background: var(--tint); border-left: 3px solid var(--gold); border-radius: var(--radius); color: var(--muted); }
.sister-more .icon { color: var(--brand); }
.sister-more strong { color: var(--ink); font-weight: 600; }

/* ---------- Announcement and careers ---------- */
.announce { background: #fdf5e6; border-bottom: 1px solid #f0dcb4; }
.announce__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 14px; }
.announce p { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.announce strong { color: var(--brass); font-weight: 600; }
.announce__job { padding: 3px 12px; background: var(--white); border: 1px solid #f0dcb4; border-radius: 999px; font-size: .9375rem; font-weight: 500; }

.job { margin-top: 28px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); }
.job__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.job__head h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-bottom: 6px; }
.job__head p { margin: 0; color: var(--muted); }
.job__count { flex: none; padding: 8px 18px; background: var(--navy-900); border-radius: var(--radius); color: var(--white) !important; font-weight: 500; white-space: nowrap; }
.job__count strong { color: var(--gold); font-family: "IBM Plex Sans", sans-serif; font-size: 1.5rem; font-weight: 600; margin-right: 4px; }
.job__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 24px 0 0; padding: 20px 24px; background: var(--tint); border-radius: var(--radius); }
.job__meta > div { display: flex; gap: 12px; }
.job__meta .icon { margin-top: .2em; color: var(--brand); }
.job__meta dt { color: var(--muted); font-size: .875rem; font-weight: 600; }
.job__meta dd { font-weight: 500; }
.job__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin-top: 32px; }
.job__block h3 { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.job__note { margin: 24px 0 0; color: var(--muted); }
.job__apply { margin: 32px 0 0; }
.notice__contacts { margin-top: 10px !important; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: var(--white); padding-block: clamp(44px, 6vw, 72px); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { max-width: 22em; font-size: clamp(1.4rem, 2.4vw, 1.875rem); margin-bottom: 8px; }
.cta-band p { margin: 0; color: #d5dbf3; }
.cta-band__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.cta-band__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cta-band__tel:hover { color: var(--gold); }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px); }
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; top: 50%; right: -140px; width: 560px; height: 560px; margin-top: -280px; border-radius: 50%; pointer-events: none; }
.page-hero::before { background: repeating-radial-gradient(circle, transparent 0 68px, rgba(201, 212, 230, .13) 68px 69px); }
.page-hero::after { background: conic-gradient(from 0deg, rgba(233, 162, 59, 0) 0deg, rgba(233, 162, 59, 0) 300deg, rgba(233, 162, 59, .22) 360deg); }
@media (max-width: 899px) { .page-hero::before, .page-hero::after { display: none; } }
.page-hero--compact { padding-block: 48px; }
.page-hero h1 { max-width: 20em; font-size: clamp(1.9rem, 3.6vw, 2.875rem); margin-bottom: 16px; }
.page-hero__lead { max-width: 42em; margin: 0; color: #cfd6ec; font-size: 1.125rem; }
.page-hero .btn { margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: #9fabd0; font-size: .9375rem; }
.crumbs a { color: #cfd6ec; text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }

.facts { padding: 32px; background: var(--tint); border-top: 3px solid var(--brand); border-radius: var(--radius); }
.facts h2 { font-size: 1.25rem; margin-bottom: 12px; }
.facts dl > div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .9375rem; }
.facts dd { font-weight: 500; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.jump a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.jump a:hover { border-color: var(--brand); color: var(--brand); }

.solution { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.solution:last-child { border-bottom: 0; padding-bottom: 0; }
.solution h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.solution__principal { margin: 16px 0 0; font-weight: 600; }
.solution__principal .lbl { display: block; color: var(--muted); font-size: .875rem; font-weight: 500; }
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; }
.checklist .icon { margin-top: .2em; color: var(--brand); }
.lang-th .checklist .icon { margin-top: .3em; }

.record-section { padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.record-section:last-of-type { border-bottom: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 28px; background: var(--navy-900); border-radius: var(--radius); color: var(--white); }
.metrics--1 { grid-template-columns: 1fr; }
.metrics > div { display: flex; flex-direction: column; padding: 24px; }
.metrics > div + div { border-left: 1px solid rgba(255, 255, 255, .16); }
.metrics dd { order: -1; color: var(--gold); font-family: "IBM Plex Sans", sans-serif; font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.metrics dt { margin-top: 6px; color: #d5dbf3; font-size: .9688rem; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact-card { padding: 32px; background: var(--tint); border-top: 3px solid var(--brand); border-radius: var(--radius); }
.contact-card h2, .enquiry h2 { font-size: 1.5rem; }
.contact-card__name { font-weight: 600; font-size: 1.125rem; }
.contact-list { display: grid; gap: 20px; margin: 20px 0 28px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .icon { margin-top: .2em; color: var(--brand); }
.contact-list .lbl { display: block; color: var(--muted); font-size: .875rem; font-weight: 600; }
.contact-list a { color: var(--ink); font-weight: 500; }
.form p { margin-bottom: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form label { display: block; margin-bottom: 6px; font-size: .9688rem; font-weight: 600; }
.form label em { color: var(--muted); font-style: normal; font-weight: 400; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
	display: block; width: 100%; min-height: 48px; padding: 10px 14px;
	background: var(--white); border: 1.5px solid #b9c3d6; border-radius: var(--radius);
	color: var(--ink); font: inherit;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(39, 52, 139, .25); border-color: var(--brand); }
.form__consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form__consent input { flex: none; width: 20px; height: 20px; margin: .2em 0 0; accent-color: var(--brand); }
.form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius); border-left: 4px solid; font-weight: 500; }
.alert--ok { background: #e9f6ee; border-color: #1c7a45; color: #0f4d2a; }
.alert--fail { background: #fdecea; border-color: #b3261e; color: #7a1610; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #b4bedb; font-size: .9688rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 48px; padding-block: 64px 48px; }
.site-footer h2 { margin-bottom: 16px; color: var(--white); font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; }
.lang-th .site-footer h2 { font-size: 1rem; letter-spacing: .01em; }
.site-footer__name { color: var(--white); font-size: 1.1875rem; font-weight: 600; margin-bottom: 8px; }
.site-footer__est { color: var(--gold); font-size: .875rem; }
.site-footer a { color: #d5dbf3; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__links { display: grid; gap: 8px; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; }
.site-footer__legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 20px; }
.site-footer__legal p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 8px; }
	.step { padding-bottom: 20px; }
	.step:nth-child(5) { padding-left: 0; border-left: 0; }
	.principals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.principals li:nth-child(3) { border-left: 0; }
	.principals li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 899px) {
	.hero__inner, .split, .split--wide, .solution { grid-template-columns: minmax(0, 1fr); }
	.highlights__list, .catalogue__sets, .sister, .job__meta, .job__cols { grid-template-columns: minmax(0, 1fr); }
	.highlights__list li, .highlights__list li + li { padding: 22px 0; border-left: 0; }
	.highlights__list li + li { border-top: 1px solid var(--line); }
	.hero__visual { display: none; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stats, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.metrics--1 { grid-template-columns: 1fr; }
	.stat { padding: 24px 20px; }
	.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
	.metrics > div:nth-child(odd) { border-left: 0; }
	.metrics > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
	.site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
	:root { --gutter: 16px; }
	.grid--2, .grid--3, .grid--4, .form__row { grid-template-columns: minmax(0, 1fr); }
	.steps { grid-template-columns: minmax(0, 1fr); }
	.step, .step + .step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
	.step__num { grid-row: span 2; margin: 0; }
	.principals { grid-template-columns: minmax(0, 1fr); }
	.principals li + li { border-left: 0; border-top: 1px solid var(--line); }
	.card { padding: 22px; }
	.catalogue__set { padding: 20px 20px 8px; }
	.catalogue__set li { grid-template-columns: minmax(0, 1fr); }
	.card--segment { flex-direction: column; gap: 16px; }
	.facts, .contact-card { padding: 22px; }
	.facts dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.hero__actions .btn { flex: 1 1 100%; }
	.notice { flex-direction: column; }
}

/* ---------- Motion ---------- */
.site-header { transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(13, 20, 54, .10); }
.site-nav a:not(.btn) { transition: color .15s, border-color .15s; }
.card__icon { transition: background-color .2s, color .2s; }
.card--link:hover .card__icon { background: var(--brand); color: var(--white); }
.card--link .card__foot .icon, .card--more .card__foot .icon { transition: transform .2s; }
.card--link:hover .card__foot .icon, .card--more:hover .card__foot .icon { transform: translateX(4px); }
.principals__host .icon { transition: transform .2s; }
.principals a:hover .principals__host .icon { transform: translate(2px, -2px); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }

.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px;
	background: var(--brand); border: 0; border-radius: 50%; color: var(--white);
	box-shadow: var(--shadow); cursor: pointer; text-decoration: none;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .25s, transform .25s, visibility .25s, background-color .15s;
}
.to-top .icon { transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-dark); color: var(--white); }

.radar__pulse { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
	/* Hero entrance */
	.hero__copy > *, .page-hero .wrap > * { animation: vs-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
	.hero__copy > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: .08s; }
	.hero__copy > :nth-child(3), .page-hero .wrap > :nth-child(3) { animation-delay: .16s; }
	.hero__copy > :nth-child(4), .page-hero .wrap > :nth-child(4) { animation-delay: .24s; }
	.hero__visual { animation: vs-fade 1.2s ease-out .2s both; }
	.eyebrow::before { transform-origin: left center; animation: vs-draw .8s ease-out .2s both; }

	/* Radar */
	.radar__pulse { animation: vs-pulse 3.5s ease-out infinite; }
	.radar__pulse:nth-of-type(2) { animation-delay: 1.1s; }
	.radar__pulse:nth-of-type(3) { animation-delay: 2.2s; }
	.radar__coast { stroke-dasharray: 900; animation: vs-trace 3s ease-out .4s both; }
	.page-hero::after { animation: vs-sweep 14s linear infinite; }

	/* Scroll reveal (classes are added by main.js, so content stays visible without JavaScript) */
	.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2, .7, .2, 1); }
	.motion .reveal.is-in { opacity: 1; transform: none; }
	.motion .steps::before { transform: scaleX(0); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1) .2s; }
	.motion .steps.is-in::before { transform: scaleX(1); }
	.motion .card--link.reveal.is-in:hover { transform: translateY(-2px); transition-delay: 0s !important; transition-duration: .15s; }
}
@keyframes vs-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes vs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vs-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes vs-pulse { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(4.5); } }
@keyframes vs-trace { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }

@media print {
	.topbar, .site-nav, .nav-toggle, .cta-band, .hero__visual, .to-top { display: none; }
	.site-header { position: static; }
}
