/* IRIS Lab — giao diện hiện đại: nền trắng, chữ lớn, nút viên thuốc, khung bo tròn,
   hiệu ứng hạt, chữ hiện dần khi cuộn, quầng sáng gradient "cầu vồng" (Iris = nữ thần cầu vồng). */
:root {
  --ink: #121317;
  --ink-2: #2b2e35;
  --muted: #5f636b;
  --faint: #9aa0a8;
  --line: #e6e8ec;
  --bg: #ffffff;
  --soft: #f4f5f7;
  --soft-2: #eceef2;
  --night: #0b0c10;
  --night-2: #15171d;
  --blue: #3b6cff;
  --iris: linear-gradient(90deg, #3b6cff 0%, #22c3ee 30%, #8b5cf6 62%, #f0569c 85%, #ffb03a 100%);
  --radius: 28px;
  --radius-sm: 18px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 99px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.grad-text { background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Thanh thông báo ---------- */
.announce { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; position: relative; padding-right: 48px; }
.announce .badge { display: inline-flex; align-items: center; gap: 5px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 10px; border-radius: 99px; flex-shrink: 0; }
.announce a { font-weight: 600; text-decoration: none; border-left: 1px solid var(--line); padding-left: 12px; white-space: nowrap; }
.announce a:hover { text-decoration: underline; }
.announce-close { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--muted); width: 30px; height: 30px; border-radius: 50%; }
.announce-close:hover { background: var(--soft-2); }

/* ---------- Đầu trang + tab ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.25); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.02em; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.tabs { display: flex; gap: 4px; margin: 0 auto; padding: 4px; background: var(--soft); border-radius: 99px; }
.tabs a { position: relative; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 8px 16px; border-radius: 99px; white-space: nowrap; transition: background .25s, color .25s; }
.tabs a:hover { background: var(--soft-2); }
.tabs a.is-active { background: var(--ink); color: #fff; }
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 99px; font: 500 15px var(--font); text-decoration: none; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.pill:hover { background: var(--soft); }
.pill:active { transform: scale(.97); }
.pill.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.dark:hover { background: #2a2c33; box-shadow: 0 8px 24px -10px rgba(18,19,23,.6); }
.pill.big { height: 52px; padding: 0 26px; font-size: 16px; }
.pill svg { width: 18px; height: 18px; }
.menu-btn { display: none; width: 46px; padding: 0; }
.menu-btn .burger { display: grid; gap: 4px; width: 18px; }
.menu-btn .burger i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-open .menu-btn .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn .burger i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.3); padding: 12px 0 24px; animation: drop .3s var(--ease); }
.menu-panel a { display: block; padding: 12px 28px; font-size: 22px; text-decoration: none; letter-spacing: -.02em; }
.menu-panel a.is-active { font-weight: 600; }
.menu-panel a.is-active::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--iris); margin-left: 10px; vertical-align: middle; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hiện dần khi cuộn ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* ---------- Hero trang chủ ---------- */
.hero { text-align: center; padding: clamp(56px, 9vw, 120px) 0 40px; }
.hero h1 { font-size: clamp(40px, 6.6vw, 84px); letter-spacing: -0.045em; line-height: 1.04; max-width: 980px; margin: 0 auto; min-height: 2.1em; }
.typed { white-space: nowrap; }
.caret { display: inline-block; width: 4px; height: .9em; margin-left: 6px; vertical-align: -0.06em; border-radius: 3px; background: var(--iris); background-size: 100% 400%; animation: blink 1.05s steps(1) infinite, caretflow 3s linear infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes caretflow { to { background-position: 0 400%; } }
.hero-sub { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* Khối đen chứa logo hạt */
.stage { position: relative; margin: 40px auto 0; height: clamp(380px, 52vw, 640px); border-radius: 36px; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #1b2a55 0%, var(--night) 60%); isolation: isolate; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-fallback { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; opacity: 0; transition: opacity .6s; }
.stage.no-particles .stage-fallback { opacity: 1; }
.stage-caption { position: absolute; left: 28px; bottom: 24px; color: rgba(255,255,255,.72); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.stage-caption .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 12px #3ddc97; }
.stage-chip { position: absolute; right: 22px; bottom: 18px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); border-radius: 99px; padding: 8px 16px; font-size: 13.5px; }

/* ---------- Màn hình mở đầu (js/intro.js) — lớp tên "splash" để không trùng .intro của trang Giới thiệu ---------- */
.splash { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; background: #000; transition: opacity .8s var(--ease), visibility .8s; }
.splash canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .9s var(--ease); }
.splash-text { display: none; position: relative; font: 700 clamp(60px, 15vw, 200px)/1 var(--font); letter-spacing: .05em; color: transparent;
  background: linear-gradient(100deg, #5b616b 15%, #fff 35%, #9fb6ff 42%, #f3a6ff 46%, #ffd28a 50%, #fff 56%, #5b616b 75%) 100% 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; animation: splash-shine 2.6s .2s var(--ease) both; }
html.splash-lock .splash, .splash.splash-out { display: grid; } /* chỉ hiện khi js/intro.js đã chạy */
.splash.splash-css .splash-text { display: block; }
.splash.splash-out { opacity: 0; visibility: hidden; }
.splash.splash-out canvas, .splash.splash-out .splash-text { transform: scale(1.06); }
html.splash-lock, html.splash-lock body { overflow: hidden; }
@keyframes splash-shine { from { opacity: 0; background-position: 100% 0; } 20% { opacity: 1; } to { opacity: 1; background-position: 0 0; } }

/* ---------- Khung 3D đầu trang: drone + xe tự hành (js/hero3d.js) ---------- */
.stage .hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s var(--ease); }
.stage.gl-ready .hero-gl { opacity: 1; }
.stage.is-pointing .hero-gl { cursor: pointer; }
.hero-switch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: none; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stage.is-narrow .hero-switch { display: flex; }
.stage.no-gl .hero-switch { display: none; }
.hero-switch button { border: 0; background: none; color: rgba(255,255,255,.75); font: 600 13px/1 var(--font); white-space: nowrap; padding: 9px 16px; border-radius: 99px; cursor: pointer; }
.stage.is-narrow.has-panel .hero-switch { display: none; }
@media (max-width: 720px) { .stage[data-hero3d] { height: clamp(480px, 128vw, 560px); } }
.hero-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); }

.hero-panel { position: absolute; top: 16px; right: 16px; bottom: 16px; z-index: 4; width: min(360px, calc(100% - 32px)); overflow-y: auto; overscroll-behavior: contain; padding: 22px 22px 20px; border-radius: 24px; background: rgba(14,16,23,.88); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; text-align: left; opacity: 0; transform: translateX(18px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.hero-panel.is-open { opacity: 1; transform: none; }
.hero-panel[hidden] { display: none; }
.stage.is-narrow .hero-panel { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 68%; transform: translateY(18px); }
.stage.is-narrow .hero-panel.is-open { transform: none; }
.hp-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; font: 400 20px/1 var(--font); cursor: pointer; }
.hp-close:hover { background: rgba(255,255,255,.14); }
.hp-robot { padding-right: 40px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.hero-panel h3 { margin: 4px 0 4px; padding-right: 40px; font-size: 22px; color: #fff; }
.hp-desc { margin: 14px 0 4px; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.75); }
.hero-panel h4 { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hero-panel h4 span { padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.1); color: #fff; font-size: 11.5px; letter-spacing: 0; }
.hp-list { display: grid; gap: 8px; }
.hp-proj { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #fff; text-decoration: none; transition: background .2s, border-color .2s; }
.hp-proj:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.hp-proj img { width: 84px; height: 52px; object-fit: cover; border-radius: 9px; }
.hp-proj b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.hp-proj small { display: block; margin-top: 2px; font-size: 12px; color: rgba(255,255,255,.55); }
.hp-empty { padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.18); font-size: 13.5px; color: rgba(255,255,255,.55); }
.hp-all { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: #fff; }

.hero-parts h3 { margin-bottom: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hero-parts ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero-parts button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 99px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; font: 500 13.5px/1.2 var(--font); cursor: pointer; }
.hero-parts button:hover, .hero-parts button:focus-visible { border-color: var(--c); background: rgba(255,255,255,.12); }
/* Có WebGL: danh sách chỉ dành cho bàn phím / trình đọc màn hình, hiện thành thanh ở đáy khi có tiêu điểm */
.stage:not(.no-gl) .hero-parts { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stage:not(.no-gl) .hero-parts:focus-within { left: 16px; right: 16px; bottom: 16px; z-index: 3; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 14px 16px; border-radius: 20px; background: rgba(14,16,23,.9); border: 1px solid rgba(255,255,255,.12); }
/* Không có WebGL: danh sách linh kiện là nội dung chính của khung */
.stage.no-gl .hero-parts { position: absolute; inset: 64px 28px 64px; z-index: 2; text-align: left; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; align-content: center; overflow-y: auto; }

/* Dải icon trôi theo đường cong */
.arc { position: relative; height: 170px; margin-top: 64px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.arc-item { position: absolute; left: 0; top: 0; width: 60px; height: 60px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; will-change: transform; }
.arc-item svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.arc-item.hl { background: var(--ink); border-color: var(--ink); }
.arc-item.hl svg { stroke: #fff; }

/* Đoạn văn hiện dần theo cuộn */
.scrolltext { max-width: 960px; margin: 40px auto 0; text-align: center; font-size: clamp(24px, 3vw, 38px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; }
.scrolltext .w { color: #c9ccd2; transition: color .25s; }
.scrolltext .w.on { color: var(--ink); }

/* ---------- Section chung ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { padding-top: 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.sec-head.left { text-align: left; margin-left: 0; display: flex; justify-content: space-between; align-items: end; max-width: none; gap: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); padding: 5px 14px; border-radius: 99px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--iris); }
.sec-head h2, .block-title { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -0.035em; }
.sec-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* Thẻ lĩnh vực (trang chủ) */
.fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.field { position: relative; padding: 28px 24px 26px; border-radius: var(--radius); background: var(--soft); text-decoration: none; transition: transform .35s var(--ease), background .3s; isolation: isolate; }
.field::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; background: var(--iris); filter: blur(18px); opacity: 0; z-index: -1; transition: opacity .4s; }
.field:hover { transform: translateY(-6px); background: #fff; }
.field:hover::before { opacity: .45; }
.field-icon { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; margin-bottom: 40px; border: 1px solid var(--line); }
.field-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field h3 { font-size: 21px; margin-bottom: 8px; }
.field p { color: var(--muted); font-size: 15px; }

/* Carousel dự án nổi bật */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 82vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 28px 20px; margin: 0 -28px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rcard { scroll-snap-align: start; text-decoration: none; display: block; }
.rcard-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--night); }
.rcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.rcard:hover .rcard-media img { transform: scale(1.05); }
.rcard-media .play { position: absolute; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: transform .3s var(--ease); }
.rcard:hover .play { transform: scale(1.1); }
.play svg { width: 16px; height: 16px; fill: var(--ink); margin-left: 3px; }
.rcard h3 { font-size: 19px; margin: 16px 4px 6px; }
.rcard p { color: var(--muted); font-size: 15px; margin: 0 4px; }
.rail-nav { display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
.rail-nav button { width: 44px; height: 40px; border: 0; background: var(--soft); cursor: pointer; display: grid; place-items: center; }
.rail-nav button:first-child { border-radius: 99px 0 0 99px; } .rail-nav button:last-child { border-radius: 0 99px 99px 0; }
.rail-nav button:hover { background: var(--soft-2); }
.rail-nav svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Bento */
.bento { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.bcard { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; isolation: isolate; transition: transform .4s var(--ease); }
.bcard:hover { transform: translateY(-4px); }
.bcard h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; }
.bcard p { margin-top: 10px; font-size: 16px; max-width: 420px; }
.bcard .pill { align-self: flex-start; margin-top: 22px; }
.bcard.dark { background: var(--night); color: #fff; }
.bcard.dark p { color: rgba(255,255,255,.7); }
.bcard.dark::after { content: ""; position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: 55%; border-radius: 50%; background: radial-gradient(circle, rgba(59,108,255,0) 52%, rgba(91,140,255,.55) 60%, rgba(59,108,255,0) 70%); filter: blur(10px); z-index: -1; transition: transform 1.2s var(--ease); }
.bcard.dark:hover::after { transform: translateY(-6%); }
.bcard .bimg { position: absolute; right: -6%; bottom: -8%; width: 72%; z-index: -1; transition: transform 1s var(--ease); }
.bcard:hover .bimg { transform: scale(1.04) rotate(-1deg); }
.bcard.light { background: var(--soft); }
.bcard.light p { color: var(--muted); }

/* Khối CTA đen */
.cta { position: relative; border-radius: 36px; overflow: hidden; background: var(--night-2); color: #fff; padding: clamp(48px, 8vw, 110px) clamp(28px, 6vw, 80px); isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,.45), rgba(34,195,238,.25) 35%, transparent 65%); z-index: -1; animation: breathe 8s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: translateY(6%) scale(1); } to { transform: translateY(-4%) scale(1.08); } }
.cta h2 { font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -0.04em; max-width: 760px; }
.cta p { color: rgba(255,255,255,.72); margin-top: 16px; max-width: 560px; font-size: 18px; }
.cta .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.cta .pill { background: #fff; color: var(--ink); border-color: #fff; }
.cta .pill.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta .pill.ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- Thanh mục con (trang Giới thiệu) ---------- */
body[data-page="gioi-thieu"] { scroll-padding-top: 140px; }
html:has(body[data-page="gioi-thieu"]) { scroll-padding-top: 140px; }
.subnav { position: sticky; top: 68px; z-index: 40; padding: 10px 0; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.subnav-inner { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 99px; width: max-content; max-width: 100%; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 8px 16px; border-radius: 99px; white-space: nowrap; transition: background .25s, color .25s; }
.subnav a:hover { background: var(--soft-2); }
.subnav a.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.subnav a.is-active::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--iris); margin-right: 8px; vertical-align: 1px; }
body[data-page="gioi-thieu"] .viewer-wrap { top: 140px; }

/* ---------- Đầu trang con ---------- */
.page-head { text-align: center; padding: clamp(56px, 8vw, 104px) 0 clamp(28px, 4vw, 48px); position: relative; isolation: isolate; }
.page-head::before { content: ""; position: absolute; left: 50%; top: 10%; width: min(900px, 90vw); height: 320px; transform: translateX(-50%); background: var(--iris); filter: blur(90px); opacity: .14; border-radius: 50%; z-index: -1; }
.crumbs { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { font-size: clamp(42px, 6.4vw, 80px); letter-spacing: -0.045em; }
.page-lede { max-width: 720px; margin: 20px auto 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); }
.page-lede strong, .page-lede b { color: var(--ink); font-weight: 600; }

.block { padding: 40px 0 clamp(64px, 8vw, 104px); }
.block-title { margin-bottom: 32px; }
.block-lede { color: var(--muted); max-width: 760px; margin: -12px 0 28px; }

/* Giới thiệu */
.intro { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: center; background: var(--soft); border-radius: 36px; padding: clamp(28px, 5vw, 64px); }
.intro-logo img { width: 100%; max-width: 360px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.18)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.intro-text h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 18px; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; height: 44px; padding: 0 20px; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; transition: gap .25s var(--ease); }
.more::after { content: "→"; }
.more:hover { gap: 14px; }
.acronym { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.acronym div { background: var(--soft); border-radius: var(--radius-sm); padding: 26px 22px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; transition: transform .3s var(--ease); }
.acronym div:hover { transform: translateY(-4px); }
.acronym b { font-size: 54px; font-weight: 700; letter-spacing: -.04em; background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.acronym span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 6px; font-weight: 400; letter-spacing: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two-col > p { font-size: 19px; color: var(--ink-2); }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { background: var(--soft); border-radius: 14px; padding: 14px 18px 14px 48px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--iris); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { border-radius: var(--radius); background: var(--soft); padding: 26px; transition: transform .35s var(--ease); position: relative; isolation: isolate; }
.card::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; background: var(--iris); filter: blur(20px); opacity: 0; z-index: -1; transition: opacity .4s; }
.card:hover { transform: translateY(-5px); }
.card:hover::before { opacity: .35; }
.card-media { aspect-ratio: 16 / 7; border-radius: var(--radius-sm); background: var(--night); display: grid; place-items: center; margin-bottom: 22px; overflow: hidden; position: relative; }
.card-media::after { content: ""; position: absolute; inset: auto 0 -40% 0; height: 90%; background: radial-gradient(ellipse at 50% 100%, rgba(91,140,255,.5), transparent 60%); }
.card-media svg { width: 42%; max-width: 200px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
.card h3 { font-size: 22px; margin-bottom: 6px; }
.card p { color: var(--muted); }

/* Dự án */
.filters { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 99px; width: max-content; max-width: 100%; overflow-x: auto; margin: 0 auto 36px; scrollbar-width: none; }
.filters button { border: 0; background: none; padding: 9px 18px; border-radius: 99px; font: 500 14.5px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.filters button:hover { background: var(--soft-2); }
.filters button[aria-selected="true"] { background: var(--ink); color: #fff; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.proj { border-radius: var(--radius); background: var(--soft); padding: 14px 14px 26px; transition: transform .4s var(--ease); position: relative; isolation: isolate; scroll-margin-top: 96px; }
.proj::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; background: var(--iris); filter: blur(22px); opacity: 0; z-index: -1; transition: opacity .4s; }
.proj:hover { transform: translateY(-4px); }
.proj:hover::before { opacity: .3; }
.proj[hidden] { display: none; }
.proj-media { border-radius: 20px; overflow: hidden; background: #000; margin-bottom: 20px; }
.proj-media video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.proj h3 { font-size: 23px; margin: 0 12px 10px; }
.tags { list-style: none; margin: 0 12px 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.proj p { margin: 0 12px 14px; color: var(--muted); font-size: 15.5px; }
.proj p b { color: var(--ink); }
.proj p.proj-by { text-align: left; margin: -4px 12px 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.results { list-style: none; margin: 0 12px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14.5px; }
.results li { padding-left: 22px; position: relative; }
.results li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--iris); }
.proj.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(59,108,255,0); } 30% { box-shadow: 0 0 0 6px rgba(59,108,255,.35); } }

/* Ý nghĩa logo */
.meaning { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; }
.meaning-figure { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 40px 80px -40px rgba(0,0,0,.45); }
.hotspot { position: absolute; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font: 700 15px var(--font); cursor: pointer; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulse 2.4s infinite; transition: transform .25s var(--ease); }
.hotspot:hover { transform: translate(-50%, -50%) scale(1.12); }
.hotspot.active { background: var(--ink); color: #fff; box-shadow: 0 0 0 3px #fff; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.meaning-list { list-style: none; counter-reset: m; margin: 0; padding: 0; display: grid; gap: 10px; }
.meaning-list li { counter-increment: m; position: relative; padding: 18px 20px 18px 66px; border-radius: 20px; background: var(--soft); transition: background .3s, transform .3s var(--ease), box-shadow .3s; cursor: default; }
.meaning-list li::before { content: counter(m); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: #fff; border: 1px solid var(--line); }
.meaning-list li.active { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -24px rgba(0,0,0,.3); transform: translateX(6px); }
.meaning-list li.active::before { background: var(--ink); color: #fff; border-color: var(--ink); }
.meaning-list h3 { font-size: 19px; margin-bottom: 4px; }
.meaning-list p { color: var(--muted); font-size: 15px; }

/* ---------- Công cụ 3D ---------- */
.block-soft, .block-news { background: transparent; }
.tool { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.viewer-wrap { position: sticky; top: 92px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: radial-gradient(ellipse at 50% 110%, #2d4a8a 0%, #12161f 62%); box-shadow: 0 40px 80px -48px rgba(0,0,0,.6); }
#viewer { position: absolute; inset: 0; }
#viewer canvas.gl { width: 100% !important; height: 100% !important; display: block; }
.viewer-overlay { position: absolute; inset: auto 16px 16px 16px; padding: 10px 16px; border-radius: 14px; background: rgba(15,17,22,.8); backdrop-filter: blur(8px); color: #fff; font-size: 14.5px; }
.viewer-hint { position: absolute; top: 14px; left: 16px; font-size: 12.5px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); padding: 5px 12px; border-radius: 99px; pointer-events: none; transition: background .25s, color .25s, border-color .25s; }
.viewer-hint.is-flash { background: rgba(255,255,255,.92); color: #121317; border-color: #fff; }
.controls { background: var(--soft); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
fieldset { border: 0; margin: 0; padding: 18px; background: #fff; border-radius: 20px; display: grid; gap: 10px; min-width: 0; }
legend { float: left; width: 100%; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 0; margin-bottom: 4px; }
label { display: grid; gap: 6px; font-size: 14.5px; }
input[type="number"], select { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: 500 15px var(--font); border-radius: 12px; }
input[type="number"]:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 0; background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { color: var(--muted); font-size: 13px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button { height: 34px; padding: 0 14px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: 500 13.5px var(--font); cursor: pointer; border-radius: 99px; transition: background .2s, color .2s; }
.presets button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.range { grid-template-columns: 1fr auto; align-items: center; }
.range output { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.range input { grid-column: 1 / -1; width: 100%; accent-color: var(--ink); }
.check { display: flex; align-items: center; gap: 8px; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--soft); border-radius: 99px; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px 8px; border-radius: 99px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background .25s, color .25s; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats div { background: #fff; border-radius: 14px; padding: 10px 14px; }
.stats span { display: block; font-size: 12px; color: var(--muted); }
.stats b { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; }
.downloads, .downloads-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.downloads-two .wide { grid-column: 1 / -1; }
.downloads-two[hidden], .downloads[hidden] { display: none; }
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 8px 18px; font: 500 15px var(--font); cursor: pointer; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; transition: transform .2s var(--ease), background .2s, box-shadow .2s; line-height: 1.25; }
.btn:active { transform: scale(.98); }
.btn small { display: block; font-size: 12px; opacity: .75; font-weight: 400; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { box-shadow: 0 10px 28px -12px rgba(18,19,23,.7); background: #262830; }
.btn.primary:disabled { opacity: .45; cursor: wait; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.ghost:hover { background: var(--soft-2); }
.howto { grid-column: 1 / -1; background: #fff; border-radius: 16px; padding: 12px 16px; font-size: 14px; }
.howto summary { cursor: pointer; font-weight: 600; }
.howto ol { margin: 10px 0 2px; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.tips { margin-top: 22px; padding: 22px 26px; border-radius: var(--radius); background: var(--soft); }
.tips h3 { font-size: 18px; margin-bottom: 8px; }
.tips ul { margin: 0; padding-left: 20px; color: var(--muted); }
.tips li { margin: 4px 0; }

/* ---------- Tin tức ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news article { border-radius: var(--radius); background: var(--soft); padding: 0 0 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease); }
.news article:hover { transform: translateY(-5px); }
.news article::before { content: ""; display: block; aspect-ratio: 16 / 9; margin-bottom: 18px; background: var(--iris); background-size: 200% 100%; transition: background-position .8s var(--ease); }
.news article:nth-child(3n+2)::before { background: linear-gradient(135deg, #0b1e5b, #3b6cff 70%, #22c3ee); }
.news article:nth-child(3n+3)::before { background: radial-gradient(circle at 30% 30%, #8b5cf6, #12131a 70%); }
.news article:hover::before { background-position: 100% 0; }
.news h3 { font-size: 19px; margin: 0 22px 8px; }
.news h3 a { text-decoration: none; }
.news h3 a:hover { text-decoration: underline; }
.news .meta { margin: 0 22px 10px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); order: -1; }
.news p { margin: 0 22px 14px; font-size: 15px; color: var(--muted); }
.news time { margin: auto 22px 0; font-size: 13.5px; color: var(--faint); }

/* ---------- Chân trang ---------- */
.footer { padding: 72px 0 32px; border-top: 1px solid var(--line); margin-top: 40px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 64px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; }
.footer-brand strong { color: var(--ink); font-size: 18px; font-weight: 600; }
.footer h2 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer nav a { display: block; text-decoration: none; padding: 4px 0; font-size: 15px; }
.footer nav a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.footer-bottom a { text-decoration: none; }
.big-word { font-size: clamp(80px, 19vw, 260px); font-weight: 700; letter-spacing: -0.06em; line-height: .8; text-align: center; margin-top: 56px; background: linear-gradient(180deg, #e3e6eb, #fff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tabs { display: none; }
  .menu-btn { display: inline-flex; }
  .top-actions .pill.dark { display: none; }
  .topbar-inner { justify-content: space-between; }
  .fields { grid-template-columns: repeat(2, 1fr); }
  .intro, .meaning, .tool, .two-col, .bento { grid-template-columns: 1fr; }
  .viewer-wrap { position: relative; top: 0; }
  .news { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .rail { padding: 4px 18px 20px; margin: 0 -18px; }
  .topbar-inner { height: 60px; }
  .subnav { top: 60px; }
  .announce { font-size: 13px; }
  .announce .wrap { justify-content: flex-start; padding-right: 44px; }
  .announce .msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .announce a { display: none; }
  .hero h1 { min-height: 3.2em; }
  .typed { white-space: normal; }
  .stage { border-radius: 26px; }
  .stage-chip { display: none; }
  .arc { height: 130px; margin-top: 40px; }
  .fields, .cards, .projects, .news, .footer-grid { grid-template-columns: 1fr; }
  .acronym { grid-template-columns: 1fr 1fr; }
  .sec-head.left { flex-direction: column; align-items: start; }
  .bcard { min-height: 340px; padding: 26px; }
  .downloads, .downloads-two, .stats { grid-template-columns: 1fr; }
  .meaning-list li.active { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret, .hotspot, .intro-logo img, .cta::before { animation: none; }
}

/* ---------- Ảnh trong thẻ tin ---------- */
.news article.has-img::before { display: none; }
.news .news-img { order: -2; display: block; aspect-ratio: 16 / 9; margin-bottom: 18px; overflow: hidden; background: var(--soft-2); }
.news .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news article:hover .news-img img { transform: scale(1.04); }
.footer .social { display: inline-flex; align-items: center; gap: 8px; }
.footer .social svg, .lab-facts svg { width: 16px; height: 16px; flex: none; }
.footer-note { display: block; margin-top: 10px; font-size: 13.5px; color: var(--faint); }

/* ---------- Giới thiệu: thông tin nhanh + người sáng lập ---------- */
.lab-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 14px 28px; justify-content: start; }
.lab-facts li.wide { grid-column: 1 / -1; }
.footer-unit { display: inline-block; margin-top: 6px; color: var(--faint); font-size: 13.5px; }
.lab-facts li { display: flex; flex-direction: column; gap: 2px; }
.lab-facts span { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lab-facts b { font-weight: 600; font-size: 16px; }
.lab-facts a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.lab-facts a:hover { border-color: var(--ink); }
.founder { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 48px; align-items: center; }
.founder-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--soft); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.founder-text h3 { font-size: clamp(26px, 3vw, 36px); }
.founder-role { margin: 8px 0 18px; font-weight: 600; color: var(--muted); }
.founder-text p { color: var(--ink-2); font-size: 17px; margin-bottom: 12px; }
.founder-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.founder-links a { padding: 9px 16px; border-radius: 99px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: background .2s; }
.founder-links a:hover { background: var(--soft-2); }
.founder-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.founder-gallery figure { margin: 0; }
.founder-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.founder-gallery figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- Trang bài viết (tin-*.html, sinh bởi build_news.py) ---------- */
.post-head { padding: clamp(48px, 7vw, 88px) 0 28px; }
.post-head .wrap, .post-body { max-width: 820px; }
.post-meta { display: flex; gap: 12px; align-items: center; margin: 18px 0 12px; font-size: 14px; color: var(--muted); }
.post-cat { padding: 4px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.post-head h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -0.035em; }
.post-lede { margin-top: 18px; font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); }
.post-cover { max-width: 1100px; }
.post-fig { margin: 28px 0; }
.post-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--soft); }
.post-fig a { display: block; cursor: zoom-in; }
.post-fig-cover { margin-top: 8px; }
.post-fig-cover img { border-radius: var(--radius); max-height: 72vh; object-fit: cover; }
.post-fig figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.post-body { padding-bottom: clamp(56px, 7vw, 96px); }
.post-body > p, .post-body > ul, .post-side-text > p, .post-side-text > ul { font-size: 18px; line-height: 1.7; color: var(--ink-2); margin: 0 0 18px; }
.post-body > ul, .post-side-text > ul { padding-left: 22px; }
.post-body > ul li, .post-side-text > ul li { margin-bottom: 8px; }
.post-body h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 36px 0 14px; }
.post-body a { color: var(--blue); }
/* Ảnh dọc đứng một mình: nằm cạnh đoạn chữ ngay trước nó */
.post-side { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 34%, 300px); gap: 28px; align-items: start; margin: 0 0 18px; }
.post-side > .post-fig { margin: 6px 0 0; }
/* Mỗi ảnh một dòng; ảnh dọc (ảnh chụp màn hình đã cắt, chân dung) không kéo giãn hết bề ngang mà căn giữa */
.post-body > .post-fig.is-tall { max-width: 400px; margin-inline: auto; }
.post-body > .post-fig.is-tall figcaption { text-align: center; }
/* Xem ảnh lớn (js/site.js) */
.lightbox { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 24px; background: rgba(8,9,12,.9); cursor: zoom-out; opacity: 0; transition: opacity .2s; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: min(100%, 1600px); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox p { position: absolute; left: 24px; right: 24px; bottom: 18px; margin: 0; text-align: center; color: rgba(255,255,255,.82); font-size: 14.5px; }
.lightbox button { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
html.lightbox-lock { overflow: hidden; }
.post-sources { margin-top: 40px; padding: 22px 24px; border-radius: var(--radius-sm); background: var(--soft); }
.post-sources h2 { margin: 0 0 10px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post-sources ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); }
.post-sources li { margin: 4px 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav a { display: block; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.post-nav a:hover { background: var(--soft); }
.post-nav small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.post-next { grid-column: 2; text-align: right; }
.post-back { margin-top: 24px; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; gap: 28px; }
  .founder-photo { max-width: 360px; }
}
@media (max-width: 720px) {
  .lab-facts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .founder-gallery, .post-nav { grid-template-columns: 1fr; }
  .post-side { grid-template-columns: 1fr; gap: 0; }
  .post-side > .post-fig { max-width: 300px; margin: 4px auto 24px; }
  .post-next { grid-column: auto; text-align: left; }
  .post-body > p, .post-body > ul, .post-side-text > p, .post-side-text > ul { font-size: 17px; }
  .post-body > .post-fig.is-tall { max-width: min(340px, 100%); }
}

/* ---------- Căn đều hai lề cho đoạn nội dung ---------- */
.post-body > p, .post-body li, .post-side-text p, .post-lede, .lede, .two-col > p, .founder-text p, .intro-text p, .hp-desc,
.proj p, .news article > p:not(.meta), .field p, .card p, .meaning-list p, .tool p, .tips li, .pd-body p, .pd-body li {
  text-align: justify; text-justify: inter-word; hyphens: auto;
}
/* ---------- Thẻ bento có ảnh nền ---------- */
.bcard.photo { color: #fff; }
.bcard.photo .bphoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.bcard.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,10,16,.82) 0%, rgba(8,10,16,.35) 55%, rgba(8,10,16,.75) 100%); border-radius: 0; filter: none; width: auto; aspect-ratio: auto; left: 0; top: 0; transform: none; }
.bcard.photo:hover .bphoto { transform: scale(1.04); }
.bcard.photo:hover::after { transform: none; }
.bcard.photo div { display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.bcard.photo .pill { align-self: flex-start; }
/* ---------- IRIS STEM (iris-stem.html, js/iris-stem.js). Bản đồ kit: assets/stem/ban-do.css ---------- */
.stem-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.stem-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 900px; margin: 44px auto 0; }
.stem-stats div { background: var(--soft); border-radius: var(--radius-sm); padding: 16px 12px; }
.stem-stats b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stem-stats span { font-size: 14px; color: var(--muted); }
.t-core { --tc: #2f5be0; } .t-smart { --tc: #7c3aed; } .t-in { --tc: #0e7490; } .t-out { --tc: #c2410c; } .t-mech { --tc: #6b6f78; }
.stem-kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stem-card { position: relative; border-radius: var(--radius); background: var(--soft); padding: 28px 26px; text-decoration: none; isolation: isolate; transition: transform .35s var(--ease), background .3s; }
.stem-card::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; background: var(--iris); filter: blur(18px); opacity: 0; z-index: -1; transition: opacity .4s; }
a.stem-card:hover { transform: translateY(-6px); background: #fff; }
a.stem-card:hover::before { opacity: .4; }
.stem-code { display: inline-block; font: 500 13px "JetBrains Mono", ui-monospace, monospace; color: var(--tc); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; margin-bottom: 36px; }
.stem-card h3 { font-size: 21px; margin-bottom: 8px; }
.stem-card p { color: var(--muted); font-size: 15px; }
.stem-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.stem-level { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 18px; background: #fff; display: flex; flex-direction: column; gap: 14px; }
.stem-level-head { display: flex; gap: 12px; align-items: center; }
.stem-level-no { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; background: var(--ink); position: relative; isolation: isolate; }
.stem-level-no::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--iris); z-index: -1; }
.stem-level h3 { font-size: 18px; letter-spacing: -.02em; }
.stem-level-head p { font-size: 13.5px; color: var(--muted); }
.stem-level ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.stem-level a { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 6px 8px; border-radius: 12px; font-size: 15px; transition: background .2s; }
.stem-level a:hover { background: var(--soft); }
.stem-level a span { flex: none; min-width: 26px; height: 26px; border-radius: 99px; background: var(--soft); display: grid; place-items: center; font: 500 12px "JetBrains Mono", ui-monospace, monospace; }
.stem-level a:hover span { background: var(--ink); color: #fff; }
.stem-mods { display: flex; flex-direction: column; gap: 26px; }
.stem-mod-group h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.stem-mod-group h3 i { width: 9px; height: 9px; border-radius: 50%; background: var(--tc); }
.stem-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stem-chips a { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: 14.5px; background: #fff; transition: background .2s, border-color .2s; }
.stem-chips a:hover { background: var(--soft); border-color: var(--tc); }
.stem-chips b { font: 500 12.5px "JetBrains Mono", ui-monospace, monospace; color: var(--tc); }
.stem-chips small { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 1080px) { .stem-kit { grid-template-columns: 1fr; } .stem-code { margin-bottom: 20px; } }
@media (max-width: 720px) { .stem-stats { grid-template-columns: repeat(2, 1fr); } .stem-stats div:last-child { grid-column: span 2; } }
/* Khung xem mô hình 3D (js/iris-stem-3d.js) */
.stem3d { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; }
.stem3d[hidden] { display: none; }
.stem3d-list { display: flex; flex-direction: column; gap: 6px; }
.stem3d-list button { border: 0; background: var(--soft); border-radius: var(--radius-sm); padding: 13px 18px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 1px; transition: background .25s, color .25s; }
.stem3d-list button b { font-weight: 600; font-size: 15.5px; }
.stem3d-list button small { color: var(--muted); font-size: 13px; }
.stem3d-list button:hover { background: var(--soft-2); }
.stem3d-list button[aria-selected="true"] { background: var(--ink); color: #fff; }
.stem3d-list button[aria-selected="true"] small { color: rgba(255,255,255,.7); }
.stem3d-stage { position: relative; min-height: clamp(400px, 46vw, 600px); border-radius: var(--radius); overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 120%, #1b2a55 0%, var(--night) 62%); }
.stem3d-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.stem3d-stage canvas:active { cursor: grabbing; }
.stem3d-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: rgba(255,255,255,.72); font-size: 15px; pointer-events: none; transition: opacity .3s; }
.stem3d-status.is-hidden { opacity: 0; }
.stem3d-info { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; color: #fff; pointer-events: none; }
.stem3d-info h3 { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.025em; }
.stem3d-info p { color: rgba(255,255,255,.7); font-size: 14px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stem3d-info .pill { pointer-events: auto; height: 40px; font-size: 14.5px; }
@media (max-width: 1080px) {
  .stem3d { grid-template-columns: 1fr; }
  .stem3d-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .stem3d-list::-webkit-scrollbar { display: none; }
  .stem3d-list button { flex: none; border-radius: 99px; padding: 9px 16px; }
  .stem3d-list button small { display: none; }
}
@media (max-width: 720px) { .stem3d-stage { min-height: 460px; } .stem3d-info { left: 0; right: 0; bottom: 0; padding: 48px 16px 16px; background: linear-gradient(180deg, rgba(11,12,16,0), rgba(11,12,16,.88) 45%); } }

/* ---------- Nhãn tên linh kiện khi robot tách (js/hero3d.js) ---------- */
.hero-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-label { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 99px; border: 1px solid rgba(255,255,255,.16); background: rgba(11,12,16,.66); color: rgba(255,255,255,.9); font: 500 12.5px/1.2 var(--font); white-space: nowrap; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; cursor: pointer; transition: opacity .25s, background .2s, border-color .2s; }
.hero-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5b8cff; box-shadow: 0 0 8px #5b8cff; flex: none; }
.hero-label.is-shown { opacity: 1; pointer-events: auto; }
.hero-label.is-hot { z-index: 1; border-color: #5b8cff; background: rgba(11,12,16,.92); color: #fff; }
@media (max-width: 720px) { .hero-label { font-size: 11.5px; padding: 4px 9px 4px 8px; } }

/* ---------- Thẻ dự án (du-an.html, sinh bởi build_projects.py) ---------- */
.proj-link { display: block; color: inherit; text-decoration: none; }
.proj-media { position: relative; }
.proj-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.proj:hover .proj-media img { transform: scale(1.04); }
.proj-media .play { position: absolute; left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); }
.proj-media .play svg { width: 18px; height: 18px; fill: var(--ink); margin-left: 3px; }
.proj-chart { position: absolute; right: 14px; top: 14px; padding: 4px 11px; border-radius: 99px; background: rgba(11,12,16,.72); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
.proj-more { display: inline-block; margin: 16px 12px 0; font-weight: 600; font-size: 14.5px; color: var(--blue); }
.results li b { color: var(--ink); }

/* ---------- Trang chi tiết dự án (du-an-*.html) ---------- */
.pd-tags { margin: 18px 0 0; }
.pd-video { max-width: 1100px; }
.pd-video video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; }
.pd-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 30px 0 8px; }
.pd-metrics div { padding: 18px 18px 16px; border-radius: var(--radius-sm); background: var(--soft); }
.pd-metrics b { display: block; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.pd-metrics span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.pd-table { margin: 28px 0; overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.pd-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pd-table caption { caption-side: top; text-align: left; padding: 14px 16px 6px; font-weight: 600; color: var(--ink); }
.pd-table th, .pd-table td { padding: 10px 16px; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
.pd-table th { background: var(--soft); font-weight: 600; font-size: 13px; }
.pd-table tbody tr:hover { background: var(--soft); }
.pd-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 18px 0; }
.pd-figs figure { margin: 0; }
.pd-figs img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.pd-figs figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.pd-rels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.pd-rel { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius-sm); background: var(--soft); color: var(--ink) !important; text-decoration: none; font-weight: 500; font-size: 15px; }
.pd-rel:hover { background: var(--soft-2); }
.pd-rel img { width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.pd-rel small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.pd-src { margin-top: 32px; font-size: 14px !important; color: var(--muted) !important; }

/* ---------- Biểu đồ (js/charts.js) ---------- */
.chart { position: relative; margin: 28px 0; padding: 18px 18px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.chart figcaption { order: -1; margin-bottom: 6px; font-weight: 600; font-size: 16px; }
.chart figcaption small { display: block; margin-top: 4px; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.chart { display: flex; flex-direction: column; }
.chart-svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart-grid line { stroke: #e9ebef; stroke-width: 1; }
.chart-grid line.v { stroke: #f2f3f5; }
.chart-base { stroke: #c9ccd2; stroke-width: 1.2; }
.chart-tick { font: 500 12px var(--font); fill: var(--muted); }
.chart-axis { font: 600 12.5px var(--font); fill: var(--ink-2); }
.chart-val { font: 600 12px var(--font); fill: var(--ink-2); }
.chart-bar { transition: opacity .2s; }
.chart-bar:hover { opacity: .8; }
.chart-guide { stroke: #9aa0a8; stroke-dasharray: 3 3; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i, .chart-tip i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; }
.chart-tip { position: absolute; top: 56px; left: 70px; z-index: 2; padding: 8px 12px; border-radius: 10px; background: rgba(18,19,23,.92); color: #fff; font-size: 13px; line-height: 1.5; pointer-events: none; white-space: nowrap; }
.chart-tip i { margin-right: 6px; vertical-align: middle; }
@media (max-width: 720px) {
  .pd-metrics { grid-template-columns: 1fr 1fr; }
  .chart { padding: 14px 10px 10px; }
  .chart-tick { font-size: 15px; } .chart-axis { font-size: 15px; } .chart-val { font-size: 14px; }
}

/* ---------- Chòm sao IRIS: người sáng lập + thành viên (gioi-thieu.html#thanh-vien, js/constellation.js) ---------- */
.constel { position: relative; isolation: isolate; overflow: hidden; border-radius: 36px; padding: 18px 20px 22px; color: #fff;
  background: radial-gradient(ellipse at 50% 46%, #18234a 0%, #0d1124 46%, #05060c 82%); box-shadow: inset 0 0 120px rgba(0,0,0,.55); }
.constel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.constel-sky { margin: 0 auto; max-width: 1080px; transform-origin: 50% 50%; will-change: transform; }
.constel-sky[data-mode="tall"] { max-width: 480px; }
.constel-sky svg { display: block; width: 100%; height: auto; overflow: visible; }
/* Danh sách tên: hiện khi không có JS; có JS thì chỉ còn cho trình đọc màn hình */
.constel-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.constel-list li { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); font-size: 13.5px; line-height: 1.2; }
.constel-list li::before { content: ""; width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.constel-list b { font-weight: 500; }
.constel.is-live .constel-list { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.cs-far circle, .cs-mid circle, .cs-near circle { transition: none; }
.cs-bg .tw, .cs-far .tw, .cs-mid .tw, .cs-near .tw { animation: cs-twinkle 3.4s ease-in-out infinite alternate; }
.cs-meteor { stroke-width: 2; stroke-linecap: round; opacity: 0; animation: cs-meteor 11s linear infinite 3s; }
.cs-edge, .cs-bond, .cs-spoke, .cs-flow, .cs-arc { fill: none; stroke-linecap: round; }
.cs-edge { stroke-width: 1.7; opacity: 0; transition: opacity .9s var(--ease), stroke-width .3s; }
.cs-edge.is-on { opacity: .62; }
.cs-edge.is-lit { opacity: 1; stroke-width: 2.6; }
.cs-bond { stroke-width: 1.3; opacity: 0; transition: opacity .35s; }
.cs-bond.is-lit { opacity: .8; }
.cs-spoke { stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .38; transition: stroke-dashoffset 1s var(--ease), opacity .35s, stroke-width .35s; }
.cs-spoke.is-on { stroke-dashoffset: 0; }
.cs-spoke.is-lit { opacity: .95; stroke-width: 2; }
.cs-flow { stroke-width: 2.2; stroke-dasharray: 1.5 26; opacity: 0; transition: opacity .8s .6s; animation: cs-flow 2.4s linear infinite; }
.cs-flow.is-on { opacity: .9; }
.cs-core-glow { opacity: .12; transition: opacity 1.2s var(--ease); }
.cs-arc { stroke-width: 3.4; opacity: .14; transition: opacity .7s var(--ease); }
.cs-arc.is-on { opacity: 1; }
.constel.is-complete .cs-core-glow { animation: cs-breathe 5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }

.cs-star { cursor: pointer; opacity: 0; transition: opacity .7s var(--ease); outline: none; }
.cs-star.is-on { opacity: 1; }
.cs-body { transform: scale(.25); transition: transform .8s var(--ease), filter .3s; }
.cs-star.is-on .cs-body { transform: none; }
.cs-star.is-active .cs-body { transform: scale(1.35); filter: brightness(1.15); }
.cs-star:focus-visible .cs-body { filter: brightness(1.25) drop-shadow(0 0 6px #fff); }
.cs-glow { animation: cs-pulse 4.2s ease-in-out infinite alternate; }
.cs-spikes { opacity: .9; }
.cs-hit { fill: transparent; }
.cs-founder .cs-body { transform: scale(.2); transition: transform 1.4s var(--ease); }
.cs-founder.is-on .cs-body { transform: none; }
.cs-founder.is-active .cs-body { transform: scale(1.15); }
.cs-rays { opacity: 0; transition: opacity 1.4s .3s; }
.cs-founder.is-on .cs-rays { opacity: 1; animation: cs-spin 60s linear infinite; }
.constel.has-active .cs-flow.is-on { opacity: .45; }

/* Thẻ hồ sơ khi rê / chạm vào một ngôi sao */
.constel-card { position: absolute; z-index: 3; left: 0; top: 0; width: 270px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px;
  background: rgba(14,18,38,.74); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.2), 0 0 40px -16px var(--c);
  opacity: 0; transform: translateY(8px) scale(.98); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.constel-card::before { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--c), transparent); }
.constel-card.is-open { opacity: 1; transform: none; pointer-events: auto; }
.constel-card.is-founder { width: 370px; padding: 16px 18px 16px 16px; }
.cc-orb { flex: none; width: 34px; height: 34px; border-radius: 50%; margin-top: 2px;
  background: radial-gradient(circle at 36% 30%, #fff 0, color-mix(in srgb, var(--c) 45%, #fff) 18%, var(--c) 55%, color-mix(in srgb, var(--c) 40%, #05060a) 100%);
  box-shadow: 0 0 18px var(--c); }
.cc-photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c); box-shadow: 0 0 22px -2px var(--c); }
.cc-text { min-width: 0; }
.cc-kicker { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.cc-name { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; }
.cc-role { margin-top: 4px; font-size: 13.5px; color: rgba(255,255,255,.72); line-height: 1.45; }
.cc-note { margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,.62); line-height: 1.45; }
.cc-link { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.cc-link:hover { background: rgba(255,255,255,.18); }
.constel-card.is-docked { left: 12px !important; right: 12px; top: auto; bottom: 12px; width: auto; }
.constel-card.is-docked.at-top { top: 12px; bottom: auto; }

@keyframes cs-twinkle { from { opacity: .1; } to { opacity: .9; } }
@keyframes cs-pulse { from { opacity: .55; } to { opacity: 1; } }
@keyframes cs-breathe { from { transform: scale(.94); } to { transform: scale(1.08); } }
@keyframes cs-flow { to { stroke-dashoffset: -27.5; } }
@keyframes cs-spin { to { transform: rotate(360deg); } }
@keyframes cs-meteor { 0% { opacity: 0; transform: translate(0, 0); } 1% { opacity: 1; } 7% { opacity: 0; transform: translate(560px, 210px); } 100% { opacity: 0; transform: translate(560px, 210px); } }
@media (max-width: 720px) {
  .constel { border-radius: 28px; padding: 12px 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-far .tw, .cs-mid .tw, .cs-near .tw, .cs-flow, .cs-glow, .constel.is-complete .cs-core-glow, .cs-founder.is-on .cs-rays, .cs-meteor { animation: none; }
  .cs-flow.is-on { opacity: 0; }
}

/* ---------- Trang chi tiết dự án: bố cục kiểu bài báo khoa học (sinh bởi tools/projects/build_projects.py) ----------
   Mỗi hình / biểu đồ / video một dòng, cùng chiều rộng cột và cùng khung 16:9; chú thích "Hình n." dưới hình, "Bảng n." trên bảng. */
.pd .post-head { padding-bottom: 8px; }
.pd .post-head .wrap, .pd .post-body { max-width: 800px; }
.pd-label { margin: 0 0 6px; font-size: 12.5px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; }
/* dòng tác giả dưới tiêu đề (bảng TAC_GIA trong build_projects.py) */
.pd-authors { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 14px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.pd-authors .pd-names { font-weight: 600; color: var(--ink); }
.pd-authors .pd-adv { font-size: 15px; color: var(--muted); }
.pd-abstract { margin-top: 22px; padding: 18px 22px 16px; border-left: 3px solid var(--blue); background: var(--soft); border-radius: 0 12px 12px 0; }
.pd-abstract p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); text-align: justify; hyphens: auto; }
.pd-abstract .pd-kw { margin-top: 10px; font-size: 14.5px; color: var(--muted); text-align: left; }
.pd-abstract .pd-kw b { color: var(--ink-2); font-weight: 600; }
.pd-body > p, .pd-body > ul li { text-align: justify; hyphens: auto; }
.pd-body h2 { font-size: clamp(21px, 2.2vw, 25px); margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pd-num { color: var(--blue); margin-right: 2px; }
.pd-body > .pd-label { margin-top: 30px; }
.pd .pd-metrics { margin: 0 0 8px; }

/* khung hình đồng đều */
.pd-fig { margin: 26px 0 30px; }
.pd-frame { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; box-sizing: border-box; }
.pd-frame img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
a.pd-frame { cursor: zoom-in; transition: border-color .2s; }
a.pd-frame:hover { border-color: #c9ccd2; }
.pd-fig figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); text-align: left; }
.pd-fig figcaption b { font-weight: 600; color: var(--ink); }
.pd-video { max-width: none; }
.pd-video .pd-frame { padding: 0; background: #000; border-color: #000; }
.pd-video video { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; display: block; }
/* hình có nhiều hình con (a), (b): xếp dọc, mỗi hình con cùng khung */
.pd-multi .pd-sub + .pd-sub { margin-top: 14px; }
.pd-subcap { margin: 6px 0 0; font-size: 14px !important; color: var(--muted) !important; text-align: center !important; }
/* biểu đồ tương tác: cùng chiều rộng, chú thích dưới */
.pd .chart.pd-fig { padding: 0; border: 0; border-radius: 0; background: none; }
.pd .chart.pd-fig .chart-svg { aspect-ratio: 16 / 9; padding: 14px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pd .chart.pd-fig .chart-legend { margin: 10px 2px 0; }
.pd .chart.pd-fig figcaption { order: 10; margin: 8px 0 0; font-weight: 400; font-size: 14.5px; }
.pd .chart.pd-fig .chart-tip { top: 40px; }
/* bảng kiểu bài báo: kẻ ngang trên / dưới, không khung */
.pd .pd-table { margin: 22px 0 30px; border: 0; border-radius: 0; }
.pd .pd-table caption { padding: 0 0 8px; font-weight: 400; font-size: 14.5px; color: var(--ink-2); }
.pd .pd-table caption b { font-weight: 600; color: var(--ink); }
.pd .pd-table table { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.pd .pd-table th { background: none; border-top: 0; border-bottom: 1px solid var(--ink); font-size: 13.5px; }
.pd .pd-table td { border-top: 1px solid var(--line); }
.pd .pd-table th, .pd .pd-table td { white-space: normal; padding: 9px 12px; vertical-align: top; }
.pd .pd-table td:first-child { min-width: 9em; }
.pd .pd-table tbody tr:first-child td { border-top: 0; }
@media (max-width: 720px) {
  .pd-frame { aspect-ratio: 4 / 3; padding: 8px; }
  .pd-video .pd-frame { aspect-ratio: 16 / 9; }
  .pd-abstract { padding: 14px 16px; }
  .pd-abstract p, .pd-body > p, .pd-body > ul li { text-align: left; }
}
