/* =====================================================================
   CHUYỂN ĐỘNG & ÁNH KIM – dùng cho màn bìa trang chủ (index) và trang Tổng thể & tiện ích
   ===================================================================== */

/* ---------- chữ ánh kim, vệt sáng chạy qua ---------- */
.hero h1, .sec h2.b-title, .cta h2.b-title, .cover h1, .cover h1 em,
.stats .n, .times > div, .pol .big, .floors b, .cover .stats div {
  background: linear-gradient(100deg, #d8b678 0%, #f0dcb2 18%, #fffbf0 26%, #f6e7c4 32%, #dcbb80 50%, #f0dcb2 68%, #fffcf4 76%, #ecd29e 84%, #d8b678 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: goldShine 9s linear infinite; text-shadow: none; }
.times > div span, .stats .t, .cover .stats span { -webkit-text-fill-color: currentColor; }
.hero h1, .cover h1 { filter: drop-shadow(0 4px 22px rgba(4,22,18,.55)); }
@keyframes goldShine { from { background-position: 130% 0; } to { background-position: -130% 0; } }

/* ---------- vào trang: chữ trồi lên, rõ dần ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(34px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes lineGrow { to { width: 46px; } }
@keyframes beam { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }

/* vệt sáng quét chéo trên ảnh */
.hero .img::after, .cover .img::after { content: ""; position: absolute; inset: -20% -40%; pointer-events: none; will-change: transform;
  background: linear-gradient(105deg, transparent 42%, rgba(255,244,218,.16) 50%, transparent 58%);
  transform: translateX(-60%); animation: beam 8s cubic-bezier(.5,0,.3,1) 1.2s infinite; }

/* ---------- màn bìa trang chủ ---------- */
.cover .eb, .cover h1, .cover .sub, .cover .stats, .cover .act, .cover .badge { opacity: 0; animation: riseIn 1.1s var(--ease) forwards; }
.cover .eb { animation-delay: .15s; } .cover .sub { animation-delay: .7s; } .cover .stats { animation-delay: .85s; } .cover .act { animation-delay: 1s; } .cover .badge { animation-delay: 1.15s; }
.cover h1 { animation: riseIn 1.3s var(--ease) .35s forwards, goldShine 9s linear 1.6s infinite; letter-spacing: -.015em; }
.cover h1 em { animation: goldShine 9s linear 1.6s infinite; filter: none; }
.cover .eb::before { width: 0; background: linear-gradient(90deg, var(--champ2), var(--champ)); animation: lineGrow 1.2s var(--ease) .3s forwards; }
.cover .stats div { animation: goldShine 9s linear infinite; }
.cover .stats > div + div { padding-left: 30px; border-left: 1px solid rgba(233,212,166,.28); }
.cover .act .go { position: relative; overflow: hidden; isolation: isolate; }
.cover .act .go::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: btnShine 4.5s ease-in-out 2.2s infinite; z-index: -1; }
@keyframes btnShine { 0% { left: -60%; } 35%, 100% { left: 140%; } }

/* ---------- trang Tổng thể & tiện ích: ảnh đầu trang ---------- */
.hero { height: min(92vh, 880px); }
.hero .img { animation: heroDrift 22s ease-out forwards; transform-origin: 60% 40%;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
@keyframes heroDrift { from { transform: scale(1.12) translateX(-1.5%); } to { transform: scale(1.02) translateX(0); } }
.hero::after { background: radial-gradient(70% 55% at 18% 78%, rgba(8,34,28,.72) 0%, rgba(8,34,28,0) 100%), linear-gradient(180deg, rgba(10,40,33,.25) 0%, rgba(10,40,33,0) 22%, rgba(12,46,38,.45) 48%, rgba(12,46,38,.82) 74%, rgba(12,46,38,0) 100%); }
.hero .wrap { padding-bottom: 96px; }
.hero h1 { font-size: clamp(46px, 7.6vw, 108px); line-height: 1.04; letter-spacing: -.015em; margin: 16px 0 14px; }
.hero .b-eyebrow { display: flex; align-items: center; gap: 14px; color: var(--champ); }
.hero .b-eyebrow::before { content: ""; width: 0; height: 1px; background: linear-gradient(90deg, var(--champ2), var(--champ)); animation: lineGrow 1.2s var(--ease) .3s forwards; }
.hero p { font-size: clamp(15px, 1.5vw, 19px); letter-spacing: .04em; color: #eef3ef; }
.hero .b-eyebrow, .hero h1, .hero p { opacity: 0; animation: riseIn 1.1s var(--ease) forwards; }
.hero .b-eyebrow { animation-delay: .15s; } .hero p { animation-delay: .75s; }
.hero h1 { animation: riseIn 1.3s var(--ease) .35s forwards, goldShine 9s linear 1.6s infinite; }
.hero .scroll { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); width: 22px; height: 36px; border: 1px solid rgba(233,212,166,.6); border-radius: 12px; }
.hero .scroll::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--champ); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* tiêu đề mục: gạch vàng trước số mục, đường kẻ vàng nhạt dần */
.sec .b-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--champ); }
.sec .b-eyebrow::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, var(--champ2), var(--champ)); }
.sec h2.b-title { letter-spacing: -.01em; }
.sec .stats > div, .floors > div { border-bottom-color: transparent; position: relative; }
.sec .stats > div::after, .floors > div::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(233,212,166,.55), rgba(233,212,166,.08)); }

/* ---------- hiện dần khi cuộn (lớp .rv do js/motion.js gắn; không có JS vẫn hiện bình thường) ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.split .pic.rv { transform: translateY(28px) scale(.97); } .split .pic.rv.in { transform: none; }
.sec .b-eyebrow.rv::before { width: 0; transition: width 1s var(--ease) .3s; } .sec .b-eyebrow.rv.in::before { width: 34px; }

/* ảnh: vệt sáng lướt qua khi rê chuột, ảnh tiện ích phóng nhẹ */
.split .pic, .gal figure, .mp { position: relative; overflow: hidden; }
.split .pic::after, .mp::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; transform: skewX(-18deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,246,222,.35), transparent); transition: left 1s var(--ease); }
.split .pic:hover::after, .mp:hover::after { left: 130%; }
.gal figure { background-size: cover; transition: transform .6s var(--ease), box-shadow .3s, border-color .3s; }
.gal figure:hover { transform: scale(1.02); z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .b-eyebrow, .hero h1, .hero p, .cover .eb, .cover h1, .cover .sub, .cover .stats, .cover .act, .cover .badge { opacity: 1; }
}
@media (max-width: 700px) {
  .hero .wrap { padding-bottom: 76px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 60px); }
  .cover .stats > div + div { padding-left: 0; border-left: 0; }
}
/* màn bìa: vùng chữ bên trái tối hơn để chữ ánh kim nổi rõ trên ảnh */
.cover::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(65% 55% at 18% 80%, rgba(8,34,28,.7) 0%, rgba(8,34,28,0) 100%); }
/* điện thoại: bỏ lớp vệt sáng lớn & lớp tối phụ để máy yếu vẫn mượt (nền màn bìa điện thoại đã đủ tối) */
@media (max-width: 700px) { .hero .img::after, .cover .img::after, .cover::after { display: none; } }
/* con số lớn: giữ màu ánh kim tĩnh (vệt sáng chạy chỉ ở tiêu đề) cho trang nhẹ, mượt */
.stats .n, .times > div, .pol .big, .floors b, .cover .stats div { animation: none; background-position: 40% 0; }

/* ---- tinh chỉnh 02/12: số một màu đều, vệt sáng thưa & mảnh ---- */
.stats .n, .times > div, .pol .big, .floors b, .cover .stats div {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #ecd6a8; -webkit-text-fill-color: #ecd6a8; animation: none; }
.stats .n small, .times > div sup { color: #ecd6a8; -webkit-text-fill-color: #ecd6a8; }
/* tiêu đề: nền champagne đồng đều, chỉ một dải sáng hẹp lướt qua ~14 giây/lần */
.hero h1, .sec h2.b-title, .cta h2.b-title, .cover h1, .cover h1 em, .mb-title h1 {
  background: linear-gradient(100deg, #ecd6a8 0%, #ecd6a8 44%, #fff8e8 50%, #ecd6a8 56%, #ecd6a8 100%);
  background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
@keyframes goldShine { 0% { background-position: 100% 0; } 18%, 100% { background-position: 0% 0; } }
.hero h1, .cover h1 { animation: riseIn 1.3s var(--ease) .35s forwards, goldShine 14s ease-in-out 1.8s infinite; }
.sec h2.b-title, .cta h2.b-title, .cover h1 em, .mb-title h1 { animation: goldShine 14s ease-in-out 1s infinite; }
.cover .act .go::after { animation-duration: 9s; }
.hero .img::after, .cover .img::after { animation-duration: 14s; }
