/* ═══════════════════════════════════════════════════════════════════
   BLACK ROSE · V2 — Cinematic Gold · design system dùng chung
   Display: Playfair Display (serif sang trọng, hỗ trợ tiếng Việt)
   Body/UI: Be Vietnam Pro · Motion: GSAP + Lenis
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --black: #060504;
  --black-2: #0c0a07;
  --panel: #12100b;
  --line: rgba(201, 169, 99, 0.16);
  --line-2: rgba(201, 169, 99, 0.38);
  --gold: #C9A963;
  --gold-bright: #E8C87E;
  --gold-deep: #8a6a2f;
  --white: #f6f2e9;
  --muted: rgba(246, 242, 233, 0.62);
  --faint: rgba(246, 242, 233, 0.38);
  --green: #4ade80;
  --red: #f87171;
  --font: 'Be Vietnam Pro', system-ui, sans-serif;
  --font-display: 'Playfair Display', 'Be Vietnam Pro', serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(201, 169, 99, 0.4); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #3a3121; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 36px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* grain phim */
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ── preloader ── */
#loader {
  position: fixed; inset: 0; z-index: 200; background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; }
#loader img { width: 74px; filter: drop-shadow(0 0 26px rgba(201, 169, 99, 0.5)); animation: brPulse 1.6s ease-in-out infinite; }
@keyframes brPulse { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.06); opacity: 1; } }
#loader .bar { width: 180px; height: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; border-radius: 2px; }
#loader .bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: brLoad 1.1s linear infinite; }
@keyframes brLoad { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ── nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.on { background: rgba(6, 5, 4, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom-color: var(--line); }
.nav-in { max-width: 1240px; margin: 0 auto; padding: 0 36px; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(201, 169, 99, 0.35)); }
.nav-brand b { font-size: 13px; font-weight: 800; letter-spacing: 3px; }
.nav-brand b i { color: var(--gold); font-style: normal; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 9px 14px; border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease; white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.nav-links a.gold, .nav-links a.active { color: var(--gold); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #E2BE72, #C9A963 60%, #a8853f);
  color: #171204; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 12px 24px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 26px rgba(201, 169, 99, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.3s ease, filter 0.25s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(201, 169, 99, 0.45); filter: brightness(1.05); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.language-selector { position: relative; }
.language-btn {
  display: inline-flex; align-items: center; gap: 7px; background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18); color: var(--white); cursor: pointer;
  font-family: var(--font); font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  padding: 9px 14px; border-radius: 999px; transition: border-color 0.25s ease;
}
.language-btn:hover { border-color: var(--gold); }
.language-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px;
  background: #12100b; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.25s var(--ease); z-index: 95;
}
.language-dropdown.show { opacity: 1; visibility: visible; transform: none; }
.language-option {
  display: flex; width: 100%; gap: 10px; align-items: center;
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-family: var(--font); font-size: 13px; padding: 11px 16px; text-align: left;
}
.language-option:hover { background: rgba(201, 169, 99, 0.1); color: var(--white); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--white); transition: 0.3s; }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav.menu-open .nav-links {
    display: flex; position: fixed; inset: 76px 0 auto 0; flex-direction: column;
    background: rgba(6, 5, 4, 0.97); backdrop-filter: blur(20px); padding: 18px 24px 26px;
    border-bottom: 1px solid var(--line);
  }
  .nav.menu-open .nav-links a { padding: 14px; font-size: 14px; }
}
@media (max-width: 560px) { .nav-cta span { display: none; } .nav-cta { padding: 12px 16px; } }

/* ── kiểu chữ ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }
.sec { padding: 130px 0; position: relative; }
.sec-label { display: inline-block; font-family: var(--font); font-size: 12.5px; font-weight: 700; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px; }
.sec-title { font-size: clamp(34px, 4.4vw, 62px); font-weight: 700; line-height: 1.12; letter-spacing: 0.005em; }
.sec-title .gold, .sec-title .h-gold { color: var(--gold); }
.sec-sub { color: var(--muted); font-size: 17px; margin-top: 18px; max-width: 60ch; line-height: 1.75; }

/* ── nút ── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #E2BE72, #C9A963 60%, #a8853f);
  color: #171204; font-family: var(--font); font-weight: 800; font-size: 13.5px; letter-spacing: 1.8px; text-transform: uppercase;
  padding: 17px 38px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 38px rgba(201, 169, 99, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.3s ease, filter 0.25s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(201, 169, 99, 0.48); filter: brightness(1.06); }
.btn-gold:active { transform: translateY(0); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(246, 242, 233, 0.25); color: var(--white);
  font-family: var(--font); font-weight: 700; font-size: 13.5px; letter-spacing: 1.8px; text-transform: uppercase;
  padding: 17px 34px; border-radius: 999px; text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(201, 169, 99, 0.06); }

/* ── card nền tối ── */
.gcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}
.gcard:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 50px rgba(201, 169, 99, 0.07); }

/* ── reveal ── */
.rv { opacity: 0; transform: translateY(30px); }
.no-anim .rv { opacity: 1 !important; transform: none !important; }

/* ── footer ── */
.footer { border-top: 1px solid var(--line); background: var(--black-2); padding: 70px 0 34px; }
.footer-top { display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .nav-brand { margin-bottom: 16px; }
.footer-brand p { color: var(--faint); font-size: 13.5px; line-height: 1.75; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font); font-size: 11.5px; letter-spacing: 2.4px; color: var(--gold); text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; text-decoration: none; padding: 5px 0; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-note { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; line-height: 1.8; }
.footer-note a { color: var(--muted); }
.footer-legal { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 20px; color: var(--faint); font-size: 12px; }
.footer-legal a { color: var(--faint); text-decoration: none; }
.footer-legal a:hover { color: var(--gold); }

/* ── trang con: hero nhỏ ── */
.page-hero { padding: 190px 0 70px; position: relative; overflow: clip;
  background: radial-gradient(ellipse 46% 42% at 72% 10%, rgba(201, 169, 99, 0.12), transparent 68%); }
.page-hero h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.1; }
.page-hero h1 .gold { color: var(--gold); }
.page-hero .sec-sub { margin-top: 20px; }

/* ── blog ── */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
.post-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; }
.post-card .pimg { overflow: hidden; aspect-ratio: 16 / 9; }
.post-card .pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post-card:hover .pimg img { transform: scale(1.06); }
.post-card .pbody { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 20px; line-height: 1.35; transition: color 0.25s ease; }
.post-card:hover h3 { color: var(--gold); }
.post-card .pmeta { font-size: 12px; color: var(--faint); letter-spacing: 1px; text-transform: uppercase; margin-top: auto; }
.post-featured { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); overflow: hidden; text-decoration: none; margin-bottom: 60px; }
.post-featured .pimg { aspect-ratio: auto; min-height: 340px; }
.post-featured .pimg img { width: 100%; height: 100%; object-fit: cover; }
.post-featured .pbody { padding: 48px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.post-featured h2 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; }
.post-featured:hover h2 { color: var(--gold); }
@media (max-width: 860px) { .post-featured { grid-template-columns: minmax(0, 1fr); } .post-featured .pbody { padding: 28px; } }

/* ── bài viết (prose) ── */
.article { max-width: 780px; margin: 0 auto; }
.article .amet { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.article .amet a { color: var(--gold); text-decoration: none; }
.article h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.15; margin-bottom: 22px; }
.article .lead { font-size: 19px; color: var(--white); line-height: 1.7; }
.article .acover { border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; margin: 36px 0; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.article-body > * + * { margin-top: 22px; }
.article-body h2 { font-size: 30px; margin-top: 48px; line-height: 1.25; }
.article-body h3 { font-size: 23px; margin-top: 36px; }
.article-body p, .article-body li { color: var(--muted); font-size: 16.5px; line-height: 1.85; }
.article-body strong { color: var(--white); }
.article-body a { color: var(--gold); }
.article-body ul { padding-left: 1.25em; }
.article-body li + li { margin-top: 10px; }
.article-body .callout { font-family: var(--font); background: rgba(201, 169, 99, 0.06); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 18px 22px; color: var(--gold-bright); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article-body th, .article-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.article-body th { color: var(--gold); font-family: var(--font); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; }
.acta { margin-top: 64px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.acta h3 { font-size: 24px; }
.acta h3 .gold { color: var(--gold); }
.acta p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ── legal ── */
.legal { max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.2; margin-bottom: 10px; }
.legal .updated { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); margin-bottom: 34px; }
.legal h2 { font-size: 24px; margin-top: 40px; margin-bottom: 12px; }
.legal h3 { font-size: 19px; margin-top: 28px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.legal ul { padding-left: 1.25em; margin-top: 10px; }
.legal li + li { margin-top: 8px; }
.legal p + p { margin-top: 14px; }
