/* hieu-ung.css: đi cùng js-them/hieu-ung.js. Chỉ ẩn khi html.tz-js-anim (JS đã chạy) và không có body.tz-tat-hieu-ung. Chỉ transform/opacity. */
html.tz-js-anim body:not(.tz-tat-hieu-ung) .tz-fx:not(.tz-in){opacity:0}
html.tz-js-anim body:not(.tz-tat-hieu-ung) .tz-fx.tz-in{animation:tz-fade-up 1s ease backwards;animation-delay:var(--d,0s)}
@keyframes tz-fade-up{from{opacity:0;transform:translate3d(0,40px,0)}}

/* tiêu đề tách chữ: từng ký tự từ phải sang */
html.tz-js-anim body:not(.tz-tat-hieu-ung) .tz-fxt{overflow-x:clip;perspective:400px}
html.tz-js-anim body:not(.tz-tat-hieu-ung) .tz-fxt .tz-w{display:inline-block;white-space:nowrap}
html.tz-js-anim body:not(.tz-tat-hieu-ung) .tz-fxt .tz-c{display:inline-block;transition:opacity 1s cubic-bezier(.34,1.56,.64,1),transform 1s cubic-bezier(.34,1.56,.64,1)}
html.tz-js-anim body:not(.tz-tat-hieu-ung) .tz-fxt:not(.tz-in) .tz-c{opacity:0;transform:translate3d(50px,0,0)}
/* Chữ kim loại tách chữ (demo .metal-text.is-split): gradient chuyển từ tiêu đề xuống từng chữ */
html.tz-js-anim body:not(.tz-tat-hieu-ung) .tz-fxt--kim{background:none}
html.tz-js-anim body:not(.tz-tat-hieu-ung) .tz-fxt--kim .tz-c{background:var(--tz-kim) 0 0/100% 1lh;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}

/* ảnh reveal kiểu "cửa kéo" của demo (khung trượt -100→0, ảnh trong ngược chiều: hiệu quả nhìn thấy = cửa sổ mở từ trái, ảnh đứng yên), 1s power2.out */
html.tz-js-anim body:not(.tz-tat-hieu-ung) .tz-rv:not(.tz-in){clip-path:inset(0 100% 0 0)}
html.tz-js-anim body:not(.tz-tat-hieu-ung) .tz-rv.tz-in{animation:tz-rv 1s cubic-bezier(.5,1,.89,1) backwards}
@keyframes tz-rv{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}

.tz-so{display:inline-block;font-variant-numeric:tabular-nums}

/* vệt sáng chéo khi rê chuột trên ảnh thẻ */
@media (hover:hover) and (prefers-reduced-motion:no-preference){
body:not(.tz-tat-hieu-ung) :is(.tz-service-card__media,.tz-post-card__media,.tz-service-tiles__media)::before{content:"";position:absolute;top:50%;left:50%;z-index:1;width:200%;height:0;background:rgba(251,252,253,.3);transform:translate(-50%,-50%) rotate(-45deg);pointer-events:none}
body:not(.tz-tat-hieu-ung) :is(.tz-service-card__media,.tz-post-card__media,.tz-service-tiles__media):hover::before{height:250%;background:transparent;transition:all .6s linear}
}

/* dải logo báo chí: bước từng ô như Swiper demo (PC 5, ≥768 4, ĐT 2; cách 40px; chuyển 2s, tự chạy 5s, vòng lặp) */
.tz-pressv{overflow:hidden;--n:2;--g:40px}
@media (min-width:768px){.tz-pressv{--n:4}}
@media (min-width:992px){.tz-pressv{--n:5}}
.tz-home-press__track.tz-pressv__tr{display:flex;flex-wrap:nowrap;grid-template-columns:none;grid-auto-flow:row;gap:var(--g);padding:0;overflow:visible;scroll-snap-type:none;transition:transform 2s ease;will-change:transform}
.tz-pressv__tr>li{flex:0 0 calc((100% - (var(--n) - 1) * var(--g)) / var(--n));min-width:0}
body.tz-tat-hieu-ung .tz-pressv__tr{transition:none}

/* trang trí float như demo .decor (3s, lên xuống 10px; vài biến thể lật); ≤991px thu .6 mờ */
@media (prefers-reduced-motion:no-preference){
body:not(.tz-tat-hieu-ung) :is(.tz-page-hero__decor,.tz-footer__decor){animation:tz-decor 3s infinite alternate}
body:not(.tz-tat-hieu-ung) .tz-footer__decor--phai{animation-name:tz-decor-flip}
}
@keyframes tz-decor{from{transform:translateY(0)}to{transform:translateY(10px)}}
@keyframes tz-decor-flip{from{transform:translateY(0) rotate(180deg)}to{transform:translateY(10px) rotate(180deg)}}
@media (max-width:991px){:is(.tz-page-hero__decor,.tz-footer__decor){transform-origin:center;scale:.6;opacity:.08}}
/* Đo demo 26/11: hình trang trí chân trang trên điện thoại giữ độ mờ .16 như máy tính. */
@media (max-width:991px){.tz-footer__decor{opacity:.16}}

/* neo #… trừ chiều cao header */
html{scroll-padding-top:var(--tz-anchor-offset,96px)}

/* preloader (khách): màn royal, vòng quay 1.5s + biểu tượng trắng; tắt ở load (JS) hoặc tự tắt sau 3s (CSS, cả khi không có JS) */
.tz-pre{position:fixed;inset:0;z-index:100001;display:flex;align-items:center;justify-content:center;background:#002861;transition:opacity .6s linear,visibility .6s linear;animation:tz-pre-auto .6s linear 3s forwards}
.tz-pre.is-done{opacity:0;visibility:hidden}
.tz-pre__box{position:relative;width:100px;height:100px}
.tz-pre__ring{position:absolute;inset:0;border:1px solid transparent;border-left-color:#fbfcfd;border-right-color:#fbfcfd;border-radius:50%;animation:tz-pre-xoay 1.5s linear infinite}
.tz-pre__ico{position:absolute;top:50%;left:50%;width:60px;max-width:66px;height:auto;transform:translate(-50%,-50%)}
@keyframes tz-pre-xoay{to{transform:rotate(360deg)}}
@keyframes tz-pre-auto{to{opacity:0;visibility:hidden}}
body.tz-tat-hieu-ung .tz-pre{display:none}
@media (prefers-reduced-motion:reduce){.tz-pre{display:none}}

/* con trỏ tuỳ biến (JS chỉ tạo trên máy có chuột) */
.tz-cursor{position:fixed;top:0;left:0;z-index:100000;pointer-events:none;user-select:none;will-change:transform}
.tz-cursor::before{content:"";position:absolute;top:-24px;left:-24px;width:48px;height:48px;border-radius:50%;background:var(--tz-royal);transform:scale(0);transition:transform .3s var(--tz-ease-out),opacity .1s}
.tz-cursor.-on::before{transform:scale(.2)}
.tz-cursor.-on.-act::before{transform:scale(.23)}
.tz-cursor.-on.-ptr::before{transform:scale(0)}
.tz-cursor.-on.-inv::before{transform:scale(1.32);background:var(--tz-porcelain);mix-blend-mode:exclusion}
.tz-cursor.-on.-txt::before{transform:scale(1.7);background:var(--tz-night);opacity:.85}
.tz-cursor__t{position:absolute;top:-18px;left:-18px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;font:500 16px/1 var(--tz-font-body,inherit);color:var(--tz-porcelain);opacity:0;transform:scale(0) rotate(10deg);transition:opacity .4s var(--tz-ease-out),transform .3s var(--tz-ease-out)}
.tz-cursor.-on.-txt .tz-cursor__t{opacity:1;transform:none}
html.tz-co-xem a{cursor:none}
body:is(.tz-tat-hieu-ung,.tz-tat-chuot) .tz-cursor{display:none}

