/* ==========================================================================
   Tâm Hà VN — "Paper & Grid"
   Hệ thiết kế sáng màu, editorial + bento.
   Nguyên tắc: nền giấy ngà, khối trắng, viền hairline thay vì đổ bóng nặng,
   nhãn monospace kỹ thuật, marker vàng làm điểm nhấn.
   ========================================================================== */

/* --------------------------------------------------------------- tokens */
:root {
	/* nền & mực */
	--c-paper:      #f7f6f2;
	--c-surface:    #ffffff;
	--c-surface-2:  #fbfaf7;
	--c-ink:        #14162e;
	--c-ink-2:      #454a63;
	--c-ink-3:      #757b90;
	--c-line:       #e4e1d7;
	--c-line-soft:  #efece4;

	/* thương hiệu (lấy từ logo) */
	--c-navy:       #171851;
	--c-brand:      #0a5bd3;
	--c-brand-dark: #08409a;
	--c-brand-soft: #e9f0fd;
	--c-sky:        #008ae7;
	--c-amber:      #f9b315;
	--c-amber-soft: #fdf0cf;
	--c-green:      #12855c;

	/* chữ */
	--f-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	--fs-xs:  0.75rem;
	--fs-sm:  0.875rem;
	--fs-md:  1rem;
	--fs-lg:  1.0625rem;

	/* hình khối */
	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 20px;
	--r-pill: 999px;

	--wrap: 1200px;
	--gut: clamp(1.1rem, 4vw, 2.25rem);

	--shadow-flat: 0 1px 2px rgba(20, 22, 46, .04);
	--shadow-lift: 0 18px 40px -26px rgba(20, 22, 46, .45);

	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--c-paper);
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: var(--fs-lg);
	font-weight: 400;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--c-brand); text-decoration: none; }
a:hover { color: var(--c-brand-dark); }

h1, h2, h3, h4 {
	margin: 0 0 .6em;
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -.022em;
	color: var(--c-ink);
	text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.65rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.55rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1.05rem; }
ul, ol { margin: 0 0 1.05rem; padding-left: 1.15rem; }

:focus-visible {
	outline: 2px solid var(--c-brand);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--c-amber-soft); color: var(--c-ink); }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: .8rem 1.2rem;
	background: var(--c-ink);
	color: #fff;
	border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* --------------------------------------------------------------- layout */
.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gut);
}

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Dải trắng nổi trên nền giấy, viền hairline trên/dưới */
.section--alt {
	background: var(--c-surface);
	border-block: 1px solid var(--c-line);
}

/* Dải nhấn: nền giấy đậm hơn một nấc + lưới chấm mờ */
.section--soft {
	background:
		radial-gradient(circle at 1px 1px, rgba(20, 22, 46, .07) 1px, transparent 0) 0 0 / 26px 26px,
		var(--c-surface-2);
	border-block: 1px solid var(--c-line);
}

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
.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)); }

.muted { color: var(--c-ink-3); }

.lead {
	font-size: clamp(1.02rem, .96rem + .35vw, 1.2rem);
	color: var(--c-ink-2);
	line-height: 1.75;
}

/* nhãn mono — chữ ký của hệ thiết kế này */
.eyebrow {
	display: inline-block;
	margin-bottom: .85rem;
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--c-brand);
}
.eyebrow::before { content: "// "; color: var(--c-amber); }

.eyebrow-pill {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: .4rem .85rem .4rem .6rem;
	margin-bottom: 1.4rem;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: .04em;
	color: var(--c-ink-2);
	box-shadow: var(--shadow-flat);
}
.eyebrow-pill i {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--c-green);
	box-shadow: 0 0 0 4px rgba(18, 133, 92, .14);
}

.section-head { max-width: 700px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .7rem; }
.section-head p:last-child { margin-bottom: 0; }

/* marker vàng — thay cho gradient text của bản cũ.
   Dùng background-gradient (không phải ::after) để vệt tô bám đúng bề rộng chữ
   và vẫn đúng khi câu xuống dòng. */
.accent {
	color: inherit;
	background-image: linear-gradient(transparent 60%, rgba(249, 179, 21, .55) 60%);
	background-repeat: no-repeat;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	padding-inline: .06em;
}

/* --------------------------------------------------------------- buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .82rem 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	font-family: inherit;
	font-size: var(--fs-md);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .18s var(--ease), background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: #fff;
}
.btn--primary:hover {
	background: var(--c-brand);
	border-color: var(--c-brand);
	color: #fff;
	box-shadow: var(--shadow-lift);
}

.btn--blue {
	background: var(--c-brand);
	border-color: var(--c-brand);
	color: #fff;
}
.btn--blue:hover { background: var(--c-brand-dark); border-color: var(--c-brand-dark); color: #fff; }

.btn--ghost {
	background: var(--c-surface);
	border-color: var(--c-line);
	color: var(--c-ink);
}
.btn--ghost:hover {
	border-color: var(--c-ink);
	color: var(--c-ink);
	box-shadow: var(--shadow-flat);
}

.btn--sm { padding: .58rem 1.05rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-family: var(--f-mono);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--c-brand);
}
.arrow-link span { transition: transform .2s var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }

/* --------------------------------------------------------------- header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(247, 246, 242, .88);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.site-header.is-scrolled {
	background: rgba(255, 255, 255, .92);
	border-bottom-color: var(--c-line);
	box-shadow: 0 6px 24px -22px rgba(20, 22, 46, .5);
}

.topbar {
	background: var(--c-navy);
	color: rgba(255, 255, 255, .78);
	font-size: var(--fs-xs);
	font-family: var(--f-mono);
	letter-spacing: .01em;
}
.topbar .wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	min-height: 38px;
	flex-wrap: wrap;
}
.topbar-list {
	display: flex;
	align-items: center;
	gap: 1.4rem;
	margin: 0; padding: 0;
	list-style: none;
}
.topbar-list li { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-list svg { color: var(--c-amber); flex: none; }
.topbar-list a { color: inherit; }
.topbar-list a:hover { color: #fff; }

.nav-bar {
	display: flex;
	align-items: center;
	gap: clamp(.8rem, 2vw, 1.6rem);
	min-height: 76px;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { max-height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b {
	font-size: 1.28rem;
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--c-navy);
}
.brand-text small {
	font-family: var(--f-mono);
	font-size: .625rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--c-ink-3);
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: .15rem;
	margin: 0 auto 0 0;
	padding: 0;
	list-style: none;
}
.nav-menu li { position: relative; }
.nav-menu a {
	display: block;
	padding: .55rem .7rem;
	border-radius: var(--r-sm);
	font-size: .84rem;
	font-weight: 600;
	white-space: nowrap;
	color: var(--c-ink-2);
	transition: color .16s, background .16s;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a,
.nav-menu > li.current-menu-parent > a {
	color: var(--c-ink);
	background: rgba(20, 22, 46, .05);
}
/* gạch chân vàng cho mục đang xem */
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
	box-shadow: inset 0 -2px 0 var(--c-amber);
}

.nav-menu .sub-menu {
	position: absolute;
	top: calc(100% + .5rem);
	left: 0;
	min-width: 250px;
	margin: 0; padding: .45rem;
	list-style: none;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-lift);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: all .18s var(--ease);
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.nav-menu .sub-menu a { padding: .55rem .7rem; font-weight: 500; }
.nav-menu .sub-menu a:hover { background: var(--c-brand-soft); color: var(--c-brand); }

.nav-actions { display: flex; align-items: center; gap: .6rem; flex: none; }

.nav-toggle {
	display: none;
	width: 42px; height: 42px;
	padding: 0;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-sm);
	cursor: pointer;
	position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	position: absolute;
	left: 50%;
	width: 18px; height: 2px;
	background: var(--c-ink);
	border-radius: 2px;
	transform: translateX(-50%);
	transition: transform .2s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { content: ""; top: -6px; left: 0; transform: none; }
.nav-toggle span::after { content: ""; top: 6px; left: 0; transform: none; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* dưới 1240px chưa đủ chỗ cho nút điện thoại — giữ menu một dòng */
@media (max-width: 1240px) {
	.nav-actions .btn--ghost { display: none; }
}

/* --------------------------------------------------------------- hero (bento) */
.hero {
	position: relative;
	padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
	background:
		linear-gradient(180deg, #fff 0%, var(--c-paper) 62%);
	border-bottom: 1px solid var(--c-line);
	overflow: hidden;
}
/* lưới kỹ thuật mờ ở nền */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--c-line-soft) 1px, transparent 1px),
		linear-gradient(90deg, var(--c-line-soft) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 0%, #000 30%, transparent 78%);
	mask-image: radial-gradient(ellipse 80% 65% at 50% 0%, #000 30%, transparent 78%);
	pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: clamp(1.5rem, 3vw, 2.6rem);
	align-items: center;
}

.hero h1 { margin-bottom: 1.1rem; }
.hero-desc {
	max-width: 56ch;
	font-size: clamp(1.02rem, .96rem + .35vw, 1.18rem);
	color: var(--c-ink-2);
	margin-bottom: 1.8rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }

.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	margin-top: 1.9rem;
	padding-top: 1.5rem;
	border-top: 1px dashed var(--c-line);
	font-size: var(--fs-sm);
	color: var(--c-ink-2);
}
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust svg { color: var(--c-green); flex: none; }

/* Ô "trạng thái dự án" — bento tile trắng, viền hairline */
.hero-visual {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-lift);
	overflow: hidden;
}
.hv-bar {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .75rem 1.1rem;
	background: var(--c-surface-2);
	border-bottom: 1px solid var(--c-line);
}
.hv-bar i {
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--c-line);
	flex: none;
}
.hv-bar i:nth-child(1) { background: #f5a3a3; }
.hv-bar i:nth-child(2) { background: var(--c-amber); }
.hv-bar i:nth-child(3) { background: #8fd4b4; }
.hv-bar small {
	margin-left: .5rem;
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	color: var(--c-ink-3);
}

.hv-body { padding: 1.15rem 1.25rem 1.35rem; }
.hv-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: .62rem 0;
	border-bottom: 1px dashed var(--c-line-soft);
	font-size: var(--fs-sm);
}
.hv-row:last-of-type { border-bottom: 0; }
.hv-row b { font-weight: 500; color: var(--c-ink-2); }
.hv-row .val {
	font-family: var(--f-mono);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--c-ink);
}
.hv-row .val--ok { color: var(--c-green); }

.hv-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .38rem;
	margin-top: 1.05rem;
	padding-top: 1.05rem;
	border-top: 1px solid var(--c-line-soft);
}
.hv-tags span {
	padding: .22rem .58rem;
	background: var(--c-brand-soft);
	border-radius: var(--r-sm);
	font-family: var(--f-mono);
	font-size: .7rem;
	font-weight: 500;
	color: var(--c-brand-dark);
}

/* --------------------------------------------------------------- stats */
.stat-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--c-line);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	overflow: hidden;
}
.stat {
	padding: 1.6rem 1.2rem;
	background: var(--c-surface);
	text-align: center;
}
.stat b {
	display: block;
	font-family: var(--f-mono);
	font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem);
	font-weight: 700;
	letter-spacing: -.03em;
	color: var(--c-navy);
	line-height: 1.1;
}
.stat small {
	display: block;
	margin-top: .4rem;
	font-size: var(--fs-sm);
	color: var(--c-ink-3);
}

/* --------------------------------------------------------------- cards */
.card {
	display: flex;
	flex-direction: column;
	padding: 1.6rem 1.5rem;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.card:hover {
	transform: translateY(-3px);
	border-color: #d3cfc2;
	box-shadow: var(--shadow-lift);
}
.card h3 { margin-bottom: .5rem; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--c-brand); }
.card p {
	flex: 1;
	font-size: var(--fs-sm);
	color: var(--c-ink-2);
	margin-bottom: 1.1rem;
}

.card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	margin-bottom: 1.1rem;
	background: var(--c-brand-soft);
	border-radius: var(--r-sm);
	color: var(--c-brand);
}
.card:hover .card-icon { background: var(--c-amber-soft); color: #a06f00; }

/* --------------------------------------------------------------- bento */
/* Lưới bento: ô đầu rộng gấp đôi, ô cuối là lời mời hành động. */
.bento {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2.2vw, 1.5rem);
}
.bento > .card:first-child { grid-column: span 2; }
.bento > .card:first-child h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
.bento > .card:first-child p { font-size: var(--fs-md); }

.bento-cta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: .9rem;
	padding: 1.6rem 1.5rem;
	background:
		radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .16) 1px, transparent 0) 0 0 / 22px 22px,
		var(--c-navy);
	border-radius: var(--r-md);
	color: rgba(255, 255, 255, .8);
}
.bento-cta h3 { color: #fff; margin-bottom: 0; }
.bento-cta p { font-size: var(--fs-sm); margin: 0; }
.bento-cta .btn {
	align-self: flex-start;
	background: var(--c-amber);
	border-color: var(--c-amber);
	color: #2a1d00;
}
.bento-cta .btn:hover { background: #ffc63d; border-color: #ffc63d; color: #2a1d00; }

/* --------------------------------------------------------------- feature list */
.feature-list {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	gap: .85rem;
}
.feature-list li {
	display: flex;
	gap: 1rem;
	padding: 1.2rem 1.25rem;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
}
.feature-list b { display: block; margin-bottom: .25rem; font-size: var(--fs-md); }
.feature-list p { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-2); }

.fi {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	flex: none;
	background: var(--c-amber-soft);
	border-radius: var(--r-sm);
	color: #a06f00;
}

/* --------------------------------------------------------------- steps */
.steps { counter-reset: step; }
.step {
	position: relative;
	counter-increment: step;
	padding: 3rem 1.4rem 1.6rem;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
}
.step::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	top: 1.1rem; left: 1.4rem;
	font-family: var(--f-mono);
	font-size: .95rem;
	font-weight: 700;
	color: var(--c-amber);
	letter-spacing: .05em;
}
.step h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.step p { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-2); }

/* --------------------------------------------------------------- tech band */
.tech-band {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
}
.tech-band span {
	padding: .45rem .9rem;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	font-weight: 500;
	color: var(--c-ink-2);
	transition: border-color .18s, color .18s;
}
.tech-band span:hover { border-color: var(--c-brand); color: var(--c-brand); }

/* --------------------------------------------------------------- post card */
.post-card {
	display: flex;
	flex-direction: column;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	overflow: hidden;
	transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.post-card:hover {
	transform: translateY(-3px);
	border-color: #d3cfc2;
	box-shadow: var(--shadow-lift);
}
.post-card__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--c-surface-2);
	border-bottom: 1px solid var(--c-line);
	overflow: hidden;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__thumb--ph {
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 1px 1px, rgba(20, 22, 46, .09) 1px, transparent 0) 0 0 / 18px 18px,
		var(--c-surface-2);
}
.post-card__thumb--ph span {
	font-family: var(--f-mono);
	font-size: 2.6rem;
	font-weight: 700;
	color: #fff;
	-webkit-text-stroke: 1.5px var(--c-navy);
	opacity: .55;
}

.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.35rem 1.4rem; }
.post-card__meta {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-bottom: .7rem;
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	color: var(--c-ink-3);
}
.post-card__meta a {
	padding: .16rem .5rem;
	background: var(--c-brand-soft);
	border-radius: var(--r-sm);
	color: var(--c-brand-dark);
	font-weight: 600;
}
.post-card__body h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.post-card__body h3 a { color: inherit; }
.post-card__body h3 a:hover { color: var(--c-brand); }
.post-card__body p { flex: 1; font-size: var(--fs-sm); color: var(--c-ink-2); margin-bottom: 1rem; }

/* --------------------------------------------------------------- CTA band */
.cta-band {
	position: relative;
	padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.4rem, 4vw, 3rem);
	background: var(--c-navy);
	border-radius: var(--r-lg);
	text-align: center;
	color: rgba(255, 255, 255, .82);
	overflow: hidden;
}
.cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 44px 44px;
	pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .7rem; }
.cta-band p { max-width: 62ch; margin-inline: auto; margin-bottom: 1.6rem; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn--primary { background: var(--c-amber); border-color: var(--c-amber); color: #2a1d00; }
.cta-band .btn--primary:hover { background: #ffc63d; border-color: #ffc63d; color: #2a1d00; }
.cta-band .btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, .3);
	color: #fff;
}
.cta-band .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

/* --------------------------------------------------------------- page hero */
.page-hero {
	padding-block: clamp(2.2rem, 4.5vw, 3.6rem) clamp(1.8rem, 3.5vw, 2.6rem);
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-line);
}
.page-hero h1 { margin-bottom: .6rem; }
.page-hero .lead { max-width: 68ch; margin-bottom: 0; }

.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .45rem;
	margin-bottom: 1rem;
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	color: var(--c-ink-3);
}
.crumbs a { color: var(--c-ink-3); }
.crumbs a:hover { color: var(--c-brand); }
.crumbs span { color: var(--c-line); }

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1.2rem;
	margin-top: 1rem;
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	color: var(--c-ink-3);
}
.entry-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.entry-meta svg { color: var(--c-amber); }

/* --------------------------------------------------------------- prose */
.prose { max-width: 72ch; color: var(--c-ink-2); }
.prose--wide { max-width: none; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 2.4rem; font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); }
.prose h3 { margin-top: 1.8rem; font-size: 1.2rem; }
.prose p, .prose li { font-size: var(--fs-lg); }
.prose li { margin-bottom: .45rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--c-ink); font-weight: 600; }

/* Header dính trên cùng (top:0, cao ~78px): nhảy tới neo mà không chừa khoảng
   thì tiêu đề mục chui xuống dưới header. */
.prose h2[id], .prose h3[id] { scroll-margin-top: 110px; }

/* --------------------------------------------------------------- mục lục */
.toc {
	margin: 0 0 2.2rem;
	padding: 1.05rem 1.3rem 1.15rem;
	background: var(--c-surface-2);
	border: 1px solid var(--c-line);
	border-left: 3px solid var(--c-brand);
	border-radius: 0 var(--r-md) var(--r-md) 0;
}
.toc__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .6rem;
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--c-ink-3);
	cursor: pointer;
	list-style: none;
}
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after {
	content: "▾";
	font-size: .9rem;
	color: var(--c-brand);
	transition: transform .18s var(--ease);
}
.toc[open] > .toc__title::after { transform: rotate(180deg); }

.toc__nav { margin-top: .95rem; }
.toc__list, .toc__sub { margin: 0; padding: 0; list-style: none; }
.toc__list { counter-reset: toc; }
.toc__list > li { counter-increment: toc; margin-bottom: .38rem; }
.toc__list > li > a::before {
	content: counter(toc) ".";
	margin-right: .5rem;
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	color: var(--c-ink-3);
}
.toc a {
	display: inline-block;
	padding: .12rem 0;
	font-size: var(--fs-md);
	line-height: 1.45;
	color: var(--c-ink);
	text-decoration: none;
}
.toc a:hover { color: var(--c-brand); text-decoration: underline; text-underline-offset: 3px; }
.toc a.is-current { color: var(--c-brand-dark); font-weight: 600; }

.toc__sub { margin: .3rem 0 .55rem 1.55rem; }
.toc__sub li { margin-bottom: .25rem; }
.toc__sub a { font-size: var(--fs-sm); color: var(--c-ink-2); }
.toc__sub a::before { content: "–"; margin-right: .5rem; color: var(--c-ink-3); }

.prose blockquote {
	margin: 1.8rem 0;
	padding: 1.1rem 1.4rem;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-left: 3px solid var(--c-amber);
	border-radius: 0 var(--r-md) var(--r-md) 0;
	font-size: 1.05rem;
	color: var(--c-ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose code {
	padding: .12em .4em;
	background: var(--c-brand-soft);
	border-radius: 5px;
	font-family: var(--f-mono);
	font-size: .88em;
	color: var(--c-brand-dark);
}
.prose pre {
	padding: 1.1rem 1.3rem;
	background: var(--c-navy);
	border-radius: var(--r-md);
	overflow-x: auto;
	color: #e8e9f5;
}
.prose pre code { background: none; color: inherit; padding: 0; }

.prose img { border-radius: var(--r-md); border: 1px solid var(--c-line); }

.prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6rem 0;
	font-size: var(--fs-sm);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	overflow: hidden;
}
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--c-line-soft); text-align: left; }
.prose th { background: var(--c-surface-2); color: var(--c-ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img { width: 100%; border-radius: var(--r-md); border: 1px solid var(--c-line); }

.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2rem; }
.tag-list a {
	padding: .3rem .75rem;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	color: var(--c-ink-2);
}
.tag-list a:hover { border-color: var(--c-brand); color: var(--c-brand); }

/* --------------------------------------------------------------- content + sidebar */
.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(1.6rem, 4vw, 3rem);
	align-items: start;
}

.sidebar { display: grid; gap: 1rem; position: sticky; top: 118px; }

.widget {
	padding: 1.3rem 1.35rem;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
}
.widget h3 {
	margin-bottom: .9rem;
	padding-bottom: .7rem;
	border-bottom: 1px solid var(--c-line-soft);
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-ink-3);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .42rem 0; border-bottom: 1px dashed var(--c-line-soft); }
.widget li:last-child { border-bottom: 0; }
.widget a { font-size: var(--fs-sm); color: var(--c-ink-2); font-weight: 500; }
.widget a:hover { color: var(--c-brand); }

/* --------------------------------------------------------------- contact */
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
	gap: clamp(1.5rem, 3.5vw, 2.6rem);
	align-items: start;
}

.info-card {
	padding: 1.6rem 1.6rem 1.8rem;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
}
.info-card > h3 { margin-bottom: 1.1rem; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.info-list li {
	display: flex;
	gap: .9rem;
	align-items: flex-start;
	padding: .7rem 0;
	border-bottom: 1px dashed var(--c-line-soft);
}
.info-list li:last-child { border-bottom: 0; }
.info-list small {
	display: block;
	font-family: var(--f-mono);
	font-size: .68rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--c-ink-3);
	margin-bottom: .12rem;
}
.info-list b, .info-list span, .info-list a { font-size: var(--fs-sm); color: var(--c-ink); }
.info-list a:hover { color: var(--c-brand); }

.info-line { font-size: var(--fs-sm); margin-bottom: .5rem; }

/* --------------------------------------------------------------- forms */
.form-field { margin-bottom: 1rem; }
.form-field label {
	display: block;
	margin-bottom: .35rem;
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--c-ink-3);
}
.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: .72rem .9rem;
	background: var(--c-surface-2);
	border: 1px solid var(--c-line);
	border-radius: var(--r-sm);
	font-family: inherit;
	font-size: var(--fs-md);
	color: var(--c-ink);
	transition: border-color .16s, background .16s, box-shadow .16s;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #a8adbd; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	background: var(--c-surface);
	border-color: var(--c-brand);
	box-shadow: 0 0 0 3px rgba(10, 91, 211, .12);
}

.form-note { margin-top: .9rem; margin-bottom: 0; font-size: var(--fs-xs); color: var(--c-ink-3); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-msg {
	padding: .85rem 1.1rem;
	margin-bottom: 1.2rem;
	border-radius: var(--r-sm);
	font-size: var(--fs-sm);
	border: 1px solid;
}
.form-msg--ok { background: #eaf7f1; border-color: #b9e2ce; color: #0d6647; }
.form-msg--err { background: #fdeeee; border-color: #f3c9c9; color: #a02323; }

/* --------------------------------------------------------------- pagination */
.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .4rem;
	margin-top: 2.5rem;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px; height: 40px;
	padding: 0 .7rem;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-sm);
	font-family: var(--f-mono);
	font-size: var(--fs-sm);
	color: var(--c-ink-2);
}
.pagination .page-numbers:hover { border-color: var(--c-brand); color: var(--c-brand); }
.pagination .page-numbers.current {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: #fff;
}

/* --------------------------------------------------------------- footer */
.site-footer {
	background: var(--c-surface);
	border-top: 1px solid var(--c-line);
	padding-block: clamp(2.6rem, 5vw, 4rem) 0;
	font-size: var(--fs-sm);
	color: var(--c-ink-2);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
	gap: clamp(1.5rem, 3.5vw, 3rem);
	padding-bottom: 2.4rem;
}
.footer-brand img { max-height: 48px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; color: var(--c-ink-3); }

.footer-col h4 {
	margin-bottom: 1rem;
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-ink-3);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: var(--c-ink-2); }
.footer-col a:hover { color: var(--c-brand); }
.footer-col .info-line b { color: var(--c-ink); font-weight: 600; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-block: 1.3rem;
	border-top: 1px solid var(--c-line-soft);
	font-family: var(--f-mono);
	font-size: var(--fs-xs);
	color: var(--c-ink-3);
}
.legal-list { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.legal-list a { color: var(--c-ink-3); }
.legal-list a:hover { color: var(--c-brand); }

/* --------------------------------------------------------------- reveal */
[data-reveal] {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .55s var(--ease), transform .55s var(--ease);
}
[data-reveal].reveal-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	[data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
	.topbar { display: none; }

	.nav-toggle { display: block; }

	.nav-menu {
		position: fixed;
		inset: 76px 0 auto;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: calc(100vh - 76px);
		overflow-y: auto;
		padding: .8rem var(--gut) 1.6rem;
		background: var(--c-surface);
		border-bottom: 1px solid var(--c-line);
		box-shadow: var(--shadow-lift);
	}
	.nav-menu.is-open { display: flex; }
	.nav-menu a { padding: .8rem .2rem; font-size: var(--fs-md); border-bottom: 1px solid var(--c-line-soft); border-radius: 0; }
	.nav-menu > li.current-menu-item > a { box-shadow: none; color: var(--c-brand); }

	.nav-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		margin: 0 0 .4rem .8rem;
		padding: 0;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
	}
	.nav-menu li.is-open > .sub-menu { display: block; }
	.nav-menu .sub-menu a { font-size: var(--fs-sm); color: var(--c-ink-3); }

	.nav-actions .btn--ghost { display: none; }

	.hero-grid { grid-template-columns: 1fr; }

	.content-layout { grid-template-columns: 1fr; }
	.sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.contact-grid { grid-template-columns: 1fr; }

	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bento > .card:first-child { grid-column: span 2; }
}

@media (max-width: 620px) {
	body { font-size: var(--fs-md); }

	.nav-bar { min-height: 66px; }
	.nav-menu { inset-block-start: 66px; max-height: calc(100vh - 66px); }

	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
	.bento { grid-template-columns: 1fr; }
	.bento > .card:first-child { grid-column: auto; }
	.sidebar { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }

	.hero-cta { flex-direction: column; align-items: stretch; }
	.hero-cta .btn { width: 100%; }

	.nav-actions .btn--sm { padding: .5rem .9rem; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------- print */
@media print {
	.site-header, .site-footer, .nav-actions, .cta-band, .sidebar { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	[data-reveal] { opacity: 1; transform: none; }
}
