/* Hallmark · trang chủ v2 (14/10/2026) — 6 khối học từ https://www.yodaymedia.com/ (studied: yes · DNA-source: url),
 * làm lại bằng nhận diện Adzio: dải đỏ số liệu, case nổi bật có thẻ số lơ lửng, dịch vụ gom 1 thẻ lớn
 * + phễu 3D, kiến thức mới, băng vuốt ngang + thanh nút đáy trên điện thoại, footer tối có chữ A chìm.
 * Chỉ dùng ở index.html; token, footer và thanh nút đáy dùng chung nằm ở css/site-v2.css (nạp trước file này). Vật thể 3D: _poster-3d-objects.html.
 * Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 */


/* ── hiện dần khi cuộn: dùng .reveal/.active sẵn có của main.js, thêm kiểu "thẻ" nảy nhẹ + "phóng", hiện lần lượt bằng --rd ── */
.reveal.hv-r-card { opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .7s var(--hv-ease), transform .7s var(--hv-pop); transition-delay: var(--rd, 0s); }
.reveal.hv-r-zoom { opacity: 0; transform: scale(.94); transition: opacity .8s var(--hv-ease), transform .8s var(--hv-ease); transition-delay: var(--rd, 0s); }
.reveal.hv-r-card.active, .reveal.hv-r-zoom.active { opacity: 1; transform: none; }

/* nút viên thuốc có mũi tên trong vòng tròn, mũi tên xoay chéo khi rê */
.hv-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: .7rem; min-height: 3rem; padding: .35rem .4rem .35rem 1.4rem; border-radius: 999px; font: 600 .95rem/1 var(--hv-font-d); white-space: nowrap; text-decoration: none; transition: transform .35s var(--hv-ease), box-shadow .35s var(--hv-ease); }
.hv-btn__arrow { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; flex: none; transition: transform .35s var(--hv-ease); }
.hv-btn__arrow svg, .hv-ncard__go svg, .hv-chip svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hv-btn:hover { transform: translateY(-2px); }
.hv-btn:hover .hv-btn__arrow { transform: rotate(-45deg); }
.hv-btn:focus-visible, .hv-chip:focus-visible, .hv-ncard:focus-visible, .hv-band a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.hv-btn--paper { background: var(--hv-paper); color: var(--hv-ink); box-shadow: 0 10px 26px -14px var(--hv-shadow); }
.hv-btn--paper .hv-btn__arrow { background: var(--hv-ink); color: var(--hv-on-dark); }
.hv-btn--line { background: var(--hv-paper); color: var(--hv-ink); border: 1.5px solid var(--hv-red); }
.hv-btn--line .hv-btn__arrow { background: var(--hv-red); color: var(--hv-on-red); }

/* ════ 1 · Dải đỏ số liệu ════ */
.hv-band { position: relative; isolation: isolate; overflow: clip; padding: 4.5rem 0 3.75rem; color: var(--hv-on-red);
           background: radial-gradient(90% 140% at 50% 0%, var(--hv-red) 0%, var(--hv-red) 45%, var(--hv-red-strong) 100%); }
.hv-band__title { max-width: 30ch; margin: 0 auto; text-align: center; font: 800 clamp(1.7rem, 2.6vw, 2.35rem)/1.2 var(--hv-font-d); letter-spacing: -.025em; color: var(--hv-on-red); text-wrap: balance; }
.hv-band .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 3rem 0 0; padding: 0; }
.hv-stat { min-width: 0; }
.hv-band .stat-val { margin: 0; font: 800 clamp(2.6rem, 4.6vw, 4.1rem)/1 var(--hv-font-d); letter-spacing: -.035em; color: var(--hv-on-red); font-variant-numeric: tabular-nums; }
.hv-band .stat-label { margin-top: .8rem; max-width: 16ch; font: 500 1.02rem/1.45 var(--hv-font-b); color: var(--hv-on-red-2); }
.hv-band__more { margin: 2.6rem 0 0; text-align: center; font-size: .92rem; color: var(--hv-on-red-2); }
.hv-band__more a { color: var(--hv-on-red); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ════ 2 · Case nổi bật: hình 3D + thẻ số lơ lửng ════ */
.hv-case { padding: 6rem 0 5rem; }
.hv-case .shdr { margin-bottom: 1.5rem; }
.hv-case__src { margin: 0 0 1rem; text-align: center; font-size: .95rem; color: var(--hv-muted); }
.hv-case__src a { color: var(--hv-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hv-case__stage { position: relative; max-width: 980px; margin: 0 auto; }
.hv-case__stage::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, var(--hv-wash-2), transparent); pointer-events: none; }
.hv-case__art { display: block; width: min(64%, 560px); height: auto; margin: 0 auto; }
.hv-pill { position: absolute; z-index: 2; padding: 1.05rem 1.5rem 1.1rem; border-radius: 22px; background: var(--hv-paper); box-shadow: 0 22px 48px -18px var(--hv-shadow), 0 1px 0 var(--hv-rule); }
.hv-pill b { display: block; font: 800 2.5rem/1 var(--hv-font-d); letter-spacing: -.03em; color: var(--hv-red-strong); }
.hv-pill span { display: block; margin-top: .35rem; font-size: .92rem; line-height: 1.35; color: var(--hv-muted); }
.hv-pill--a { left: 0; top: 14%; animation: hv-bob 7s ease-in-out 1.4s infinite; }
.hv-pill--b { right: 2%; top: 0; animation: hv-bob 6s ease-in-out 1.2s infinite; }
.hv-pill--c { right: 8%; bottom: 6%; animation: hv-bob 8s ease-in-out 1.8s infinite; }
@keyframes hv-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ════ 3 · Dịch vụ: một thẻ đỏ lớn, lưới nút, phễu 3D tràn mép ════ */
.hv-svc__card { position: relative; isolation: isolate; overflow: hidden; border-radius: 30px; padding: 3rem 3.25rem; color: var(--hv-on-red); background: linear-gradient(115deg, var(--hv-red-deep), var(--hv-red-strong) 45%, var(--hv-red)); }
.hv-svc__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 2rem; }
.hv-svc__lead { max-width: 36rem; margin: 0; font-size: 1.04rem; line-height: 1.65; color: var(--hv-on-red-2); }
.hv-svc__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; width: min(100%, 58%); }
.hv-chip { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 4.4rem; padding: .9rem 1.2rem; white-space: nowrap; border-radius: 18px; background: var(--hv-chip); color: var(--hv-on-red); font: 700 1rem/1.35 var(--hv-font-d); text-decoration: none; transition: background .35s var(--hv-ease), transform .35s var(--hv-ease); }
.hv-chip svg { flex: none; opacity: .75; transition: transform .35s var(--hv-ease), opacity .35s; }
.hv-chip:hover { background: var(--hv-chip-2); transform: translateY(-3px); }
.hv-chip:hover svg { transform: translateX(3px); opacity: 1; }
.hv-svc__art { position: absolute; z-index: 1; right: -1.5rem; bottom: -2.5rem; width: min(42%, 440px); height: auto; pointer-events: none; }

/* ════ 4 · Kiến thức mới ════ */
.hv-news { padding: 5.5rem 0 5rem; }
.hv-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.hv-ncard { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: .9rem; min-height: 19rem; padding: 1.75rem 1.75rem 1.6rem; border-radius: 26px; background: var(--hv-wash); color: var(--hv-ink); text-decoration: none; transition: transform .5s var(--hv-ease), background .5s var(--hv-ease); }
.hv-ncard:hover { transform: translateY(-8px); background: var(--hv-wash-2); }
.hv-tag { align-self: flex-start; padding: .4rem 1rem; border-radius: 999px; background: var(--hv-paper); font: 600 .8rem/1.2 var(--hv-font-d); color: var(--hv-red-strong); }
.hv-ncard h3 { margin: .2rem 0 0; font: 700 1.24rem/1.35 var(--hv-font-d); letter-spacing: -.015em; color: var(--hv-ink); text-wrap: balance; }
.hv-ncard p { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--hv-ink-2); }
.hv-ncard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .8rem; }
.hv-ncard time { font-size: .88rem; color: var(--hv-muted); }
.hv-ncard__go { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--hv-red); color: var(--hv-on-red); box-shadow: 0 10px 22px -10px var(--hv-shadow-red); transition: transform .4s var(--hv-ease); }
.hv-ncard:hover .hv-ncard__go { transform: rotate(-45deg) scale(1.06); }
.hv-news__all { display: flex; justify-content: center; margin-top: 2.5rem; }

/* đối tác chạy chữ: dừng khi rê để đọc được */

@media (max-width: 1199px) {
    .hv-svc__grid { width: min(100%, 66%); }
    .hv-chip { font-size: .95rem; padding: .85rem 1rem; }
    .hv-svc__art { width: min(34%, 340px); right: -1rem; }
}

@media (max-width: 991px) {
    .hv-band .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
    .hv-svc__card { padding: 2rem 1.4rem 1.4rem; }
    .hv-svc__top { flex-direction: column; gap: 1.2rem; }
    .hv-svc__grid { width: 100%; }
    .hv-svc__art { position: static; display: block; width: min(70%, 300px); margin: 1.2rem auto -1.6rem; }
    .hv-news__grid { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -5.6%; padding: .4rem 5.6% 1rem; scrollbar-width: none; }
    .hv-news__grid::-webkit-scrollbar { display: none; }
    .hv-news__grid > * { flex: 0 0 46%; scroll-snap-align: start; }
}
@media (max-width: 767px) {
    .hv-band { padding: 3.25rem 0 3rem; }
    .hv-band .stat-label { font-size: .9rem; }
    .hv-case { padding: 4rem 0 3.5rem; }
    .hv-case__art { width: min(86%, 380px); }
    .hv-case__pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: 1rem; }
    .hv-pill { position: static; padding: .85rem .9rem; border: 1px solid var(--hv-rule); box-shadow: none; animation: none; }
    .hv-pill b { font-size: 1.6rem; }
    .hv-pill span { font-size: .8rem; }
    .hv-svc__grid { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
    .hv-chip { min-height: 3.6rem; }
    .hv-news { padding: 4rem 0 3.5rem; }
    /* hàng thẻ → băng vuốt ngang, lộ mép thẻ sau để biết là vuốt được */
    #commitment .commit-grid { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -5.6%; padding: .4rem 5.6% 1rem; scrollbar-width: none; }
    #commitment .commit-grid::-webkit-scrollbar { display: none; }
    .hv-news__grid > *, #commitment .commit-grid > * { flex: 0 0 82%; scroll-snap-align: start; }
}
@media (max-width: 420px) {
    .hv-case__pills { grid-template-columns: minmax(0, 1fr); }
    .hv-pill { display: flex; align-items: baseline; gap: .8rem; }
    .hv-pill span { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal.hv-r-card, .reveal.hv-r-zoom { opacity: 1; transform: none; transition: none; }
    .hv-pill { animation: none; }
    .hv-btn, .hv-btn__arrow, .hv-chip, .hv-chip svg, .hv-ncard, .hv-ncard__go { transition: none; }
}
