:root {
  color-scheme: light;
  --bg: #F0EEE6; --surface: #E2DCCE; --surface-2: #FAF9F5;
  --text: #141413; --muted: #5F5E57; --line: rgba(20,20,19,.13); --hover: rgba(20,20,19,.06);
  --accent: #C96442; --accent-ink: #9A4527; --accent-soft: rgba(201,100,66,.12); --done: #3D7A52;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { position: relative; overflow-x: clip; min-height: 100vh; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
.wm { letter-spacing: -.02em; } .wm em { font-style: normal; background: linear-gradient(100deg, #C96442, #9A4527); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 14px; font-weight: 600; font-size: .95rem; background: var(--surface); color: var(--text); transition: background .15s; }
.btn:hover { background: #D9D2C2; }
.btn.pri { background: var(--accent-ink); color: #fff; }
.btn.pri:hover { background: #7F381F; }
.btn:focus-visible, .card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hero { padding: 56px 0 40px; max-width: 720px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
h1 { margin-top: 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; }
.lead { margin-top: 18px; font-family: var(--serif); font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; letter-spacing: -.01em; }
.sec-sub { margin-top: 6px; color: var(--muted); font-size: .95rem; }
#sites { padding: 24px 0 16px; scroll-margin-top: 16px; }
.cards { display: grid; gap: 14px; margin-top: 20px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); transition: transform .15s, border-color .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(20,20,19,.07); }
.card .code { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: -.01em; }
.card .full { margin-top: 2px; color: var(--accent-ink); font-weight: 600; font-size: .9rem; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface); color: var(--muted); }
.tag.on { background: var(--accent-soft); color: var(--accent-ink); }
.go { font-weight: 600; font-size: .92rem; color: var(--accent-ink); }
.card:hover .go { text-decoration: underline; }
.empty { margin-top: 20px; padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 20px; }
.skel { height: 210px; border-radius: 20px; background: var(--surface); opacity: .55; }

.how { padding: 40px 0 24px; }
.steps { display: grid; gap: 14px; margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { padding: 20px; border-radius: 18px; background: var(--surface); }
.step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: 12px; }
.step h3 { font-size: 1.02rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .92rem; }

.authors { padding: 0 0 16px; }
.people { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.person { display: flex; align-items: center; gap: 16px; flex: 1 1 260px; max-width: 360px; padding: 16px 20px 16px 16px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.person img { width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface); box-shadow: 0 0 0 3px var(--surface-2), 0 0 0 4px var(--accent); }
.person figcaption { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person strong { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: -.01em; }
.person span { color: var(--accent-ink); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.amp { font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--accent); }
@media (max-width: 640px) { .amp { display: none; } .person { max-width: none; flex-basis: 100%; } }

.hlink { padding: 8px 14px; border-radius: 12px; font-weight: 600; font-size: .92rem; color: var(--accent-ink); }
.hlink:hover { background: var(--hover); }
.contact { padding: 24px 0 8px; scroll-margin-top: 16px; }
.contact-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px 28px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.contact-box > div { flex: 1 1 320px; }
.contact-box .btn { flex: none; }
@media (max-width: 560px) { .contact-box { padding: 20px; } .contact-box .btn { width: 100%; } }

.results { padding: 8px 0 16px; }
.rgrid { display: grid; gap: 14px; margin-top: 20px; grid-template-columns: repeat(6, 1fr); }
.rgrid .rcard { grid-column: span 2; }
.rgrid .rcard:nth-child(n+4) { grid-column: span 3; }
.rcard { margin: 0; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); transition: transform .15s, border-color .15s, box-shadow .15s; }
.rcard:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(20,20,19,.07); }
.rshot { display: block; width: 100%; height: 150px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); cursor: zoom-in; overflow: hidden; }
.rshot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.rshot:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rcard figcaption { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 18px; }
.rcode { color: var(--accent-ink); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.rcard strong { font-family: var(--serif); font-weight: 500; font-size: 1.08rem; line-height: 1.3; }
.rscore { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.rscore b { color: var(--text); font-size: 1.35rem; font-family: var(--serif); font-weight: 500; }
.rscore i { margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(61,122,82,.14); color: var(--done); font-style: normal; font-size: .75rem; font-weight: 700; }
.rdlg { margin: auto; max-width: min(92vw, 760px); max-height: 92vh; padding: 14px; border: 0; border-radius: 18px; background: var(--surface-2); color: var(--text); overflow: auto; }
.rdlg::backdrop { background: rgba(20,20,19,.6); }
.rdlg img { display: block; width: 100%; height: auto; border-radius: 10px; }
.rdlg p { margin-top: 10px; text-align: center; font-weight: 600; font-size: .95rem; }
.rclose { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(20,20,19,.7); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
@media (max-width: 560px) { .rgrid { grid-template-columns: 1fr 1fr; gap: 10px; } .rgrid .rcard, .rgrid .rcard:nth-child(n+4) { grid-column: auto; } .rgrid .rcard:last-child { grid-column: span 2; } .rshot { height: 110px; } .rcard figcaption { padding: 12px 14px 14px; } .rcard strong { font-size: .95rem; } }

.anote { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(201,100,66,.25); color: var(--text); font-size: .92rem; line-height: 1.55; }
.anote svg { flex: none; margin-top: 2px; color: var(--accent-ink); }
.anote a { color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.reqf { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; position: relative; }
.reqf input[type=email] { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border: 1.5px solid rgba(20,20,19,.18); border-radius: 10px; background: #FAF9F5; color: #141413; font: inherit; font-size: .95rem; }
.reqf input[type=email]:focus { outline: none; border-color: #C96442; box-shadow: 0 0 0 3px rgba(201,100,66,.15); }
.reqf .hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.reqf button { flex: none; padding: 10px 16px; border: 0; border-radius: 10px; background: #9A4527; color: #fff; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.reqf button:hover { background: #7F381F; } .reqf button:disabled { opacity: .6; cursor: default; }
.reqmsg { display: block; margin-top: 8px; font-weight: 600; font-size: .88rem; } .reqmsg.ok { color: #3D7A52; } .reqmsg.err { color: #B3261E; }

.sponsor { padding: 16px 0 4px; }
.sp-box { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 18px 22px; border-radius: 20px; background: var(--surface-2); border: 1px dashed rgba(201,100,66,.45); }
.sp-text { flex: 1 1 auto; min-width: 0; }
.sp-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sp-box h2 { margin-top: 8px; font-size: 1.25rem; }
.sp-box .sec-sub { margin-top: 4px; font-size: .9rem; }
.sp-qr { flex: none; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: zoom-in; line-height: 0; }
.sp-qr img { width: 120px; height: 120px; display: block; border-radius: 8px; }
.sp-qr:hover { border-color: var(--accent); }
@media (max-width: 560px) { .sp-box { padding: 16px; gap: 14px; } .sp-qr img { width: 96px; height: 96px; } }

footer { margin-top: 32px; padding: 24px 0 36px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--muted); font-size: .85rem; }

@media (max-width: 560px) {
  .hero { padding: 32px 0 28px; }
  .cta .btn { flex: 1; }
  .card { padding: 18px; }
}

/* ===== Motion (chỉ chạy khi JS bật và người dùng không tắt animation) ===== */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes drift-a { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(40px, 30px, 0) scale(1.08); } }
@keyframes drift-b { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-36px, 26px, 0) scale(1.06); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(201,100,66,.35); } 100% { box-shadow: 0 0 0 14px rgba(201,100,66,0); } }

.blobs { position: absolute; inset: 0 0 auto 0; height: 640px; overflow: hidden; pointer-events: none; z-index: 0; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.blobs i:nth-child(1) { width: 380px; height: 380px; left: -90px; top: 60px; background: #E8B49C; animation: drift-a 18s ease-in-out infinite; }
.blobs i:nth-child(2) { width: 320px; height: 320px; right: -60px; top: 160px; background: #D9C9A6; animation: drift-b 22s ease-in-out infinite; }
.wrap { position: relative; z-index: 1; }

.brand img { animation: ring 2.8s ease-out 1.2s 2; }

.hl { position: relative; font-style: normal; white-space: nowrap; }
.hl svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .32em; overflow: visible; }
.hl path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; }

.js .hero > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 120ms + 100ms); }
.js .hero .hl path { animation: draw 1s cubic-bezier(.6,0,.2,1) 1.1s forwards; }
.js header { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .step.in .n { animation: pop .5s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i, 0) * 90ms + 250ms); }

.skel { background: linear-gradient(100deg, var(--surface) 30%, #ECE6D8 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; opacity: .8; }

.btn { transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.pri:hover { box-shadow: 0 6px 16px rgba(154,69,39,.28); }
.btn:active { transform: translateY(0); }
.go { display: inline-block; transition: transform .2s; }
.card:hover .go { transform: translateX(4px); text-decoration: none; }
.card .code { transition: color .2s; }
.card:hover .code { color: var(--accent-ink); }
.tag.on { transition: background .2s; }
.card:hover .tag.on { background: rgba(201,100,66,.2); }

@media (prefers-reduced-motion: reduce) {
  .blobs i, .brand img, .skel { animation: none !important; }
  .js .hero > *, .js header, .js .step.in .n { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hl path { stroke-dashoffset: 0; animation: none !important; }
}

/* Video intro */
html.intro-on, html.intro-on body { overflow: hidden; }
#intro { position: fixed; inset: 0; z-index: 1000; background: #0E0D0C; overflow: hidden; clip-path: inset(0 0 0 0); transition: clip-path .85s cubic-bezier(.7, 0, .2, 1); }
#intro[hidden] { display: none; }
html.intro-on #intro[hidden] { display: block; }   /* có mặt ngay từ khung hình đầu tiên, trước khi js/intro.js tải xong */
#intro.out { clip-path: inset(0 0 100% 0); pointer-events: none; }
#intro::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(circle at 50% 50%, rgba(217,119,79,.30), rgba(217,119,79,.08) 32%, transparent 60%); animation: introGlow 3.2s ease-in-out infinite; }
/* ---- màn logo (mở đầu) ---- */
.intro-splash { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 22px; color: #fff; transition: opacity .8s ease, transform 1s cubic-bezier(.7, 0, .2, 1), filter .8s ease; }
#intro.ready .intro-splash { opacity: 0; transform: scale(1.7); filter: blur(12px); pointer-events: none; z-index: 0; }
.intro-fx { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; }
.intro-fx .ring { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid rgba(244,162,122,.7); opacity: 0; animation: introRing 1.6s cubic-bezier(.2, .6, .3, 1) 1.45s both; }
.intro-fx .ring.r2 { animation-delay: 1.65s; border-color: rgba(248,207,176,.5); } .intro-fx .ring.r3 { animation-delay: 1.85s; border-color: rgba(244,162,122,.35); }
.intro-fx .dust { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #F8CFB0; opacity: 0; box-shadow: 0 0 8px rgba(248,207,176,.8); animation: introDust linear infinite; }
.intro-mark { position: relative; width: 112px; height: 112px; overflow: visible; filter: drop-shadow(0 14px 44px rgba(217,119,79,.5)); animation: introMark 1s cubic-bezier(.34, 1.56, .64, 1) .1s both; }
.intro-mark .m-bar, .intro-mark .m-stem, .intro-mark .m-node { stroke-dasharray: 1; stroke-dashoffset: 1; animation: introDraw .5s cubic-bezier(.6, 0, .2, 1) both; }
.intro-mark .m-bar { animation-delay: .55s; } .intro-mark .m-stem { animation-delay: .9s; animation-duration: .55s; } .intro-mark .m-node { animation-delay: 1.35s; animation-duration: .35s; }
.intro-mark .m-spark { transform-box: fill-box; transform-origin: center; animation: introSpark .9s cubic-bezier(.34, 1.56, .64, 1) 1.5s both; }
.intro-splash .wm { position: relative; display: inline-flex; font: 700 2.1rem/1 var(--sans); letter-spacing: -.02em; overflow: hidden; padding: 6px 4px; }
.intro-splash .wm b { display: inline-block; font-weight: 700; opacity: 0; animation: introLetter .7s cubic-bezier(.2, .8, .2, 1) calc(1s + var(--i) * 55ms) both; }
.intro-splash .wm em { display: inline-flex; font-style: normal; background: linear-gradient(100deg, #F4A27A, #FBD9C0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-splash .wm::after { content: ""; position: absolute; top: 0; bottom: 0; width: 38%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-18deg); mix-blend-mode: overlay; animation: introShine .9s ease-in-out 1.75s both; }
.intro-tag { font: 600 .78rem/1 var(--sans); text-transform: uppercase; color: rgba(248,207,176,.85); animation: introTag 1s cubic-bezier(.2, .8, .2, 1) 1.55s both; }
/* ---- video: mống mắt mở ra ---- */
.intro-stage { position: absolute; inset: 0; z-index: 1; clip-path: circle(0% at 50% 50%); transition: clip-path 1.25s cubic-bezier(.7, 0, .2, 1); pointer-events: none; }
#intro.ready .intro-stage { clip-path: circle(80% at 50% 50%); }
#intro video { width: 100%; height: 100%; object-fit: contain; display: block; background: #0E0D0C; pointer-events: none; transform: scale(1.25); transition: transform 2.2s cubic-bezier(.2, .8, .2, 1), filter .7s ease; }
#intro.ready video { transform: none; }
/* ---- kết thúc: video mờ, logo bật lại -> phóng to phủ kín -> cuộn lên ---- */
#intro.outro video { filter: brightness(.35) blur(7px); transform: scale(1.08); }
#intro.outro .intro-splash { opacity: 1; transform: none; filter: none; z-index: 3; transition: none; }
#intro.outro .intro-splash .wm, #intro.outro .intro-tag, #intro.outro .intro-fx { opacity: 0; transition: opacity .2s; animation: none; }
#intro.outro .intro-mark { animation: introOutroPop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
#intro.outro .intro-mark .m-bar, #intro.outro .intro-mark .m-stem, #intro.outro .intro-mark .m-node { animation: none; stroke-dashoffset: 0; }
#intro.outro .intro-mark .m-spark { animation: none; }
#intro.flood .intro-mark { animation: introFlood .85s cubic-bezier(.75, 0, .25, 1) both; }
#intro.outro .intro-bar, #intro.outro .intro-ctl { opacity: 0; transition: opacity .2s; }
/* ---- điều khiển ---- */
.intro-bar, .intro-ctl { opacity: 0; transition: opacity .6s ease .5s; z-index: 4; } #intro.ready .intro-bar, #intro.ready .intro-ctl, #intro:not(.ready):not(.outro) .intro-ctl { opacity: 1; }
.intro-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.14); }
.intro-bar i { display: block; height: 100%; background: linear-gradient(90deg, #D9774F, #F8CFB0); transform: scaleX(0); transform-origin: left; }
.intro-ctl { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px)); display: flex; gap: 8px; align-items: center; }
.intro-ctl button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(14,13,12,.55); color: #fff; font: 600 .85rem/1 var(--sans); cursor: pointer; backdrop-filter: blur(8px); transition: background .2s, border-color .2s; }
.intro-ctl button:hover { background: rgba(14,13,12,.8); border-color: rgba(255,255,255,.5); }
.intro-ctl button:focus-visible { outline: 2px solid #F8CFB0; outline-offset: 2px; }
#introSound { width: 40px; padding: 0; justify-content: center; } #introSound .on { display: none; } #intro.sound #introSound .on { display: inline; } #intro.sound #introSound .off { display: none; }
#intro.ready:not(.sound) #introSound { animation: introNudge 1.8s ease-in-out infinite; border-color: rgba(244,162,122,.8); }
#intro.outro .intro-bar, #intro.outro .intro-ctl { opacity: 0 !important; transition: opacity .2s; pointer-events: none; }
#intro.flood .intro-mark g, #intro.flood .intro-mark .m-spark { opacity: 0; transition: opacity .3s ease; }   /* nét trắng mờ đi để màn hình phủ trọn màu cam */
/* trang chủ chờ intro xong mới chạy animation vào (chạy ngay lúc lớp phủ cuộn lên) */
html.intro-on .hero > *, html.intro-on header, html.intro-on .hero .hl path, html.intro-on .brand img { animation-play-state: paused; }
@keyframes introGlow { 50% { transform: scale(1.12); opacity: .75; } }
@keyframes introMark { from { opacity: 0; transform: scale(.35) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introSpark { from { opacity: 0; transform: scale(0) rotate(-120deg); } 60% { opacity: 1; transform: scale(1.5) rotate(10deg); } to { opacity: 1; transform: none; } }
@keyframes introRing { from { opacity: .9; transform: scale(.55); } to { opacity: 0; transform: scale(5.5); } }
@keyframes introLetter { from { opacity: 0; transform: translateY(70%) scale(.9); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes introShine { from { left: -50%; } to { left: 130%; } }
@keyframes introTag { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; letter-spacing: .26em; } }
@keyframes introDust { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) * -1)); } }
@keyframes introOutroPop { from { transform: scale(.55); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes introFlood { from { transform: none; } to { transform: scale(60); } }
@keyframes introNudge { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { #intro, .intro-stage, #intro video, .intro-splash { transition: none; } #intro *, #intro::before { animation: none !important; } }
/* lưới an toàn: nếu intro.js không chạy được thì sau 30 s tự gỡ lớp phủ và cho cuộn trang */
html.intro-on #intro { animation: introGiveUp 0s 30s forwards; }
html.intro-on { animation: introUnlock 0s 30s forwards; }
@keyframes introGiveUp { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes introUnlock { to { overflow: visible; } }

/* AI certifications table */
.certs { padding: 40px 0 8px; }
.tbl-wrap { margin-top: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); overflow: hidden; }
.ctable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ctable thead th { padding: 12px 18px; text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.ctable .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ctable td { padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
.ctable .num { width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ctable .cn { font-weight: 600; }
.ctable .lv { width: 150px; }
.ctable .lk { width: 110px; text-align: right; white-space: nowrap; }
.ctable tbody tr:not(.vrow):hover td { background: var(--accent-soft); }
.ctable .vrow th { padding: 14px 18px 10px; text-align: left; font-size: 1.02rem; font-weight: 700; background: var(--bg); border-top: 1px solid var(--line); }
.ctable tbody:first-of-type .vrow th { border-top: 0; }
.ctable .vrow small { margin-left: 10px; font-weight: 500; font-size: .78rem; color: var(--muted); }
.vmark { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 8px; color: #fff; font-size: .8rem; font-weight: 800; vertical-align: 1px; background: var(--accent); }
.v-aws .vmark { background: #B7791F; } .v-anthropic .vmark { background: var(--accent-ink); } .v-microsoft .vmark { background: #3A6EA5; }
.lvl { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface); color: var(--muted); }
.lvl.l-fundamentals, .lvl.l-foundations, .lvl.l-practitioner { background: rgba(61,122,82,.14); color: var(--done); }
.lvl.l-associate, .lvl.l-certified { background: var(--accent-soft); color: var(--accent-ink); }
.lvl.l-professional, .lvl.l-expert { background: rgba(58,40,100,.12); color: #5A3E9A; }
.ctable .lk a { display: inline-flex; gap: 4px; align-items: center; padding: 6px 12px; border-radius: 10px; font-weight: 600; font-size: .86rem; color: var(--accent-ink); background: var(--accent-soft); transition: background .15s, color .15s; }
.ctable .lk a:hover { background: var(--accent); color: #fff; }
.ctable .lk a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .ctable thead { display: none; }
  .ctable, .ctable tbody, .ctable tr, .ctable td, .ctable th { display: block; }
  .ctable tr:not(.vrow) { display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
  .ctable td { padding: 0; border: 0; width: auto; }
  .ctable .num { grid-row: 1 / span 2; align-self: start; padding-top: 2px; }
  .ctable .cn { grid-column: 2 / 4; }
  .ctable .lv { grid-column: 2; grid-row: 2; }
  .ctable .lk { grid-column: 3; grid-row: 2; }
  .ctable tbody tr:not(.vrow):hover td { background: none; }
}


/* ===== Giao diện tối kiểu slide (đồng bộ với các site khoá học): nền xanh tím than + quầng tím / cam, thẻ viền phát sáng, nhãn mono ===== */
:root {
  color-scheme: dark;
  --bg: #191825; --surface: #232232; --surface-2: #2A2939; --text: #F1EEF7; --muted: #AEAABD;
  --line: rgba(255,255,255,.12); --hover: rgba(255,255,255,.07);
  --accent: #F2994A; --accent-ink: #F7B26B; --accent-soft: rgba(242,153,74,.14); --done: #3FC7A0;
  --glow-0: #8B7CF6; --glow-1: #F2994A; --glow-2: #3FC7A0; --glow-3: #5B8DEF; --glow-4: #F0566A;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
body { background: radial-gradient(900px 560px at 10% -10%, rgba(139,124,246,.22), transparent 62%), radial-gradient(820px 620px at 105% 60%, rgba(242,153,74,.14), transparent 62%), #191825; background-attachment: fixed; }
.blobs i:nth-child(1) { background: #8B7CF6; opacity: .22; } .blobs i:nth-child(2) { background: #F2994A; opacity: .16; }
h1, h2 { font-weight: 700; letter-spacing: -.02em; }
h1 { color: #F5F2FA; } .lead { color: var(--muted); }
.wm em, .intro-splash .wm em { background: linear-gradient(100deg, #8B7CF6, #F2994A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--mono); font-weight: 500; letter-spacing: .16em; color: var(--accent); }
.hl svg path { stroke: var(--accent); }
.btn { background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--text); }
.btn:hover { background: rgba(255,255,255,.13); }
.btn.pri { background: rgba(242,153,74,.18); color: #FFD9B8; border-color: rgba(242,153,74,.6); box-shadow: 0 0 18px rgba(242,153,74,.18); }
.btn.pri:hover { background: #F2994A; color: #1A0F06; box-shadow: 0 0 26px rgba(242,153,74,.4); }
/* thẻ: viền phát sáng theo màu, mỗi thẻ một màu xoay vòng */
.card, .rcard, .person, .contact-box, .sp-box, .anote, .step { background: var(--surface-2); border-color: var(--line); }
.cards .card { --dc: var(--glow-0); border-color: color-mix(in srgb, var(--dc) 45%, transparent); background: color-mix(in srgb, var(--dc) 7%, var(--surface-2)); }
.cards .card:nth-child(5n+2) { --dc: var(--glow-1); } .cards .card:nth-child(5n+3) { --dc: var(--glow-2); } .cards .card:nth-child(5n+4) { --dc: var(--glow-3); } .cards .card:nth-child(5n+5) { --dc: var(--glow-4); }
.card:hover { border-color: var(--dc, var(--accent)); box-shadow: 0 0 26px color-mix(in srgb, var(--dc, var(--accent)) 28%, transparent), 0 14px 34px rgba(0,0,0,.35); }
.card .code { font-weight: 700; } .card .full { color: color-mix(in srgb, var(--dc, var(--accent)) 70%, #fff); }
.rcard:hover { border-color: var(--accent); box-shadow: 0 0 24px rgba(242,153,74,.22), 0 14px 34px rgba(0,0,0,.35); }
.tag { background: rgba(255,255,255,.07); color: var(--muted); } .tag.on { background: color-mix(in srgb, var(--dc, var(--accent)) 16%, transparent); color: color-mix(in srgb, var(--dc, var(--accent)) 70%, #fff); }
.card:hover .tag.on { background: color-mix(in srgb, var(--dc, var(--accent)) 26%, transparent); }
.card .go, .contact-box h2 { color: var(--text); } .card .go { color: color-mix(in srgb, var(--dc, var(--accent)) 75%, #fff); }
.step { background: rgba(255,255,255,.05); } .step .n { background: linear-gradient(135deg, #8B7CF6, #F2994A); color: #12111B; }
.person img { box-shadow: 0 0 0 3px var(--surface-2), 0 0 0 4px var(--accent); }
.person span, .sp-chip, .rcode { font-family: var(--mono); letter-spacing: .1em; }
.rscore b { color: var(--text); } .rscore i { background: rgba(63,199,160,.16); }
.rdlg { background: var(--surface-2); } .rshot { background: var(--surface); }
.anote, .sp-box { border-color: rgba(242,153,74,.4); } .anote a { color: #FFC892; }
.reqf input[type=email] { background: #1E1D2B; border-color: var(--line); color: var(--text); }
.reqf input[type=email]:focus { border-color: #8B7CF6; box-shadow: 0 0 0 3px rgba(139,124,246,.2); }
.reqf button { background: rgba(242,153,74,.2); color: #FFD9B8; border: 1px solid rgba(242,153,74,.6); } .reqf button:hover { background: #F2994A; color: #1A0F06; }
.reqmsg.ok { color: #3FC7A0; } .reqmsg.err { color: #F0566A; }
.skel { background: linear-gradient(100deg, #232232 30%, #2E2D40 50%, #232232 70%); background-size: 200% 100%; }
.hlink { color: var(--accent-ink); }
.ctable { background: var(--surface-2); } .ctable th, .ctable td { border-color: var(--line); }
.ctable thead th { background: rgba(255,255,255,.05); color: var(--muted); }
.ctable tr.vrow th { background: rgba(255,255,255,.04); }
.ctable .lk a { border-color: var(--line); color: var(--accent-ink); } .ctable .lk a:hover { background: var(--accent); color: #1A0F06; }
.lvl { background: rgba(255,255,255,.08); }
.lvl.l-professional, .lvl.l-expert { background: rgba(139,124,246,.18); color: #C3BAFF; }
.v-microsoft .vmark { background: #5B8DEF; } .v-aws .vmark { background: #F2994A; color: #1A0F06; } .v-anthropic .vmark { background: #8B7CF6; }
footer { border-color: var(--line); }
a:focus-visible, .btn:focus-visible, .card:focus-visible { outline-color: var(--accent); }
