﻿/* DATQT SOLUTIONS - datqt.com | Bảng màu Golden Ram */
@font-face { font-family: 'BVP'; src: url('/fonts/bvp-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'BVP'; src: url('/fonts/bvp-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'BVP'; src: url('/fonts/bvp-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'BVP'; src: url('/fonts/bvp-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --espresso: #2A1528; --cocoa: #3A2138; --sand: #EFE9E3; --stone: #E9CB93;
  --amber: #F5A20A; --amber-hi: #FCB32D; --copper: #D4430F; --taupe: #7A6676;
  --line-dark: rgba(233,203,147, .22); --line-light: rgba(58,33,56, .16);
  --pad: clamp(20px, 5vw, 72px); --max: 1280px; --sec: clamp(96px, 12vw, 176px);
  --gut: max(var(--pad), calc((100vw - 1440px) / 2));
  --out: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--espresso); font: 400 1.0625rem/1.7 'BVP', system-ui, sans-serif; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--amber); color: var(--espresso); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
h2 { font-weight: 800; font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.12; letter-spacing: -.022em; }

/* Màn mở */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--espresso); display: grid; place-content: center; justify-items: center; gap: 28px; pointer-events: none; animation: loaderOut .9s var(--out) 1s forwards; }
.loader img { width: 88px; animation: pulse 1s ease-in-out infinite alternate; }
.loader i { width: 160px; height: 2px; background: var(--line-dark); position: relative; overflow: hidden; }
.loader i::after { content: ''; position: absolute; inset: 0; background: var(--amber); transform-origin: left; animation: fill 1s var(--out) forwards; }
@keyframes loaderOut { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes pulse { from { transform: scale(.94); opacity: .7; } to { transform: scale(1); opacity: 1; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Nút */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1 'BVP', sans-serif; text-decoration: none; white-space: nowrap; overflow: hidden; transition: color .35s, border-color .35s, transform .35s var(--out); }
.btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--out); z-index: -1; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-primary { background: var(--amber); color: var(--espresso); isolation: isolate; }
.btn-primary::before { background: var(--sand); }
.btn-ghost { border-color: rgba(239,233,227, .4); color: var(--sand); isolation: isolate; }
.btn-ghost::before { background: var(--sand); }
.btn-ghost:hover { color: var(--espresso); border-color: var(--sand); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 32px; padding: 14px var(--gut); background: rgba(42,21,40, .95); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.scrolled { border-bottom-color: var(--line-dark); }
.brand img { width: 150px; height: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 28px; }
.nav a { position: relative; color: rgba(239,233,227, .78); text-decoration: none; font-size: .95rem; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--out); }
.nav a:hover { color: var(--sand); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.head-end { display: flex; align-items: center; gap: 16px; }
.lang { color: var(--stone); font-size: .9rem; font-weight: 600; text-decoration: none; padding: 6px 4px; }

/* Hero */
.hero { --gx: 72%; --gy: 40%; position: relative; background: var(--espresso); color: var(--sand); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: 0 2vw; min-height: calc(100svh - 68px); padding: clamp(40px, 5vw, 80px) var(--gut) clamp(72px, 8vw, 120px); overflow: clip; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60vmax 60vmax at var(--gx) var(--gy), rgba(245,162,10, .22), transparent 60%), radial-gradient(50vmax 40vmax at 85% 110%, rgba(212,67,15, .28), transparent 70%); transition: background-position .2s; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(233,203,147, .16) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(70% 70% at 70% 45%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000, transparent 75%); }
.hero h1 { font-weight: 800; font-size: clamp(1.9rem, 3.05vw, 3.25rem); line-height: 1.14; letter-spacing: -.028em; }
.line { display: block; overflow: hidden; padding-top: .14em; margin-top: -.14em; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: block; transform: translateY(115%); animation: lineUp 1.1s var(--out) forwards; animation-delay: calc(1.25s + var(--i) * .1s); }
.hero h1 .line:nth-child(n+3) > span { color: var(--amber); }
.hero h1 .line { white-space: nowrap; }
@media (max-width: 960px) { .hero h1 { font-size: min(6.3vw, 3rem); } }
@keyframes lineUp { to { transform: none; } }
.hero .lead { margin: 22px 0 40px; max-width: 36em; font-weight: 300; font-size: clamp(1.02rem, 1.2vw, 1.18rem); line-height: 1.7; color: rgba(239,233,227, .82); opacity: 0; animation: fadeUp 1s var(--out) 1.8s forwards; }
.hero .actions { opacity: 0; animation: fadeUp 1s var(--out) 2s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-stage { position: relative; justify-self: center; width: min(118%, 760px); aspect-ratio: 1; margin: -6% -9%; }
.hero-stage .fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stage .fallback { object-fit: contain; transform: scale(.62); }
.webgl .hero-stage .fallback { visibility: hidden; }
.ram-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 20; pointer-events: none; opacity: 0; transition: opacity .8s; }
.webgl .ram-canvas { opacity: 1; }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; mix-blend-mode: screen; opacity: 0; transition: opacity 1.6s; }
.hero-fx.on { opacity: 1; }
.cursor { position: fixed; left: 0; top: 0; width: 14px; height: 14px; margin: -7px; border-radius: 50%; border: 1.5px solid var(--amber); background: rgba(245,162,10, .9); pointer-events: none; z-index: 90; transition: width .35s var(--out), height .35s var(--out), margin .35s var(--out), opacity .3s; }
.cursor.big { width: 56px; height: 56px; margin: -28px; background: rgba(245,162,10, .14); }
.cursor.down { opacity: .5; }
.spiral { position: absolute; inset: 8%; width: 84%; height: 84%; overflow: visible; animation: spin 80s linear infinite; }
.spiral path { fill: none; stroke: var(--amber); stroke-width: 1.2; stroke-linecap: round; opacity: .7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3s var(--out) 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue { position: absolute; left: var(--gut); bottom: 28px; display: flex; align-items: center; gap: 14px; color: var(--stone); font-size: .85rem; text-decoration: none; opacity: 0; animation: fadeUp 1s var(--out) 2.4s forwards; }
.scroll-cue i { width: 56px; height: 1px; background: var(--line-dark); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: var(--amber); animation: cue 2.2s var(--out) infinite; }
@keyframes cue { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.roles { margin-top: 26px; font-weight: 600; font-size: clamp(1rem, 1.25vw, 1.2rem); color: var(--stone); min-height: 1.7em; white-space: nowrap; opacity: 0; animation: fadeUp 1s var(--out) 1.7s forwards; }
.roles::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 14px; background: var(--amber); transform: translateY(-1px) rotate(45deg); }

/* Dự án: sáu mô phỏng chạy trực tiếp */
.work { background: var(--espresso); color: var(--sand); padding: var(--sec) var(--gut); }
.work .sec-head p { color: rgba(239,233,227, .72); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 34px); }
.proj { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; background: rgba(239,233,227, .03); }
.js .proj[data-reveal] { transition: opacity 1s var(--out), transform 1.1s var(--out), border-color .4s; }
.proj:hover { border-color: rgba(245,162,10, .65); }
.proj canvas { display: block; width: 100%; aspect-ratio: 16 / 10; background: #1C0E1B; border-bottom: 1px solid var(--line-dark); }
.proj-body { padding: clamp(20px, 2.2vw, 34px); }
.proj h3 { font-weight: 800; font-size: clamp(1.3rem, 1.9vw, 1.75rem); line-height: 1.2; letter-spacing: -.014em; }
.proj-body > p { margin: 12px 0 22px; font-weight: 300; color: rgba(239,233,227, .8); max-width: 40em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 13px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .84rem; color: var(--stone); }
.proj:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto; align-items: center; }
.proj:first-child canvas { border-bottom: 0; border-right: 1px solid var(--line-dark); height: 100%; }

/* Ba phim AI tự phát */
.trio-sec { background: var(--espresso); color: var(--sand); padding: clamp(40px, 5vw, 80px) var(--gut) clamp(48px, 6vw, 96px); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.tri { position: relative; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; background: #1C0E1B; cursor: pointer; transition: border-color .4s, transform .6s var(--out); }
.tri:hover { border-color: var(--amber); transform: translateY(-4px); }
.tri video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tri::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,10,19, .85)); }
.tri-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: grid; gap: 2px; text-align: left; color: var(--sand); font-family: 'BVP', sans-serif; }
.tri-cap b { font-weight: 800; font-size: clamp(.98rem, 1.25vw, 1.2rem); line-height: 1.2; }
.tri-cap i { font-style: normal; font-size: .82rem; color: var(--stone); }
.trio-hint { margin-top: 18px; font-size: .9rem; color: rgba(233,203,147, .7); }
.lightbox.wide { width: min(94vw, 1100px); }
.lightbox.wide video { aspect-ratio: 16 / 9; }

/* Dải chữ động */
.kinetic { background: var(--espresso); overflow: hidden; padding: clamp(28px, 4vw, 64px) 0 0; }
.kinetic p { width: max-content; white-space: nowrap; font-weight: 800; font-size: clamp(2.6rem, 7.4vw, 7rem); line-height: 1.08; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(233,203,147, .5); will-change: transform; }
.kinetic p + p { color: var(--sand); -webkit-text-stroke: 0; }
.kinetic i { display: inline-block; width: .2em; height: .2em; margin: 0 .38em; background: var(--amber); transform: rotate(45deg); vertical-align: middle; }

/* Bộ duyệt dự án */
.work h2 span { display: block; }
.work h2 span + span { color: var(--amber); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 3vw, 40px); }
.chip { padding: 9px 17px; border: 1px solid var(--line-dark); border-radius: 999px; background: none; color: var(--stone); font: 600 .9rem/1 'BVP', sans-serif; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--amber); }
.chip.on { background: var(--amber); border-color: var(--amber); color: var(--espresso); }
.explorer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: stretch; }
.rows { border-top: 1px solid var(--line-dark); }
.rows li { border-bottom: 1px solid var(--line-dark); }
.rows li[hidden] { display: none; }
.row { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; padding: clamp(11px, 1.55vh, 17px) 0; border: 0; background: none; color: rgba(239,233,227, .6); font: 600 clamp(1.05rem, 1.4vw, 1.38rem)/1.25 'BVP', sans-serif; text-align: left; cursor: pointer; transition: color .3s, padding-left .5s var(--out); }
.row::before { content: ''; position: absolute; left: 2px; top: 50%; width: 9px; height: 9px; background: var(--amber); transform: translateY(-50%) rotate(45deg) scale(0); transition: transform .5s var(--out); }
.row::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.row:hover { color: var(--sand); }
.row.on { color: var(--sand); padding-left: 28px; }
.row.on::before { transform: translateY(-50%) rotate(45deg) scale(1); }
.auto .row.on::after { animation: fill 7s linear forwards; }
.row-g { flex: none; font-weight: 400; font-size: .8rem; color: rgba(233,203,147, .55); white-space: nowrap; }
.js .row-p { display: none; }
.row-p { padding: 0 0 16px; font-weight: 300; color: rgba(239,233,227, .75); }
html:not(.js) .stage-slot { display: none; }
.stage-slot .stage { position: sticky; top: 96px; }
.stage { border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; background: rgba(239,233,227, .03); }
.stage-view { position: relative; aspect-ratio: 16 / 10; background: #1C0E1B; border-bottom: 1px solid var(--line-dark); overflow: hidden; }
.stage-view canvas, .stage-view video { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .17s; }
.stage-view video { object-fit: cover; }
.stage-view [hidden] { display: none; }
.stage-badge { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(28,14,27, .78); border: 1px solid var(--line-dark); font-size: .74rem; color: var(--stone); }
.stage-badge.real { border-color: var(--amber); color: var(--amber); }
.stage-body { padding: clamp(18px, 2vw, 30px); transition: opacity .17s, transform .3s var(--out); }
.stage.swap .stage-view > canvas, .stage.swap .stage-view > video, .stage.swap .stage-body { opacity: 0; }
.stage.swap .stage-body { transform: translateY(8px); }
.stage-group { font-size: .82rem; color: var(--stone); margin-bottom: 8px; }
.stage h3 { font-weight: 800; font-size: clamp(1.3rem, 1.9vw, 1.85rem); line-height: 1.2; letter-spacing: -.014em; }
.stage-p { margin: 12px 0 20px; font-weight: 300; color: rgba(239,233,227, .82); min-height: 6.8em; }
.tags .st { border-color: var(--copper); color: #FF9D73; }

/* Năng lực: ba cột gọn */
.caps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 60px); }
.cap3 { border-top: 2px solid var(--espresso); padding-top: 22px; }
.cap3 h3 { font-weight: 800; font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.2; letter-spacing: -.014em; }
.cap3 > p { margin: 14px 0 24px; color: rgba(42,21,40, .84); }

.stage-link { display: inline-block; margin-top: 18px; color: var(--amber); font-weight: 600; text-underline-offset: 4px; }
.stage-link[hidden] { display: none; }
.films, .game, .insights, .caps { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* Dải ảnh xe */
.road { position: relative; display: grid; align-items: center; min-height: clamp(260px, 30vw, 440px); background: #0C0708; color: var(--sand); overflow: hidden; isolation: isolate; }
.road > img, .road > video { position: absolute; right: 0; top: 0; z-index: -1; height: 100%; width: auto; max-width: none; aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%); mask-image: linear-gradient(90deg, transparent, #000 34%); }
.road-copy { padding: clamp(28px, 4vw, 64px) 0 clamp(28px, 4vw, 64px) var(--gut); max-width: calc(27em + var(--gut)); }
.road-copy h2 { font-size: clamp(1.45rem, 2.3vw, 2.15rem); }
.road-copy p { margin-top: 12px; font-weight: 300; color: rgba(239,233,227, .8); }
.colophon { padding: 0 var(--gut) 28px; font-size: .82rem; color: rgba(233,203,147, .55); }

/* Băng logo đối tác */
.partners-band { background: var(--espresso); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 34px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { display: flex; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; }
.marquee li { display: flex; align-items: center; height: 56px; padding: 0 clamp(28px, 4vw, 64px); }
.lg { display: block; height: 100%; aspect-ratio: 3.2; background: rgba(233,203,147, .8); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transition: background-color .4s; }
.lg-txt { font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; white-space: nowrap; color: rgba(233,203,147, .8); transition: color .4s; }
.lg-img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) sepia(.55) brightness(1.05) opacity(.8); transition: filter .5s; }
.marquee li:hover .lg-img, .tile:hover .lg-img { filter: none; }
.tile .lg-img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.marquee li:hover .lg { background: var(--amber); }
.marquee li:hover .lg-txt { color: var(--amber); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Tuyên bố */
.statement { padding: var(--sec) var(--pad); max-width: calc(1180px + 2 * var(--pad)); margin: 0 auto; }
.statement p { font-weight: 600; font-size: clamp(1.45rem, 2.9vw, 2.7rem); line-height: 1.38; letter-spacing: -.014em; }
.statement .w { transition: opacity .25s linear; }

/* Hiện dần */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--out), transform 1.1s var(--out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-clip] > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--out); }
.js [data-clip].in > * { clip-path: inset(0 0 0 0); }

/* Tiêu đề section */
.sec-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px 5vw; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head p { font-weight: 300; font-size: clamp(1.08rem, 1.4vw, 1.3rem); line-height: 1.65; color: var(--taupe); max-width: 34em; }

/* Năng lực */
.caps { padding: var(--sec) var(--pad) var(--sec); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.cap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 6vw; align-items: center; padding: clamp(36px, 5vw, 72px) 0; border-top: 1px solid var(--line-light); }
.cap figure { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; }
.cap figure img, .cap figure video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); will-change: transform; }
.cap-flip figure { order: 2; }
.cap h3 { font-weight: 800; font-size: clamp(1.6rem, 2.5vw, 2.2rem); line-height: 1.2; letter-spacing: -.016em; }
.cap-body > p { margin: 18px 0 30px; max-width: 34em; color: rgba(42,21,40, .84); }
.diamonds li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--line-light); transition: padding-left .4s var(--out), color .3s; }
.diamonds li:last-child { border-bottom: 1px solid var(--line-light); }
.diamonds li::before { content: ''; position: absolute; left: 3px; top: 50%; width: 8px; height: 8px; background: var(--copper); transform: translateY(-50%) rotate(45deg); transition: transform .5s var(--out), background-color .3s; }
.diamonds li:hover { padding-left: 34px; color: var(--copper); }
.diamonds li:hover::before { transform: translateY(-50%) rotate(225deg) scale(1.3); background: var(--amber); }

/* Golden Ram */
.reel { background: var(--cocoa); color: var(--sand); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 5vw; align-items: center; padding: var(--sec) var(--gut); }
.reel-video { border-radius: 8px; overflow: hidden; }
.reel-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.reel-copy p { margin-top: 24px; font-weight: 300; font-size: 1.12rem; color: rgba(239,233,227, .8); max-width: 32em; }

/* Cách làm việc */
.method { background: var(--espresso); color: var(--sand); }
.method-pin { padding: var(--sec) 0; }
.method h2 { margin: 0 var(--gut) clamp(40px, 5vw, 72px); }
.track-wrap { padding: 0 var(--gut); }
.track { display: grid; gap: 40px; }
.step { border-top: 1px solid var(--line-dark); padding-top: 24px; }
.step-n { display: block; font-weight: 300; font-size: clamp(4rem, 9vw, 9rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--stone); margin-bottom: 24px; }
.step h3 { font-weight: 800; font-size: clamp(1.4rem, 2vw, 1.9rem); margin-bottom: 12px; }
.step p { color: rgba(239,233,227, .78); max-width: 30em; }
.method-bar { display: none; }
@media (min-width: 961px) {
  .js .method { height: 300vh; }
  .js .method-pin { position: sticky; top: 0; height: 100vh; padding: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .js .track-wrap { padding: 0 0 0 var(--gut); }
  .js .track { display: flex; gap: 6vw; width: max-content; padding-right: var(--gut); will-change: transform; }
  .js .step { flex: 0 0 min(34vw, 520px); }
  .js .method-bar { display: block; margin: clamp(32px, 5vh, 64px) var(--gut) 0; height: 2px; background: var(--line-dark); }
  .js .method-bar i { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); }
}
.principle { background: var(--espresso); color: var(--sand); padding: var(--sec) var(--gut); }
.principle p { font-weight: 300; font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1.2; letter-spacing: -.02em; }
.principle { overflow: hidden; }
.principle span { display: block; will-change: transform; }
.principle span:last-child { color: var(--amber); font-weight: 800; }

/* Phim AI: vòng 3D */
.films { position: relative; background: radial-gradient(80% 60% at 50% 60%, #3D1E3A 0%, var(--espresso) 70%); color: var(--sand); padding: var(--sec) 0 calc(var(--sec) * .7); overflow: hidden; }
.films-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px 5vw; align-items: end; padding: 0 var(--gut); margin-bottom: clamp(24px, 4vw, 56px); }
.films-head p { font-weight: 300; color: rgba(239,233,227, .78); font-size: clamp(1.02rem, 1.3vw, 1.2rem); max-width: 36em; }
.ring-stage { --cw: clamp(170px, 17vw, 270px); --r: calc(var(--cw) * 2.05); position: relative; height: calc(var(--cw) * 2.35); perspective: 1600px; perspective-origin: 50% 40%; cursor: grab; touch-action: pan-y; user-select: none; }
.ring-stage:active { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 6%; width: var(--cw); aspect-ratio: 9 / 16; margin-left: calc(var(--cw) / -2); transform-style: preserve-3d; will-change: transform; }
.card { position: absolute; inset: 0; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #1C0E1B; transform: rotateY(calc(var(--i) * 36deg)) translateZ(var(--r)); backface-visibility: hidden; cursor: pointer; box-shadow: 0 30px 60px -30px rgba(0,0,0, .8); transition: filter .5s, box-shadow .5s; }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card video { opacity: 0; transition: opacity .6s; }
.card.playing video { opacity: 1; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(245,162,10, .0); background: linear-gradient(180deg, transparent 55%, rgba(20,10,19, .85)); transition: border-color .5s; }
.card.front::after { border-color: rgba(245,162,10, .9); }
.card:not(.front) { filter: brightness(.55) saturate(.8); }
.card .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: grid; gap: 2px; text-align: left; color: var(--sand); }
.card .cap b { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.card .cap i { font-style: normal; font-size: .82rem; color: var(--stone); }
.films-hint { text-align: center; color: rgba(233,203,147, .7); font-size: .9rem; margin-top: calc(var(--cw) * .5); padding: 0 var(--pad); }

/* Phòng game */
.game { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 5vw; align-items: center; padding: var(--sec) var(--gut); background: #1A0D19; color: var(--sand); overflow: hidden; isolation: isolate; }
.game-bg { position: absolute; inset: -10%; z-index: -1; }
.game-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(42px) saturate(1.4) brightness(.45); transform: scale(1.1); }
.game-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 80% at 30% 50%, rgba(26,13,25, .2), rgba(26,13,25, .92)); }
.game h2 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); background: linear-gradient(100deg, #FFF7E8 0%, var(--amber) 45%, #FFD27A 60%, var(--sand) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }
.game-copy > p { margin: 24px 0 28px; font-weight: 300; font-size: 1.12rem; color: rgba(239,233,227, .84); max-width: 36em; }
.game-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.game-facts li { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(245,162,10, .45); background: rgba(245,162,10, .08); font-size: .92rem; }
.game .btn-ghost { background: transparent; font-family: inherit; cursor: pointer; }
.phone { justify-self: center; width: min(320px, 70vw); aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #4A2547, #1B0E1A 60%, #5B2E57); box-shadow: 0 0 0 1px rgba(233,203,147, .25), 0 60px 120px -40px rgba(0,0,0, .9), 0 0 120px -20px rgba(245,162,10, .45); transform: perspective(1200px) rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg)); transition: transform .5s var(--out); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.phone-screen video { width: 100%; height: 100%; object-fit: cover; }
.glare { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255, .18) 0%, transparent 38%); pointer-events: none; }

/* Tường logo đối tác */
.partners { padding: var(--sec) var(--gut); background: var(--espresso); color: var(--sand); }
.partners h2 { margin-bottom: clamp(40px, 5vw, 72px); max-width: 18em; }
.logo-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; perspective: 1000px; }
.tile { --mx: 50%; --my: 50%; position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 14% 16%; border-radius: 14px; background: rgba(239,233,227, .035); border: 1px solid var(--line-dark); overflow: hidden; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--out), border-color .4s, background-color .4s; isolation: isolate; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(240px circle at var(--mx) var(--my), rgba(245,162,10, .28), transparent 65%); opacity: 0; transition: opacity .4s; }
.tile::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--amber) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
.tile:hover { border-color: transparent; background: rgba(239,233,227, .06); }
.tile:hover::before, .tile:hover::after { opacity: 1; }
.tile:hover::after { animation: orbit 2.4s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes orbit { to { --a: 360deg; } }
.tile .lg { width: 100%; height: 100%; aspect-ratio: auto; background: linear-gradient(100deg, var(--stone) 0%, var(--stone) 40%, #FFF8EC 50%, var(--stone) 60%, var(--stone) 100%); background-size: 260% 100%; background-position: 100% 0; transition: background-position 1s var(--out); }
.tile:hover .lg { background-position: 0 0; }
.tile .lg-txt { font-size: clamp(1rem, 2.1vw, 2rem); color: var(--stone); text-align: center; white-space: normal; line-height: 1.15; }
.tile:hover .lg-txt { color: #FFF8EC; }
.js .tile { opacity: 0; transform: translateY(40px) rotateX(-30deg); }
.js .logo-wall.in .tile { opacity: 1; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: opacity .9s var(--out) calc(var(--i) * 80ms), transform .9s var(--out) calc(var(--i) * 80ms), border-color .4s, background-color .4s; }

/* Lightbox */
.lightbox { width: min(92vw, 520px); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible; }
.lightbox::backdrop { background: rgba(20,10,19, .86); backdrop-filter: blur(10px); }
.lightbox video { display: block; width: 100%; max-height: 92vh; border-radius: 18px; aspect-ratio: 9 / 16; object-fit: contain; }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(239,233,227, .4); background: rgba(20,10,19, .6); color: var(--sand); font: 600 .9rem 'BVP', sans-serif; cursor: pointer; }

/* Người sáng lập */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 6vw; align-items: center; background: #EFE8DD; padding: var(--sec) var(--gut); }
.about-img { position: relative; justify-self: end; width: 100%; max-width: 460px; aspect-ratio: 4 / 5; }
.about-img::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--copper); border-radius: 8px; transform: translate(-18px, 18px); }
.about-img img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.about-body { max-width: 760px; }
.about-body h2 { margin-bottom: 24px; }
.about-lead { font-weight: 300; font-size: clamp(1.08rem, 1.35vw, 1.28rem); line-height: 1.65; max-width: 38em; }
.lenses { margin-top: clamp(28px, 3.4vw, 48px); border-top: 1px solid var(--line-light); }
.lenses li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 8px 32px; align-items: baseline; padding: clamp(14px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--line-light); }
.lenses b { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.9rem); line-height: 1.05; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px var(--espresso); background: linear-gradient(90deg, var(--espresso) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-position .9s var(--out) calc(var(--i) * 140ms + .25s); }
.lenses li.in b, html:not(.js) .lenses b { background-position: 0 0; }
.lenses li:hover b { -webkit-text-stroke-color: var(--copper); background-image: linear-gradient(90deg, var(--copper) 50%, transparent 50%); }
.lenses span { color: rgba(42,21,40, .86); max-width: 30em; }
.about-certs { margin-top: 26px; font-size: .9rem; color: var(--taupe); max-width: 44em; }
.about-body > p { color: rgba(42,21,40, .88); }
.about-body > p + p { margin-top: 20px; }
.creds { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px; }
.creds li { padding: 9px 16px; border: 1px solid rgba(212,67,15, .4); border-radius: 999px; font-size: .92rem; transition: background-color .3s, color .3s, border-color .3s; }
.creds li:hover { background: var(--cocoa); color: var(--sand); border-color: var(--cocoa); }

/* Góc nhìn */
.insights { padding: var(--sec) var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.insights h2 { margin-bottom: 40px; }
.insights li a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line-light); text-decoration: none; }
.insights li:last-child a { border-bottom: 1px solid var(--line-light); }
.ins-title { font-weight: 600; font-size: clamp(1.15rem, 1.9vw, 1.7rem); line-height: 1.3; transition: transform .6s var(--out), color .3s; }
.ins-go { flex: none; width: 12px; height: 12px; border-top: 2px solid var(--copper); border-right: 2px solid var(--copper); transform: rotate(45deg); transition: transform .5s var(--out); }
.insights li a:hover .ins-title { transform: translateX(14px); color: var(--copper); }
.insights li a:hover .ins-go { transform: translateX(8px) rotate(45deg); }
.more { display: inline-block; margin-top: 28px; color: var(--copper); font-weight: 600; text-underline-offset: 4px; }

/* Liên hệ */
.contact { position: relative; background: var(--espresso); color: var(--sand); min-height: min(92vh, 900px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.contact-img { position: absolute; inset: 0; z-index: -1; }
.contact-img img, .contact-img video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.contact-stage { position: absolute; right: var(--gut); top: 50%; width: min(36vw, 520px); aspect-ratio: 1; transform: translateY(-50%); }
.contact-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--espresso) 0%, rgba(42,21,40, .9) 40%, rgba(42,21,40, .55) 100%); }
@keyframes drift { from { transform: scale(1.05) translateX(0); } to { transform: scale(1.22) translateX(-3%); } }
.contact-copy { padding: var(--sec) var(--gut); }
.contact-copy h2 { font-size: clamp(2rem, 3.8vw, 3.5rem); }
.contact-copy { max-width: calc(46rem + var(--gut) * 2); }
.cform { margin-top: clamp(24px, 3vw, 40px); }
.cline { font-weight: 600; font-size: clamp(1.2rem, 1.9vw, 1.75rem); line-height: 1.9; color: rgba(239,233,227, .9); }
.cline + .cline, .ctopics + .cline { margin-top: 6px; }
.ci { max-width: 100%; padding: 0 .15em; border: 0; border-bottom: 2px solid rgba(233,203,147, .45); border-radius: 0; background: none; color: var(--amber); font: inherit; line-height: 1.3; transition: border-color .3s; }
.ci::placeholder, .cmsg::placeholder { color: rgba(233,203,147, .5); font-weight: 400; }
.ci:focus, .cmsg:focus { outline: none; border-bottom-color: var(--amber); }
.ci:focus-visible, .cmsg:focus-visible { box-shadow: 0 6px 0 -3px rgba(245,162,10, .45); }
.ci.bad { border-bottom-color: #FF6B3D; animation: nudge .35s var(--out); }
@keyframes nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ctopics { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.cmsg { display: block; width: 100%; max-width: 40rem; margin-top: 18px; padding: 10px 0; border: 0; border-bottom: 2px solid rgba(233,203,147, .3); background: none; color: var(--sand); font: 300 1.05rem/1.6 'BVP', sans-serif; resize: none; overflow: hidden; }
.chp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform .actions { margin-top: 28px; }
.csend { border: 0; cursor: pointer; font-family: 'BVP', sans-serif; gap: 10px; }
.csend i { width: 9px; height: 9px; background: var(--espresso); transform: rotate(45deg); transition: transform .6s var(--out); }
.csend:hover i { transform: rotate(225deg); }
.busy .csend i { animation: spin 1s linear infinite; }
.sent .csend { background: var(--stone); cursor: default; }
.sent .csend:hover { transform: none; }
.sent .csend::before { display: none; }
.cform-msg { min-height: 1.6em; margin-top: 16px; font-size: .98rem; color: var(--stone); max-width: 40rem; }
.cform [disabled] { opacity: .6; }
.contact-copy h2 span { display: block; }
.contact-copy > p.unused { margin: 28px 0 40px; color: rgba(239,233,227, .82); font-weight: 300; font-size: 1.15rem; max-width: 32em; }
.contact .contact-meta { margin: 22px 0 0; font-size: .95rem; color: var(--stone); font-weight: 400; }

/* Footer */
.site-foot { background: var(--espresso); color: rgba(233,203,147, .8); border-top: 1px solid var(--line-dark); overflow: hidden; }
.foot-mark { font-weight: 800; font-size: 9.4vw; line-height: 1; letter-spacing: -.03em; white-space: nowrap; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(233,203,147, .3); padding: 4vw 0 2vw; }
.foot-row { display: flex; align-items: center; gap: 20px; padding: 24px var(--gut) 32px; font-size: .9rem; }
.foot-row img { width: 36px; opacity: .8; }
.foot-row p { flex: 1; }
.foot-row a { color: var(--stone); }

/* Màn hình nhỏ */
@media (max-width: 1080px) { .nav { display: none; } .head-end { margin-left: auto; } }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 88px; }
  .hero-stage { order: -1; width: min(100%, 460px); margin: -4% auto -2%; }
  .sec-head, .cap, .reel, .about { grid-template-columns: 1fr; }
  .cap-flip figure { order: 0; }
  .about-img { justify-self: start; max-width: 340px; }
  .contact-stage { top: 4%; right: auto; left: 50%; width: 62vw; transform: translateX(-50%); }
  .contact-copy { padding-top: 68vw; }
  .films-head, .game, .explorer, .caps3 { grid-template-columns: 1fr; }
  .stage-slot { display: none; }
  .trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 6px; }
  .tri { scroll-snap-align: center; }
  .lenses li { grid-template-columns: 1fr; }
  .rows .stage { margin: 2px 0 22px; }
  .row { padding: 15px 0; }
  .row-g { display: none; }
  .road { display: block; min-height: 0; }
  .road > img, .road > video { position: static; width: 100%; height: auto; -webkit-mask-image: linear-gradient(0deg, transparent, #000 30%); mask-image: linear-gradient(0deg, transparent, #000 30%); }
  .road-copy { padding-top: 0; padding-right: var(--gut); max-width: none; }
  .proj:first-child canvas { border-right: 0; border-bottom: 1px solid var(--line-dark); height: auto; }
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone { order: -1; width: min(260px, 64vw); }
  .contact-img::after { background: linear-gradient(0deg, var(--espresso) 20%, rgba(42,21,40, .7) 60%, rgba(42,21,40, .35) 100%); }
}
@media (max-width: 960px) { .stage-p { min-height: 0; } }
@media (max-width: 560px) {
  .proj canvas { aspect-ratio: 4 / 3; }
  .brand img { width: 124px; }
  .btn { width: 100%; }
  .head-end .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader { display: none; }
  .line > span, .hero .lead, .hero .actions, .scroll-cue, .roles { transform: none; opacity: 1; }
  .spiral path { stroke-dashoffset: 0; }
  .js [data-reveal], .js [data-clip] > * { opacity: 1; transform: none; clip-path: none; }
  .js .method { height: auto; }
  .js .method-pin { position: static; height: auto; padding: var(--sec) 0; }
  .js .track { display: grid; width: auto; }
  .js .tile { opacity: 1; transform: none; }
}
