/* ==========================================================================
   mau.css — Mẫu H · agency làm web thuê. Thương hiệu minh hoạ "Tinh Vân Studio" (tên minh hoạ).
   Hướng nghệ thuật: nền tối điện ảnh (than-mận), nhấn hồng + xanh cyan, chữ poster cực hẹp
   (Big Shoulders Display) + Be Vietnam Pro. Hero: màn hình web giữa các vòng quỹ đạo, cuộn thì phóng vào
   màn hình rồi tan thành chấm in lưới (halftone) — điểm chạm riêng của mẫu, lặp lại ở ảnh dự án.
   Đổi màu cả web: sửa khối --th-* ở :root. Đổi font: --font-tieu-de / --font-than + thẻ <link> font ở <head>.
   Không sửa _loi/xuong.css, _loi/khoi.css — chỉ ghi đè ở đây.
   ========================================================================== */

:root {
  /* ---- Bảng màu riêng (đo tương phản 22/9 trên nền #150C14: chữ 16,5:1 · chữ phụ 8,6:1 · hồng 5,4:1
          · hồng sáng 7,3:1 · cyan sáng 8,1:1 · chữ than trên nút hồng 5,4:1) */
  --th-nen: #150C14;            /* than-mận */
  --th-nen-2: #1E111C;          /* mặt nổi: thẻ, khung */
  --th-nen-3: #2A1727;
  --th-toi: #0D070C;            /* chân trang */
  --th-chu: #F3EEE7;
  --th-chu-phu: #B8AAB4;
  --th-hong: #EC4899;           /* nhấn 1 (bang-mau.csv dòng 69) */
  --th-hong-sang: #F472B6;      /* hồng cho chữ nhỏ, liên kết */
  --th-lam: #2BB7D3;            /* nhấn 2 — cyan #0891B2 nâng sáng cho nét mảnh, chữ nhỏ trên nền tối */
  --th-vien: rgba(243, 238, 231, .13);
  --th-vien-dam: rgba(243, 238, 231, .28);

  --mau-nen: var(--th-nen);
  --mau-nen-2: var(--th-nen-2);
  --mau-chu: var(--th-chu);
  --mau-chu-phu: var(--th-chu-phu);
  --mau-nhan: var(--th-hong);
  --mau-nhan-dam: var(--th-hong-sang);
  --mau-toi: var(--th-toi);
  --mau-chu-sang: var(--th-chu);
  --mau-chu-sang-phu: var(--th-chu-phu);
  --mau-nhan-sang: var(--th-hong-sang);
  --mau-vien: var(--th-vien);
  --mau-vien-sang: var(--th-vien);
  --mau-loi: #FF9C8F;
  --mau-dat: #86E0A8;

  /* ---- Chữ: Big Shoulders Display (poster cực hẹp) cho tiêu đề · Be Vietnam Pro cho thân bài */
  --font-tieu-de: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-than: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --dam-tieu-de: 800;
  --co-sieu: clamp(3.2rem, 1.2rem + 8.5vw, 9rem);
  --co-1: clamp(2.6rem, 1.6rem + 4vw, 4.9rem);
  --co-2: clamp(2.2rem, 1.5rem + 2.9vw, 3.9rem);
  --co-3: clamp(1.45rem, 1.25rem + .8vw, 1.95rem);

  --bo-goc: 16px;
  --bo-goc-nho: 10px;
  --cao-dau: 64px;
}
@media (min-width: 1024px) { :root { --cao-dau: 72px; } }

html { scroll-padding-top: calc(var(--cao-dau) + 12px); background: var(--th-nen); }
body { font-feature-settings: "kern"; }
:where(h1, h2, h3) { letter-spacing: .005em; line-height: 1.02; }
:where(h3) { font-size: var(--co-3); line-height: 1.08; font-weight: 700; }
a:where(:not([class])) { color: var(--th-hong-sang); }
.xw-nhan { color: var(--th-lam); letter-spacing: .2em; }
.xw-nhan::before { background: var(--th-lam); }

/* Nút: nút chính hồng chữ than · nút viền chữ kem. Bóng đổ có độ lệch + độ mờ, không viền phát sáng. */
.xw-nut { --nut-nen: var(--th-hong); --nut-chu: var(--th-nen); letter-spacing: .01em; }
.xw-nut:not(.xw-nut--vien) { box-shadow: 0 12px 28px -14px rgba(236, 72, 153, .7); }
.xw-nut:not(.xw-nut--vien):hover { --nut-nen: #F25CA9; }
.xw-nut--vien { --nut-nen: var(--th-chu); border-color: var(--th-vien-dam); }
.xw-nut--vien:hover { border-color: var(--th-chu); }

/* Liên kết phụ đứng riêng — vẫn đủ vùng bấm 48px */
.th-lien-ket {
  display: inline-flex; align-items: center; gap: .65em; min-height: 48px; padding-inline: .15em;
  color: var(--th-chu); font-weight: 600; text-decoration: none;
}
.th-lien-ket::after {
  content: ""; width: 1.7em; height: 1px; background: var(--th-lam);
  transition: width .35s var(--duong-cong);
}
.th-lien-ket:hover::after { width: 2.6em; }

/* ============================================================ thanh trên */
.th-dau {
  position: fixed; z-index: var(--z-thanh); inset: 0 0 auto;
  background: rgba(21, 12, 20, .78); border-bottom: 1px solid rgba(243, 238, 231, .07);
  -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
}
.th-dau__trong { display: flex; align-items: center; gap: var(--k-5); height: var(--cao-dau); }
.th-thuong-hieu { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--th-chu); text-decoration: none; }
.th-thuong-hieu__dau { width: 30px; height: 30px; flex: none; }
.th-thuong-hieu__ten {
  font-family: var(--font-tieu-de); font-weight: 800; font-size: 1.5rem; line-height: 1;
  letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.th-menu { display: none; margin-left: auto; gap: .15rem; }
.th-menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem;
  color: var(--th-chu-phu); font-size: var(--co-nho); font-weight: 600; text-decoration: none; transition: color .2s;
}
.th-menu a:hover { color: var(--th-chu); }
.th-dau__nut {
  display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0 1.15rem;
  border: 1px solid var(--th-vien-dam); border-radius: 999px; color: var(--th-chu);
  font-size: var(--co-nho); font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .25s, color .25s;
}
.th-dau__nut:hover { border-color: var(--th-hong); color: var(--th-hong-sang); }
@media (min-width: 1024px) { .th-menu { display: flex; } .th-dau__nut { margin-left: var(--k-3); } }

/* ============================================================ HERO · quỹ đạo quanh màn hình
   --qd-x/--qd-y: tâm màn hình (so với khung nhìn) · --qd-w: bề rộng màn hình. quy-dao.js đo lại từ đây. */
.th-hero {
  /* Cỡ tiêu đề + đáy tiêu đề tính sẵn bằng CSS → màn hình đặt ở góc dưới phải, luôn nằm dưới tiêu đề, không đè chữ */
  --th-f: min(10.2vw, 16.5svh);
  --th-day-h1: calc(var(--cao-dau) + 2.5rem + 44px + 2.88 * var(--th-f));
  --qd-w: clamp(200px, min(23vw, calc((100svh - var(--th-day-h1) - 3.5rem) / .675)), 470px);
  --qd-x: 70%;
  --qd-y: calc(var(--th-day-h1) + 1.75rem + var(--qd-w) * .3375);
  background: var(--th-nen); color: var(--th-chu);
}
:where(html.xuong-dong) .th-hero.hero-phong:not([data-cap-chay="tinh"]):not([data-kieu="ken-burns"]) { height: 250vh; }
.th-hero .hero-phong__san { align-items: start; min-height: 560px; }
.th-hero__nen {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(34% 44% at var(--qd-x) var(--qd-y), rgba(236, 72, 153, .2), transparent 72%),
    radial-gradient(26% 34% at calc(var(--qd-x) + 9%) calc(var(--qd-y) + 20%), rgba(8, 145, 178, .22), transparent 72%),
    radial-gradient(60% 50% at 2% 100%, rgba(236, 72, 153, .07), transparent 72%),
    var(--th-nen);
}
.th-hero__hat.dai-hat { position: absolute; inset: 0; min-height: 0; display: block; }
/* Bản CSS của dải hạt (tĩnh/L1, điện thoại): chấm kem + hồng + cyan, không dùng màu đồng mặc định */
.th-hero .dai-hat__nen::before, .th-brief .dai-hat__nen::before {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(243, 238, 231, .75) 0 1px, transparent 1.6px),
    radial-gradient(circle at 70% 80%, var(--hat-mau) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 45% 55%, rgba(243, 238, 231, .4) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 85% 15%, var(--hat-mau-2) 0 1px, transparent 1.7px);
  opacity: .7;
}
.th-hero .dai-hat__nen::after, .th-brief .dai-hat__nen::after { background: none; }

.th-hero .hero-phong__khung { z-index: 1; }
.th-dich { position: absolute; inset: 0; }
.th-vat { position: relative; }
:where(html.xuong-dong) .th-hero:not([data-cap-chay="tinh"]) .th-quy-dao { animation: th-tho 12s ease-in-out infinite alternate; }
@keyframes th-tho { from { rotate: -1.4deg; translate: 0 -3px; } to { rotate: 1.4deg; translate: 0 3px; } }

.th-man {
  position: absolute; margin: 0; width: var(--qd-w);
  left: calc(var(--qd-x) - var(--qd-w) / 2); top: calc(var(--qd-y) - var(--qd-w) * .3375);
  font-size: calc(var(--qd-w) * .03); border-radius: .8em;
  box-shadow: 0 34px 80px -26px rgba(236, 72, 153, .5), 0 -18px 60px -32px rgba(43, 183, 211, .45), 0 20px 40px -20px rgba(0, 0, 0, .8);
}
.th-man__thanh {
  display: flex; align-items: center; gap: .5em; height: calc(var(--qd-w) * .05); padding: 0 1em;
  border: 1px solid rgba(243, 238, 231, .16); border-bottom: 0; border-radius: .8em .8em 0 0; background: #241522;
}
.th-man__thanh i { width: .75em; height: .75em; border-radius: 50%; background: rgba(243, 238, 231, .3); }
.th-man__thanh span { width: 36%; height: 1.15em; margin-inline: auto; border-radius: 999px; background: rgba(243, 238, 231, .1); }
.th-man__anh {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border: 1px solid rgba(243, 238, 231, .16); border-top: 0; border-radius: 0 0 .8em .8em; background: var(--th-nen-2);
}
.th-man__nhan {   /* nhãn khung chờ nằm trong màn hình, tự ẩn khi đã thay ảnh thật; mờ đi ngay khi bắt đầu cuộn */
  position: absolute; left: .9em; bottom: .9em; max-width: calc(100% - 1.8em); padding: .35em .7em;
  border: 1px dashed rgba(243, 238, 231, .4); border-radius: 6px; background: rgba(21, 12, 20, .88);
  font-size: 11.5px; line-height: 1.4; font-weight: 600; color: var(--th-chu);
}
.th-man:not(:has(> img[src*="/ai-web-kit/demo/h/anh/cho-"])) .th-man__nhan { display: none; }
.th-quy-dao {
  position: absolute; pointer-events: none; overflow: visible; height: auto;
  width: calc(var(--qd-w) * 2.74); left: calc(var(--qd-x) - var(--qd-w) * 1.37); top: calc(var(--qd-y) - var(--qd-w) * .48);
}
/* L3: canvas 3D hiện đè đúng chỗ, bản SVG ẩn đi */
.th-quy-dao-3d { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--duong-cong); }
.th-quy-dao-3d canvas { display: block; width: 100%; height: 100%; }
.th-hero--3d .th-quy-dao-3d { opacity: 1; }
.th-hero--3d .th-quy-dao { visibility: hidden; }

.th-hero__phu {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(21, 12, 20, .82) 0%, rgba(21, 12, 20, .55) 34%, rgba(21, 12, 20, 0) 58%);
}
.th-hero .hero-phong__chu { padding-top: calc(var(--cao-dau) + 2.5rem); padding-bottom: clamp(3rem, 9vh, 6rem); }
.th-hero__nhan {
  margin-bottom: var(--k-5); font-size: var(--co-ti); font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--th-lam);
}
.th-hero .hero-phong__chu .th-hero__tieu-de {
  max-width: none; color: var(--th-chu);
  font-family: var(--font-tieu-de); font-weight: 800; text-transform: uppercase;
  font-size: var(--th-f); line-height: .96; letter-spacing: .01em;
}
/* quy-dao.js làm chữ hero mờ nhanh hơn nền khi bắt đầu cuộn (màn hình phóng lên không bị chữ đè) */
.th-hero .hero-phong__chu > * { opacity: var(--th-mo-chu, 1); }
.th-dong { display: block; white-space: nowrap; }
.th-dong--nhan { color: var(--th-hong); }
.th-hero .hero-phong__mo-ta { max-width: 33ch; margin-top: var(--k-5); color: var(--th-chu-phu); font-size: var(--co-lon); }
.th-hero .hero-phong__nut { align-items: center; gap: var(--k-4) var(--k-5); margin-top: var(--k-6); }
.th-hero .hero-phong__chi-tiet {
  z-index: 3; left: var(--le); right: auto; bottom: clamp(1.25rem, 5vh, 3rem); max-width: 25rem;
  padding: var(--k-4) var(--k-5); border-left: 2px solid var(--th-hong); border-radius: 0 var(--bo-goc-nho) var(--bo-goc-nho) 0;
  background: rgba(21, 12, 20, .84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--font-tieu-de); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem); line-height: 1.1; color: var(--th-chu);
}
/* Cuối đoạn hero: cả sân khấu tan thành chấm in lưới — bán kính chấm do quy-dao.js đặt theo thanh cuộn */
.th-hero--tan .hero-phong__san {
  -webkit-mask-image: radial-gradient(circle at center, #000 var(--th-cham, 10.5px), transparent calc(var(--th-cham, 10.5px) + .6px));
  mask-image: radial-gradient(circle at center, #000 var(--th-cham, 10.5px), transparent calc(var(--th-cham, 10.5px) + .6px));
  -webkit-mask-size: 14px 14px; mask-size: 14px 14px;
}

@media (max-width: 760px) {
  .th-hero { --qd-x: 50%; --qd-y: 80%; --qd-w: min(54vw, 240px); }
  :where(html.xuong-dong) .th-hero.hero-phong:not([data-cap-chay="tinh"]):not([data-kieu="ken-burns"]) { height: 200vh; }
  .th-hero .hero-phong__san { align-items: start; }
  .th-hero .hero-phong__chu { padding-top: calc(var(--cao-dau) + 1.6rem); padding-bottom: 0; }
  .th-hero__phu { background: linear-gradient(180deg, rgba(21, 12, 20, .5) 0%, rgba(21, 12, 20, .35) 58%, rgba(21, 12, 20, 0) 72%); }
  .th-hero .hero-phong__chu .th-hero__tieu-de { font-size: clamp(2.9rem, 16.2vw, 4.6rem); line-height: .98; }
  .th-dong { white-space: normal; text-wrap: balance; }
  .th-hero .hero-phong__mo-ta { margin-top: var(--k-4); font-size: 1rem; }
  .th-hero .hero-phong__nut { margin-top: var(--k-5); }
  .th-hero .hero-phong__nut .th-lien-ket { display: none; }   /* điện thoại: một nút chính, màn hình có chỗ đứng */
}
@media (max-width: 760px) and (max-height: 740px) {
  .th-hero { --qd-y: 83%; --qd-w: min(50vw, 230px); }
  .th-hero .hero-phong__mo-ta { display: none; }
  .th-hero .hero-phong__chu .th-hero__tieu-de { font-size: clamp(2.6rem, 14.5vw, 4rem); }
}

/* ============================================================ khung mục dùng chung */
.th-muc { position: relative; padding-block: var(--dem-muc); }
.th-muc--sat-tren { padding-top: 0; }
.th-dau-muc { display: grid; gap: var(--k-4) var(--k-7); margin-bottom: clamp(2.5rem, 1.5rem + 3.5vw, 5rem); }
.th-dau-muc h2 { font-size: var(--co-1); max-width: 17ch; }
.th-dau-muc > p { max-width: 46ch; color: var(--th-chu-phu); font-size: var(--co-lon); }
@media (min-width: 900px) {
  .th-dau-muc--tach { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}
.th-dau-muc--lon h2 { font-size: clamp(3.5rem, 1.4rem + 8.8vw, 10rem); line-height: .95; text-transform: uppercase; max-width: none; }
.th-dau-muc--giua { justify-items: center; text-align: center; }
.th-dau-muc--giua h2 { max-width: 20ch; }

/* Khung ảnh chụp web: thanh trình duyệt + ảnh 16:9 · khung chờ ghi rõ "Ảnh chụp web của anh chị" */
.th-khung-web {
  position: relative; overflow: hidden; border: 1px solid var(--th-vien); border-radius: var(--bo-goc);
  background: var(--th-nen-2); box-shadow: 0 34px 70px -44px rgba(0, 0, 0, .95);
  transition: border-color .4s;
}
.th-khung-web__thanh { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-bottom: 1px solid var(--th-vien); background: #231421; }
.th-khung-web__thanh i { width: 8px; height: 8px; border-radius: 50%; background: rgba(243, 238, 231, .26); }
.th-khung-web__thanh span { width: 36%; height: 12px; margin-inline: auto; border-radius: 999px; background: rgba(243, 238, 231, .08); }
.th-khung-web__anh { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #1B0E19; }
.th-khung-web__anh--dt { aspect-ratio: 9 / 16; }
.th-khung-web__anh img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.1s var(--duong-cong); }
.th-khung-web__cho {
  position: absolute; left: 12px; bottom: 12px; display: none; align-items: center; gap: .5em; max-width: calc(100% - 24px);
  padding: .4em .75em; border: 1px dashed rgba(243, 238, 231, .4); border-radius: 6px; background: rgba(21, 12, 20, .88);
  font-size: var(--co-ti); font-weight: 600; letter-spacing: .04em; color: var(--th-chu);
}
.th-khung-web__anh:has(> img[src*="/ai-web-kit/demo/h/anh/cho-"]) .th-khung-web__cho { display: inline-flex; }
/* Ảnh hiện ra từ chấm in lưới khi cuộn tới (trình duyệt có scroll-driven animation; không có thì ảnh hiện sẵn) */
@property --th-cham-anh { syntax: "<length>"; inherits: false; initial-value: 9px; }
@supports (animation-timeline: view()) {
  /* Mốc cuộn đặt tên trên KHUNG (ảnh nằm trong lớp overflow: hidden — view() sẽ bám nhầm chính lớp đó, luôn coi là đã hiện) */
  :where(html.xuong-dong:not([data-cap-may="tinh"])) .th-khung-web { view-timeline-name: --th-khung-anh; view-timeline-axis: block; }
  :where(html.xuong-dong:not([data-cap-may="tinh"])) .th-khung-web__anh img {
    -webkit-mask-image: radial-gradient(circle at center, #000 var(--th-cham-anh), transparent calc(var(--th-cham-anh) + .6px));
    mask-image: radial-gradient(circle at center, #000 var(--th-cham-anh), transparent calc(var(--th-cham-anh) + .6px));
    -webkit-mask-size: 12px 12px; mask-size: 12px 12px;
    animation: th-cham-vao linear both; animation-timeline: --th-khung-anh; animation-range: entry 0% cover 36%;
  }
}
@keyframes th-cham-vao { from { --th-cham-anh: 0px; } to { --th-cham-anh: 9px; } }

/* ============================================================ ba điều giữ với mọi khách */
.th-ba-dieu__tieu-de {
  max-width: 34ch; margin-bottom: var(--k-7);
  font-family: var(--font-than); font-weight: 600; font-size: var(--co-lon); line-height: 1.4; letter-spacing: 0; color: var(--th-chu-phu);
}
.th-ba-dieu__ds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--th-vien); }
.th-ba-dieu__dong {
  display: grid; gap: var(--k-4) var(--k-7); align-items: end;
  padding-block: clamp(2rem, 1.2rem + 3vw, 4rem); border-bottom: 1px solid var(--th-vien);
}
.th-ba-dieu__so {
  font-family: var(--font-tieu-de); font-weight: 800; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(4.4rem, 2.4rem + 8vw, 10.5rem); line-height: .82; letter-spacing: -.005em; color: var(--th-hong);
}
.th-ba-dieu__dong:nth-child(2) .th-ba-dieu__so { color: var(--th-lam); }
.th-ba-dieu__dong:nth-child(3) .th-ba-dieu__so { color: var(--th-chu); }
.th-ba-dieu__dong h3 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.7rem); line-height: 1.04; max-width: 24ch; }
.th-ba-dieu__dong p:not(.th-ba-dieu__so) { max-width: 44ch; margin-top: var(--k-3); color: var(--th-chu-phu); }
@media (min-width: 900px) {
  .th-ba-dieu__dong { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .th-ba-dieu__dong--phai { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .th-ba-dieu__dong--phai .th-ba-dieu__so { order: 2; text-align: right; }
  .th-ba-dieu__dong--phai > div { order: 1; }
}

/* ============================================================ quy trình (the-quy-trinh, bản nền tối) */
.th-quy-trinh { background: linear-gradient(180deg, var(--th-nen) 0%, #1A0E18 50%, var(--th-nen) 100%); }
.th-quy-trinh .the-quy-trinh__the,
.th-quy-trinh .the-quy-trinh__the:nth-child(even) {
  min-height: 0; border: 1px solid var(--th-vien); border-radius: var(--bo-goc); background: var(--th-nen-2); color: var(--th-chu);
}
.th-quy-trinh .the-quy-trinh__the:nth-child(even) { background: transparent; border-style: dashed; border-color: var(--th-vien-dam); }
.th-quy-trinh .the-quy-trinh__so { margin-bottom: var(--k-6); font-weight: 800; font-size: clamp(3rem, 2.2rem + 2.2vw, 4.6rem); color: var(--th-hong); }
.th-quy-trinh .the-quy-trinh__the:nth-child(even) .the-quy-trinh__so { color: var(--th-lam); }
.th-quy-trinh .the-quy-trinh__the h3 { margin-bottom: var(--k-3); font-size: clamp(1.55rem, 1.35rem + .7vw, 2rem); }
.th-quy-trinh .the-quy-trinh__the p,
.th-quy-trinh .the-quy-trinh__the:nth-child(even) p { color: var(--th-chu-phu); font-size: .95rem; }
.th-nhan-duoc { margin-top: auto; padding-top: var(--k-4); }
.th-quy-trinh .the-quy-trinh__the p.th-nhan-duoc { margin-top: auto; padding-top: var(--k-4); color: var(--th-chu); font-size: var(--co-nho); }
.th-nhan-duoc::before { content: "Anh chị nhận: "; font-weight: 600; color: var(--th-hong-sang); }
.th-quy-trinh .the-quy-trinh__the:nth-child(even) .th-nhan-duoc::before { color: var(--th-lam); }
.th-quy-trinh.the-quy-trinh--duong .the-quy-trinh__ds::before { background: linear-gradient(90deg, var(--th-hong), var(--th-lam)); }
@media (min-width: 1100px) { .th-quy-trinh .the-quy-trinh__ds { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .th-quy-trinh.the-quy-trinh--duong .the-quy-trinh__ds::before { background: linear-gradient(180deg, var(--th-hong), var(--th-lam)); }
}

/* ============================================================ dự án — khối đỉnh: lưới lệch, ảnh hiện từ chấm in */
.th-du-an__luoi { display: grid; gap: clamp(3rem, 2rem + 3vw, 5.5rem) var(--k-6); }
@media (min-width: 900px) {
  .th-du-an__luoi { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .th-du-an__the { grid-column: span 7; }
  .th-du-an__the:nth-of-type(4n + 2), .th-du-an__the:nth-of-type(4n + 3) { grid-column: span 5; }
  .th-du-an__the:nth-of-type(4n + 2) { margin-top: var(--k-9); }
  .th-du-an__the:nth-of-type(4n + 3) { margin-top: calc(-1 * var(--k-8)); }
}
.th-du-an__the { min-width: 0; }
.th-du-an__lien-ket { position: relative; display: grid; gap: var(--k-3); color: inherit; text-decoration: none; }
.th-du-an__lien-ket:hover .th-khung-web { border-color: rgba(236, 72, 153, .55); }
.th-du-an__lien-ket:hover .th-khung-web__anh img { transform: scale(1.035); }
.th-du-an__nhan {
  position: absolute; top: 42px; right: 12px; z-index: 1; padding: .3em .75em; border-radius: 999px;
  background: rgba(21, 12, 20, .86); border: 1px solid var(--th-vien-dam);
  font-size: var(--co-ti); font-weight: 600; letter-spacing: .06em; color: var(--th-chu);
}
.th-du-an__nhan:empty, .th-du-an__ket-qua:empty { display: none; }
.th-du-an__dong { display: flex; justify-content: space-between; gap: var(--k-4); margin-top: var(--k-3); font-size: var(--co-nho); color: var(--th-chu-phu); }
.th-du-an__ten { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.02; }
.th-du-an__lien-ket:hover .th-du-an__ten { color: var(--th-hong-sang); }
.th-du-an__viec { max-width: 50ch; color: var(--th-chu-phu); }
.th-du-an__ket-qua { color: var(--th-lam); font-weight: 600; font-size: var(--co-nho); }
.th-du-an__ghi { margin-top: var(--k-8); padding-top: var(--k-5); border-top: 1px solid var(--th-vien); max-width: 64ch; font-size: var(--co-nho); color: var(--th-chu-phu); }

/* ============================================================ con số */
.th-so { padding-block: clamp(3.5rem, 2rem + 5vw, 7rem); border-block: 1px solid var(--th-vien); }
.th-so__luoi { display: grid; gap: var(--k-6); }
.th-so__muc { display: flex; align-items: flex-end; gap: var(--k-5); }
.th-so__muc > p { max-width: 16ch; padding-bottom: .5rem; color: var(--th-chu-phu); font-size: var(--co-nho); line-height: 1.45; }
.th-so .so-lon { font-weight: 800; }
.th-so .so-lon:not(.so-lon--chay) { font-size: clamp(4.4rem, 3rem + 5vw, 8rem); line-height: .9; font-variant-numeric: lining-nums tabular-nums; color: var(--th-chu); }
.th-so .so-lon__hang { font-size: clamp(4.4rem, 3rem + 5vw, 8rem); gap: .04em; }
.th-so .so-lon__o { width: .56em; height: 1.02em; background: var(--th-nen-2); color: var(--th-chu); border-radius: .06em; box-shadow: inset 0 0 0 1px rgba(243, 238, 231, .07); perspective: 5em; }
.th-so .so-lon__o::after { background: rgba(21, 12, 20, .9); }
.th-so .so-lon__la--duoi { background: #24141F; }
.th-so .so-lon__nua > span, .th-so .so-lon__la > span { height: 1.02em; line-height: 1.02em; }
.th-so__muc:nth-child(1) .so-lon__o, .th-so__muc:nth-child(1) .so-lon:not(.so-lon--chay) { color: var(--th-hong); }
.th-so__muc:nth-child(2) .so-lon__o, .th-so__muc:nth-child(2) .so-lon:not(.so-lon--chay) { color: var(--th-lam); }
.th-so__ghi { margin-top: var(--k-6); font-size: var(--co-ti); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--th-chu-phu); }
@media (min-width: 760px) { .th-so__luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); } .th-so__muc { flex-direction: column; align-items: flex-start; gap: var(--k-3); } }

/* ============================================================ bảng giá (khối bang-gia, kiểu thẻ gói) */
.th-gia { --bang-gia-nen-the: #1C0F1A; --bang-gia-vien-noi-bat: var(--th-hong); }
.th-gia .bang-gia__ten { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); text-transform: uppercase; letter-spacing: .02em; }
.th-gia .bang-gia__gia { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); }
.th-gia .bang-gia__nhan-noi-bat { background: var(--th-hong); color: var(--th-nen); }
.th-gia .bang-gia__gom-ds li::before { border-color: var(--th-lam); }
.th-gia .bang-gia__muc--noi-bat .bang-gia__gom-ds li::before { border-color: var(--th-hong); }
.th-gia__luu-y { max-width: 64ch; margin: var(--k-7) auto 0; text-align: center; font-size: var(--co-nho); color: var(--th-chu-phu); }

/* ============================================================ cảm nhận khách — TỰ ẨN khi chưa có lời thật */
.th-cam-nhan__luoi { display: grid; gap: var(--k-6); }
.th-cam-nhan__the { margin: 0; padding-top: var(--k-5); border-top: 1px solid var(--th-vien); }
.th-cam-nhan__the blockquote { margin: 0; font-family: var(--font-tieu-de); font-weight: 700; font-size: var(--co-3); line-height: 1.2; }
.th-cam-nhan__the figcaption { display: flex; flex-wrap: wrap; gap: .3em .8em; margin-top: var(--k-4); font-size: var(--co-nho); color: var(--th-chu-phu); }
.th-cam-nhan__the figcaption span:first-child { font-weight: 600; color: var(--th-chu); }
@media (min-width: 900px) { .th-cam-nhan__luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--k-7); } }
.th-cam-nhan:not(:has(.th-cam-nhan__the)) { display: none; }
@supports not selector(:has(*)) { .th-cam-nhan { display: none; } }

/* ============================================================ hỏi đáp */
.th-hoi-dap__ds { border-top: 1px solid var(--th-chu); }
.th-hoi-dap__muc { border-bottom: 1px solid var(--th-vien); }
.th-hoi-dap__muc summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--k-5); min-height: 64px; padding: var(--k-4) 0;
  font-family: var(--font-tieu-de); font-weight: 700; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.75rem); line-height: 1.12;
  cursor: pointer; list-style: none;
}
.th-hoi-dap__muc summary::-webkit-details-marker { display: none; }
.th-hoi-dap__muc summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px; color: var(--th-hong);
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .3s var(--duong-cong);
}
.th-hoi-dap__muc[open] summary::after { transform: rotate(45deg); }
.th-hoi-dap__muc summary:hover { color: var(--th-hong-sang); }
.th-hoi-dap__tra-loi { padding: 0 0 var(--k-5); max-width: 62ch; color: var(--th-chu-phu); }
@media (min-width: 900px) {
  .th-hoi-dap__luoi { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--k-8); align-items: start; }
  .th-hoi-dap__luoi .th-dau-muc { position: sticky; top: calc(var(--cao-dau) + 2rem); margin-bottom: 0; }
}

/* ============================================================ nhận brief (form trên nền dải hạt) */
.th-brief.dai-hat { display: block; min-height: 0; background: radial-gradient(55% 60% at 88% 20%, rgba(236, 72, 153, .12), transparent 70%), radial-gradient(45% 50% at 0% 100%, rgba(8, 145, 178, .14), transparent 70%), var(--th-nen); }
.th-brief__luoi { position: relative; display: grid; gap: var(--k-7); padding-block: var(--dem-muc); }
.th-brief__chu h2 { font-size: var(--co-2); max-width: 14ch; margin-top: var(--k-4); }
.th-brief__mo-ta { max-width: 40ch; margin-top: var(--k-5); color: var(--th-chu-phu); }
.th-brief__khac { display: flex; flex-wrap: wrap; gap: var(--k-3); margin-top: var(--k-6); }
.th-brief [data-khoi="form-lien-he"] form, .th-brief .th-form { max-width: none; }
@media (min-width: 900px) { .th-brief__luoi { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--k-8); align-items: start; } }

.th-form {
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--th-vien); border-radius: 20px;
  background: rgba(21, 12, 20, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9);
}
.th-form .form-lien-he__o > label, .th-form .form-lien-he__o > legend { color: var(--th-chu); }
.th-form .form-lien-he__o > legend { margin-bottom: var(--k-2); }
.th-form .form-lien-he__chon { gap: .5rem; }
.th-form .form-lien-he__o input:not([type="radio"]):not([type="checkbox"]) {
  border: 1px solid rgba(243, 238, 231, .3); border-radius: var(--bo-goc-nho); background: #100810; color: var(--th-chu);
}
.th-form .form-lien-he__o input::placeholder { color: rgba(243, 238, 231, .42); }
.th-form .form-lien-he__o input:-webkit-autofill { -webkit-text-fill-color: var(--th-chu); box-shadow: 0 0 0 100px #100810 inset; caret-color: var(--th-chu); }
.th-form .form-lien-he__chip span { border-color: rgba(243, 238, 231, .3); background: transparent; color: var(--th-chu); }
.th-form .form-lien-he__chip input:checked + span { border-color: var(--th-hong); background: var(--th-hong); color: var(--th-nen); }
.th-form .form-lien-he__chip:hover span { border-color: rgba(243, 238, 231, .6); }
.th-form .form-lien-he__goi-y { font-size: var(--co-nho); color: var(--th-chu-phu); }
.th-form .form-lien-he__dong-y { min-height: 44px; align-items: center; color: var(--th-chu); }
.th-form .form-lien-he__dong-y input { margin-top: 0; accent-color: var(--th-hong); }
.th-form .form-lien-he__dong-y a { color: var(--th-hong-sang); }
.th-form .co-loi input:not([type="radio"]):not([type="checkbox"]) { border-color: var(--mau-loi); }
.th-form .form-lien-he__chi-buoc { color: var(--th-lam); }

/* ============================================================ chân trang */
.th-chan { overflow: hidden; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 7.5rem; border-top: 1px solid var(--th-vien); background: var(--th-toi); }
.th-chan__lon {
  margin-bottom: var(--k-8); font-family: var(--font-tieu-de); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.6rem, .8rem + 13.5vw, 14rem); line-height: .86; letter-spacing: -.005em; color: var(--th-chu); text-wrap: balance;
}
.th-chan__luoi { display: grid; gap: var(--k-7); }
.th-chan__mo-ta { max-width: 36ch; color: var(--th-chu-phu); font-size: var(--co-nho); }
.th-chan h2 { margin-bottom: var(--k-3); font-family: var(--font-than); font-size: var(--co-ti); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--th-lam); }
.th-chan ul { list-style: none; margin: 0; padding: 0; display: grid; }
.th-chan li a, .th-chan__nut {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none;
  color: var(--th-chu); font: inherit; font-size: var(--co-nho); text-decoration: none; cursor: pointer;
}
.th-chan li a:hover, .th-chan__nut:hover { color: var(--th-hong-sang); }
.th-chan__dong { display: flex; align-items: center; min-height: 44px; font-size: var(--co-nho); color: var(--th-chu-phu); }
.th-chan__day { display: grid; gap: var(--k-2); margin-top: var(--k-8); padding-top: var(--k-5); border-top: 1px solid var(--th-vien); font-size: var(--co-ti); line-height: 1.7; color: var(--th-chu-phu); }
@media (min-width: 900px) { .th-chan__luoi { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.5fr)); gap: var(--k-6); } }

/* ============================================================ trang con: chi tiết dự án · liên hệ · chính sách */
.th-trang-con main { padding-top: var(--cao-dau); }
.th-duong-dan { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; font-size: var(--co-nho); color: var(--th-chu-phu); }
.th-duong-dan a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--th-chu-phu); text-decoration: none; }
.th-duong-dan a:hover { color: var(--th-chu); }
.th-duong-dan span[aria-hidden] { opacity: .5; }

.th-ct-dau { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.th-ct-dau__luoi { display: grid; gap: var(--k-7); align-items: end; }
.th-ct-dau h1 { margin-top: var(--k-4); font-size: var(--co-1); line-height: 1; text-transform: uppercase; max-width: 16ch; }
.th-ct-dau__nhan { display: inline-flex; align-items: center; gap: .5em; margin-top: var(--k-4); padding: .3em .8em; border: 1px solid var(--th-vien-dam); border-radius: 999px; font-size: var(--co-ti); font-weight: 600; letter-spacing: .06em; }
.th-ct-dau__nhan:empty { display: none; }
.th-ct-dau__mo-ta { margin-top: var(--k-5); max-width: 44ch; font-size: var(--co-lon); color: var(--th-chu-phu); }
.th-thong-so { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--th-chu); }
.th-thong-so > div { padding: var(--k-4) 0; border-bottom: 1px solid var(--th-vien); }
.th-thong-so > div:nth-child(odd) { padding-right: var(--k-4); }
.th-thong-so > .th-thong-so__rong { grid-column: 1 / -1; padding-right: 0; }
.th-thong-so dt { font-size: var(--co-ti); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--th-chu-phu); }
.th-thong-so dd { margin: .3rem 0 0; font-size: var(--co-lon); line-height: 1.35; }
.th-thong-so dd.th-thong-so__so { color: var(--th-lam); font-weight: 600; }
.th-thong-so > div:has(> dd:empty) { display: none; }
@media (min-width: 900px) { .th-ct-dau__luoi { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--k-8); } }

.th-ct-bai { display: grid; gap: var(--k-7); align-items: start; }
.th-ct-bai__chu { display: grid; gap: var(--k-7); }
.th-ct-bai__khoi { display: grid; gap: var(--k-4); padding-top: var(--k-5); border-top: 1px solid var(--th-vien); }
.th-ct-bai__khoi h2 { font-size: var(--co-2); }
.th-ct-bai__khoi p { max-width: 60ch; color: var(--th-chu-phu); }
.th-ct-dt { max-width: 22rem; width: 100%; margin: 0 auto; }
.th-ct-dt .th-khung-web { border-radius: 30px; }
.th-ct-dt .th-khung-web__thanh { justify-content: center; height: 34px; }
.th-ct-dt .th-khung-web__thanh i { display: none; }
.th-ct-dt .th-khung-web__thanh span { width: 30%; height: 10px; margin: 0; }
.th-ct-dt figcaption { margin-top: var(--k-3); text-align: center; font-size: var(--co-nho); color: var(--th-chu-phu); }
@media (min-width: 900px) {
  .th-ct-bai { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--k-8); }
  .th-ct-dt { position: sticky; top: calc(var(--cao-dau) + 2rem); }
}
.th-ct-xem { display: flex; flex-wrap: wrap; gap: var(--k-3); }
.th-ct-xem a[href=""], .th-ct-xem a[href="#"] { display: none; }
.th-ct-moi {
  display: grid; gap: var(--k-5); align-items: center; padding: clamp(1.75rem, 1.2rem + 3vw, 3.5rem);
  border: 1px solid var(--th-vien); border-radius: 22px;
  background: radial-gradient(60% 90% at 100% 0%, rgba(236, 72, 153, .16), transparent 70%), var(--th-nen-2);
}
.th-ct-moi h2 { font-size: var(--co-2); max-width: 18ch; }
.th-ct-moi p { margin-top: var(--k-3); max-width: 46ch; color: var(--th-chu-phu); }
.th-ct-moi__nut { display: flex; flex-wrap: wrap; gap: var(--k-3); }
@media (min-width: 900px) { .th-ct-moi { grid-template-columns: minmax(0, 1fr) auto; } }
.th-quay-lai { margin-top: var(--k-6); }

.th-lh { display: grid; gap: var(--k-8); }
.th-lh__ds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--th-chu); }
.th-lh__ds li { display: grid; gap: .2rem; padding: var(--k-4) 0; border-bottom: 1px solid var(--th-vien); }
.th-lh__nhan { font-size: var(--co-ti); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--th-lam); }
.th-lh__ds a, .th-lh__ds strong {
  display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-tieu-de); font-weight: 700;
  font-size: clamp(1.5rem, 1.25rem + .9vw, 2.1rem); color: var(--th-chu); text-decoration: none;
}
.th-lh__ds strong { min-height: 0; padding-block: .2rem; }
.th-lh__ds a:hover { color: var(--th-hong-sang); }
@media (min-width: 900px) { .th-lh { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--k-8); align-items: start; } }

.th-chinh-sach { max-width: 46rem; }
.th-chinh-sach h1 { margin-top: var(--k-4); font-size: var(--co-1); text-transform: uppercase; line-height: 1; max-width: 16ch; }
.th-chinh-sach h2 { margin-top: var(--k-7); font-size: var(--co-3); }
.th-chinh-sach p, .th-chinh-sach li { color: var(--th-chu-phu); }
.th-chinh-sach p + p, .th-chinh-sach ul { margin-top: var(--k-4); }
.th-chinh-sach ul { display: grid; gap: .5rem; padding-left: 1.2em; }
.th-chinh-sach__ghi { margin-top: var(--k-5); padding: var(--k-4) var(--k-5); border-left: 2px solid var(--th-hong); border-radius: 0 var(--bo-goc-nho) var(--bo-goc-nho) 0; background: var(--th-nen-2); font-size: var(--co-nho); }
.th-chinh-sach__ghi p { color: var(--th-chu); }

/* ============================================================ khối chức năng dùng chung: chỉnh cho nền tối */
[data-khoi="nut-noi"] > a { box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(243, 238, 231, .25); }
[data-khoi="nut-noi"] > a.nut-noi__nut--goi { background: var(--th-hong); color: var(--th-nen); }
.banner-cookie { background: var(--th-chu); color: var(--th-nen); }
.banner-cookie__chon { border-color: rgba(21, 12, 20, .45); color: var(--th-nen); }
.banner-cookie__chon:hover { background: rgba(21, 12, 20, .08); }
.banner-cookie :focus-visible { outline-color: var(--th-nen); }
.xw-bo-qua { background: var(--th-chu); color: var(--th-nen); }

/* ============================================================ in ấn */
@media print {
  .th-dau, .th-quy-dao, .th-hero__hat, .th-quy-dao-3d { display: none !important; }
  .th-trang-con main { padding-top: 0; }
  html, body { background: #fff; color: #000; }
}

/* ==== Lớp giao diện 2026-10 · tham chiếu GetLayers (màu/font/bố cục), mã tự viết ==== */
/* Mẫu H · bảng Marcus Vane (nền #08080a · mực #f3f1ea · xám #807f78 · nhấn #ff3b1d) · Manrope 700 / Inter · đầu trang kiểu "vexon".
   Chỉ GHI ĐÈ phía trên, không sửa phần cũ. Màu ghi đè ở CẢ khối --th-* (phần cũ dùng trực tiếp) lẫn --mau-*.
   Đo tương phản 3/10 (WCAG): chữ 17,7:1 · chữ phụ ≥6,7:1 · chữ nhấn nhỏ ≥6,1:1 · chữ tối trên nút nhấn 5,6:1. */
:root {
  --th-nen: #08080a;
  --th-nen-2: #111113;
  --th-nen-3: #1a1a1d;
  --th-toi: #050506;
  --th-chu: #f3f1ea;
  --th-chu-phu: #a3a198;
  --th-hong: #ff3b1d;
  --th-hong-sang: #ff6a50;
  --th-lam: #b9b6ab;                /* nhấn 2 cũ (cyan) → xám ấm, nhãn và vạch nhỏ */
  --th-vien: rgba(243, 241, 234, .13);
  --th-vien-dam: rgba(243, 241, 234, .28);

  --mau-nen: #08080a;
  --mau-nen-2: #111113;
  --mau-chu: #f3f1ea;
  --mau-chu-phu: #a3a198;
  --mau-nhan: #ff3b1d;
  --mau-nhan-dam: #ff6a50;
  --mau-nhan-sang: #ff6a50;
  --mau-toi: #050506;
  --mau-chu-sang: #f3f1ea;
  --mau-chu-sang-phu: #a3a198;
  --mau-vien: rgba(243, 241, 234, .13);
  --mau-vien-sang: rgba(243, 241, 234, .2);

  --font-tieu-de: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-than: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --dam-tieu-de: 700;
  /* Manrope rộng gấp rưỡi Big Shoulders → thu thang cỡ chữ tiêu đề cho khỏi tràn */
  --co-sieu: clamp(2.5rem, 1rem + 5.2vw, 5.6rem);
  --co-1: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --co-2: clamp(1.7rem, 1.2rem + 1.7vw, 2.6rem);
  --co-3: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
}
::selection { background: var(--th-hong); color: var(--th-nen); }

/* luật 6 · tiêu đề: giãn chữ -0,02em, dòng ≥ 1,12 */
:where(h1, h2, h3) { letter-spacing: -.02em; line-height: 1.14; }
.th-ba-dieu__dong h3 { line-height: 1.16; }
.th-dau-muc h2 { max-width: 22ch; }
.th-dau-muc--giua h2 { max-width: 22ch; }
.th-dau-muc--lon h2 { font-size: clamp(2.6rem, 1.2rem + 5.4vw, 5.6rem); line-height: 1.12; text-transform: none; max-width: 18ch; }
.th-ct-dau h1, .th-chinh-sach h1 { font-size: var(--co-1); line-height: 1.14; text-transform: none; max-width: 20ch; }
.th-gia .bang-gia__ten { text-transform: none; letter-spacing: -.01em; }
.th-chan__lon { font-size: clamp(2.6rem, 1rem + 6.6vw, 7rem); line-height: 1.12; letter-spacing: -.02em; text-transform: none; }
.th-thuong-hieu__ten { font-size: 1.1rem; letter-spacing: -.01em; text-transform: none; }
@media (min-width: 521px) { .th-thuong-hieu__ten { font-size: 1.3rem; } }

/* luật 2 · bỏ công thức tô màu từng cụm / từng số */
.th-dong--nhan { color: inherit; }
.th-ba-dieu__dong .th-ba-dieu__so, .th-ba-dieu__dong:nth-child(2) .th-ba-dieu__so, .th-ba-dieu__dong:nth-child(3) .th-ba-dieu__so { color: var(--th-chu); }
.th-ba-dieu__so { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.2rem); line-height: 1.12; text-transform: none; }
.th-quy-trinh .the-quy-trinh__so, .th-quy-trinh .the-quy-trinh__the:nth-child(even) .the-quy-trinh__so { color: var(--th-chu); }
.th-so__muc:nth-child(2) .so-lon__o, .th-so__muc:nth-child(2) .so-lon:not(.so-lon--chay) { color: var(--th-chu); }

/* luật 1 · nhãn nhỏ in hoa trên tiêu đề: trang chủ chỉ có 2 (đầu trang, nhận brief) cách nhau 8 mục → đã đúng luật 1/3, không cần ẩn */

/* luật 4 · bỏ quầng sáng / gradient hồng-cyan, bóng đổ phát sáng; nhấn chỉ ở nút, liên kết, vạch nhỏ */
.xw-nut:not(.xw-nut--vien) { box-shadow: none; }
.xw-nut:not(.xw-nut--vien):hover { --nut-nen: #ff5238; }
.th-du-an__lien-ket:hover .th-khung-web { border-color: var(--th-hong); }
.th-quy-trinh { background: var(--th-nen); }
.th-quy-trinh.the-quy-trinh--duong .the-quy-trinh__ds::before { background: var(--th-vien-dam); }
.th-brief.dai-hat { background: var(--th-nen); --hat-mau: #ff3b1d !important; --hat-mau-2: #f3f1ea !important; }
.th-ct-moi { background: var(--th-nen-2); }

/* luật 3 · đồ trang trí rập khuôn: thanh trình duyệt giả trên khung ảnh dự án */
.th-khung-web__thanh { display: none; }

/* luật 5 · khung ảnh giữ chỗ (cho-*.svg): nền phụ, viền 1px, bo góc đồng bộ, hình xám trung tính, chú thích nhỏ màu phụ */
img[src*="/cho-"] { filter: grayscale(1) brightness(.9); }
.th-khung-web { border: 1px solid var(--th-vien); border-radius: var(--bo-goc); background: var(--th-nen-2); box-shadow: none; }
.th-khung-web__anh { background: var(--th-nen-2); }
.th-khung-web__cho { border: 1px solid var(--th-vien); border-radius: 6px; background: var(--th-nen); color: var(--th-chu-phu); font-weight: 500; }

/* ================= đầu trang · "vexon": tiêu đề chiếm 8/12 cột bên trái; cột phải hẹp = câu chốt + đoạn ngắn + nút.
   Bỏ màn hình web giả, vòng quỹ đạo, quầng sáng, dải hạt, lớp phủ (luật 3 + 4). Màn hình giả chỉ ẩn mắt (visibility) để
   quy-dao.js còn đo được khung. Sân khấu cuộn 250vh phẳng thành một màn đầu; các chỗ quy-dao.js / hero-phong.js ghi thẳng
   vào style (độ mờ, dịch chuyển, mặt nạ chấm lưới) phải ghi đè bằng !important để chữ không biến mất khi cuộn. */
.th-hero__nen, .th-hero__hat, .th-hero__phu { display: none; }
.th-hero .hero-phong__khung { visibility: hidden; pointer-events: none; }
.th-hero.hero-phong:not([data-cap-chay="tinh"]):not([data-kieu="ken-burns"]) { height: auto; }
.th-hero.hero-phong:not([data-cap-chay="tinh"]):not([data-kieu="ken-burns"]) .hero-phong__san { position: relative; }
.th-hero--tan .hero-phong__san { -webkit-mask-image: none !important; mask-image: none !important; }
.th-hero .hero-phong__san {
  display: grid; align-items: end; height: auto; min-height: max(36rem, 100svh);
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto auto auto; row-gap: var(--k-4);
  padding: calc(var(--cao-dau) + 1.75rem) max(var(--le), calc((100% - var(--rong-toi-da)) / 2 + var(--le))) clamp(2rem, 6vh, 4rem);
}
.th-hero .hero-phong__chu { display: contents; opacity: 1 !important; transform: none !important; visibility: visible !important; }
.th-hero .hero-phong__chu > *, .th-hero .hero-phong__chi-tiet { opacity: 1 !important; }
.th-hero .th-hero__nhan { grid-row: 1; align-self: start; margin: 0; }
.th-hero .hero-phong__chu .th-hero__tieu-de {
  grid-row: 3; max-width: none; margin: 0; color: var(--th-chu);
  font-weight: 700; text-transform: none; letter-spacing: -.02em; line-height: 1.12;
  font-size: clamp(2.5rem, 11.5vw, 4.4rem);
}
.th-dong { white-space: normal; text-wrap: balance; }
.th-hero .hero-phong__chi-tiet {
  grid-row: 4; position: static; z-index: auto; left: auto; right: auto; bottom: auto; max-width: 28ch;
  padding: var(--k-4) 0 0; border: 0; border-top: 2px solid var(--th-hong); border-radius: 0; background: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-family: var(--font-tieu-de); font-weight: 700; font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem); line-height: 1.3;
  letter-spacing: -.01em; color: var(--th-chu);
}
.th-hero .hero-phong__mo-ta { grid-row: 5; margin-top: 0; max-width: 38ch; }
.th-hero .hero-phong__nut { grid-row: 6; margin-top: 0; }
@media (min-width: 900px) {
  .th-hero .hero-phong__san {
    grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto auto; column-gap: var(--k-5);
  }
  .th-hero .th-hero__nhan { grid-column: 1 / -1; grid-row: 1; }
  .th-hero .hero-phong__chu .th-hero__tieu-de {
    grid-column: 1 / span 8; grid-row: 2 / span 3; align-self: end;
    font-size: clamp(3.2rem, min(6.8vw, 19svh), 7.6rem);
  }
  .th-hero .hero-phong__chi-tiet { grid-column: 9 / -1; grid-row: 2; align-self: start; }
  .th-hero .hero-phong__mo-ta { grid-column: 9 / -1; grid-row: 3; align-self: end; }
  .th-hero .hero-phong__nut { grid-column: 9 / -1; grid-row: 4; align-self: end; }
}
