/* ══════════════════════════════════════════════
   NAM THẮNG — 3D "BA DÒNG SẢN PHẨM, MỘT TIÊU CHUẨN"
   Mặc định là bản tĩnh (chữ + thông số). Khi 3D chạy được,
   ba-dong-3d.js thêm class .bd3-live để dựng khung 3D. Khối KHÔNG ghim trang:
   chỉ một chuyển động, chạy một lần khi khối hiện ra (sửa 02/10/2026).
   ══════════════════════════════════════════════ */

.bd3 { position: relative; background: var(--warm); padding: 56px 0 48px; }
.bd3-stage { position: relative; }
.bd3-head { text-align: center; }
.bd3-head h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.12; margin: 10px auto 12px; max-width: 18em; text-wrap: balance;
}
.bd3-head .bd3-lede { margin: 0 auto; max-width: 34em; color: var(--mid); font-size: 14.5px; line-height: 1.65; }
.bd3-head .bd3-lede a { color: var(--accent); border-bottom: 1px solid currentColor; }
.bd3-cap { display: none; }
.bd3-labels, .bd3-progress { display: none; }

.bd3-specs { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 28px; padding: 0 16px; }
.bd3-spec { padding: 10px clamp(12px, 2.4vw, 30px); text-align: center; border-left: 1px solid rgba(42,36,34,.12); }
.bd3-spec:first-child { border-left: 0; }
.bd3-spec .k { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--mid); }
.bd3-spec .v { font-family: var(--serif); font-size: clamp(19px, 2.1vw, 25px); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* ── Khi 3D chạy ── */
.bd3.bd3-live { height: auto; padding: 0; }
.bd3-live .bd3-stage { position: relative; height: clamp(600px, 100vh, 880px); height: clamp(600px, 100svh, 880px); overflow: hidden; }
.bd3-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bd3-live .bd3-head {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; pointer-events: none;
  padding-top: clamp(40px, 7vh, 72px);
}
.bd3-live .bd3-head a { pointer-events: auto; }

.bd3-live .bd3-labels { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bd3-lab { position: absolute; transform: translate(-50%, 0); text-align: center; white-space: nowrap; }
.bd3-lab small { display: block; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.bd3-lab strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(17px, 1.8vw, 22px); margin-top: 2px; }

.bd3-live .bd3-specs { position: absolute; left: 0; right: 0; bottom: clamp(20px, 6vh, 56px); z-index: 2; margin: 0; pointer-events: none; }
.bd3-live .bd3-spec { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.bd3-live .bd3-spec.on { opacity: 1; transform: none; }


@media (max-width: 768px) {
  .bd3-spec { flex: 0 0 50%; border-left: 0; padding: 8px 6px; }
  .bd3-head .bd3-lede { font-size: 13.5px; line-height: 1.55; }
  .bd3-lab small { display: none; }
  .bd3-lab strong { font-size: 14px; white-space: normal; width: 6.5em; line-height: 1.2; }
  .bd3-live .bd3-specs { bottom: 20px; padding: 0 72px 0 16px; }
  .bd3-spec .k { font-size: 9px; letter-spacing: .16em; }
  .bd3-spec .v { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .bd3-spec { transition: none; }
}
