/* ==========================================================================
   mau.css — Mẫu H · agency làm web thuê. Trang bán AI Web Kit (dựng từ mẫu H trong kit).
   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/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/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; }
}

/* ── Cảnh ghim thư viện mẫu (thu-vien-ghim.js) ─────────────────────────────
   Chỉ bật ở khổ máy tính và khi người xem không bật "giảm chuyển động".
   Lưới ảnh gốc không bị display:none mà chỉ giấu khỏi mắt, để trình đọc
   màn hình vẫn đọc đủ nội dung. */
.th-du-an__luoi--an-nhin {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.ghim-canh { position: relative; }
.ghim-canh__dinh {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 33%) 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 8vh 0 12vh;
}
.ghim-canh__chu { position: relative; min-height: 230px; }
.ghim-canh__mot-chu {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}
.ghim-canh__mot-chu.dang { opacity: 1; transform: none; }
.ghim-canh__hinh { position: relative; aspect-ratio: 16 / 9; }
.ghim-canh__mot-hinh {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(.98);
  transition: opacity .5s ease, transform .5s ease;
}
.ghim-canh__mot-hinh.dang { opacity: 1; transform: none; }
.ghim-canh__mot-hinh .th-khung-web { height: 100%; }
.ghim-canh__mot-hinh .th-khung-web__anh { height: calc(100% - 26px); }
.ghim-canh__mot-hinh img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ghim-canh__cham {
  position: absolute; left: 0; bottom: 6vh;
  display: flex; gap: 8px; margin: 0; padding: 0; list-style: none;
}
.ghim-canh__mot-cham {
  width: 26px; height: 3px; border-radius: 2px;
  background: currentColor; opacity: .22;
  transition: opacity .3s ease, width .3s ease;
}
.ghim-canh__mot-cham.dang { opacity: 1; width: 40px; }
@media (prefers-reduced-motion: reduce) {
  .ghim-canh__mot-chu, .ghim-canh__mot-hinh, .ghim-canh__mot-cham { transition: none; }
}

/* ── Nhịp cuộn (nhip.js) — chạy cả trên điện thoại ────────────────────────
   Chỉ đổi transform và opacity nên điện thoại vẫn mượt. Người bật "giảm
   chuyển động" thì nhip.js tự tắt phần trôi, chỉ để lại thanh tiến trình. */
.nhip-thanh {
  position: fixed; inset: 0 auto auto 0;
  width: 100%; height: 2px; z-index: 60;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mau-nhan), var(--mau-nhan-2, var(--mau-nhan)));
  pointer-events: none;
}
.nhip-troi { will-change: transform; }
.nhip-muc { position: relative; }   /* để lớp nền ::before bám đúng mục */
.nhip-muc::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--mau-nhan) 12%, transparent), transparent 70%);
  opacity: 0; transition: opacity .8s ease;
}
.nhip-muc.nhip-trong-tam::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .nhip-troi { transform: none !important; }
  .nhip-muc::before { display: none; }
}

/* ── Điện thoại: thư viện mẫu thành dải vuốt ngang bám điểm ───────────────
   Máy tính có cảnh ghim (thu-vien-ghim.js); điện thoại không ghim được cho
   đàng hoàng nên đổi sang vuốt ngang — vừa gọn trang, vừa có cái để vuốt.
   Cuộn ngang nằm TRONG dải, không tràn ra trang, nên bảng kiểm không báo lỗi. */
@media (max-width: 1023px) {
  .th-du-an__luoi {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .th-du-an__luoi > .th-du-an__the {
    flex: 0 0 84%;
    scroll-snap-align: center;
    min-width: 0;
  }
  .th-du-an__luoi > template { display: none; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .th-du-an__luoi { scroll-snap-type: none; }
}

/* ── Mục gấp lại (details) cho phần tra cứu dài ───────────────────────────
   Không xoá nội dung — khách kỹ tính vẫn mở ra đọc được — nhưng không bắt
   mọi người cuộn qua 1.300px tài liệu để tới nút mua. */
.th-gap { border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 14px; margin: 18px 0 0; }
.th-gap > summary {
  cursor: pointer; list-style: none; padding: 16px 18px;
  font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px;
}
.th-gap > summary::-webkit-details-marker { display: none; }
.th-gap > summary::after { content: '+'; font-size: 1.4em; line-height: 1; opacity: .6; transition: transform .25s ease; }
.th-gap[open] > summary::after { transform: rotate(45deg); }
.th-gap > *:not(summary) { padding: 0 18px 18px; }

/* ── Điện thoại: danh sách dài thành dải vuốt ngang ───────────────────────
   Ba ý "vấn đề" và năm bước "cách chạy" dựng đứng ngốn 2.400px — gần ba màn
   hình chỉ để đọc tám ý ngắn. Xoay ngang: trang ngắn lại, và có thêm chỗ
   vuốt, đúng thói quen dùng điện thoại. Cuộn ngang nằm trong dải, không
   tràn ra trang. */
@media (max-width: 1023px) {
  .th-ba-dieu__ds,
  .the-quy-trinh__ds {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .th-ba-dieu__ds > li,
  .the-quy-trinh__ds > li {
    flex: 0 0 80%;
    scroll-snap-align: center;
    min-width: 0;
  }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .th-ba-dieu__ds, .the-quy-trinh__ds { scroll-snap-type: none; }
}
/* Tiêu đề trong cảnh ghim đứng ở cột hẹp nên dễ rớt chữ lẻ — cân dòng lại. */
.ghim-canh__mot-chu .th-du-an__ten,
.ghim-canh__mot-chu .th-du-an__viec { text-wrap: pretty; }

/* ── Điện thoại: ẩn ảnh khung trình duyệt nổi trong hero ──────────────────
   Ảnh này đặt tuyệt đối ở y=581, mà đoạn bằng chứng nằm 513–646 → xuống khổ
   điện thoại là chồng lên nhau, chữ đọc không ra, và nó còn nằm dưới cả nút
   bấm. Máy tính bố cục hai cột nên không đụng, giữ nguyên.
   Bằng chứng "trang này cũng dựng bằng kit" vẫn còn nguyên ở phần chữ. */
@media (max-width: 767px) {
  .th-man { display: none; }
}

/* ══ CẢNH TRÀN MÀN HÌNH ════════════════════════════════════════════════════
   Bảy cảnh, mỗi cảnh một ảnh riêng gen bằng Higgsfield (nano_banana_pro, 2 credit
   mỗi ảnh). Bối cảnh Việt thật: hàng nước vỉa hè lúc chạng vạng, tay gõ máy đêm,
   quầy hàng, mã QR trên bàn thu ngân, trao gói hàng, cửa cuốn mở lúc sáng sớm.
   Cùng một tông màu để cuộn từ đầu tới cuối như xem một thước phim.

   Ảnh chỉ nạp khi cuộn gần tới (xem nhip.js, lớp .co-anh) và phóng từ 1.12 về 1.0
   theo lúc cảnh đi qua tầm mắt — cảm giác máy quay đẩy vào. */
#van-de, #mau-web, #cach-chay, #cms, #bang-gia, #bao-hanh, #hoi-dap {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
#van-de, #cach-chay, #cms, #bao-hanh {
  min-height: 100svh;
  display: flex;
  align-items: center;
}
#van-de::before, #mau-web::before, #cach-chay::before, #cms::before,
#bang-gia::before, #bao-hanh::before, #hoi-dap::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: none;   /* ảnh chờ lớp .co-anh — xem nhip.js */
  background-size: cover;
  background-position: center;
  transform: scale(var(--phong, 1.12));
  transform-origin: center;
  will-change: transform;
  filter: brightness(.62) saturate(.9);
}
#van-de::after, #mau-web::after, #cach-chay::after, #cms::after,
#bang-gia::after, #bao-hanh::after, #hoi-dap::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,9,14,.92) 0%, rgba(12,9,14,.55) 45%, rgba(12,9,14,.95) 100%),
    linear-gradient(90deg, rgba(12,9,14,.95) 0%, rgba(12,9,14,.86) 34%, rgba(12,9,14,.18) 78%);
}
#van-de.co-anh::before   { background-image: url('/ai-web-kit/anh/canh/van-de-800.webp'); }
#mau-web.co-anh::before  { background-image: url('/ai-web-kit/anh/canh/mau-web-800.webp'); }
#cach-chay.co-anh::before{ background-image: url('/ai-web-kit/anh/canh/cach-chay-800.webp'); }
#cms.co-anh::before      { background-image: url('/ai-web-kit/anh/canh/cms-800.webp'); }
#bang-gia.co-anh::before { background-image: url('/ai-web-kit/anh/canh/bang-gia-800.webp'); }
#bao-hanh.co-anh::before { background-image: url('/ai-web-kit/anh/canh/bao-hanh-800.webp'); }
#hoi-dap.co-anh::before  { background-image: url('/ai-web-kit/anh/canh/hoi-dap-800.webp'); }
@media (min-width: 768px) {
  #van-de.co-anh::before   { background-image: url('/ai-web-kit/anh/canh/van-de-1280.webp'); }
  #mau-web.co-anh::before  { background-image: url('/ai-web-kit/anh/canh/mau-web-1280.webp'); }
  #cach-chay.co-anh::before{ background-image: url('/ai-web-kit/anh/canh/cach-chay-1280.webp'); }
  #cms.co-anh::before      { background-image: url('/ai-web-kit/anh/canh/cms-1280.webp'); }
  #bang-gia.co-anh::before { background-image: url('/ai-web-kit/anh/canh/bang-gia-1280.webp'); }
  #bao-hanh.co-anh::before { background-image: url('/ai-web-kit/anh/canh/bao-hanh-1280.webp'); }
  #hoi-dap.co-anh::before  { background-image: url('/ai-web-kit/anh/canh/hoi-dap-1280.webp'); }
}
/* Điện thoại không đủ chỗ cho hai cột nên phủ tối đều, chữ mới đọc được. */
@media (max-width: 767px) {
  #van-de::after, #mau-web::after, #cach-chay::after, #cms::after,
  #bang-gia::after, #bao-hanh::after, #hoi-dap::after {
    background: linear-gradient(180deg, rgba(12,9,14,.95) 0%, rgba(12,9,14,.78) 45%, rgba(12,9,14,.96) 100%);
  }
  #van-de::before, #mau-web::before, #cach-chay::before, #cms::before,
  #bang-gia::before, #bao-hanh::before, #hoi-dap::before { filter: brightness(.5) saturate(.85); }
}
@media (prefers-reduced-motion: reduce) {
  #van-de::before, #mau-web::before, #cach-chay::before, #cms::before,
  #bang-gia::before, #bao-hanh::before, #hoi-dap::before { transform: none; }
}
