/* ═══════════════════════════════════════════════
   Rooster Lab · Site styles
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --maroon: #7a2422; --maroon-light: #b23a35; --maroon-glow: #e0544c; --maroon-dark: #4a1715;
  --cream: #f5f0e8; --warm-white: #faf7f2;
  --dark: #0b0909; --dark-2: #121010; --charcoal: #1a1616; --line: rgba(245,240,232,.08);
  --muted: #9a8a82; --gold: #d4b483; --gold-2: #f1d9a8;
  --grad: linear-gradient(120deg, var(--maroon-glow), var(--gold));
  --radius: 18px; --radius-sm: 10px;
  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(.22,.61,.36,1);
  /* Be Vietnam Pro: thiết kế cho tiếng Việt, dấu chồng gọn; --serif giữ tên cũ = font tiêu đề */
  --serif: 'Be Vietnam Pro', system-ui, sans-serif; --sans: 'Be Vietnam Pro', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 300; background: var(--dark); color: var(--cream); overflow-x: hidden; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
b, strong { font-weight: 600; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--maroon); color: var(--cream); }

/* Lớp nhiễu hạt mờ cho cảm giác cao cấp */
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .035;
  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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ───────── Buttons ───────── */
.btn { --bg: transparent; position: relative; display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  padding: .9rem 1.8rem; border-radius: 999px; border: 1px solid transparent; font: 500 .9rem var(--sans); letter-spacing: .3px;
  text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s, background .35s, border-color .35s, color .35s;
  background: var(--bg); color: var(--cream); overflow: hidden; isolation: isolate; }
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: linear-gradient(120deg, var(--maroon), var(--maroon-light)); box-shadow: 0 10px 30px -10px rgba(224,84,76,.6); }
.btn-primary::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--maroon-light), var(--maroon-glow)); opacity: 0; transition: opacity .35s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(224,84,76,.75); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { border-color: rgba(245,240,232,.22); backdrop-filter: blur(8px); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.2rem; font-size: .82rem; }
.btn-lg { padding: 1.1rem 2.3rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ───────── Nav ───────── */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--pad-x); transition: padding .4s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.site-nav.scrolled { padding-top: .55rem; padding-bottom: .55rem; background: rgba(11,9,9,.72); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
/* Logo ngang: mark + vạch mảnh + chữ ROO.LAB gốc (logo dọc đứng một mình thì chữ ROO.LAB quá nhỏ để đọc) */
.nav-logo { display: flex; align-items: center; gap: 14px; min-height: 44px; flex-shrink: 0; text-decoration: none; transition: opacity .3s; }
.nav-mark { display: block; height: 72px; width: auto; transition: height .4s var(--ease); }
.nav-div { width: 1px; height: 34px; background: rgba(245,240,232,.18); transition: background .3s; }
.nav-logo:hover .nav-div { background: var(--gold); }
.nav-word { display: flex; flex-direction: column; align-items: flex-start; }
.nav-word img { display: block; height: 16px; width: auto; transition: height .4s var(--ease); }
.nav-word small { display: none; margin-top: 8px; max-height: 12px; overflow: hidden; font: 400 9.5px/1.2 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: opacity .3s, max-height .4s, margin .4s; }
@media (min-width: 1200px) { .nav-word small { display: block; } }
.site-nav:not(.scrolled) .nav-logo img { filter: drop-shadow(0 1px 8px rgba(0,0,0,.45)); }
.site-nav.scrolled .nav-mark { height: 52px; }
.site-nav.scrolled .nav-word img { height: 14px; }
.site-nav.scrolled .nav-word small { opacity: 0; max-height: 0; margin-top: 0; }
.menu-open .nav-logo { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility .3s; }
.nav-links { display: flex; gap: .3rem; margin-left: auto; padding: .35rem; border-radius: 999px; background: rgba(255,255,255,.03); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .82rem; letter-spacing: .5px; padding: .5rem 1rem; border-radius: 999px; transition: color .3s, background .3s; }
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--cream); background: rgba(178,58,53,.28); }
.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { width: 18px; height: 1.5px; background: var(--cream); transition: transform .35s var(--ease), opacity .3s; }
.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: rgba(11,9,9,.96); backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: flex-start; padding: max(96px, 12svh) 2rem 2rem; overflow-y: auto;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s, visibility .4s; }
.mm-links { display: flex; flex-direction: column; gap: .5rem; }
.mm-links a { min-height: 48px; display: flex; align-items: center; font: 600 2rem var(--serif); letter-spacing: -0.02em; text-decoration: none; color: var(--cream); transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; transition-delay: calc(var(--i) * 50ms); }
.mm-links a.active { color: var(--gold-2); }
.menu-open .mobile-menu { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-open .mm-links a { transform: none; opacity: 1; }
/* Logo đầy đủ ở đầu menu */
.mm-logo { flex-shrink: 0; height: clamp(150px, 22svh, 172px); width: auto; align-self: flex-start; margin-bottom: 28px; opacity: 0; transform: translateY(12px) scale(.96); transform-origin: left top;
  transition: opacity .6s var(--ease), transform .6s var(--ease); filter: drop-shadow(0 0 60px rgba(178,58,53,.35)); }
.menu-open .mm-logo { opacity: 1; transform: none; }
.mm-contact { margin-top: auto; padding-top: 2rem; display: flex; gap: 1.5rem; }
.mm-contact a { font: 400 .95rem var(--sans); color: var(--gold); text-decoration: none; }
@media (min-width: 761px) { .mm-logo { height: 200px; } }
@media (prefers-reduced-motion: reduce) {
  .nav-mark, .nav-word img, .nav-word small, .nav-logo { transition: none; }
  .mm-logo { transform: none; transition: opacity .3s; }
}

/* ───────── Sections ───────── */
section { padding: clamp(4rem, 9vw, 7.5rem) var(--pad-x); position: relative; isolation: isolate; }
.section-tag { display: inline-flex; align-items: center; gap: .6rem; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem;
  padding: .4rem .9rem; border: 1px solid rgba(212,180,131,.25); border-radius: 999px; background: rgba(212,180,131,.05); }
.section-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--maroon-glow); box-shadow: 0 0 12px var(--maroon-glow); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--warm-white); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: 1rem; }
h2 em, h1 em { font-style: normal; font-weight: inherit; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .03em; margin-right: -.03em; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 460px; }
.glow-blob { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); opacity: .22; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, var(--maroon-glow), transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.glow-blob.gold { background: radial-gradient(circle, var(--gold), transparent 70%); opacity: .12; animation-duration: 22s; }
@keyframes drift { to { transform: translate(80px, -60px) scale(1.15); } }
/* Đốm sáng trang trí không được đẩy trang rộng ra trên màn hẹp (clip: không tạo vùng cuộn, sticky vẫn chạy) */
body > section { overflow-x: clip; }

/* Reveal khi cuộn */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

/* Spotlight theo chuột */
.spot { position: relative; }
.spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(241,217,168,.13), transparent 60%); }
.spot:hover::after { opacity: 1; }

/* ───────── HERO ───────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 150px var(--pad-x) clamp(3rem, 8vh, 6rem); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.active { opacity: 1; }
/* Zoom nhẹ (1.05 → 1) và không tràn viền: kết thúc ở đúng 100% để ảnh giữ độ nét */
.hero-slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); backface-visibility: hidden; will-change: transform; }
.hero-slide.active .bg { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1); } }
/* Slide nẹp nhôm: video xoay 360° một sản phẩm, đặt bên phải trên nền tối cùng tông với phông render */
/* Nền tự tối nên nằm trên lớp phủ .hero::before để video giữ đúng độ sáng */
.hero-slide-video { z-index: 1; background: radial-gradient(ellipse 50% 60% at 68% 46%, #232227 0%, #141216 60%, var(--dark) 100%); }
.hero-stage { position: absolute; top: 47%; right: max(var(--pad-x), 2vw); width: min(52vw, 940px); transform: translateY(-50%); }
/* Cắt bỏ dòng chữ in sẵn trong video (đầu: 0–13%, mã SP cuối: 88–94%) và mờ dần ra 4 phía vào nền */
.hero-stage-crop { aspect-ratio: 1080 / 800; overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side, #000 66%, transparent); mask-image: radial-gradient(closest-side, #000 66%, transparent); }
.hero-stage video { display: block; width: 100%; aspect-ratio: 1; margin-top: -12.963%; }
.hero-stage-cap { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: -.5rem; font-size: .8rem; font-weight: 400; color: rgba(245,240,232,.6); }
.hero-stage-cap b { font-weight: 600; letter-spacing: .06em; color: var(--gold); }
.hero-stage-cap span { padding: .15rem .5rem; border: 1px solid var(--line); border-radius: 99px; font-size: .7rem; letter-spacing: .08em; }
/* Ẩn 2 thẻ thông tin khi đang ở slide video (thẻ "SK Series" trùng nội dung, lại che sản phẩm) */
.hero-side { transition: opacity .6s, visibility .6s; }
.hero.on-video .hero-side { animation: none; opacity: 0; visibility: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11,9,9,.92) 0%, rgba(11,9,9,.6) 45%, rgba(11,9,9,.15) 100%), linear-gradient(0deg, var(--dark) 0%, transparent 35%); }
.hero-grid { position: absolute; inset: 0; z-index: 1; opacity: .25;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 60%, #000 30%, transparent 75%); }
.hero-inner { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
.hero-text h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); letter-spacing: -0.03em; line-height: 1.12; margin: 1rem 0 1.4rem; }
.hero-text h1 .line { display: block; overflow: hidden; }
.hero-text h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 120ms + 200ms); }
@keyframes rise { to { transform: none; } }
.hero-text p { max-width: 520px; color: rgba(245,240,232,.72); font-size: 1.05rem; margin-bottom: 2.2rem; opacity: 0; animation: fade 1s .8s forwards; }
.hero-btns { display: flex; gap: .9rem; flex-wrap: wrap; opacity: 0; animation: fade 1s 1s forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-side { display: flex; flex-direction: column; gap: 1rem; align-items: flex-end; opacity: 0; animation: fade 1s 1.2s forwards; }
.hero-card { width: min(340px, 100%); padding: 1.3rem 1.4rem; border-radius: var(--radius); background: rgba(20,16,16,.55); border: 1px solid var(--line); backdrop-filter: blur(16px); }
.hero-card small { font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.hero-card b { display: block; font: 600 1.15rem var(--serif); letter-spacing: -0.01em; margin: .35rem 0 .25rem; }
.hero-card span { font-size: .82rem; color: var(--muted); }
.hero-controls { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem; }
.hero-dots { display: flex; gap: .45rem; }
/* Vạch 3px nhưng vùng bấm cao 24px cho dễ chạm trên điện thoại */
.hero-dots button { width: 34px; height: 24px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.hero-dots button::before, .hero-dots button.active::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; }
.hero-dots button::before { background: rgba(245,240,232,.2); }
.hero-dots button.active::after { background: var(--grad); animation: progress var(--dur, 6s) linear forwards; transform-origin: left; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-count { font: 500 .85rem var(--serif); letter-spacing: 1px; color: rgba(245,240,232,.45); }
.scroll-hint { position: absolute; z-index: 2; right: var(--pad-x); bottom: 2rem; writing-mode: vertical-rl; font-size: .68rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .8rem; }
.scroll-hint::after { content: ''; width: 1px; height: 60px; background: linear-gradient(var(--gold), transparent); animation: scrollLine 2s infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Page hero (trang con) */
.page-hero { padding-top: clamp(9.5rem, 18vh, 12rem); padding-bottom: 3rem; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
.page-hero p { color: var(--muted); max-width: 620px; font-size: 1.05rem; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--gold); }

/* ───────── Marquee ───────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--dark-2); padding: 1.6rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 4rem; width: max-content; animation: marquee 32s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 4rem; font: 600 1.3rem var(--serif); letter-spacing: -0.01em; color: rgba(245,240,232,.35); white-space: nowrap; transition: color .3s; }
.marquee-item:hover { color: var(--cream); }
.marquee-item::after { content: '✦'; font-size: .9rem; color: var(--maroon-light); }
.marquee-item img { height: 40px; width: auto; max-width: 190px; object-fit: contain; filter: brightness(0) invert(1); opacity: .45; transition: opacity .3s; }
.marquee-item:hover img { opacity: 1; }
.marquee-item .partner-word { font-size: 1.6rem; color: inherit; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Stats ───────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 4rem; padding-bottom: 4rem; }
/* Tablet & mobile (<1200px): logo lớn đứng đầu khối số liệu, thay cho logo lớn ở hero của desktop */
.stats-brand { grid-column: 1 / -1; display: grid; justify-items: center; gap: 1.4rem; padding: 1rem 0 3rem; text-align: center; position: relative; isolation: isolate; }
.stats-brand::before { content: ''; position: absolute; inset: -10% 0; z-index: -1; background: radial-gradient(circle at 50% 45%, rgba(178,58,53,.26), rgba(212,180,131,.06) 35%, transparent 62%); }
.stats-brand img { height: clamp(220px, 26vw, 260px); width: auto; display: block; }
.stats-brand p { margin: 0; font-size: .74rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.stats-brand span { color: var(--muted); margin: 0 .6em; }
.stats-brand i { font-style: normal; white-space: nowrap; }
@media (min-width: 1200px) { .stats-brand { display: none; } }
.stat { padding: 2rem 1.5rem; border-radius: var(--radius); background: linear-gradient(160deg, rgba(122,36,34,.18), rgba(255,255,255,.015)); border: 1px solid var(--line); }
.stat-num { font: 600 clamp(2.2rem, 3.6vw, 3.1rem) var(--serif); letter-spacing: -0.03em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: .7rem; }

/* ───────── Services (bento) ───────── */
.services { background: var(--dark-2); overflow: hidden; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.svc { padding: 2.4rem 2rem; border-radius: var(--radius); background: rgba(255,255,255,.02); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s, background .4s; overflow: hidden; }
.svc:hover { transform: translateY(-6px); border-color: rgba(212,180,131,.3); background: rgba(255,255,255,.035); }
.svc-img { margin: -2.4rem -2rem 1.6rem; height: 200px; overflow: hidden; border-bottom: 1px solid var(--line); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.85); transition: transform 1s var(--ease), filter .6s; }
.svc:hover .svc-img img { transform: scale(1.06); filter: none; }
.svc-num { font: 600 2.8rem var(--serif); letter-spacing: -0.03em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(212,180,131,.45); margin-bottom: 1.3rem; }
.svc h3 { font-size: 1.25rem; margin-bottom: .8rem; }
.svc p { color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; }
.svc ul { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.svc li { font-size: .76rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); color: rgba(245,240,232,.7); }

/* ───────── Project cards ───────── */
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 280px; gap: 1rem; }
.proj-grid .pcard { grid-column: span 4; }
.proj-grid.featured .pcard:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.proj-grid.featured .pcard:nth-child(2) { grid-column: span 5; }
.proj-grid.featured .pcard:nth-child(3) { grid-column: span 5; }
.pcard { display: block; position: relative; overflow: hidden; border-radius: var(--radius); text-decoration: none; isolation: isolate; border: 1px solid var(--line); }
.pcard-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.85); }
.pcard:hover .pcard-img { transform: scale(1.07); filter: saturate(1.05); }
.pcard-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,9,9,.95) 0%, rgba(11,9,9,.35) 50%, transparent 80%); }
.pcard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem; z-index: 2; transition: transform .5s var(--ease); }
.pcard:hover .pcard-body { transform: translateY(-6px); }
.pcard h3 { font-size: 1.35rem; margin: .7rem 0 .25rem; }
.proj-grid.featured .pcard:nth-child(1) h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.pcard-meta { font-size: .82rem; color: rgba(245,240,232,.6); }
.pcard-arrow { position: absolute; top: 1.3rem; right: 1.3rem; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(245,240,232,.1); backdrop-filter: blur(10px); color: var(--cream); transform: scale(.6) rotate(-45deg); opacity: 0; transition: all .45s var(--ease); }
.pcard:hover .pcard-arrow { transform: none; opacity: 1; background: var(--maroon-light); }
.chip { display: inline-block; font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; padding: .32rem .75rem; border-radius: 999px; background: rgba(11,9,9,.5); border: 1px solid rgba(212,180,131,.35); color: var(--gold-2); backdrop-filter: blur(8px); }

/* ───────── Product cards ───────── */
.products-sec { background: var(--dark-2); overflow: hidden; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.prod-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s, box-shadow .5s; }
.prod-card:hover { transform: translateY(-8px); border-color: rgba(224,84,76,.4); box-shadow: 0 30px 60px -30px rgba(224,84,76,.45); }
.prod-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #171313; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.prod-card:hover .prod-img img { transform: scale(1.08); }
.prod-ph { width: 100%; height: 100%; display: grid; place-items: center; position: relative;
  background: repeating-linear-gradient(135deg, rgba(212,180,131,.06) 0 2px, transparent 2px 22px), radial-gradient(circle at 30% 30%, rgba(178,58,53,.35), transparent 60%), #151111; }
.prod-ph::before { content: ''; position: absolute; width: 70%; height: 14px; border-radius: 3px; background: linear-gradient(90deg, #8d8d8d, #e9e9e9 40%, #9a9a9a 60%, #dcdcdc); transform: rotate(-18deg); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.prod-ph span { position: absolute; bottom: 1rem; right: 1rem; font-size: .7rem; letter-spacing: 2px; color: var(--muted); }
.badge-hot { position: absolute; top: .9rem; left: .9rem; font-size: .66rem; letter-spacing: 1.5px; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--grad); color: #1a0d0c; font-weight: 700; }
.prod-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.prod-cat { font-size: .78rem; font-weight: 400; color: var(--muted); }
.prod-body h3 { font-size: 1.02rem; line-height: 1.35; min-height: calc(2 * 1.35em); }
.prod-body p { font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-foot { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 600; font-size: .95rem; color: var(--gold-2); }
.prod-go { font-size: .8rem; color: var(--muted); transition: color .3s, transform .3s; }
.prod-card:hover .prod-go { color: var(--cream); transform: translateX(4px); }

/* Filters */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; align-items: center; }
.filter-chip { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--muted); font: 500 .82rem var(--sans); cursor: pointer; transition: all .3s; }
.filter-chip:hover { color: var(--cream); border-color: rgba(245,240,232,.25); }
.filter-chip.active { background: var(--cream); color: var(--dark); border-color: var(--cream); }
.search-input { margin-left: auto; min-width: 240px; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--cream); font: .85rem var(--sans); outline: none; }
.search-input:focus { border-color: var(--gold); }

/* ───────── Why ───────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.why-visual { position: relative; aspect-ratio: 1/1; max-height: 520px; }
.why-visual .img { position: absolute; inset: 0 18% 18% 0; border-radius: var(--radius); background-size: cover; background-position: center; border: 1px solid var(--line); }
.why-visual .badge { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1.2; border-radius: var(--radius); background: linear-gradient(140deg, var(--maroon), var(--maroon-dark)); display: flex; flex-direction: column; justify-content: center; padding: 1.6rem; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.why-visual .badge b { font: 600 2.7rem var(--serif); letter-spacing: -0.03em; line-height: 1; }
.why-visual .badge span { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(245,240,232,.7); margin-top: .4rem; }
.why-visual .ring { position: absolute; top: -30px; right: 8%; width: 120px; height: 120px; border-radius: 50%; border: 1px dashed rgba(212,180,131,.4); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.why-items { display: grid; gap: 1rem; margin-top: 2rem; }
.why-item { display: flex; gap: 1.1rem; padding: 1.2rem 1.3rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.015); transition: border-color .3s, background .3s; }
.why-item:hover { border-color: rgba(212,180,131,.3); background: rgba(255,255,255,.03); }
.why-ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(178,58,53,.2); color: var(--gold-2); font-size: .95rem; }
.why-item h4 { font-size: .98rem; font-weight: 500; margin-bottom: .2rem; color: var(--warm-white); }
.why-item p { color: var(--muted); font-size: .86rem; }

/* ───────── Partners ───────── */
.partners { background: var(--dark-2); overflow: hidden; }
.partner-hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.partner-hl { padding: 2.2rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; background: rgba(255,255,255,.02); transition: transform .5s var(--ease), border-color .4s; }
.partner-hl:hover { transform: translateY(-5px); border-color: rgba(212,180,131,.3); }
.partner-hl .logo { height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.partner-hl .logo img { max-height: 56px; max-width: 200px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .75; transition: opacity .3s; }
.partner-hl:hover .logo img { opacity: 1; }
.partner-word { font: 600 1.1rem var(--serif); letter-spacing: 1px; color: rgba(245,240,232,.75); }
.partner-hl-name { font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(245,240,232,.6); }
.partner-hl-type { font-size: .7rem; color: var(--muted); margin-top: .2rem; }
.partner-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.partner-tag { padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); color: rgba(245,240,232,.55); font-size: .8rem; letter-spacing: 1px; transition: all .3s; }
.partner-tag:hover { color: var(--cream); border-color: var(--maroon-light); background: rgba(178,58,53,.12); }

/* Tường logo các đối tác còn lại */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.logo-tile { height: 110px; display: grid; place-items: center; padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.015); transition: border-color .3s, background .3s; }
.logo-tile:hover { border-color: rgba(212,180,131,.3); background: rgba(255,255,255,.035); }
.logo-tile img { max-height: 46px; max-width: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: .55; transition: opacity .3s; }
.logo-tile:hover img { opacity: 1; }
.logo-tile .partner-word { font-size: 1.15rem; letter-spacing: 1.5px; color: rgba(245,240,232,.5); text-align: center; line-height: 1.2; }
.logo-tile:hover .partner-word { color: var(--cream); }

/* ───────── Testimonials ───────── */
.testi { text-align: center; overflow: hidden; }
.testi-wrap { max-width: 820px; margin: 0 auto; }
.testi-slide { display: none; }
.testi-slide.active { display: block; animation: fade .8s var(--ease); }
.testi-quote { font: 300 clamp(1.15rem, 2.1vw, 1.6rem) var(--serif); line-height: 1.6; letter-spacing: -0.01em; color: var(--warm-white); margin: 1.8rem 0; }
.testi-quote::before { content: '\201C'; display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 4.5rem; line-height: .8; margin-bottom: 1rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.testi-author { color: var(--gold); font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; }
.testi-role { color: var(--muted); font-size: .82rem; margin-top: .3rem; }
.testi-dots { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(245,240,232,.2); cursor: pointer; transition: all .3s; }
.testi-dots button.active { width: 26px; border-radius: 6px; background: var(--maroon-glow); }

/* ───────── Contact ───────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info > p { color: var(--muted); margin: 1rem 0 2rem; }
.contact-list { display: grid; gap: .8rem; }
.contact-list a, .contact-list div { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; color: rgba(245,240,232,.8); font-size: .9rem; transition: border-color .3s, background .3s; }
.contact-list a:hover { border-color: rgba(212,180,131,.35); background: rgba(255,255,255,.03); }
.contact-list i { font-style: normal; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(178,58,53,.2); color: var(--gold-2); flex-shrink: 0; }
.contact-form { display: grid; gap: .9rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(122,36,34,.14), rgba(255,255,255,.015)); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: .95rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(11,9,9,.6);
  color: var(--cream); font: .9rem var(--sans); outline: none; transition: border-color .3s, box-shadow .3s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--maroon-light); box-shadow: 0 0 0 4px rgba(178,58,53,.15); }
.contact-form select option { background: var(--charcoal); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button { justify-self: start; }

/* ───────── Detail pages ───────── */
.detail-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: #171313; cursor: zoom-in; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .6rem; margin-top: .8rem; }
.gallery-thumbs button { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #171313; opacity: .6; transition: all .3s; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { opacity: 1; border-color: var(--maroon-light); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info .price-box, .pd-info .price-box { margin: 1.4rem 0; padding: 1.2rem 1.4rem; border-radius: var(--radius-sm); border: 1px solid rgba(212,180,131,.25); background: rgba(212,180,131,.05); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.price-box small { margin-bottom: .25rem; font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); display: block; }
.price-box b { font: 600 1.5rem var(--serif); letter-spacing: -0.02em; color: var(--gold-2); }
.spec-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .9rem; }
.spec-table td { padding: .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.prose { color: rgba(245,240,232,.78); font-size: 1rem; max-width: 760px; }
.prose p + p { margin-top: 1rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 2rem 0; }
.fact { padding: 1.2rem 1.3rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.fact small { font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.fact b { display: block; font: 600 1.2rem var(--serif); letter-spacing: -0.01em; margin-top: .3rem; }
.hl-list { list-style: none; display: grid; gap: .6rem; margin-top: 1rem; }
.hl-list li { padding-left: 1.6rem; position: relative; color: rgba(245,240,232,.8); }
.hl-list li::before { content: '✦'; position: absolute; left: 0; color: var(--maroon-glow); }
.proj-cover { height: min(72vh, 680px); border-radius: var(--radius); overflow: hidden; margin-bottom: 3rem; border: 1px solid var(--line); cursor: zoom-in; }
.proj-cover img { width: 100%; height: 100%; object-fit: cover; }
.masonry { columns: 3 260px; column-gap: 1rem; margin-top: 2rem; }
.masonry img { width: 100%; margin-bottom: 1rem; border-radius: var(--radius-sm); cursor: zoom-in; transition: transform .5s var(--ease), filter .5s; break-inside: avoid; }
.masonry img:hover { transform: translateY(-4px); filter: brightness(1.08); }
.process { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.process-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x mandatory; }
.process-strip img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius-sm); cursor: zoom-in; scroll-snap-align: start; filter: grayscale(.35) contrast(1.05); transition: filter .5s, transform .5s var(--ease); }
.process-strip img:hover { filter: none; transform: translateY(-4px); }
.draft-banner { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 200; padding: .4rem 1rem; border-radius: 0 0 10px 10px; background: #f59e0b; color: #1a1006; font-size: .78rem; font-weight: 700; }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1rem; }
.tags span { font-size: .75rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* ───────── Showcase 3 dự án nổi bật ───────── */
.showcase { display: flex; gap: 1rem; height: clamp(460px, 72vh, 660px); }
.sc-panel { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; isolation: isolate;
  transition: flex .8s var(--ease), border-color .4s; }
.sc-panel.active { flex: 2.4; border-color: rgba(212,180,131,.3); }
.sc-panel.skeleton { min-height: 0; }
.sc-img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.8) brightness(.8); }
.sc-panel.active .sc-img { transform: scale(1); filter: saturate(1.05) brightness(1); }
.sc-pattern { background: repeating-linear-gradient(135deg, rgba(212,180,131,.06) 0 2px, transparent 2px 26px), radial-gradient(circle at 30% 20%, rgba(178,58,53,.4), transparent 60%), #141010; filter: none; }
.sc-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,9,9,.95) 0%, rgba(11,9,9,.45) 45%, rgba(11,9,9,.1) 75%); }
.sc-num { position: absolute; top: 1.4rem; left: 1.5rem; z-index: 2; font: 600 1.9rem var(--serif); letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px rgba(241,217,168,.6); }
.sc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.8rem; }
.sc-body h3 { font-size: clamp(1.02rem, 1.35vw, 1.3rem); letter-spacing: -0.025em; padding-top: .1em; margin: .7rem 0 .4rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: font-size .6s var(--ease); }
.sc-panel.active .sc-body h3 { font-size: clamp(1.3rem, 2vw, 1.9rem); }
.sc-sum, .sc-foot { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s .1s; }
.sc-sum { color: rgba(245,240,232,.75); font-size: .92rem; max-width: 520px; }
.sc-panel.active .sc-sum { max-height: 6rem; opacity: 1; }
.sc-panel.active .sc-foot { max-height: 3rem; opacity: 1; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .9rem; }
.sc-meta { font-size: .8rem; color: rgba(245,240,232,.6); }
.sc-cta { font-size: .82rem; color: var(--gold-2); white-space: nowrap; }
.sc-placeholder .sc-body h3 { color: rgba(245,240,232,.55); }
@media (max-width: 760px) {
  .showcase { flex-direction: column; height: auto; }
  .sc-panel, .sc-panel.active { flex: none; height: 340px; }
  .sc-sum, .sc-foot { max-height: none; opacity: 1; }
}

/* ───────── Trang sản phẩm (SK Series) ───────── */
.pd-top { padding-bottom: 1rem; }
.pd-main { padding-top: 0; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.pd-stage-col { position: sticky; top: 96px; }
.pd-viewer { border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 10%, #2a2d33 0%, #15161a 55%, #0d0d0f 100%); overflow: hidden; }
.pd-stage { position: relative; aspect-ratio: 10 / 7; display: grid; place-items: center; overflow: hidden; user-select: none; }
.pd-stage.photo { cursor: zoom-in; background: #0f1012; }
.pd-stage.photo img { width: 100%; height: 100%; object-fit: contain; }
.pd-stage.drawing { background: #0d1117; padding: 1rem; }
.pd-stage.drawing img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 6px; padding: .6rem; }
.pd-stage.drawing .section-svg { width: 100%; height: 100%; }
.pd-stage.video { background: #000; }
/* video dọc 9:16 (cách thi công) trong khung 10:7: height 100% của ô grid không chốt được → video cao theo tỉ lệ gốc và bị cắt → đặt tuyệt đối phủ khung */
.pd-stage.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pd-note { position: absolute; left: 1rem; bottom: .9rem; font-size: .72rem; letter-spacing: 1px; color: rgba(245,240,232,.55); background: rgba(0,0,0,.35); padding: .3rem .7rem; border-radius: 999px; backdrop-filter: blur(6px); pointer-events: none; }
.pd-note.top { top: .9rem; bottom: auto; }
.pd-missing { color: var(--muted); font-size: .9rem; letter-spacing: 1px; }
.pd-tabs { display: flex; gap: .35rem; padding: .6rem; border-top: 1px solid var(--line); background: rgba(0,0,0,.25); overflow-x: auto; }
.pd-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 500 .84rem var(--sans); cursor: pointer; transition: all .25s; white-space: nowrap; }
.pd-tab span { color: var(--gold); font-size: .95rem; }
.pd-tab small { font-size: .68rem; padding: .05rem .4rem; border-radius: 99px; background: rgba(255,255,255,.08); }
.pd-tab:hover { color: var(--cream); }
.pd-tab.active { color: var(--cream); background: rgba(178,58,53,.3); border-color: rgba(224,84,76,.35); }
.pd-thumbs { display: flex; gap: .5rem; padding: 0 .6rem; overflow-x: auto; }
.pd-thumbs:not(:empty) { padding: .6rem; border-top: 1px solid var(--line); }
.pd-thumbs button { flex: 0 0 auto; width: 74px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #111; cursor: pointer; opacity: .6; transition: all .25s; }
.pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs button.txt { width: auto; aspect-ratio: auto; padding: .45rem .9rem; color: var(--muted); font: .78rem var(--sans); border: 1px solid var(--line); border-radius: 999px; }
.pd-thumbs button.active, .pd-thumbs button:hover { opacity: 1; border-color: var(--maroon-light); color: var(--cream); }

/* Xoay 360° */
.spin { cursor: grab; touch-action: pan-y; outline: none; }
.spin.dragging { cursor: grabbing; }
.spin-img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.spin-hint { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: rgba(245,240,232,.8); background: rgba(0,0,0,.4); padding: .45rem 1rem; border-radius: 999px; backdrop-filter: blur(8px); pointer-events: none; transition: opacity .5s; white-space: nowrap; }
.spin-icon { display: inline-block; color: var(--gold-2); animation: spinIcon 2.4s ease-in-out infinite; }
@keyframes spinIcon { 50% { transform: rotate(-200deg); } }
.touched .spin-hint { opacity: 0; }
.spin-progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255,255,255,.06); transition: opacity .6s; }
.spin-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.spin.ready .spin-progress { opacity: 0; }

/* 3D */
.model3d { cursor: grab; }
.model3d canvas { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; }
.model-loading { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .88rem; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--gold); animation: spin .9s linear infinite; }

/* Bản vẽ SVG kiểu blueprint */
.section-svg { color: var(--gold); max-height: 100%; }
.section-svg .sec-grid line { stroke: rgba(212,180,131,.08); }
.section-svg path.sec-alu { fill: rgba(212,180,131,.16); stroke: var(--gold-2); }
.section-svg path.sec-black { fill: rgba(20,20,20,.9); stroke: #9a9a9a; }
.section-svg path.sec-plastic { fill: rgba(240,240,240,.25); stroke: #e5e5e5; }
.section-svg .sec-dim { stroke: var(--maroon-glow); fill: var(--cream); color: var(--maroon-glow); font-family: var(--sans); }
.section-svg .sec-dim text { stroke: none; }

/* Cột thông tin */
.pd-eyebrow { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pd-series { font-size: .72rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.pd-code { font: 700 clamp(2.1rem, 3.8vw, 3.2rem) var(--serif); letter-spacing: -0.03em; line-height: 1.05; }
.pd-name { font-size: 1.15rem; color: rgba(245,240,232,.8); margin-top: .5rem; }
.pd-tagline { margin-top: 1rem; color: var(--gold-2); font: 400 1.05rem/1.45 var(--serif); }
.pd-dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1.5rem; }
.pd-dims div { padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.pd-dims small { display: block; font-size: .66rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.pd-dims b { font: 600 1.55rem var(--serif); letter-spacing: -0.02em; color: var(--cream); }
.pd-dims b i { font: 400 .8rem var(--sans); color: var(--muted); margin-left: .25rem; font-style: normal; }
.pd-dims b.sm { font: 500 .85rem var(--sans); display: block; margin-top: .4rem; line-height: 1.35; }
.pd-variants:not(:empty) { margin-top: 1.5rem; }
.pd-variants small { font-size: .7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.pd-variant-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.pd-variant-list a { display: flex; flex-direction: column; padding: .55rem .85rem; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: .84rem; color: var(--cream); transition: all .25s; }
.pd-variant-list a span { font-weight: 400; font-size: .72rem; color: var(--muted); }
.pd-variant-list a:hover { border-color: rgba(212,180,131,.4); }
.pd-variant-list a.active { border-color: var(--maroon-light); background: rgba(178,58,53,.18); }
.pd-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* Các phần dưới */
.pd-section { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: 0; }
#sections .pd-section:last-child { padding-bottom: clamp(4rem, 9vw, 7rem); }
.pd-about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.pd-features li { padding: .9rem 0 .9rem 1.8rem; border-bottom: 1px solid var(--line); }
.pd-tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.pd-tech-grid > figure:only-child { max-width: 640px; } /* chỉ còn 1 ô (vd. thiếu ảnh bản vẽ) → không giãn hết bề ngang */
.pd-tech-grid figure { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.pd-blueprint { background: linear-gradient(160deg, #101722, #0b0f15); padding: 1rem; }
.pd-blueprint .section-svg { width: 100%; aspect-ratio: 4/3; display: block; }
.pd-drawing { background: #fff; cursor: zoom-in; display: flex; flex-direction: column; }
/* Bản vẽ catalogue nhỏ (≈ 100–420 px) và nhiều ảnh dọc hẹp (tỉ lệ tới 1:4): khung cố định 4:3 như ô mặt cắt bên cạnh,
   ảnh co vừa khung — trước đây width:100% kéo ảnh dọc thành cột cao ~2.500 px (15/11). */
.pd-drawing img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; padding: 1rem; }
.pd-drawing figcaption { margin-top: auto; } /* 2 ô cao bằng nhau: chú thích dính đáy */
.pd-tech-grid figcaption, .pd-storyboard figcaption { font-size: .74rem; letter-spacing: 1px; color: var(--muted); padding: .7rem 1rem; background: rgba(11,9,9,.85); }
.pd-install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; align-items: start; }
.pd-install:has(.pd-steps:only-child) { grid-template-columns: 1fr; }
.pd-steps { list-style: none; display: grid; gap: .6rem; }
.pd-steps li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.pd-steps li span { font: 600 1.15rem var(--serif); color: var(--maroon-glow); line-height: 1; min-width: 2rem; }
.pd-steps li p { color: rgba(245,240,232,.8); font-size: .92rem; }
.pd-storyboard { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; }
.pd-storyboard img { width: 100%; display: block; }
.prod-code { font: 600 .74rem var(--sans); letter-spacing: .08em; color: var(--gold); }
.badge-360 { position: absolute; top: .9rem; right: .9rem; font-size: .66rem; font-weight: 700; letter-spacing: 1px; padding: .3rem .6rem; border-radius: 999px; background: rgba(11,9,9,.7); color: var(--gold-2); border: 1px solid rgba(212,180,131,.35); backdrop-filter: blur(6px); }

@media (max-width: 1024px) {
  .pd-grid, .pd-about, .pd-install { grid-template-columns: 1fr; }
  .pd-stage-col { position: static; }
}
@media (max-width: 760px) {
  .pd-dims { grid-template-columns: 1fr 1fr; }
  .pd-stage { aspect-ratio: 1 / 1; }
}

/* Empty / loading */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; border: 1px dashed rgba(245,240,232,.15); border-radius: var(--radius); color: var(--muted); }
.empty-ico { font-size: 1.8rem; color: var(--gold); margin-bottom: .6rem; }
.skeleton { border-radius: var(--radius); background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; min-height: 280px; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ───────── Footer ───────── */
.site-footer { padding: 0 var(--pad-x) 2rem; background: linear-gradient(180deg, var(--dark), #140c0c); border-top: 1px solid var(--line); }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: 4rem 0; border-bottom: 1px solid var(--line); }
.footer-cta h2 { max-width: 640px; margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding: 3rem 0; }
.footer-grid h4 { font-size: .72rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 500; }
.footer-grid a, .footer-grid span { display: block; text-decoration: none; color: var(--muted); font-size: .88rem; margin-bottom: .55rem; transition: color .3s; }
.footer-grid a:hover { color: var(--cream); }
.footer-grid p { font-size: .88rem; max-width: 320px; margin-top: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .78rem; color: rgba(245,240,232,.35); }
.footer-internal { display: flex; gap: 1rem; }
.footer-internal a { color: rgba(245,240,232,.35); text-decoration: none; } .footer-internal a:hover { color: var(--gold); }
.internal-dot { text-decoration: none; background: none; border: 0; color: rgba(245,240,232,.15); cursor: pointer; font-size: .7rem; padding: 4px 8px; transition: color .3s; }
.internal-dot:hover { color: var(--gold); }

/* FAB */
.fab { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; display: flex; flex-direction: column; gap: .6rem; }
.fab-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; border: 0; cursor: pointer; color: #fff; font: 700 .72rem var(--sans); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); transition: transform .3s var(--ease); }
.fab-btn:hover { transform: scale(1.08); }
.fab-zalo { background: #0068ff; animation: ring 3s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,104,255,.5); } 50% { box-shadow: 0 0 0 12px rgba(0,104,255,0); } }
.fab-phone { background: linear-gradient(120deg, var(--maroon), var(--maroon-light)); font-size: 1.3rem; }
.fab-top { background: rgba(245,240,232,.12); backdrop-filter: blur(10px); font-size: 1.1rem; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .35s var(--ease); }
.fab.show-top .fab-top { opacity: 1; pointer-events: auto; transform: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(5,4,4,.94); backdrop-filter: blur(10px); display: grid; place-items: center; animation: fade .3s; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 8px; object-fit: contain; }
.lightbox img.small { height: min(70vh, 720px); width: auto; background: #fff; padding: 1rem; } /* bản vẽ nhỏ: phóng lên đủ đọc */
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.lightbox button:hover { background: var(--maroon-light); }
.lb-close { top: 1.2rem; right: 1.2rem; } .lb-prev { left: 1.2rem; } .lb-next { right: 1.2rem; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }
.lb-count { position: absolute; bottom: 1.4rem; font-size: .82rem; color: var(--muted); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 20px); opacity: 0; z-index: 10001; padding: .9rem 1.4rem; border-radius: 12px; font-size: .9rem; transition: all .35s var(--ease); box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-ok { background: #14532d; color: #dcfce7; } .toast-err { background: #7f1d1d; color: #fee2e2; }

/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
  .nav-links { display: none; } .nav-cta { display: none; } .nav-burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; } .hero-side { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  /* Màn hẹp: chữ đè lên video → video làm nền mờ như các slide ảnh */
  .hero-stage { top: 70px; right: 50%; width: min(115vw, 760px); transform: translateX(50%); }
  .hero-stage-cap { display: none; }
  .hero-slide-video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--dark) 20%, rgba(11,9,9,.6) 55%, rgba(11,9,9,.3) 100%); }
  .bento { grid-template-columns: 1fr 1fr; }
  .proj-grid .pcard, .proj-grid.featured .pcard:nth-child(n) { grid-column: span 6; grid-row: auto; }
  .partner-hl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-logo { gap: 10px; } .nav-mark { height: 48px; } .site-nav.scrolled .nav-mark { height: 40px; }
  .nav-word img, .site-nav.scrolled .nav-word img { height: 12px; } .nav-div { height: 24px; }
  .footer-bottom { padding-bottom: 88px; }
  .stats-brand { padding-bottom: 2.5rem; } .stats-brand img { height: 200px; } .stats-brand p { font-size: .66rem; letter-spacing: .22em; }
  .stats { grid-template-columns: 1fr 1fr; }
  .bento, .why-grid, .contact-grid, .detail-grid, .footer-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-auto-rows: 260px; }
  .proj-grid .pcard, .proj-grid.featured .pcard:nth-child(n) { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .scroll-hint, .hero-card:nth-child(2) { display: none; }
  .search-input { margin-left: 0; width: 100%; }
  .footer-bottom { flex-direction: column; }
}
/* Màn rất hẹp: chỉ giữ mark trên header */
@media (max-width: 340px) { .nav-div, .nav-word { display: none; } }

/* Danh sách sản phẩm: nhóm theo danh mục + lọc dòng */
.filter-chip small { font-size: .7rem; opacity: .6; margin-left: .2rem; }
.filter-chip.sm { padding: .4rem .9rem; font-size: .78rem; }
.sub-filters { margin-top: -1rem; padding: .8rem; border-radius: var(--radius-sm); border: 1px dashed var(--line); }
.cat-block + .cat-block { margin-top: 3.5rem; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cat-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.cat-head p { font-size: .85rem; margin-top: .3rem; }

/* Sửa lỗi: phần tử con của grid không được nở theo nội dung (tab, bảng thông số) → không tràn ngang trên mobile */
.pd-grid > *, .pd-about > *, .pd-install > * { min-width: 0; }
.spec-table td { overflow-wrap: anywhere; }
.sub-filters[hidden] { display: none; }
@media (max-width: 1024px) {
  .pd-grid, .pd-about, .pd-install { grid-template-columns: minmax(0, 1fr); }
}

/* ───────── Tinh chỉnh chữ sau khi đổi sang Be Vietnam Pro ───────── */
/* Không để 1 chữ rơi xuống dòng cuối (tiếng Việt hay tách từ ghép: chuẩn mực, quốc tế, lắp đặt) */
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* Chữ phụ màu xám: 300 quá mảnh trên nền tối → 400 */
.section-head p, .page-hero p, .contact-info > p, .svc p, .why-item p, .prod-body p, .hero-card span, .cat-head p,
.pcard-meta, .sc-meta, .testi-role, .footer-grid a, .footer-grid span, .footer-grid p, .muted { font-weight: 400; }
.section-head p, .page-hero p { color: #a89a91; }
@media (max-width: 760px) {
  .hero-text h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .section-tag { font-size: .66rem; letter-spacing: .12em; padding: .4rem .8rem; max-width: 100%; }
  .pd-tabs { gap: .15rem; padding: .5rem; }
  .pd-tab { padding: .5rem .7rem; font-size: .8rem; gap: .3rem; }
}

/* Tắt chuyển động: các phần hero vốn chỉ hiện ra nhờ animation phải được đặt sẵn ở trạng thái cuối (thẻ ẩn theo slide vẫn thắng vì selector cụ thể hơn) — đặt cuối file để thắng các khai báo gốc cùng độ ưu tiên */
@media (prefers-reduced-motion: reduce) { .hero-text h1 .line > span { transform: none; } .hero-text p, .hero-btns, .hero-side { opacity: 1; transform: none; } }
