/* =========================================================
   MinD Design Arch — stylesheet
   Màu, font và kích thước chữ lấy từ thiết kế Framer gốc.
   ========================================================= */
/* Font Cormorant Garamond — chữ tiêu đề sang trọng (tự host) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/cormorant-garamond-vietnamese-300-normal.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: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/cormorant-garamond-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/cormorant-garamond-latin-300-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-vietnamese-400-normal.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: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-vietnamese-500-normal.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: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url(../fonts/cormorant-garamond-vietnamese-300-italic.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: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url(../fonts/cormorant-garamond-latin-ext-300-italic.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url(../fonts/cormorant-garamond-latin-300-italic.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-vietnamese-400-italic.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: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-italic.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Font Inter (bản variable, tự host — không phụ thuộc Google Fonts) */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-vietnamese-opsz-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin-opsz-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --black: #262424;
  --gray: #505159;
  --semi: #f2f2f2;
  --white: #ffffff;
  --black-40: rgba(38, 36, 36, .4);
  --black-90: rgba(38, 36, 36, .9);
  --white-65: rgba(242, 242, 242, .65);
  --card-dark: rgba(28, 28, 28, .92);
  --logo-card: rgb(64, 59, 59);
  --line: rgba(38, 36, 36, .12);
  --radius-lg: 32px;
  --radius-md: 28px;
  --radius-sm: 24px;
  --gutter: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--black);
  font-family: var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; }

/* ---------- Typography (text styles của Framer) ---------- */
.h1-xl { font-weight: 600; font-size: 184px; line-height: 1.02; letter-spacing: -0.04em; }
.h1-l  { font-weight: 600; font-size: 120px; line-height: 1.1;  letter-spacing: -0.03em; }
.h-l   { font-weight: 600; font-size: 58px;  line-height: 1.1;  letter-spacing: -0.035em; }
.h2    { font-weight: 600; font-size: 50px;  line-height: 1.2;  letter-spacing: -0.03em; }
.h3    { font-weight: 600; font-size: 36px;  line-height: 1.2;  letter-spacing: -0.03em; }
.h4    { font-weight: 600; font-size: 28px;  line-height: 1.2;  letter-spacing: -0.03em; }
.h6    { font-weight: 600; font-size: 16px;  line-height: 1.4;  letter-spacing: -0.02em; }
.badge-body { font-weight: 500; font-size: 14px; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase; color: var(--gray); }
.b18r { font-weight: 400; font-size: 18px; line-height: 1.3; letter-spacing: .03em; color: var(--gray); }
.b18m { font-weight: 500; font-size: 18px; line-height: 1.3; letter-spacing: .03em; color: var(--gray); }
.b20r { font-weight: 400; font-size: 20px; line-height: 1.5; letter-spacing: .005em; color: var(--gray); }
.b20m { font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: .03em; color: var(--gray); }
.white { color: var(--white) !important; }
.semi  { color: var(--semi) !important; }
.dark  { color: var(--black) !important; }
.tc { text-align: center; }
.tr { text-align: right; }
.balance { text-wrap: balance; }

@media (max-width: 1199.98px) {
  .h1-xl { font-size: 116px; line-height: 1.04; }
  .h1-l  { font-size: 90px; }
  .h-l   { font-size: 42px; line-height: 1.12; }
  .h2    { font-size: 40px; }
  .h3    { font-size: 29px; }
  .h4    { font-size: 22px; }
  .b18r  { font-size: 16px; }
  .b18m  { font-size: 14px; }
  .b20r, .b20m { font-size: 16px; }
}
@media (max-width: 809.98px) {
  .h1-xl { font-size: 64px; line-height: 1.06; }
  .h1-l  { font-size: 39px; }
  .h-l   { font-size: 34px; line-height: 1.14; }
  .h2    { font-size: 32px; }
  .h3    { font-size: 23px; }
}

/* ---------- Preloader (giữ nguyên hiệu ứng rèm 3 lớp) ---------- */
#mind-preloader { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.mind-layer { position: absolute; inset: 0; will-change: transform; transition: transform 1.2s cubic-bezier(.19, 1, .22, 1); }
.mind-layer.l1 { background: #F1E8D9; z-index: 1; transition-delay: .2s; }
.mind-layer.l2 { background: #4A3018; z-index: 2; transition-delay: .1s; }
.mind-layer.l3 { background: #120A05; z-index: 3; display: flex; align-items: center; justify-content: center; }
.preloader-logo { color: #F1E8D9; font-size: 10px; letter-spacing: 6px; text-transform: uppercase; opacity: 0; transform: translateY(10px); animation: logoIn .8s forwards .2s; }
@keyframes logoIn { to { opacity: .8; transform: none; } }
body.loaded #mind-preloader .mind-layer { transform: translateY(-100%); }
body.loaded #mind-preloader { visibility: hidden; transition: visibility 0s 1.6s; }

/* ---------- Con trỏ tùy chỉnh (chỉ trên máy tính) ---------- */
.cursor-dot, .cursor-circle { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; border-radius: 50%; mix-blend-mode: difference; }
.cursor-dot { width: 8px; height: 8px; background: #fff; transition: opacity .2s; }
.cursor-circle { width: 36px; height: 36px; border: 1px solid #fff; transition: width .25s, height .25s, background .25s; }

/* ---------- Header / Nav ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: 40px; position: relative; z-index: 2; }
.logo img { width: 120px; height: auto; }
.nav-toggle { width: 38px; height: 38px; border-radius: 100px; background: var(--semi); display: grid; place-items: center; color: var(--black); }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .i-close { display: none; }
.menu-open .nav-toggle .i-menu { display: none; }
.menu-open .nav-toggle .i-close { display: block; }
.nav-menu {
  position: fixed; inset: 0; z-index: 1; background: var(--black-90);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 150px 80px 40px; display: flex; flex-direction: column; gap: 30px;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
  overflow-y: auto;
}
.menu-open .nav-menu { opacity: 1; visibility: visible; }
.nav-menu a { color: var(--semi); font-size: 32px; letter-spacing: .01em; width: max-content; transform: translateY(20px); opacity: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s, color .2s; }
.menu-open .nav-menu a { transform: none; opacity: 1; }
.nav-menu a:hover { color: var(--white-65); }
.menu-open .nav-menu a:nth-child(2) { transition-delay: .04s } .menu-open .nav-menu a:nth-child(3) { transition-delay: .08s }
.menu-open .nav-menu a:nth-child(4) { transition-delay: .12s } .menu-open .nav-menu a:nth-child(5) { transition-delay: .16s }
.menu-open .nav-menu a:nth-child(6) { transition-delay: .2s }
body.menu-open { overflow: hidden; }

/* ---------- Layout chung ---------- */
main { background: var(--black); display: flex; flex-direction: column; align-items: center; overflow: clip; }
.section { width: 100%; padding: var(--gutter); position: relative; }
.card { background: var(--white); border-radius: var(--radius-lg); position: relative; overflow: clip; }
.container { padding: 96px 80px; display: flex; flex-direction: column; align-items: center; gap: 72px; min-height: 50vh; justify-content: center; }
.inner { width: 100%; max-width: 1440px; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 12px; padding: 5px; border-radius: 100px; background: var(--semi); }
.badge::before, .badge::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gray); }
.badge-row { width: 100%; max-width: 1440px; display: flex; align-items: center; justify-content: space-between; gap: 5px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.badge-row .badge-body:last-child { max-width: 400px; text-align: right; }

/* Button (chữ + vòng tròn mũi tên) */
.btn { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: .03em; line-height: 1.3; color: var(--black); }
.btn .ico { width: 30px; height: 30px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .3s ease, background .3s, color .3s; }
.btn .ico svg { width: 14px; height: 14px; }
.btn:hover .ico { background: var(--black); color: var(--white); transform: rotate(45deg); }
.btn.light { color: var(--white); }
.btn.light:hover .ico { background: var(--white); color: var(--black); }

/* Icon link tròn (mạng xã hội) */
.icon-link { width: 38px; height: 38px; border-radius: 100px; background: var(--semi); display: grid; place-items: center; color: var(--black); transition: transform .25s; }
.icon-link:hover { transform: translateY(-3px); }
.icon-link svg { width: 18px; height: 18px; }

/* Link có icon (email / điện thoại) */
.link-icon { display: inline-flex; align-items: center; gap: 10px; }
.link-icon .ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; flex: none; }
.link-icon .ico svg { width: 16px; height: 16px; }
.link-icon:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.footer .link-icon .ico { background: var(--semi); color: var(--black); border: 0; }

/* Ảnh nền có hiệu ứng parallax */
.parallax { position: relative; overflow: hidden; }
.parallax > img { position: absolute; left: 0; width: 100%; height: calc(100% + 80px); top: -40px; object-fit: cover; will-change: transform; }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* Hiệu ứng xuất hiện khi cuộn */
.reveal { opacity: 0; transform: translateY(60px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero trang chủ (video) ---------- */
.hero-home { width: 100%; height: 118vh; min-height: 760px; position: relative; overflow: clip; padding: 18px 18px 0; }
.hero-home video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Phóng nhẹ & neo góc trên-trái để đẩy biểu tượng ✦ ở góc dưới-phải của video ra ngoài khung hình */
.hero-home video { transform: scale(1.25); transform-origin: 30% 0%; }
.hero-home::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.05) 40%, rgba(0,0,0,.35)); z-index: 1; }
.hero-home .content { position: relative; z-index: 2; height: 96vh; min-height: 680px; display: flex; flex-direction: column; justify-content: space-between; padding: 140px 0 56px; }
.hero-home .top, .hero-home .bottom { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 56px; }
.hero-home h1 { font-size: 180px; font-weight: 600; line-height: .95; letter-spacing: -0.06em; color: var(--white); margin-bottom: 18px; }
.hero-home .quote { max-width: 560px; color: var(--white); }
.hero-home .bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.hero-home .socials { display: flex; gap: 20px; }
.contact-box { width: 360px; height: 210px; background: var(--white); border-radius: var(--radius-md); padding: 18px; display: flex; gap: 20px; align-items: center; }
.contact-box .parallax { flex: 1; height: 100%; border-radius: 14px; }
.contact-box .txt { flex: 1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ---------- Hero trang con (ảnh nền + tiêu đề lớn) ---------- */
.hero-page { width: 100%; position: relative; padding: 18px 18px 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-page.short { min-height: 86vh; }
.hero-page .bg { position: absolute; inset: 18px 18px 0; border-radius: var(--radius-md); overflow: hidden; }
.hero-page .bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-page .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--black-40) 0%, rgba(38,36,36,.15) 45%, rgba(38,36,36,.55) 100%); }
.hero-page .content { position: relative; z-index: 2; padding: 150px 72px 56px; width: 100%; max-width: 1584px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.hero-page .content p { max-width: 520px; }

/* ---------- Giới thiệu (trang chủ) ---------- */
.about { padding: 0 18px; }
.about .card { display: flex; gap: 84px; padding: 96px; align-items: center; }
.about .media { flex: 1; max-width: 500px; align-self: stretch; border-radius: var(--radius-sm); overflow: hidden; min-height: 370px; }
.about .media video { width: 100%; height: 100%; object-fit: cover; }
.about .txt { flex: 2; max-width: 920px; display: flex; flex-direction: column; gap: 44px; }
.about .links { display: flex; flex-wrap: wrap; gap: 22px; }
.about .b20r { color: #000; }

/* ---------- Danh sách dự án (thẻ dính khi cuộn) ---------- */
.project-list { width: 100%; padding: 18px; display: flex; flex-direction: column; gap: 28px; }
.project-item { display: block; height: 112vh; position: relative; }
.project-item .sticky { position: sticky; top: 0; height: 100vh; padding: 72px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.project-item .parallax { position: absolute; inset: 0; border-radius: var(--radius-md); }
.project-item .info { position: relative; width: 100%; max-width: 1600px; background: var(--white); border-radius: var(--radius-md); padding: 44px; display: flex; flex-direction: column; gap: 30px; }
.project-item .info .name-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.project-item .info .name-row p { max-width: 320px; text-align: right; }
.project-item .info .actions { display: flex; justify-content: flex-end; padding-top: 30px; border-top: 1px solid var(--line); }
.project-item:hover .btn .ico { background: var(--black); color: var(--white); transform: rotate(45deg); }

/* ---------- Testimonials ---------- */
.video-feature { width: 100%; max-width: 1480px; position: relative; border-radius: var(--radius-md); overflow: hidden; height: 800px; }
.video-feature video { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1)); transition: transform .1s linear; }
.video-feature .overlay { position: absolute; left: 40px; bottom: 40px; width: 530px; max-width: calc(100% - 40px); background: var(--card-dark); border-radius: var(--radius-sm); padding: 40px; display: flex; flex-direction: column; gap: 30px; }
.ticker { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; gap: 30px; width: max-content; animation: ticker var(--dur, 60s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(calc(-50% - 15px)); } }
.t-card { width: 484px; min-height: 330px; background: var(--semi); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; flex: none; }
.t-card .top { display: flex; flex-direction: column; gap: 30px; }
.t-card .who { display: flex; align-items: center; gap: 20px; }
.t-card .avatar { width: 51px; height: 51px; border-radius: 50%; object-fit: cover; background: #ddd; }
.t-card .who div { display: flex; flex-direction: column; gap: 5px; }

/* ---------- Logo đối tác ---------- */
.logos { width: 100%; padding: 96px 80px; background: var(--black); display: flex; justify-content: center; }
.logos .grid { width: 100%; max-width: 1600px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.logo-card { height: 250px; background: var(--logo-card); border: 1px solid var(--gray); display: grid; place-items: center; }
.logo-card img { width: 119px; height: auto; }

/* ---------- CTA cuối trang ---------- */
.cta { width: 100%; height: 100vh; min-height: 720px; position: relative; padding: 18px; display: flex; align-items: center; justify-content: center; }
.cta .parallax { position: absolute; left: 10px; right: 10px; bottom: 0; height: 800px; max-height: calc(100% - 10px); border-radius: var(--radius-md); }
.cta .card { position: relative; z-index: 2; max-width: 640px; width: 100%; padding: 88px 72px; display: flex; flex-direction: column; align-items: center; gap: 56px; text-align: center; }
.cta .card p { max-width: 400px; }

/* ---------- Footer ---------- */
.footer { background: var(--black); padding: 80px 80px 0; color: var(--semi); }
.footer .wrap { max-width: 1600px; margin: 0 auto; display: flex; justify-content: center; gap: 200px; }
.footer .contact { flex: 1; display: flex; flex-direction: column; gap: 30px; }
.footer .contact > img { width: 320px; height: auto; }
.footer address { font-style: normal; max-width: 320px; }
.footer address ul { padding-left: 22px; }
.footer .contact-links { display: flex; flex-direction: column; gap: 30px; max-width: 320px; }
.footer .socials { display: flex; gap: 40px; }
.footer .menus { flex: 1; max-width: 700px; display: flex; justify-content: flex-start; gap: 120px; }
.footer .menus nav { display: flex; flex-direction: column; gap: 30px; }
.footer .menus a { font-size: 18px; letter-spacing: .03em; color: var(--semi); position: relative; }
.footer .menus a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 1px; background: currentColor; transition: width .3s; }
.footer .menus a:hover::after { width: 100%; }
.footer .credits { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: rgba(242,242,242,.4); letter-spacing: .03em; }

/* ---------- Trang Projects ---------- */
.page-head { width: 100%; background: var(--white); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 176px 88px 96px; min-height: 54vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 72px; }
.page-head .heading { width: 100%; max-width: 1440px; display: flex; align-items: flex-end; justify-content: space-between; gap: 72px; }
.page-head .heading p { max-width: 460px; text-align: right; }
.page-head.card-style { border-radius: var(--radius-lg); padding: 176px 80px 96px; }

/* ---------- Trang About ---------- */
.team { width: 100%; max-width: 1440px; display: flex; gap: 84px; align-items: flex-start; }
.team .members { flex: 2; display: flex; gap: 24px; flex-wrap: wrap; }
.team .side { flex: 1; max-width: 520px; position: sticky; top: 120px; display: flex; flex-direction: column; gap: 48px; align-items: flex-start; }
.team-card { width: 350px; max-width: 100%; background: var(--semi); }
.team-card .photo { height: 400px; position: relative; overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.team-card .photo .soc { position: absolute; left: 0; right: 0; bottom: 40px; display: flex; justify-content: center; gap: 20px; opacity: 0; transform: translateY(10px); transition: .3s; }
.team-card:hover .photo .soc { opacity: 1; transform: none; }
.team-card:hover .photo img { transform: scale(1.04); }
.team-card .meta { padding: 40px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Trang Services ---------- */
.svc-video { width: 100%; height: 608px; border-radius: var(--radius-md); overflow: hidden; }
.svc-video video { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, .9)); }
.split { width: 100%; max-width: 1440px; display: flex; gap: 56px; align-items: center; }
.split > * { flex: 1; }
.heading-row { width: 100%; max-width: 1440px; display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.heading-row p { max-width: 500px; }
.material-track { gap: 14px; }
.tile { width: 200px; height: 200px; background: rgba(187,187,187,.1); flex: none; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Gallery (dạng masonry) ---------- */
.masonry { width: 100%; max-width: 1440px; columns: 3; column-gap: 24px; }
.masonry figure { margin: 0 0 24px; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; }
.masonry figure img { width: 100%; height: var(--h, auto); object-fit: cover; transition: transform .6s ease; }
.masonry figure:hover img { transform: scale(1.03); }

/* Lightbox xem ảnh */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(18,10,5,.92); display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* ---------- Trang Contact ---------- */
.contact-hero { width: 100%; position: relative; padding: 18px; min-height: 92vh; }
.contact-hero .bg { position: absolute; inset: 18px; border-radius: var(--radius-md); overflow: hidden; }
.contact-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38,36,36,.6), rgba(38,36,36,.2)); }
.contact-hero .content { position: relative; z-index: 2; display: flex; gap: 72px; justify-content: center; align-items: flex-start; padding: 150px 72px 72px; max-width: 1584px; margin: 0 auto; }
.contact-hero .left { flex: 1; max-width: 750px; display: flex; flex-direction: column; gap: 22px; }
.contact-hero .left p { max-width: 520px; }
.form-card { flex: 1; max-width: 620px; background: var(--white); border-radius: var(--radius-lg); padding: 48px; display: flex; flex-direction: column; gap: 28px; }
.form-card label { display: flex; flex-direction: column; gap: 10px; }
.form-card input, .form-card textarea { width: 100%; height: 50px; border: 0; border-bottom: 1px solid var(--semi); background: transparent; font: inherit; font-size: 18px; color: var(--black); padding: 10px 20px 10px 0; outline: none; transition: border-color .2s; }
.form-card textarea { height: 110px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus { border-color: var(--black); }
.form-card input::placeholder, .form-card textarea::placeholder { color: #b5b5b8; }
.form-submit { align-self: stretch; height: 56px; border-radius: 100px; background: var(--black); color: var(--white); font-size: 18px; letter-spacing: .03em; transition: opacity .2s; }
.form-submit:hover { opacity: .85; }
.form-note { font-size: 14px; color: var(--gray); }

/* ---------- Chi tiết dự án ---------- */
.pd-hero { width: 100%; padding: 18px; height: 92vh; min-height: 640px; position: relative; }
.pd-hero .parallax { position: absolute; inset: 18px; border-radius: var(--radius-md); }
.pd-hero .holder { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 72px 72px; }
.pd-hero .info { width: 100%; max-width: 1440px; background: var(--white); border-radius: var(--radius-md); padding: 44px 44px 74px; display: flex; flex-direction: column; gap: 30px; }
.pd-hero .info .top { display: flex; justify-content: space-between; }
.pd-hero .info .mid { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.pd-hero .info .mid p { max-width: 600px; }
.specs { width: 100%; max-width: 1440px; display: flex; gap: 84px; align-items: center; }
.specs > h2 { flex: 1; }
.specs .rows { flex: 2; display: flex; flex-direction: column; gap: 30px; }
.spec { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose { width: 100%; max-width: 1440px; }
.prose > div { max-width: 760px; }
.prose p + p { margin-top: 20px; }
.pd-gallery { width: 100%; max-width: 1440px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.pd-gallery img { width: 100%; height: auto; cursor: zoom-in; }

/* ---------- Bài viết (blog) ---------- */
.article { display: flex; gap: 84px; align-items: flex-start; padding: 96px 80px; }
.article .body { flex: 2; max-width: 820px; }
.article .body h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: var(--black); margin: 40px 0 20px; }
.article .body h3:first-child { margin-top: 0; }
.article .body p, .article .body li { font-size: 20px; line-height: 1.5; color: var(--gray); }
.article .body p { margin-bottom: 20px; }
.article .body ul { padding-left: 24px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 12px; }
.article .body strong { color: var(--black); font-weight: 600; }
.article .side { flex: 1; max-width: 500px; height: 800px; position: sticky; top: 100px; border-radius: var(--radius-md); }
.blog-gallery { padding: 96px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.blog-gallery img { width: 100%; height: 800px; object-fit: cover; }

/* ---------- 404 ---------- */
.nf { width: 100%; height: 100vh; min-height: 720px; padding: 18px; position: relative; display: flex; align-items: center; justify-content: center; }
.nf .card { position: relative; z-index: 2; max-width: 680px; width: 100%; padding: 88px 72px; display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.nf .parallax { position: absolute; left: 10px; right: 10px; bottom: 0; height: 800px; max-height: calc(100% - 10px); border-radius: var(--radius-md); }

/* =========================================================
   Tablet (810px – 1199px)
   ========================================================= */
@media (max-width: 1199.98px) {
  .hero-home h1 { font-size: 120px; }
  .about .card { padding: 64px; gap: 48px; }
  .container { padding: 72px 48px; gap: 56px; }
  .footer { padding: 64px 48px 0; }
  .footer .wrap { gap: 64px; }
  .footer .contact > img { width: 240px; }
  .page-head { padding: 160px 48px 72px; }
  .team { gap: 48px; }
  .article { padding: 72px 48px; gap: 48px; }
  .blog-gallery { padding: 72px 48px; }
  .blog-gallery img { height: 520px; }
  .video-feature { height: 600px; }
  .logos { padding: 72px 48px; }
  .logo-card { height: 200px; }
  .contact-hero .content { padding: 150px 48px 56px; gap: 40px; }
}

/* =========================================================
   Điện thoại (< 810px)
   ========================================================= */
@media (max-width: 809.98px) {
  :root { --gutter: 10px; }
  .nav-bar { padding: 24px 20px; }
  .logo img { width: 100px; }
  .nav-menu { padding: 120px 28px 40px; }
  .nav-menu a { font-size: 28px; }

  .hero-home { height: 100svh; min-height: 640px; padding: 10px 10px 0; }
  .hero-home .content { height: 100%; min-height: 0; padding: 120px 0 28px; }
  .hero-home .top, .hero-home .bottom { padding: 0 20px; }
  .hero-home h1 { font-size: 64px; line-height: 1; }
  .hero-home .bottom { flex-direction: column-reverse; align-items: flex-start; }
  .contact-box { width: 100%; height: 170px; }

  .hero-page, .hero-page.short { min-height: 78vh; padding: 10px 10px 0; }
  .hero-page .bg { inset: 10px 10px 0; }
  .hero-page .content { padding: 120px 24px 40px; }

  .about { padding: 0 10px; }
  .about .card { flex-direction: column; padding: 32px 20px; gap: 32px; }
  .about .media { width: 100%; max-width: none; min-height: 260px; }
  .about .txt { gap: 28px; }

  .project-list { padding: 10px; gap: 16px; }
  .project-item { height: auto; }
  .project-item .sticky { position: relative; height: auto; min-height: 88vh; padding: 16px; }
  .project-item .info { padding: 24px; gap: 20px; }
  .project-item .info .name-row { flex-direction: column; align-items: flex-start; }
  .project-item .info .name-row p { text-align: left; max-width: none; }
  .project-item .info .actions { justify-content: flex-start; padding-top: 20px; }

  .container { padding: 56px 20px; gap: 40px; min-height: 0; }
  .badge-row { flex-wrap: wrap; gap: 12px; }
  .video-feature { height: 460px; }
  .video-feature .overlay { left: 12px; bottom: 12px; padding: 24px; width: auto; right: 12px; }
  .t-card { width: 300px; padding: 28px; }

  .logos { padding: 56px 20px; }
  .logos .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .logo-card { height: 130px; }
  .logo-card img { width: 90px; }

  .cta { height: auto; min-height: 92vh; padding: 10px; }
  .cta .card { padding: 56px 24px; gap: 36px; }

  .footer { padding: 56px 20px 0; }
  .footer .wrap { flex-direction: column; gap: 56px; }
  .footer .contact > img { width: 220px; }
  .footer .menus { flex-wrap: wrap; gap: 32px 48px; justify-content: flex-start; }

  .page-head { padding: 130px 20px 48px; gap: 40px; min-height: 0; }
  .page-head .heading { flex-direction: column; align-items: flex-start; gap: 20px; }
  .page-head .heading p { text-align: left; }
  .page-head.card-style { padding: 130px 20px 48px; }

  .team { flex-direction: column; gap: 40px; }
  .team .side { position: static; }
  .team-card { width: 100%; }
  .team-card .photo .soc { opacity: 1; transform: none; }

  .svc-video { height: 300px; }
  .split, .heading-row, .specs { flex-direction: column; align-items: flex-start; gap: 24px; }
  .split .tr { text-align: left; }
  .tile { width: 140px; height: 140px; }

  .masonry { columns: 1; }
  .masonry figure img { height: auto !important; }

  .contact-hero { padding: 10px; }
  .contact-hero .bg { inset: 10px; }
  .contact-hero .content { flex-direction: column; padding: 120px 16px 16px; gap: 32px; }
  .form-card { padding: 28px 20px; max-width: none; width: 100%; }

  .pd-hero { padding: 10px; height: auto; min-height: 92vh; }
  .pd-hero .parallax { inset: 10px; }
  .pd-hero .holder { padding: 0 12px 12px; min-height: calc(92vh - 20px); }
  .pd-hero .info { padding: 24px 20px 32px; }
  .specs .rows { width: 100%; }
  .pd-gallery { grid-template-columns: 1fr; }

  .article { flex-direction: column; padding: 48px 20px; gap: 40px; }
  .article .side { position: relative; top: 0; width: 100%; max-width: none; height: 420px; }
  .article .body p, .article .body li { font-size: 17px; }
  .blog-gallery { padding: 48px 20px; grid-template-columns: 1fr; }
  .blog-gallery img { height: 420px; }

  .nf { padding: 10px; }
  .nf .card { padding: 56px 24px; }
}


/* ---------- Plugins SketchUp ---------- */
.plugin-grid { width: 100%; max-width: 1440px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plugin-card { background: var(--semi); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; }
.plugin-card .shot { display: block; aspect-ratio: 950 / 470; overflow: hidden; background: #e6e6e6; }
.plugin-card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.plugin-card:hover .shot img { transform: scale(1.04); }
.plugin-card .body { padding: 32px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.plugin-card .head { display: flex; align-items: center; gap: 16px; }
.plugin-card .head > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.plugin-card .actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.pl-icon { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #ddd; flex: none; }
.pl-icon.lg { width: 88px; height: 88px; border-radius: 22px; }
.free { font-size: 13px; font-weight: 500; letter-spacing: .03em; padding: 6px 12px; border-radius: 100px; background: var(--black); color: var(--white); flex: none; }
.dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 100px; background: var(--black); color: var(--white); font-size: 16px; letter-spacing: .02em; transition: opacity .2s, transform .2s; }
.dl-btn::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M5 21h14'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M5 21h14'/%3E%3C/svg%3E") center/contain no-repeat; }
.dl-btn:hover { opacity: .85; transform: translateY(-2px); }
.dl-btn.lg { height: 56px; padding: 0 30px; font-size: 18px; }
.pl-heading { align-items: center !important; }
.pl-title { flex: 1; display: flex; align-items: center; gap: 24px; }
.pl-cta { flex: 1; max-width: 520px; display: flex; flex-direction: column; align-items: flex-end; gap: 24px; text-align: right; }
.yt { width: 100%; max-width: 1440px; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: #111; }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.pl-desc { align-items: flex-start; gap: 84px; }
.feat { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.install { width: 100%; max-width: 1440px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.install .step { background: var(--semi); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.install .num { font-size: 14px; font-weight: 500; letter-spacing: .1em; color: var(--gray); }
.install strong { color: var(--black); font-weight: 600; }

@media (max-width: 1199.98px) {
  .install { grid-template-columns: 1fr; }
  .pl-desc { gap: 40px; }
}
@media (max-width: 809.98px) {
  .plugin-grid { grid-template-columns: 1fr; }
  .plugin-card .body { padding: 24px; }
  .plugin-card .head .free { display: none; }
  .pl-title { gap: 16px; }
  .pl-icon.lg { width: 64px; height: 64px; border-radius: 16px; }
  .pl-cta { align-items: flex-start; text-align: left; max-width: none; }
  .dl-btn.lg { width: 100%; padding: 0 16px; font-size: 16px; }
  .install .step { padding: 24px; }
}

/* ---------- Chat AI tư vấn ---------- */
.mc { position: fixed; right: 24px; bottom: 24px; z-index: 90; font-family: var(--font); }
.mc-fab { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 100px; background: var(--black); color: var(--white); box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.25); transition: transform .25s, opacity .25s; position: relative; }
.mc-fab svg { width: 22px; height: 22px; }
.mc-fab-label { font-size: 16px; letter-spacing: .02em; }
.mc-fab:hover { transform: translateY(-2px); }
.mc-fab.nudge::after { content: ""; position: absolute; top: 4px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: #C8833F; border: 2px solid var(--black); animation: mcPulse 1.6s infinite; }
@keyframes mcPulse { 50% { transform: scale(1.3); } }
.mc.open .mc-fab { opacity: 0; pointer-events: none; transform: scale(.8); }
.mc-panel { position: absolute; right: 0; bottom: 0; width: 390px; height: min(640px, calc(100vh - 48px)); background: var(--white); border-radius: var(--radius-sm); box-shadow: 0 4px 12px rgba(0,0,0,.15), 0 24px 64px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: bottom right; transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s; }
.mc.open .mc-panel { opacity: 1; visibility: visible; transform: none; }
.mc-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 20px; background: var(--black); color: var(--white); }
.mc-avatar { width: 40px; height: 40px; border-radius: 50%; background: #F1E8D9; color: #4A3018; display: grid; place-items: center; font-weight: 600; font-size: 18px; flex: none; }
.mc-title { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mc-title strong { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.mc-title span { font-size: 12.5px; color: var(--white-65); display: flex; align-items: center; gap: 6px; }
.mc-title i { width: 7px; height: 7px; border-radius: 50%; background: #6fcf8a; }
.mc-close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--white); }
.mc-close:hover { background: rgba(255,255,255,.1); }
.mc-close svg { width: 18px; height: 18px; }
.mc-body { flex: 1; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--semi); overscroll-behavior: contain; }
.mc-msg { max-width: 85%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; color: var(--black); word-wrap: break-word; }
.mc-msg p + p, .mc-msg ul { margin-top: 8px; }
.mc-msg ul { padding-left: 18px; }
.mc-msg a { text-decoration: underline; text-underline-offset: 2px; }
.mc-msg.ai { background: var(--white); align-self: flex-start; border-bottom-left-radius: 6px; }
.mc-msg.me { background: var(--black); color: var(--white); align-self: flex-end; border-bottom-right-radius: 6px; }
.mc-msg.err { background: #fbf1e6; }
.mc-msg.typing { display: flex; gap: 4px; padding: 14px 16px; }
.mc-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gray); opacity: .4; animation: mcDot 1.2s infinite; }
.mc-msg.typing span:nth-child(2) { animation-delay: .15s; } .mc-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes mcDot { 30% { opacity: 1; transform: translateY(-3px); } }
.mc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; background: var(--semi); }
.mc-chips:not(:empty) { padding-bottom: 12px; }
.mc-chips button { font-size: 13.5px; padding: 8px 13px; border-radius: 100px; border: 1px solid rgba(38,36,36,.2); background: var(--white); color: var(--black); transition: background .2s, color .2s; }
.mc-chips button:hover { background: var(--black); color: var(--white); }
.mc-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.mc-form textarea { flex: 1; resize: none; border: 0; outline: none; font: inherit; font-size: 15px; line-height: 1.45; padding: 10px 12px; border-radius: 14px; background: var(--semi); color: var(--black); max-height: 120px; }
.mc-form button { width: 42px; height: 42px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; flex: none; transition: opacity .2s; }
.mc-form button:disabled { opacity: .4; cursor: default; }
.mc-form button svg { width: 18px; height: 18px; }
.mc-foot { margin: 0; padding: 0 12px 10px; font-size: 11.5px; color: var(--gray); text-align: center; background: var(--white); }
.mc-foot a { text-decoration: underline; }

@media (max-width: 809.98px) {
  .mc { right: 14px; bottom: 14px; }
  .mc-fab { height: 52px; padding: 0 18px 0 15px; }
  .mc.open { inset: 0; right: 0; bottom: 0; }
  .mc-panel { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  .mc-form textarea { font-size: 16px; }
}

/* ---------- Đa ngôn ngữ ---------- */
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang-btn { height: 38px; padding: 0 14px 0 11px; border-radius: 100px; background: var(--semi); color: var(--black); display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; letter-spacing: .03em; }
.lang-btn svg { width: 17px; height: 17px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: var(--white); border-radius: 16px; padding: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.12), 0 16px 40px rgba(0,0,0,.18); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { padding: 10px 14px; border-radius: 10px; font-size: 15px; color: var(--black); }
.lang-menu a:hover { background: var(--semi); }
.lang-menu a[aria-current] { font-weight: 600; background: var(--semi); }
.lang-menu a[aria-current]::after { content: " ✓"; }
.footer .f-langs a { font-size: 15px; color: rgba(242,242,242,.7); }
.lang-note { font-size: 15px !important; color: var(--gray) !important; background: var(--semi); padding: 12px 16px; border-radius: 12px; margin-bottom: 32px !important; }

/* Font cho tiếng Trung / Nhật / Hàn: Inter cho chữ Latin + font hệ thống cho chữ tượng hình */
:lang(zh) body, body:lang(zh) { font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
:lang(ja) body, body:lang(ja) { font-family: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; }
:lang(ko) body, body:lang(ko) { font-family: "Inter", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
html:lang(zh) .h1-xl, html:lang(ja) .h1-xl, html:lang(ko) .h1-xl { letter-spacing: -0.02em; font-size: 140px; }
html:lang(zh) .h1-l, html:lang(ja) .h1-l, html:lang(ko) .h1-l { letter-spacing: -0.02em; font-size: 96px; }
html:lang(zh) .h-l, html:lang(ja) .h-l, html:lang(ko) .h-l,
html:lang(zh) .h2, html:lang(ja) .h2, html:lang(ko) .h2 { letter-spacing: -0.01em; line-height: 1.3; }
html:lang(zh) .b20r, html:lang(ja) .b20r, html:lang(ko) .b20r,
html:lang(zh) .b18r, html:lang(ja) .b18r, html:lang(ko) .b18r { letter-spacing: .01em; line-height: 1.7; }
html:lang(ko) body { word-break: keep-all; }
html:lang(ja) .nav-menu a, html:lang(zh) .nav-menu a, html:lang(ko) .nav-menu a { letter-spacing: .02em; }
@media (max-width: 1199.98px) {
  html:lang(zh) .h1-xl, html:lang(ja) .h1-xl, html:lang(ko) .h1-xl { font-size: 92px; }
  html:lang(zh) .h1-l, html:lang(ja) .h1-l, html:lang(ko) .h1-l { font-size: 72px; }
}
@media (max-width: 809.98px) {
  .lang-btn { height: 34px; padding: 0 11px 0 9px; font-size: 13px; }
  .nav-right { gap: 8px; }
  html:lang(zh) .h1-xl, html:lang(ja) .h1-xl, html:lang(ko) .h1-xl { font-size: 46px; line-height: 1.15; }
  html:lang(zh) .h1-l, html:lang(ja) .h1-l, html:lang(ko) .h1-l { font-size: 36px; line-height: 1.2; }
  html:lang(fr) .h1-xl { font-size: 52px; }
}
.spec > span:first-child { flex: none; white-space: nowrap; }

/* =========================================================
   NÂNG CẤP GIAO DIỆN
   ========================================================= */
::selection { background: #C8A27A; color: #1a1412; }
html { scroll-behavior: smooth; }
body { transition: opacity .35s ease; }
body.leaving { opacity: 0; }

/* Lớp hạt nhiễu rất nhẹ cho cảm giác "giấy in" */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Thanh menu: trong suốt ở đầu trang, mờ kính khi cuộn */
.nav-bar { transition: padding .4s cubic-bezier(.2,.8,.2,1), background .4s, backdrop-filter .4s; }
.site-header.scrolled .nav-bar { padding-top: 16px; padding-bottom: 16px; background: rgba(28, 26, 26, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.site-header.scrolled .logo img[src*="WC55"] { filter: none; }
.site-header.hide:not(.menu-open-h) .nav-bar { transform: translateY(-110%); }
.nav-bar { will-change: transform; transition: transform .45s cubic-bezier(.2,.8,.2,1), padding .4s, background .4s; }

/* Chữ hero hiện từng ký tự */
.split span { display: inline-block; opacity: 0; transform: translateY(40%) rotate(4deg); filter: blur(6px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1), filter .8s; transition-delay: calc(var(--i) * 45ms + .9s); }
body.loaded .split span { opacity: 1; transform: none; filter: none; }
.hero-home .quote, .hero-home .bottom > * { opacity: 0; transform: translateY(16px); transition: opacity .9s ease 1.5s, transform .9s ease 1.5s; }
body.loaded .hero-home .quote, body.loaded .hero-home .bottom > * { opacity: 1; transform: none; }
.hero-page .content > * { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.hero-page .content > *:nth-child(2) { transition-delay: .15s; }
body.loaded .hero-page .content > * { opacity: 1; transform: none; transition-delay: .9s; }
body.loaded .hero-page .content > *:nth-child(2) { transition-delay: 1.05s; }

/* Gợi ý cuộn */
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.9)); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes cue { to { top: 110%; } }

/* Dải chữ chạy (thay khu logo) */
.marquee { width: 100%; background: var(--black); padding: 72px 0; overflow: hidden; border-top: 1px solid rgba(242,242,242,.08); border-bottom: 1px solid rgba(242,242,242,.08); }
.marquee-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.marquee-track > div { display: flex; align-items: center; gap: 48px; padding-right: 48px; }
.marquee span { font-size: clamp(44px, 7vw, 104px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(242,242,242,.45); white-space: nowrap; transition: color .4s; }
.marquee span:hover { color: var(--semi); }
.marquee i { font-style: normal; color: #C8A27A; font-size: clamp(18px, 2vw, 28px); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Số thứ tự dự án */
.pj-index { position: absolute; top: 96px; left: 104px; z-index: 2; color: var(--white); font-size: 15px; letter-spacing: .12em; mix-blend-mode: difference; }
.pj-index em { font-style: normal; opacity: .55; }
.project-item .info .badge-body.row { gap: 12px; flex-wrap: wrap; }
.project-item .parallax img { transition: transform .1s linear, scale 1.2s cubic-bezier(.2,.8,.2,1); }
.project-item:hover .parallax img { scale: 1.04; }

/* Nhận xét khách: dấu ngoặc lớn + chữ cái đầu */
.t-card { position: relative; border-radius: 4px; transition: background .3s, transform .3s; }
.t-card:hover { background: #eae7e3; transform: translateY(-4px); }
.t-card .q { position: absolute; top: 18px; right: 28px; font-size: 96px; line-height: 1; color: rgba(38,36,36,.08); font-family: Georgia, serif; }
.avatar.mono { display: grid; place-items: center; background: linear-gradient(135deg, #4A3018, #C8A27A); color: #F1E8D9; font-weight: 600; font-size: 20px; }

/* Câu chuyện studio + 3 trụ cột */
.story { width: 100%; max-width: 1440px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 84px; align-items: start; }
.pillars { width: 100%; max-width: 1440px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar, .svc-card { background: var(--semi); padding: 36px; display: flex; flex-direction: column; gap: 16px; border-radius: 4px; position: relative; overflow: hidden; transition: background .35s, color .35s, transform .35s; }
.pillar .num, .svc-card .num, .process .num { font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--gray); }

/* Lưới dịch vụ */
.svc-grid { width: 100%; max-width: 1440px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card { min-height: 260px; }
.svc-card::after { content: ""; position: absolute; left: 36px; right: 36px; bottom: 28px; height: 1px; background: currentColor; opacity: .15; transform-origin: left; transform: scaleX(.2); transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.svc-card:hover { background: var(--black); transform: translateY(-4px); }
.svc-card:hover h3, .svc-card:hover p, .svc-card:hover .num { color: var(--semi); }
.svc-card:hover::after { transform: scaleX(1); opacity: .5; color: var(--semi); }

/* Quy trình (thẻ tối) */
.card.dark-card { background: #1d1b1b; }
.dark-card .badge { background: rgba(242,242,242,.08); }
.dark-card .badge-body { color: rgba(242,242,242,.6); }
.dark-card .badge::before, .dark-card .badge::after { background: rgba(242,242,242,.5); }
.dark-card .badge-row { border-color: rgba(242,242,242,.1); }
.process { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 1440px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.process li { padding: 32px 28px 8px; border-left: 1px solid rgba(242,242,242,.12); display: flex; flex-direction: column; gap: 14px; position: relative; }
.process li::before { content: ""; position: absolute; left: -5px; top: 36px; width: 9px; height: 9px; border-radius: 50%; background: #C8A27A; box-shadow: 0 0 0 6px rgba(200,162,122,.15); }
.process .num { color: #C8A27A; }

/* Bàn giao */
.deliver { align-items: flex-start !important; gap: 84px !important; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.checks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--black); letter-spacing: .01em; }
.checks li::before { content: ""; position: absolute; left: 0; top: 17px; width: 20px; height: 20px; border-radius: 50%; background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* FAQ */
.faq-wrap { align-items: flex-start !important; gap: 84px !important; }
.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-size: 22px !important; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--black); transition: transform .35s; }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq details p { padding: 0 48px 28px 0; animation: faqIn .4s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* Trang chính sách */
.legal h2 { margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 18px !important; }

/* Footer: chữ lớn + dòng bản quyền */
.footer .wordmark { font-size: clamp(64px, 15.5vw, 300px); font-weight: 600; letter-spacing: -0.06em; line-height: .8; text-align: center; margin: 96px auto 0; white-space: nowrap;
  background: linear-gradient(180deg, rgba(242,242,242,.16), rgba(242,242,242,0) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer .credits { height: auto; padding: 28px 0 36px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(242,242,242,.08); max-width: 1600px; margin: 0 auto; }
.footer .credits .tag { font-style: italic; color: rgba(242,242,242,.5); }
.footer .credits a { color: rgba(242,242,242,.6); text-decoration: underline; text-underline-offset: 3px; }

/* Nút Zalo + lên đầu trang */
.zalo-fab { position: fixed; right: 24px; bottom: 94px; z-index: 89; width: 56px; height: 56px; border-radius: 50%; background: #0068FF; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .02em; box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 8px 24px rgba(0,104,255,.35); transition: transform .25s; }
.zalo-fab:hover { transform: translateY(-2px) scale(1.04); }
.mc.open ~ .zalo-fab, body.chat-open .zalo-fab { opacity: 0; pointer-events: none; }
.to-top { position: fixed; left: 24px; bottom: 24px; z-index: 88; width: 46px; height: 46px; border-radius: 50%; background: rgba(242,242,242,.92); color: var(--black); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top svg { width: 18px; height: 18px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* Ảnh dự án hiện dần kiểu "mở rèm" */
.pd-gallery img.reveal, .masonry figure { clip-path: inset(0 0 0 0); }
.pd-gallery img.reveal { transform: none; clip-path: inset(12% 0 12% 0); transition: clip-path 1.1s cubic-bezier(.2,.8,.2,1), opacity .8s; }
.pd-gallery img.reveal.in { clip-path: inset(0 0 0 0); }

/* Badge & tiêu đề tinh tế hơn */
.badge-row { border-bottom-color: rgba(38,36,36,.09); }
.h2, .h-l { text-wrap: balance; }
.b20r, .b18r { text-wrap: pretty; }
.btn .ico { transition: transform .45s cubic-bezier(.2,.8,.2,1), background .3s, color .3s; }

@media (max-width: 1199.98px) {
  .story { grid-template-columns: 1fr; gap: 32px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .checks { grid-template-columns: 1fr; }
  .pj-index { left: 88px; top: 88px; }
}
@media (max-width: 809.98px) {
  .pillars, .svc-grid { grid-template-columns: 1fr; }
  .pillar, .svc-card { padding: 28px; min-height: 0; }
  .process { grid-template-columns: 1fr; }
  .deliver, .faq-wrap { gap: 24px !important; }
  .faq summary { font-size: 18px !important; padding: 20px 40px 20px 0; }
  .marquee { padding: 44px 0; }
  .pj-index { left: 32px; top: 32px; font-size: 13px; }
  .zalo-fab { right: 14px; bottom: 78px; width: 50px; height: 50px; font-size: 12px; }
  .to-top { left: 14px; bottom: 14px; width: 42px; height: 42px; }
  .scroll-cue { display: none; }
  .footer .wordmark { margin-top: 56px; }
  .footer .credits { flex-direction: column; }
  .site-header.scrolled .nav-bar { padding-top: 12px; padding-bottom: 12px; }
}
.hero-home h1.split { display: block; white-space: nowrap; } .split span { display: inline-block !important; }

/* ---------- Mô hình 3D ---------- */
.m3d { position: relative; width: 100%; max-width: 1440px; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #f4efe8 0%, #e2dbd2 60%, #cfc6bb 100%); }
.m3d-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.9); transition: opacity .6s, transform 1.2s cubic-bezier(.2,.8,.2,1); }
.m3d:hover .m3d-poster { transform: scale(1.03); }
.m3d-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--white); font-size: 20px; letter-spacing: .02em; padding: 28px 40px; border-radius: 24px; background: rgba(28,26,26,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); transition: background .3s, transform .3s; }
.m3d-start:hover { background: rgba(28,26,26,.7); transform: translate(-50%, -52%); }
.m3d-start small { font-size: 13px; opacity: .65; letter-spacing: .06em; }
.m3d-start .cube { width: 44px; height: 44px; border: 1.5px solid rgba(255,255,255,.9); border-radius: 8px; transform: rotateX(55deg) rotateZ(45deg); animation: cubeSpin 6s linear infinite; }
@keyframes cubeSpin { to { transform: rotateX(55deg) rotateZ(405deg); } }
.m3d-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); opacity: 0; transition: opacity .3s; z-index: 3; }
.m3d-bar i { display: block; height: 100%; width: 0; background: #C8A27A; transition: width .2s; }
.m3d.loading .m3d-bar { opacity: 1; }
.m3d model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; --poster-color: transparent; }
.m3d model-viewer [slot="progress-bar"] { display: none; }
.m3d.ready model-viewer { opacity: 1; }
.m3d.ready .m3d-poster, .m3d.ready .m3d-start { opacity: 0; pointer-events: none; }
.m3d-ar { position: absolute; right: 16px; bottom: 16px; padding: 12px 18px; border-radius: 100px; background: var(--black); color: var(--white); font-size: 14px; }
.m3d-hint { opacity: .7; font-size: 15px !important; }
@media (max-width: 809.98px) {
  .m3d { aspect-ratio: 4 / 5; }
  .m3d-start { font-size: 17px; padding: 22px 28px; }
}

/* ---------- Khối 3D nổi bật trang chủ ---------- */
.home3d { background: #1d1b1b; display: grid; grid-template-columns: minmax(320px, 1fr) 1.7fr; gap: 0; min-height: 86vh; }
.home3d-txt { padding: 80px 64px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; position: relative; z-index: 2; }
.home3d-txt .badge { background: rgba(242,242,242,.08); }
.home3d-txt .badge::before, .home3d-txt .badge::after { background: #C8A27A; }
.home3d-txt .badge-body { color: rgba(242,242,242,.75); }
.home3d-txt .h-l { font-size: clamp(40px, 4.6vw, 76px); }
.home3d-txt .m3d-hint { font-size: 14px !important; opacity: .55; text-align: left; }
.m3d-home { aspect-ratio: auto; max-width: none; border-radius: 0; height: 100%; min-height: 560px;
  background: radial-gradient(90% 80% at 55% 45%, #f4efe8 0%, #ddd5ca 55%, #bfb5a8 100%); }
.m3d-home::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(29,27,27,.85) 0%, rgba(29,27,27,0) 7%); }
@media (max-width: 1199.98px) {
  .home3d { grid-template-columns: 1fr; }
  .home3d-txt { padding: 56px 40px 32px; }
  .m3d-home { min-height: 70vh; }
  .m3d-home::before { background: linear-gradient(180deg, #1d1b1b 0%, rgba(29,27,27,0) 14%); }
}
@media (max-width: 809.98px) {
  .home3d-txt { padding: 44px 24px 24px; }
  .m3d-home { min-height: 64vh; }
}

/* =========================================================
   OUR STUDIO — CUỐN SÁCH LẬT TRANG KHI CUỘN
   ========================================================= */
.book-sec { width: 100%; height: 620vh; position: relative; background: var(--black); }
.book-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; perspective: 2600px;
  background: radial-gradient(70% 60% at 50% 55%, #3a322c 0%, #262424 60%, #1f1d1d 100%); }
.book { position: relative; transform-style: preserve-3d; }
.book .half, .book .leaf { position: absolute; top: 0; height: 100%; }
.book .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.book .face.back { transform: rotateY(180deg); }
.leaf { transform-style: preserve-3d; transform-origin: left center; will-change: transform; }
.leaf .face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 0); transition: opacity .1s;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }
.leaf .face.back::after { background: linear-gradient(270deg, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }

/* --- bản 2 trang (máy tính) --- */
.book-d { width: min(1180px, 88vw, 150vh); aspect-ratio: 1.56; transition: transform .1s linear; transform: translateX(var(--shift, -25%)); }
.book-d .half.left { left: 0; width: 50%; }
.book-d .half.right, .book-d .leaf { left: 50%; width: 50%; }
.book-d .half, .book-d .face { border-radius: 0 6px 6px 0; }
.book-d .half.left, .book-d .face.back { border-radius: 6px 0 0 6px; }
.book-d .half.left { box-shadow: -18px 30px 60px rgba(0,0,0,.45); opacity: var(--open, 0); }
.book-d .half.right { box-shadow: 18px 30px 60px rgba(0,0,0,.45); }
.book-d .spine { position: absolute; left: calc(50% - 22px); top: 0; width: 44px; height: 100%; pointer-events: none; z-index: 60; opacity: var(--open, 0);
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.32) 50%, rgba(0,0,0,.18) 55%, rgba(0,0,0,0) 100%); }

/* --- giấy & nội dung trang --- */
.pg-text { position: absolute; inset: 0; background: #f6f1ea; padding: 9% 11% 8%; display: flex; flex-direction: column; justify-content: center; gap: 18px; color: var(--black);
  background-image: radial-gradient(120% 90% at 0% 50%, rgba(0,0,0,.06), rgba(0,0,0,0) 30%); }
.pg-run { position: absolute; top: 6%; left: 11%; right: 11%; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(38,36,36,.45); border-bottom: 1px solid rgba(38,36,36,.1); padding-bottom: 10px; }
.pg-num { font-size: clamp(64px, 8vw, 120px); font-weight: 600; line-height: .9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(74,48,24,.45); }
.pg-kicker { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #8a6a4a; }
.pg-title { font-size: clamp(26px, 2.6vw, 42px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
.pg-body { font-size: clamp(14px, 1.15vw, 18px); line-height: 1.7; color: var(--gray); max-width: 34em; text-wrap: pretty; }
.pg-folio { position: absolute; bottom: 5%; right: 11%; font-size: 12px; letter-spacing: .1em; color: rgba(38,36,36,.4); }
.pg-cta { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 8px; }
.pg-imgwrap { position: absolute; inset: 0; background: #d9d0c4; }
.pg-imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.pg-imgwrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0,0,0,.28), rgba(0,0,0,0) 12%); pointer-events: none; }
.pg-end { position: absolute; inset: 0; background: #3b2a1e; display: grid; place-items: center;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px); }
.pg-end span { color: rgba(241,232,217,.35); font-size: 11px; letter-spacing: .5em; }

/* --- bìa sách --- */
.pg-cover { position: absolute; inset: 0; padding: 12% 12% 10%; display: flex; flex-direction: column; justify-content: center; gap: 22px; color: #F1E8D9;
  background: #2a1d14; background-image: radial-gradient(120% 80% at 70% 20%, rgba(200,162,122,.22), rgba(0,0,0,0) 60%), repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
  box-shadow: inset 10px 0 18px rgba(0,0,0,.45), inset -1px 0 0 rgba(255,255,255,.06); border-radius: 0 6px 6px 0; }
.pg-cover::before { content: ""; position: absolute; inset: 5%; border: 1px solid rgba(200,162,122,.35); border-radius: 2px; pointer-events: none; }
.cv-kicker { font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: #C8A27A; }
.cv-title { font-size: clamp(48px, 6vw, 96px); font-weight: 600; letter-spacing: -0.05em; line-height: .92; }
.cv-rule { width: 56px; height: 1px; background: #C8A27A; }
.cv-sub { font-size: clamp(14px, 1.2vw, 18px); line-height: 1.6; color: rgba(241,232,217,.75); max-width: 22em; }
.cv-hint { margin-top: 18px; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(241,232,217,.55); }
.cv-hint i { width: 1px; height: 34px; background: linear-gradient(rgba(200,162,122,0), #C8A27A); position: relative; overflow: hidden; }
.cv-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #F1E8D9; animation: cue 2s cubic-bezier(.6,0,.2,1) infinite; }

/* --- chấm tiến trình --- */
.book-dots { position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.book-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(241,232,217,.25); transition: background .3s, transform .3s; }
.book-dots i.on { background: #C8A27A; transform: scale(1.3); }

/* --- bản 1 trang (điện thoại) --- */
.book-m { display: none; }
@media (max-width: 809.98px) {
  .book-sec { height: 640vh; }
  .book-d { display: none; }
  .book-m { display: block; width: min(88vw, 62vh); aspect-ratio: .62; }
  .book-m .half, .book-m .leaf { left: 0; width: 100%; }
  .book-m .half { box-shadow: 10px 24px 50px rgba(0,0,0,.5); border-radius: 6px; overflow: hidden; }
  .book-m .face { border-radius: 0 6px 6px 0; }
  .pg-m { position: absolute; inset: 0; background: #f6f1ea; display: flex; flex-direction: column; }
  .pg-m .pg-img { width: 100%; height: 42%; object-fit: cover; flex: none; }
  .pg-m .pg-text { position: relative; inset: auto; flex: 1; padding: 22px 24px 30px; gap: 10px; justify-content: flex-start; }
  .pg-m .pg-run { display: none; }
  .pg-m .pg-num { font-size: 52px; }
  .pg-m .pg-title { font-size: 24px; }
  .pg-m .pg-body { font-size: 14.5px; line-height: 1.6; }
  .pg-m .pg-cta { gap: 12px 20px; }
  .pg-m .pg-cta .btn { font-size: 15px; }
  .pg-cover { padding: 16% 14%; }
  .cv-title { font-size: 60px; }
}

/* --- không có hiệu ứng (giảm chuyển động / chưa có JS): xếp trang theo hàng --- */
.book-sec.static { height: auto; padding: 18px; }
.book-sec.static .book-stage { position: relative; height: auto; display: block; perspective: none; background: none; }
.book-sec.static .book-d, .book-sec.static .book-dots { display: none; }
.book-sec.static .book-m { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; width: 100%; aspect-ratio: auto; }
.book-sec.static .book-m .half, .book-sec.static .book-m .leaf { position: relative; height: auto; min-height: 560px; transform: none !important; }
.book-sec.static .book-m .face { position: relative; inset: auto; height: 100%; min-height: 560px; }

/* =========================================================
   TOUR 3D KỂ CHUYỆN KHI CUỘN
   ========================================================= */
.tour-sec { width: 100%; height: calc(var(--steps, 6) * 95vh); position: relative; background: #1d1b1b; }
.tour-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.m3d-tour { position: absolute; inset: 0; max-width: none; aspect-ratio: auto; border-radius: 0;
  background: radial-gradient(80% 75% at 62% 50%, #f4efe8 0%, #ddd5ca 55%, #b9afa2 100%); }
.m3d-tour model-viewer { pointer-events: none; }
.tour-shade { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(29,27,27,.92) 0%, rgba(29,27,27,.65) 26%, rgba(29,27,27,0) 48%); }
.tour-cards { position: absolute; left: 0; top: 0; bottom: 0; width: min(520px, 42vw); z-index: 3; }
.tour-card { position: absolute; left: 72px; right: 24px; top: 50%; transform: translateY(-40%); display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
  opacity: 0; filter: blur(6px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1), filter .6s; pointer-events: none; }
.tour-card.on { opacity: 1; transform: translateY(-50%); filter: none; pointer-events: auto; }
.tour-card .badge-body { color: #C8A27A; letter-spacing: .2em; }
.tour-card .h3 { font-size: clamp(30px, 3.2vw, 48px); }
.tour-card .b20r { max-width: 26em; }
.tour-steps { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); z-index: 3; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.tour-steps li { position: relative; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(38,36,36,.45); transition: background .3s, transform .3s, border-color .3s; }
.tour-steps li.past { background: rgba(38,36,36,.45); }
.tour-steps li.on { background: #C8A27A; border-color: #C8A27A; transform: scale(1.4); }
.tour-steps li span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 12px; letter-spacing: .08em; color: rgba(38,36,36,.75); opacity: 0; transition: opacity .3s; }
.tour-steps li.on span { opacity: 1; }
.tour-steps::before { content: ""; position: absolute; left: 4.5px; top: 5px; bottom: 5px; width: 1px; background: rgba(38,36,36,.2); z-index: -1; }
.tour-hint { position: absolute; left: 72px; bottom: 40px; z-index: 3; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(241,232,217,.55); margin: 0;
  opacity: calc(1 - var(--tp, 0) * 6); }
.tour-hint i { width: 1px; height: 34px; background: linear-gradient(rgba(200,162,122,0), #C8A27A); position: relative; overflow: hidden; }
.tour-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #F1E8D9; animation: cue 2s cubic-bezier(.6,0,.2,1) infinite; }
.tour-stage::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--tp, 0) * 100%); background: #C8A27A; z-index: 4; }
.m3d-tour .m3d-start { left: 66%; }

@media (max-width: 1199.98px) {
  .tour-cards { width: 50vw; }
  .tour-card { left: 40px; }
  .tour-steps { right: 24px; }
  .tour-steps li span { display: none; }
}
@media (max-width: 809.98px) {
  .tour-shade { background: linear-gradient(0deg, rgba(29,27,27,.95) 0%, rgba(29,27,27,.75) 30%, rgba(29,27,27,0) 55%); }
  .tour-cards { left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: 46%; }
  .tour-card { left: 22px; right: 22px; top: auto; bottom: 64px; transform: translateY(16px); gap: 10px; }
  .tour-card.on { transform: none; }
  .tour-card .h-l { font-size: 32px; }
  .tour-card .h3 { font-size: 26px; }
  .tour-card .b20r { font-size: 15px; }
  .tour-steps { right: 14px; top: 22%; transform: none; gap: 14px; }
  .tour-hint { left: 22px; bottom: 22px; font-size: 11px; }
  .m3d-tour .m3d-start { left: 50%; top: 32%; }
}
/* Giảm chuyển động: không ghim, hiện thẻ chữ thành danh sách */
.tour-sec.static { height: auto; }
.tour-sec.static .tour-stage { position: relative; height: auto; }
.tour-sec.static .m3d-tour { position: relative; height: 70vh; }
.tour-sec.static .tour-shade, .tour-sec.static .tour-steps, .tour-sec.static .tour-hint { display: none; }
.tour-sec.static .tour-cards { position: relative; width: 100%; height: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; padding: 48px 24px; }
.tour-sec.static .tour-card { position: relative; inset: auto; transform: none; opacity: 1; filter: none; }
/* đặt mô hình lệch sang phải (máy tính) / lên trên (điện thoại) để không bị chữ che */
.m3d-tour model-viewer { left: 30%; width: 70%; }
@media (max-width: 1199.98px) { .m3d-tour model-viewer { left: 35%; width: 65%; } }
@media (max-width: 809.98px) { .m3d-tour model-viewer { left: 0; width: 100%; height: 66%; } }

/* =========================================================
   LUXE — bộ chữ & giao diện sang trọng (ghi đè phía trên)
   Tiêu đề: Cormorant Garamond · Nội dung: Inter mảnh
   ========================================================= */
:root {
  --black: #1d1b19;
  --gray: #6b655e;
  --semi: #f1ece4;
  --white: #fbf9f5;
  --gold: #b08d5b;
  --gold-soft: #d6bf9b;
  --line: rgba(29, 27, 25, .1);
  --serif: "Cormorant Garamond", "Noto Serif", "Times New Roman", Georgia, serif;
  --ease-lux: cubic-bezier(.22, .8, .18, 1);
}
html:lang(zh) { --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif; }
html:lang(ja) { --serif: "Cormorant Garamond", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif; }
html:lang(ko) { --serif: "Cormorant Garamond", "Noto Serif KR", "AppleMyungjo", "Nanum Myeongjo", "Batang", serif; }
body { font-weight: 300; letter-spacing: .005em; }
::selection { background: var(--gold); color: #fff; }

/* Tiêu đề */
.h1-xl, .h1-l, .h-l, .h2, .h3, .h4, .pg-title, .pg-num, .cv-title, .footer .wordmark, .marquee span, .nav-menu a,
.article .body h3, .faq summary, .t-card .q, .hero-home h1 {
  font-family: var(--serif); font-weight: 400; font-feature-settings: "liga", "dlig";
}
h1, h2, h3, .h1-xl, .h1-l, .h-l, .h2, .h3, .h4 { text-wrap: balance; }
p { text-wrap: pretty; }
.h1-xl { font-weight: 300; font-size: 200px; line-height: .92; letter-spacing: -0.025em; }
.h1-l  { font-weight: 300; font-size: 132px; line-height: .98; letter-spacing: -0.02em; }
.h-l   { font-size: 68px; line-height: 1.02; letter-spacing: -0.015em; }
.h2    { font-size: 62px; line-height: 1.04; letter-spacing: -0.015em; }
.h3    { font-size: 42px; line-height: 1.1;  letter-spacing: -0.01em; }
.h4    { font-size: 31px; line-height: 1.15; letter-spacing: -0.005em; font-weight: 500; }
.h6    { font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.h1-xl em, .h1-l em, .h-l em, .h2 em, .h3 em { font-style: italic; font-weight: 300; color: var(--gold); }
.badge-body { font-size: 11.5px; font-weight: 500; letter-spacing: .26em; color: var(--gray); }
.b18r { font-weight: 300; font-size: 17px; line-height: 1.65; letter-spacing: .01em; }
.b18m { font-weight: 400; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.b20r { font-weight: 300; font-size: 19px; line-height: 1.75; letter-spacing: .005em; }
.b20m { font-weight: 400; font-size: 17px; letter-spacing: .04em; }
@media (max-width: 1199.98px) {
  .h1-xl { font-size: 128px; } .h1-l { font-size: 96px; } .h-l { font-size: 50px; }
  .h2 { font-size: 48px; } .h3 { font-size: 34px; } .h4 { font-size: 26px; }
  .b18r { font-size: 16px; } .b20r { font-size: 17px; }
}
@media (max-width: 809.98px) {
  .h1-xl { font-size: 70px; line-height: .98; } .h1-l { font-size: 50px; line-height: 1.02; } .h-l { font-size: 40px; }
  .h2 { font-size: 38px; line-height: 1.08; } .h3 { font-size: 29px; } .h4 { font-size: 23px; }
  .badge-body { font-size: 10.5px; letter-spacing: .2em; }
}
html:lang(zh) .h1-xl, html:lang(ja) .h1-xl, html:lang(ko) .h1-xl,
html:lang(zh) .h1-l, html:lang(ja) .h1-l, html:lang(ko) .h1-l { font-weight: 400; letter-spacing: 0; }
html:lang(zh) .h2, html:lang(ja) .h2, html:lang(ko) .h2, html:lang(zh) .h-l, html:lang(ja) .h-l, html:lang(ko) .h-l { letter-spacing: 0; line-height: 1.25; font-size: .82em; }
html:lang(zh) .h2, html:lang(ja) .h2, html:lang(ko) .h2 { font-size: 46px; }
@media (max-width: 809.98px) { html:lang(zh) .h2, html:lang(ja) .h2, html:lang(ko) .h2 { font-size: 30px; } }

/* Khối, thẻ, đường kẻ */
.card { background: var(--white); }
.container { gap: 64px; }
.badge { background: transparent; border: 1px solid var(--line); padding: 7px 10px; }
.badge::before, .badge::after { width: 4px; height: 4px; background: var(--gold); }
.badge-row { padding-bottom: 22px; }

/* Nút */
.btn { font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; gap: 14px; }
.btn .ico { width: 42px; height: 42px; border-color: rgba(29,27,25,.25); transition: transform .5s var(--ease-lux), background .4s, color .4s, border-color .4s; }
.btn.light .ico { border-color: rgba(255,255,255,.35); }
.btn:hover .ico { background: var(--gold); border-color: var(--gold); color: #fff; }
.form-submit, .dl-btn { letter-spacing: .16em; text-transform: uppercase; font-size: 13px; font-weight: 500; }

/* Hero trang chủ */
.hero-home h1 { font-weight: 300; font-size: 210px; line-height: .88; letter-spacing: -0.03em; }
.hero-home h1 .it { font-style: italic; }
.hero-home .quote { font-family: var(--serif); font-style: italic; font-size: 27px; line-height: 1.4; max-width: 520px; color: rgba(255,255,255,.92); }
@media (max-width: 1199.98px) { .hero-home h1 { font-size: 136px; } }
@media (max-width: 809.98px) { .hero-home h1 { font-size: 74px; } .hero-home .quote { font-size: 21px; } }
.contact-box { background: rgba(251,249,245,.94); backdrop-filter: blur(10px); }

/* Menu */
.nav-menu { background: rgba(20,18,16,.94); }
.nav-menu a { font-size: 58px; font-weight: 300; letter-spacing: -0.01em; line-height: 1.05; }
.nav-menu a:hover { color: var(--gold-soft); font-style: italic; }
@media (max-width: 809.98px) { .nav-menu a { font-size: 42px; } }

/* Danh sách dự án */
.project-item .info { background: var(--white); }
.pj-index { font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: .04em; }

/* Đánh giá khách hàng */
.t-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; width: 460px; padding: 44px 40px 36px; gap: 34px; }
.t-card:hover { background: #fff; border-color: var(--gold-soft); box-shadow: 0 30px 60px -30px rgba(74,48,24,.25); }
.t-card .q { font-size: 120px; top: 6px; right: 30px; color: var(--gold); opacity: .35; }
.t-card .top { gap: 18px; }
.t-card .top .h4 { font-family: var(--sans, "Inter"), sans-serif; font-size: 11.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.t-card .top .b20r { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.45; color: var(--black); }
.t-card .who { padding-top: 22px; border-top: 1px solid var(--line); }
.t-card .who .b20m { font-size: 16px; letter-spacing: .02em; font-weight: 500; }
.t-card .who .b18r { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 809.98px) { .t-card { width: 300px; padding: 32px 26px 26px; } .t-card .top .b20r { font-size: 20px; } }
.ticker-track { gap: 24px; }
.ticker { padding: 30px 0; }

/* Dải chữ chạy & vật liệu */
.marquee span { font-weight: 300; font-style: italic; letter-spacing: -0.01em; }
.tile { width: 240px; height: 300px; border-radius: 16px; }
.tile img { transition: transform 1.2s var(--ease-lux); }
.tile:hover img { transform: scale(1.08); }
@media (max-width: 809.98px) { .tile { width: 150px; height: 190px; border-radius: 12px; } }

/* Dịch vụ / quy trình / FAQ */
.svc-card .num, .pillar .num, .process .num { font-family: var(--serif); font-style: italic; font-size: 26px; letter-spacing: 0; color: var(--gold); }
.faq summary { font-size: 27px !important; font-weight: 500; }
.checks li { font-weight: 300; }

/* Sách & tour */
.pg-num { font-weight: 300; letter-spacing: -0.02em; }
.pg-title { font-weight: 500; font-size: clamp(30px, 3vw, 50px); letter-spacing: -0.01em; line-height: 1.05; }
.pg-body { font-weight: 300; }
.cv-title { font-weight: 300; letter-spacing: -0.02em; }
.cv-title em { font-style: italic; color: var(--gold-soft); }
.tour-card .h3 { font-weight: 400; }

/* Footer */
.footer .wordmark { font-weight: 300; letter-spacing: -0.03em; line-height: .85; }
.footer .menus a { font-weight: 300; }
.footer .credits { letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; }

/* Trang bài viết */
.article .body h3 { font-size: 36px; font-weight: 500; letter-spacing: -0.01em; }
.article .body p, .article .body li { font-weight: 300; line-height: 1.8; }
.article .body p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 92px; line-height: .8; padding: 8px 12px 0 0; color: var(--gold); }

/* Thanh cuộn mảnh */
html { scrollbar-width: thin; scrollbar-color: #5a524a #1d1b19; }

/* =========================================================
   GAME — Căn phòng biến hình
   ========================================================= */
.sg-page { width: 100%; padding: 150px 18px 18px; color: var(--semi); }
.sg-head { max-width: 1100px; margin: 0 auto 64px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 16px; }
.sg-head .h1-l em { color: var(--gold-soft); }
.sg-head .b20r { max-width: 640px; }
.gt-k { color: var(--gold-soft) !important; display: inline-flex; align-items: center; gap: 14px; }
.gt-k::before, .gt-k::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }

.sg { position: relative; max-width: 1640px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(380px, 1fr); border-radius: var(--radius-lg); overflow: clip; background: #151311; border: 1px solid rgba(241,236,228,.08); min-height: 720px; }
.sg-stage { position: relative; overflow: hidden; background: #2a2622; }
.sg-stage svg.room { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sg-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); z-index: 3; }
.sg-prog span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease-lux); }
.sg-flash { position: absolute; inset: 0; background: #fffaf0; opacity: 0; pointer-events: none; z-index: 4; }
.sg-flash.go { animation: sgFlash 1.6s ease-out; }
@keyframes sgFlash { 0% { opacity: 0 } 18% { opacity: .92 } 100% { opacity: 0 } }

/* chuyển cảnh trong căn phòng */
.room #sky1, .room #sky2 { transition: stop-color 1.6s ease; }
.room #sun { transition: transform 2s var(--ease-lux), fill 1.6s; }
.room #tint, .room #beam, .room #glow, .room #stars { transition: opacity 1.6s ease, fill 1.6s; }
.room #patch { transition: fill 1.6s; }
.room .fl { transition: opacity 1.3s ease; }
.room #sweep.go { animation: sgSweep 1.4s ease-in-out; }
@keyframes sgSweep { 0% { opacity: 0; transform: translateX(0) } 15% { opacity: 1 } 100% { opacity: 0; transform: translateX(2000px) } }
.room .sofa, .room .dec, .room .furn { opacity: 0; transform: translateY(26px) scale(.94); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,1.4,.3,1); }
.room .sofa.on, .room .dec.on, .sg.has-sofa .room .furn { opacity: 1; transform: none; }
.room .dec[data-k="0"].on { transition-duration: 1s, 1.6s; }
.room .leaves { transform-box: fill-box; transform-origin: 50% 100%; animation: sgSway 6s ease-in-out infinite; }
@keyframes sgSway { 0%, 100% { transform: rotate(-1.5deg) } 50% { transform: rotate(1.8deg) } }
.room .fan { animation: sgSpin 2.4s linear infinite; }
@keyframes sgSpin { to { transform: rotate(360deg) } }
.room .mote { animation: sgMote var(--d) ease-in-out var(--dl) infinite; opacity: .0; }
@keyframes sgMote { 0% { transform: translate(0,0); opacity: 0 } 30% { opacity: .9 } 100% { transform: translate(40px,-90px); opacity: 0 } }
.sg.night .room #lamp path { fill: #ffe6b8; }
.sg.done .sg-stage svg.room { animation: sgReveal 2.4s var(--ease-lux); }
@keyframes sgReveal { 0% { transform: scale(1) } 40% { transform: scale(1.035) } 100% { transform: scale(1) } }

/* bảng câu hỏi */
.sg-panel { position: relative; display: flex; align-items: center; padding: 56px 52px; background: linear-gradient(180deg, #1b1916, #131110); }
.sg-inner { width: 100%; display: flex; flex-direction: column; gap: 18px; transition: opacity .38s ease, transform .5s var(--ease-lux), filter .38s; }
.sg-inner.out { opacity: 0; transform: translateY(-14px); filter: blur(4px); }
.sg-inner.in { opacity: 0; transform: translateY(18px); transition: none; }
.sg-step { font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft); }
.sg-step b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; letter-spacing: 0; color: #fff; margin-right: 4px; }
.sg-q { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3vw, 48px); line-height: 1.06; color: #fff; letter-spacing: -0.01em; text-wrap: balance; }
.sg-hint { font-size: 16px; font-weight: 300; line-height: 1.6; color: rgba(241,236,228,.62); margin-bottom: 14px; }
.sg-opts { display: flex; flex-direction: column; gap: 10px; }
.sg-opt { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 18px 14px 14px; border-radius: 16px; border: 1px solid rgba(241,236,228,.12); background: rgba(255,255,255,.02); color: #f1ece4; text-align: left; font-size: 16px; font-weight: 300; letter-spacing: .02em;
  opacity: 0; transform: translateX(16px); animation: sgIn .7s var(--ease-lux) forwards; animation-delay: var(--d); transition: border-color .3s, background .3s, opacity .4s, transform .4s var(--ease-lux); }
@keyframes sgIn { to { opacity: 1; transform: none; } }
.sg-opt .sw { width: 42px; height: 42px; border-radius: 12px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.sg-opt .lb { flex: 1; }
.sg-opt svg { width: 18px; height: 18px; opacity: .35; transition: transform .35s var(--ease-lux), opacity .3s; }
.sg-opt:hover { border-color: rgba(214,191,155,.6); background: rgba(214,191,155,.07); }
.sg-opt:hover svg { opacity: 1; transform: translateX(4px); color: var(--gold-soft); }
.sg-opt.chosen { border-color: var(--gold); background: rgba(176,141,91,.16); }
.sg-opt.chosen svg { opacity: 1; color: var(--gold-soft); }
.sg-opt.dim { opacity: .28 !important; transform: scale(.98) !important; }

.sg-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 26px 0 30px; border-radius: 100px; background: var(--gold); color: #fff; font-size: 12.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; transition: background .35s, transform .35s var(--ease-lux), box-shadow .35s; margin-top: 10px; }
.sg-cta svg { width: 18px; height: 18px; transition: transform .35s var(--ease-lux); }
.sg-cta:hover { background: #c29e6a; box-shadow: 0 18px 40px -16px rgba(176,141,91,.7); }
.sg-cta:hover svg { transform: translateX(4px); }
.sg-cta:disabled { opacity: .5; }

/* kết quả */
.sg-name { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 4.4vw, 74px); line-height: .98; color: #fff; letter-spacing: -0.015em; }
.sg-name span { display: inline-block; opacity: 0; transform: translateY(40%) rotate(4deg); filter: blur(6px); animation: sgChar .9s var(--ease-lux) forwards; animation-delay: calc(.5s + var(--k) * 140ms); white-space: nowrap; }
@keyframes sgChar { to { opacity: 1; transform: none; filter: none; } }
.sg-tag { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--gold-soft); line-height: 1.3; }
.sg-desc { font-size: 16px; font-weight: 300; line-height: 1.75; color: rgba(241,236,228,.72); }
.sg-meta { display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: 22px 0; border-top: 1px solid rgba(241,236,228,.1); border-bottom: 1px solid rgba(241,236,228,.1); }
.sg-lbl { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(241,236,228,.45); margin-bottom: 12px; }
.sg-pal { display: flex; }
.sg-pal i { width: 34px; height: 34px; border-radius: 50%; margin-right: -8px; border: 2px solid #171512; transform: scale(0); animation: sgPop .6s cubic-bezier(.2,1.6,.3,1) forwards; animation-delay: calc(1s + var(--k) * 90ms); }
@keyframes sgPop { to { transform: scale(1); } }
.sg-mats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sg-mats li { font-size: 13px; padding: 6px 12px; border-radius: 100px; border: 1px solid rgba(241,236,228,.16); color: #e9e2d6; }
.sg-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.sg-actions.hide { display: none; }
.sg-link { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: #f1ece4; border-bottom: 1px solid rgba(241,236,228,.35); padding-bottom: 4px; margin-top: 10px; }
.sg-link:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.sg-form { display: flex; flex-direction: column; gap: 10px; }
.sg-form[hidden] { display: none; }
.sg-form input { height: 52px; border-radius: 14px; border: 1px solid rgba(241,236,228,.16); background: rgba(255,255,255,.04); color: #fff; padding: 0 18px; font: inherit; font-size: 16px; outline: none; transition: border-color .3s; }
.sg-form input:focus { border-color: var(--gold); }
.sg-form input::placeholder { color: rgba(241,236,228,.4); }
.sg-note { font-size: 13px; color: rgba(241,236,228,.5); line-height: 1.5; }
.sg-ok { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--gold-soft); }
.sg-sub { display: flex; gap: 22px; margin-top: 4px; }
.sg-sub button { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(241,236,228,.55); transition: color .3s; }
.sg-sub button:hover { color: #fff; }
.sg-toast { position: absolute; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #f1ece4; color: #1d1b19; padding: 12px 20px; border-radius: 100px; font-size: 14px; opacity: 0; transition: .4s var(--ease-lux); z-index: 6; }
.sg-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1099.98px) {
  .sg { grid-template-columns: 1fr; min-height: 0; }
  .sg-stage { aspect-ratio: 4 / 3; position: sticky; top: 0; z-index: 2; }
  .sg-panel { padding: 36px 26px 40px; }
}
@media (max-width: 809.98px) {
  .sg-page { padding: 120px 10px 10px; }
  .sg-head { margin-bottom: 36px; }
  .sg { border-radius: 22px; }
  .sg-panel { padding: 28px 20px 32px; }
  .sg-opt { padding: 11px 14px 11px 11px; font-size: 15px; }
  .sg-opt .sw { width: 36px; height: 36px; border-radius: 10px; }
  .sg-meta { grid-template-columns: 1fr; gap: 18px; }
  .sg-cta { align-self: stretch; justify-content: center; }
}

/* Thẻ giới thiệu game trên trang chủ */
.sg-teaser { background: radial-gradient(120% 120% at 0% 0%, #2b2520 0%, #171513 55%, #121110 100%); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; min-height: 0; }
.gt-txt { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; max-width: 560px; }
.gt-list { display: flex; flex-direction: column; border-top: 1px solid rgba(241,236,228,.1); }
.gt-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 4px; border-bottom: 1px solid rgba(241,236,228,.1); transition: padding .5s var(--ease-lux), background .4s; }
.gt-name { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 38px); font-weight: 300; color: #f1ece4; transition: color .4s; }
.gt-pal { display: flex; }
.gt-pal i { width: 26px; height: 26px; border-radius: 50%; margin-left: -6px; border: 2px solid #171513; transition: transform .5s var(--ease-lux); }
.gt-row:hover { padding-left: 18px; }
.gt-row:hover .gt-name { color: var(--gold-soft); font-style: italic; }
.gt-row:hover .gt-pal i { transform: translateX(calc(var(--i, 0) * 1px)); margin-left: 4px; }
@media (max-width: 1099.98px) { .sg-teaser { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 809.98px) { .gt-pal i { width: 20px; height: 20px; } .gt-row { padding: 16px 2px; } }
.heading-row .b20r, .hero-page .content .b20r { font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1.5; font-weight: 400; }
@media (max-width: 809.98px) { .heading-row .b20r, .hero-page .content .b20r { font-size: 20px; } }

/* =========================================================
   THANH NGÔN NGỮ (mới)
   ========================================================= */
.lang-inline { position: relative; display: flex; align-items: center; height: 40px; padding: 4px; border-radius: 100px;
  background: rgba(20,18,16,.32); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.lang-inline a { position: relative; z-index: 1; height: 30px; min-width: 38px; padding: 0 10px; display: grid; place-items: center; border-radius: 100px;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; color: rgba(255,255,255,.72); transition: color .35s; }
.lang-inline a:hover { color: #fff; }
.lang-inline a[aria-current] { color: #1d1b19; }
.lang-inline .li-ind { position: absolute; z-index: 0; top: 4px; left: 0; height: 30px; width: 38px; border-radius: 100px; background: #f1ece4;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.4); transition: transform .55s var(--ease-lux), width .55s var(--ease-lux); }
.site-header.light-top:not(.scrolled) .lang-inline { background: rgba(29,27,25,.05); border-color: rgba(29,27,25,.12); }
.site-header.light-top:not(.scrolled) .lang-inline a { color: rgba(29,27,25,.6); }
.site-header.light-top:not(.scrolled) .lang-inline a[aria-current] { color: #fff; }
.site-header.light-top:not(.scrolled) .lang-inline .li-ind { background: #1d1b19; }
.nav-toggle { width: 40px; height: 40px; background: rgba(20,18,16,.32); border: 1px solid rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .3s, transform .4s var(--ease-lux); }
.nav-toggle:hover { background: var(--gold); border-color: var(--gold); }
.site-header.light-top:not(.scrolled) .nav-toggle { background: #1d1b19; border-color: #1d1b19; }
.lang { display: none; }
@media (max-width: 1099.98px) {
  .lang-inline { display: none; }
  .lang { display: block; }
}
.lang-btn { height: 40px; padding: 0 12px 0 12px; gap: 8px; background: rgba(20,18,16,.32); border: 1px solid rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 11.5px; letter-spacing: .16em; }
.lang-btn svg { width: 15px; height: 15px; opacity: .85; }
.lang-btn .chev { width: 13px; height: 13px; transition: transform .4s var(--ease-lux); }
.lang.open .lang-btn .chev { transform: rotate(180deg); }
.site-header.light-top:not(.scrolled) .lang-btn { background: #1d1b19; border-color: #1d1b19; }
.lang-menu { top: calc(100% + 10px); min-width: 230px; padding: 10px; border-radius: 20px; background: rgba(24,22,20,.92); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transform: translateY(-8px) scale(.97); transform-origin: top right;
  transition: opacity .35s var(--ease-lux), transform .45s var(--ease-lux), visibility .35s; }
.lm-h { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: rgba(241,236,228,.45); padding: 6px 12px 10px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 6px !important; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; border-radius: 12px; color: #f1ece4; opacity: 0; transform: translateX(8px); transition: background .25s, opacity .4s, transform .5s var(--ease-lux); }
.lang.open .lang-menu a { opacity: 1; transform: none; }
.lang.open .lang-menu a:nth-of-type(2) { transition-delay: .03s } .lang.open .lang-menu a:nth-of-type(3) { transition-delay: .06s }
.lang.open .lang-menu a:nth-of-type(4) { transition-delay: .09s } .lang.open .lang-menu a:nth-of-type(5) { transition-delay: .12s }
.lang.open .lang-menu a:nth-of-type(6) { transition-delay: .15s }
.lang-menu a .ln { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.lang-menu a .lc { font-size: 10.5px; letter-spacing: .2em; color: rgba(241,236,228,.4); }
.lang-menu a:hover { background: rgba(255,255,255,.06); }
.lang-menu a[aria-current] { background: rgba(176,141,91,.18); font-weight: 400; }
.lang-menu a[aria-current] .lc { color: var(--gold-soft); }
.lang-menu a[aria-current]::after { content: none; }
@media (max-width: 809.98px) { .lang-btn, .nav-toggle { height: 38px; } .nav-toggle { width: 38px; } }

/* =========================================================
   HIỆU ỨNG CUỘN
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.scroll-prog { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* Tiêu đề hiện theo từng chữ */
.sw-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .02em .1em; margin: -.16em -.02em -.1em; }
.sw-split .w > span { display: inline-block; transform: translateY(112%) rotate(5deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease-lux); transition-delay: calc(var(--wi) * 55ms); }
.sw-split.in .w > span { transform: none; }

/* Ảnh mở như rèm */
.curtain { clip-path: inset(14% 10% 14% 10% round 28px); transition: clip-path 1.5s var(--ease-lux); }
.curtain > img, .curtain picture img { transform: scale(1.22); transition: transform 2s var(--ease-lux); }
.curtain.in { clip-path: inset(0 0 0 0 round 0); }
.curtain.in > img, .curtain.in picture img { transform: scale(1); }

/* Đoạn tuyên ngôn sáng dần theo cuộn */
.manifesto { width: 100%; min-height: 150vh; padding: 22vh 8vw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; text-align: center; background: var(--black); }
.mf-text { max-width: 1180px; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.6vw, 76px); line-height: 1.18; letter-spacing: -0.01em; color: #f1ece4; text-wrap: balance; }
.mf-text .mw { opacity: .14; transition: opacity .5s ease, color .5s ease, filter .5s; filter: blur(1.5px); }
.mf-text .mw.on { opacity: 1; filter: none; }
.mf-text .mw.em { font-style: italic; }
.mf-text .mw.em.on { color: var(--gold-soft); }
html:lang(zh) .mf-text, html:lang(ja) .mf-text, html:lang(ko) .mf-text { font-size: clamp(28px, 3.6vw, 58px); line-height: 1.5; }
.mf-sign { display: flex; align-items: center; gap: 18px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(241,236,228,.4); }
.mf-sign i { width: 60px; height: 1px; background: var(--gold); transform-origin: left; transform: scaleX(var(--mf, 0)); }
@media (max-width: 809.98px) { .manifesto { min-height: 120vh; padding: 16vh 24px; } }

/* Chữ MinD Design cuối trang trồi lên */
.footer .wordmark { overflow: hidden; padding-bottom: .04em; }
.footer .wordmark { background: none !important; color: transparent; }
.footer .wordmark .wl { display: inline-block; transform: translateY(var(--y, 100%)); will-change: transform;
  background: linear-gradient(180deg, rgba(241,236,228,.34), rgba(214,191,155,.06) 88%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nhãn con trỏ "Xem" */
.cursor-circle { display: grid; place-items: center; overflow: hidden; }
.cursor-circle .cl { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #1d1b19; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease-lux); white-space: nowrap; }
.cursor-circle.lbl { mix-blend-mode: normal; background: var(--gold-soft) !important; border-color: transparent; }
.cursor-circle.lbl .cl { opacity: 1; transform: none; }
.cursor-circle { transition: width .45s var(--ease-lux), height .45s var(--ease-lux), background .3s; }

/* Nút nam châm */
.magnet { transition: transform .5s var(--ease-lux); will-change: transform; }

/* Thẻ nổi lên khi cuộn tới */
.lift { transform-origin: 50% 0; will-change: transform; }
