/* Merlion Venture Capital — nền đen, tím #7b70f4 chuyển cam #e87237 */
:root { --purple: #7b70f4; --orange: #e87237; --grad: linear-gradient(90deg, #7b70f4, #e87237); --ink: #fff; --muted: #b9bccb; --line: rgba(255, 255, 255, 0.12); --pad: max(calc((100vw - 1180px) / 2), 22px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #000; color: var(--ink); font-family: "Open Sans", system-ui, sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { position: relative; width: min(1180px, 100% - 44px); margin: 0 auto; }
.center { text-align: center; }
section[id] { scroll-margin-top: 72px; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform: scaleX(0); transform-origin: left; background: var(--grad); box-shadow: 0 0 14px rgba(232, 114, 55, 0.7); }

/* ===== nav (đo từ bản gốc) ===== */
body { padding-top: 59px; }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 59px; background: #000; }
.nav-in { position: relative; width: 960px; height: 100%; margin: 0 auto; }
.logo { position: absolute; left: 0; top: 9px; width: 122px; height: 41px; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.links a { position: absolute; top: 9px; height: 40px; line-height: 40px; text-align: center; font-size: 14px; font-weight: 700; color: #fff; transition: color 0.25s; }
.links .n1 { left: 222px; width: 135px; } .links .n2 { left: 359px; width: 141px; }
.links a::after { content: ""; position: absolute; left: 30%; right: 70%; bottom: 6px; height: 2px; background: var(--grad); transition: left 0.3s, right 0.3s; }
.links a:hover::after, .links a.on::after { left: 30%; right: 30%; }
.links a:hover, .links a.on { color: #fff; }
.burger { display: none; position: absolute; right: 7px; top: 10px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 26px; height: 3px; border-radius: 2px; background: #fff; transition: transform 0.25s, opacity 0.25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== hero: đặt tuyệt đối đúng toạ độ bản gốc ===== */
.hero { position: relative; height: 935px; overflow: hidden; background: #000; }
.stage { position: relative; width: 960px; height: 935px; margin: 0 auto; }
.a { position: absolute; max-width: none; display: block; }
.ttl { margin: 0; font-size: 0; }
.line4 { left: -455px; top: -25px; width: 2080px; height: 376px; }
.lion { left: -287px; top: 46px; width: 509px; height: 813px; }
.line3 { left: 83px; top: 193px; width: 1453px; height: 306px; }
.line2 { left: -384px; top: 72px; width: 2080px; height: 290px; }
.t1 { left: 255px; top: 374px; width: 493px; height: 86px; }
.line1 { left: -334px; top: 544px; width: 1774px; height: 284px; }
.t2 { left: 255px; top: 474px; width: 705px; height: 64px; }
.about { left: 255px; top: 570px; width: 446px; font-size: 14px; line-height: 25.2px; color: #fff; }
.hl { color: #e87237; }
.cue { left: 255px; top: 796px; width: 31px; height: 71px; }
.cue svg { position: absolute; left: 0; width: 31px; height: 52px; }
.cue .c1 { top: 20px; } .cue .c2 { top: 0; }
.cue svg { animation: cue 1.8s ease-in-out infinite; } .cue .c2 { animation-delay: 0.25s; }
@keyframes cue { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.stage > * { opacity: 0; transition: opacity 1s ease; }
.ready .stage > * { opacity: 1; }
.progress { top: 59px; }

@media (max-width: 768px) {
  body { padding-top: 71px; }
  .nav { height: 71px; }
  .nav-in { width: 420px; max-width: 100%; }
  .logo { left: 138px; top: 9px; width: 160px; height: 53px; }
  .burger { display: flex; }
  .links { position: absolute; top: 71px; left: 0; right: 0; display: flex; flex-direction: column; background: #000; border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; }
  .links.open { opacity: 1; visibility: visible; transform: none; }
  .links a { position: static; width: auto !important; height: auto; line-height: 1; padding: 18px 25px; text-align: left; font-size: 17px; border-bottom: 1px solid var(--line); }
  .links a::after { display: none; }
  .hero { height: 1057px; }
  .stage { width: 420px; height: 1057px; transform-origin: top left; }
  .line4 { left: -321px; top: -88px; width: 1273px; height: 230px; }
  .lion { left: 47px; top: 6px; width: 326px; height: 521px; }
  .line3 { left: 442px; top: 212px; width: 732px; height: 154px; }
  .line2 { left: -163px; top: 413px; width: 1174px; height: 164px; }
  .t1 { left: 10px; top: 483px; width: 400px; height: 70px; }
  .line1 { left: -29px; top: 557px; width: 700px; height: 112px; }
  .t2 { left: 10px; top: 562px; width: 400px; height: 37px; }
  .about { left: 25px; top: 634px; width: 370px; font-size: 16px; line-height: 28.8px; }
  .cue { left: 194px; top: 963px; }
  .progress { top: 71px; }
}

/* ===== criteria ===== */
.criteria { position: relative; padding: 110px 0 120px; background: #000 url("assets/bg3-20220420194453.png") center bottom / cover no-repeat; isolation: isolate; }
.criteria::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.78) 100%); }
.criteria .titles { align-items: center; gap: 10px; }
.criteria .titles img:first-child { width: min(78%, 520px); }
.criteria .titles .t4 { width: min(86%, 620px); }
.crit-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.crit { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 34px 20px 32px; text-align: center; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), border-color 0.3s, box-shadow 0.3s; }
.crit::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(135deg, rgba(123, 112, 244, 0.7), transparent 40%, rgba(232, 114, 55, 0.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask-composite: exclude; opacity: 0.55; transition: opacity 0.3s; }
.crit:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(123, 112, 244, 0.6); }
.crit:hover::before { opacity: 1; }
.crit img { width: 84px; height: 84px; transition: transform 0.5s cubic-bezier(.2, .7, .2, 1); }
.crit:hover img { transform: scale(1.12) rotate(-5deg); }
.crit h3 { font-size: 19px; font-weight: 700; line-height: 1.35; }

/* ===== contact: ảnh bắt tay làm nền, chữ lớn gradient, biểu mẫu kính nổi ===== */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.contact { position: relative; overflow: hidden; isolation: isolate; padding: 130px 0 140px; background: #000; }
.c-bg { position: absolute; inset: 0; z-index: -3; }
.c-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transform: scale(1.06); animation: kb 26s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.06) translate3d(-1%, 0, 0); } to { transform: scale(1.16) translate3d(1%, -1%, 0); } }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 28%, rgba(0, 0, 0, 0.55) 70%, #000 100%), radial-gradient(900px 500px at 50% 0%, rgba(123, 112, 244, 0.35), transparent 70%); }
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.o1 { width: 420px; height: 420px; left: -120px; top: 30%; background: rgba(123, 112, 244, 0.38); animation: orb 14s ease-in-out infinite alternate; }
.o2 { width: 380px; height: 380px; right: -100px; bottom: 6%; background: rgba(232, 114, 55, 0.3); animation: orb 17s ease-in-out infinite alternate-reverse; }
@keyframes orb { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(50px, -40px, 0); } }
.contact .wrap { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.c-title { text-align: center; font-size: clamp(32px, 4.8vw, 62px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; background: linear-gradient(90deg, #7b70f4 0%, #c473a0 45%, #e87237 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sh 8s linear infinite alternate; }
@keyframes sh { to { background-position: 100% center; } }
.form { position: relative; width: min(760px, 100%); display: flex; flex-direction: column; gap: 22px; padding: 44px 44px 46px; border-radius: 32px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 50px 100px -40px rgba(123, 112, 244, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.form::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--ang), rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 55%, #7b70f4 72%, #e87237 88%, rgba(255, 255, 255, 0.1) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask-composite: exclude; animation: spin 8s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }
.form h3 { font-size: 26px; font-weight: 800; letter-spacing: 0.01em; }
.form h3::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 10px; border-radius: 3px; background: var(--grad); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.f { position: relative; display: block; }
.f input, .f textarea { width: 100%; padding: 26px 18px 10px; border: 0; border-bottom: 2px solid rgba(255, 255, 255, 0.18); border-radius: 12px 12px 0 0; background: rgba(0, 0, 0, 0.4); color: #fff; font: inherit; font-size: 16px; outline: none; resize: vertical; transition: background 0.25s, border-color 0.25s; }
.f textarea { min-height: 130px; }
.f span { position: absolute; left: 18px; top: 17px; font-size: 16px; color: #9a9db3; pointer-events: none; transition: transform 0.25s, color 0.25s, font-size 0.25s; transform-origin: left top; }
.f input:focus + span, .f input:not(:placeholder-shown) + span, .f textarea:focus + span, .f textarea:not(:placeholder-shown) + span { transform: translateY(-11px); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: #b9b2ff; }
.f::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--grad); transition: right 0.35s; }
.f:focus-within::after { right: 0; }
.f input:focus, .f textarea:focus { background: rgba(123, 112, 244, 0.12); }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; align-self: stretch; margin-top: 4px; padding: 19px 30px; border: 0; border-radius: 16px; background: var(--grad); color: #fff; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0.03em; cursor: pointer; box-shadow: 0 18px 40px -14px rgba(232, 114, 55, 0.75); transition: transform 0.25s, box-shadow 0.25s; }
.btn b { font-weight: 700; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -14px rgba(232, 114, 55, 0.95); }
.btn:hover svg { transform: translateX(5px); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: skewX(-18deg); }
.btn:hover::after { animation: sweep 0.9s ease-out 1; }
@keyframes sweep { from { left: -60%; } to { left: 140%; } }
@media (max-width: 700px) { .contact { padding: 90px 0 100px; } .contact .wrap { gap: 38px; } .form { padding: 30px 22px 32px; gap: 18px; border-radius: 26px; } .row { grid-template-columns: 1fr; gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .c-bg img, .orb, .c-title, .form::before { animation: none; } }

/* ===== footer ===== */
.foot { padding: 44px 0 40px; border-top: 1px solid var(--line); text-align: center; background: #000; }
.social { display: flex; justify-content: center; gap: 22px; margin-bottom: 22px; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; transition: transform 0.3s; }
.social a:hover { transform: translateY(-4px) scale(1.1); }
.social svg { width: 34px; height: 34px; fill: var(--purple); transition: fill 0.3s; }
.social a:hover svg { fill: var(--orange); }
.foot p { color: var(--muted); font-size: 14px; }

/* hiện dần */
.reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform 0.9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), filter 0.9s var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* ===== responsive ===== */
@media (max-width: 980px) {
  .crit-grid { grid-template-columns: repeat(2, 1fr); }
    }
@media (max-width: 860px) {
  .links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--pad) 18px; background: rgba(0, 0, 0, 0.97); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; }
  .links.open { opacity: 1; visibility: visible; transform: none; }
  .links a { padding: 16px 2px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .links a::after { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 520px) {
  .crit-grid { gap: 14px; }
  .crit { padding: 26px 12px 24px; } .crit img { width: 68px; height: 68px; } .crit h3 { font-size: 16px; }
  .logo-card { width: 100%; max-width: 280px; }
  .form { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal, .stage > * { opacity: 1; transform: none; filter: none; } }

/* ===== chuyển động thêm (không đổi toạ độ hero) ===== */
.stage { z-index: 1; }
/* sư tử nổi lên xuống và quầng sáng thở */
.lion { animation: lf 8s ease-in-out infinite, lg 6s ease-in-out infinite; }
@keyframes lf { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes lg { 0%, 100% { filter: drop-shadow(0 0 18px rgba(123, 112, 244, 0.22)); } 50% { filter: drop-shadow(0 0 48px rgba(232, 114, 55, 0.4)); } }
/* các đường lưới trôi chậm, nhịp sáng lệch pha */
.line4 { animation: ld 22s ease-in-out infinite alternate, lp 7s ease-in-out infinite; }
.line3 { animation: ld 26s ease-in-out infinite alternate-reverse, lp 8s ease-in-out infinite 1.5s; }
.line2 { animation: ld 24s ease-in-out infinite alternate, lp 9s ease-in-out infinite 3s; }
.line1 { animation: ld 28s ease-in-out infinite alternate-reverse, lp 6.5s ease-in-out infinite 4.5s; }
@keyframes ld { from { translate: -1.2% -0.8%; } to { translate: 1.2% 1.2%; } }
@keyframes lp { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
/* hai tiêu đề lớn: quầng sáng nhẹ chạy lệch pha */
.t1 { animation: tg 5.5s ease-in-out infinite; } .t2 { animation: tg 5.5s ease-in-out infinite 0.8s; }
@keyframes tg { 0%, 100% { filter: drop-shadow(0 0 0 rgba(123, 112, 244, 0)); } 50% { filter: drop-shadow(0 0 22px rgba(232, 114, 55, 0.35)); } }
/* mũi tên cuộn: nhảy xuống */
.cue svg { animation: cue 1.8s ease-in-out infinite, hop 1.8s ease-in-out infinite; }
@keyframes hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* tiêu chí: nền biểu đồ trôi theo cuộn, biểu tượng nổi lệch pha, đèn rọi theo chuột */
.criteria { background-position: center calc(100% + var(--py, 0px)); }
.crit img { animation: cf 5.5s ease-in-out infinite; }
.crit:nth-child(2n) img { animation-delay: -1.6s; } .crit:nth-child(3n) img { animation-delay: -3.1s; } .crit:nth-child(5n) img { animation-delay: -4.2s; }
@keyframes cf { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.crit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(123, 112, 244, 0.28), rgba(232, 114, 55, 0.1) 60%, transparent 75%); transition: opacity 0.3s; }
.crit:hover::after { opacity: 1; }
/* đường kẻ gradient chạy ở đầu chân trang */
.foot { position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, #7b70f4, #e87237, transparent); background-size: 200% 100%; animation: fl 5s linear infinite; }
@keyframes fl { to { background-position: -200% 0; } }
.social a { animation: sp 4s ease-in-out infinite; } .social a:nth-child(2) { animation-delay: 0.5s; } .social a:nth-child(3) { animation-delay: 1s; }
@keyframes sp { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@media (prefers-reduced-motion: reduce) { .lion, .line1, .line2, .line3, .line4, .t1, .t2, .crit img, .social a, .foot::before { animation: none !important; } }

/* ánh sáng chạy dọc theo các đường kẻ: bản sao của ảnh đường kẻ, chỉ lộ ra trong một dải sáng đang trôi */
.a.glow { opacity: 1; filter: brightness(1.8) drop-shadow(0 0 3px #c4b8ff) drop-shadow(0 0 9px #e87237) drop-shadow(0 0 16px #7b70f4); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 50%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 50%, transparent 100%); -webkit-mask-size: 22% 100%; mask-size: 22% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; pointer-events: none; }
.a.line4.glow { animation: ld 22s ease-in-out infinite alternate, run 7s linear infinite; }
.a.line3.glow { animation: ld 26s ease-in-out infinite alternate-reverse, run 8.5s linear 2s infinite; }
.a.line2.glow { animation: ld 24s ease-in-out infinite alternate, run 7.5s linear 4s infinite; }
.a.line1.glow { animation: ld 28s ease-in-out infinite alternate-reverse, run 9s linear 1s infinite; }
@keyframes run { from { -webkit-mask-position: -30% 0; mask-position: -30% 0; } to { -webkit-mask-position: 130% 0; mask-position: 130% 0; } }
/* hai tiêu đề (là ảnh) hiện dần từ trái sang phải theo từng nấc, giống gõ chữ */
.t1, .t2 { clip-path: inset(0 100% 0 0); }
.ready .t1 { animation: tg 5.5s ease-in-out infinite, wipe1 1s steps(7, end) 0.3s forwards; }
.ready .t2 { animation: tg 5.5s ease-in-out infinite 0.8s, wipe2 1.2s steps(14, end) 1.2s forwards; }
@keyframes wipe1 { to { clip-path: inset(0 0 0 0); } }
@keyframes wipe2 { to { clip-path: inset(0 0 0 0); } }
.about .tcaret { display: inline-block; width: 0.5em; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: #e87237; animation: caret 0.9s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .t1, .t2 { clip-path: none; animation: none !important; } .line.glow { display: none; } }
