/* 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: #2B1D14; --cocoa: #3A2416; --sand: #F4EADB; --stone: #D9B98A;
  --amber: #E8731C; --amber-hi: #F2893A; --copper: #A9542B; --taupe: #7A6656;
  --line-dark: rgba(217, 185, 138, .22); --line-light: rgba(58, 36, 22, .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(244, 234, 219, .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(43, 29, 20, .78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); 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(244, 234, 219, .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(232, 115, 28, .22), transparent 60%), radial-gradient(50vmax 40vmax at 85% 110%, rgba(169, 84, 43, .28), transparent 70%); transition: background-position .2s; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(217, 185, 138, .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: 32px 0 40px; max-width: 36em; font-weight: 300; font-size: clamp(1.02rem, 1.2vw, 1.18rem); line-height: 1.7; color: rgba(244, 234, 219, .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 canvas, .hero-stage .fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stage .fallback { object-fit: contain; transform: scale(.62); }
.hero-stage canvas { opacity: 0; transition: opacity .8s; }
.hero-stage.webgl canvas { opacity: 1; }
.hero-stage.webgl .fallback { visibility: hidden; }
.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%); } }

/* Băng đối tác */
.partners-band { background: var(--espresso); color: var(--sand); border-top: 1px solid var(--line-dark); padding: 36px 0 44px; overflow: hidden; }
.partners-band > p { padding: 0 var(--gut); color: rgba(217, 185, 138, .75); font-size: .92rem; margin-bottom: 18px; }
.marquee { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; }
.marquee li { display: flex; align-items: center; font-weight: 800; font-size: clamp(2rem, 4.6vw, 4.2rem); letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(217, 185, 138, .75); transition: color .4s; }
.marquee li:hover { color: var(--amber); -webkit-text-stroke-color: var(--amber); }
.marquee li::after { content: ''; width: .22em; height: .22em; margin: 0 .7em; background: var(--copper); transform: rotate(45deg); flex: none; }
@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: 0 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 { 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(43, 29, 20, .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(244, 234, 219, .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(244, 234, 219, .78); max-width: 30em; }
.method-bar { display: none; }
@media (min-width: 961px) {
  .js .method { height: 380vh; }
  .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: 0 var(--gut) var(--sec); }
.principle p { font-weight: 300; font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1.2; letter-spacing: -.02em; }
.principle span { display: block; }
.principle span:last-child { color: var(--amber); font-weight: 800; }

/* Đối tác */
.work { padding: var(--sec) var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.work-list li { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2.5fr) minmax(0, 5.5fr); gap: 8px 3vw; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line-light); }
.work-list li:last-child { border-bottom: 1px solid var(--line-light); }
.work-list li::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--out); }
.work-list li:hover::before { transform: scaleX(1); }
.work-list h3 { font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; transition: transform .6s var(--out), color .3s; }
.work-list li:hover h3 { transform: translateX(16px); color: var(--copper); }
.sector { color: var(--taupe); font-size: .95rem; }
.work-list p { color: rgba(43, 29, 20, .8); }

/* Người sáng lập */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #EFE2CF; }
.about-img { overflow: hidden; min-height: 100%; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); will-change: transform; }
.about-body { padding: var(--sec) var(--pad); max-width: 760px; }
.about-body h2 { margin-bottom: 32px; }
.about-body > p { color: rgba(43, 29, 20, .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(169, 84, 43, .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 { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; animation: drift 28s ease-in-out infinite alternate; }
.contact-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--espresso) 0%, rgba(43, 29, 20, .88) 38%, rgba(43, 29, 20, .15) 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(2.2rem, 5vw, 4.6rem); }
.contact-copy h2 span { display: block; }
.contact-copy > p { margin: 28px 0 40px; color: rgba(244, 234, 219, .82); font-weight: 300; font-size: 1.15rem; max-width: 32em; }
.contact .contact-meta { margin: 40px 0 0; font-size: .95rem; color: var(--stone); font-weight: 400; }

/* Footer */
.site-foot { background: var(--espresso); color: rgba(217, 185, 138, .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(217, 185, 138, .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 { aspect-ratio: 3 / 2; }
  .work-list li { grid-template-columns: 1fr; gap: 4px; padding: 24px 0; }
  .contact-img::after { background: linear-gradient(0deg, var(--espresso) 20%, rgba(43, 29, 20, .7) 60%, rgba(43, 29, 20, .35) 100%); }
}
@media (max-width: 560px) {
  .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 { 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; }
}
