@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/bvp-400-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/bvp-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/bvp-500-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/bvp-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/bvp-600-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/bvp-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/bvp-700-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/bvp-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'BVP Fallback';src:local('Arial'),local('Helvetica Neue'),local('Helvetica');size-adjust:105%;ascent-override:98%;descent-override:26%;line-gap-override:0%}

/* ============================================================
   SYNQ Studio — shared chrome (header, footer, language rules)
   Loaded on every page. Class prefix sq- so it never collides
   with the legacy styles.css used by older content pages.
   ============================================================ */
html[lang="en"] [data-lang-block="vi"] { display: none !important; }
html[lang="vi"] [data-lang-block="en"] { display: none !important; }

.sq-header, .sq-footer, .sq-skip {
  --c-bg: #0a0a0a; --c-ink: #f5f5f3; --c-mute: #a3a3a3; --c-soft: #1a1a1a; --c-btn: #FF6B35; --c-btn-ink: #1a0a03;
  font-family: 'Be Vietnam Pro', 'BVP Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sq-header[data-theme="light"], .sq-footer[data-theme="light"] {
  --c-bg: #f5f5f3; --c-ink: #0e0e10; --c-mute: #55555b; --c-soft: #e9e9e5; --c-btn: #FF6B35; --c-btn-ink: #1a0a03;
}
.sq-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.sq-skip:focus { top: 12px; }

/* ---- header ---- */
.sq-header { position: sticky; top: 0; z-index: 50; background: var(--c-bg); color: var(--c-ink); }
.sq-bar { display: flex; align-items: center; gap: 24px; height: 64px; max-width: 1600px; margin: 0 auto; padding: 0 var(--g, clamp(20px, 5vw, 72px)); }
.sq-brand { display: inline-flex; align-items: baseline; gap: 7px; color: var(--c-ink); text-decoration: none; font-size: 19px; letter-spacing: -0.02em; line-height: 1; }
.sq-brand b { font-weight: 800; letter-spacing: 0.02em; }
.sq-brand span { font-weight: 400; opacity: .72; }
.sq-nav { display: flex; gap: 6px; margin-left: auto; }
.sq-nav a { color: var(--c-mute); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.sq-nav a:hover, .sq-nav a[aria-current="page"] { color: var(--c-ink); background: var(--c-soft); }
.sq-tools { display: flex; align-items: center; gap: 10px; }
.sq-header .lang-toggle { display: inline-flex; background: var(--c-soft); border-radius: 999px; padding: 3px; }
.sq-header .lang-btn { all: unset; box-sizing: border-box; cursor: pointer; font: 600 12px/1 'Be Vietnam Pro', 'BVP Fallback', system-ui, sans-serif; letter-spacing: .04em; color: var(--c-mute); padding: 7px 11px; border-radius: 999px; transition: background-color .2s, color .2s; }
.sq-header .lang-btn:focus-visible, .sq-menu:focus-visible, .sq-nav a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
html[lang="en"] .sq-header .lang-btn[data-lang="en"], html[lang="vi"] .sq-header .lang-btn[data-lang="vi"] { background: var(--c-btn); color: var(--c-btn-ink); }
.sq-menu { all: unset; display: none; box-sizing: border-box; width: 40px; height: 40px; cursor: pointer; position: relative; border-radius: 999px; }
.sq-menu i { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .25s ease; }
.sq-menu i:first-child { top: 15px; } .sq-menu i:last-child { top: 23px; }
.sq-menu[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.sq-menu[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 760px) {
  .sq-menu { display: block; }
  .sq-nav { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: var(--c-bg); padding: 8px clamp(20px, 5vw, 72px) 24px; margin: 0;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .sq-nav a { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--c-ink); padding: 12px 0; border-radius: 0; background: none !important; }
  .sq-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}

/* ---- footer ---- */
.sq-footer { background: var(--c-bg); color: var(--c-ink); padding: clamp(56px, 8vw, 112px) clamp(20px, 5vw, 72px) 32px; position: relative; z-index: 1; }
.sq-foot { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px 32px; }
.sq-col h2 { font-size: 14px; font-weight: 600; color: var(--c-mute); margin: 0 0 14px; letter-spacing: 0; text-transform: none; }
.sq-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sq-col a { color: var(--c-ink); text-decoration: none; font-size: 16px; }
.sq-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sq-about p { color: var(--c-mute); font-size: 16px; line-height: 1.5; margin: 16px 0; max-width: 34ch; }
.sq-about .sq-mail { font-size: 16px; }
.sq-legal { max-width: 1600px; margin: 56px auto 0; color: var(--c-mute); font-size: 14px; }
@media (max-width: 760px) { .sq-foot { grid-template-columns: 1fr 1fr; } .sq-about { grid-column: 1 / -1; } }

/* legacy pages: old styles assumed a fixed header + glow orbs */
.glow-orb { display: none !important; }

/* Vietnamese: stacked marks need air. Looser tracking and leading for headings on every page. */
html:lang(vi) h1, html:lang(vi) h2, html:lang(vi) h3 { letter-spacing: 0; }
html:lang(vi) h1 { line-height: 1.22; }
html:lang(vi) h2 { line-height: 1.2; }

/* "English version" hint on Vietnamese split pages (chrome.js hint()) */
.sq-langhint { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: inline-flex; align-items: center; gap: 4px;
  background: var(--c-btn, #111); color: var(--c-btn-ink, #fff); border-radius: 999px; padding: 4px 4px 4px 16px;
  font: 600 13px/1 'Be Vietnam Pro', 'BVP Fallback', system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0,0,0,.18); max-width: calc(100vw - 32px); }
.sq-langhint a { color: inherit; text-decoration: none; padding: 8px 0; }
.sq-langhint a:hover { text-decoration: underline; }
.sq-langhint button { all: unset; cursor: pointer; width: 30px; height: 30px; border-radius: 999px; text-align: center; font-size: 18px; line-height: 30px; opacity: .75; }
.sq-langhint button:hover, .sq-langhint button:focus-visible { opacity: 1; outline: 2px solid currentColor; outline-offset: -2px; }
