/* =========================================================
   Hiếu Nguyễn · Portfolio (dạng từng màn)
   Màu, font, khoảng cách, bo góc lấy từ design system "Hiếu Nguyễn".
   Chữ dùng Google Sans Flex, độ đậm 400–600, độ rộng chuẩn.
   ========================================================= */

:root {
  --surface: #eaebe6;
  --surface-card: #ffffff;
  --surface-sunk: #e0e1db;
  --ink: #151419;
  --ink-muted: #6b675e;
  --border: #d7d2c6;
  --navy: #0d1a4f;
  --block: #0d1a4f;
  --blue: #397dfc;
  --blue-text: #012583;
  --green: #78b016;
  --green-text: #50750f;
  --orange: #fe4f18;
  --orange-text: #c42f01;
  --white: #ffffff;
  --on-block-muted: #8fb4ff;
  --navy-mark: #0d1a4f;
  --tile: #f2f2f2;

  --font: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --line: color-mix(in srgb, var(--border) 70%, transparent);
  --shadow-soft: 0 1px 2px rgba(13, 26, 79, .04), 0 18px 40px -24px rgba(13, 26, 79, .28);
  --tint: color-mix(in srgb, var(--blue) 10%, var(--surface-card));
  --tint-ink: var(--blue-text);

  --hd: 72px;
  --hd-top: 12px;
  --gx: clamp(20px, 5.5vw, 96px);
  --gb: clamp(72px, 10vh, 96px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #0d1a4f;
    --surface-card: #16295c;
    --surface-sunk: #12235a;
    --ink: #fbfbfb;
    --ink-muted: #8fb4ff;
    --border: #253569;
    --block: #16295c;
    --blue-text: #397dfc;
    --green-text: #78b016;
    --orange-text: #fe4f18;
    --navy-mark: #8fb4ff;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, .12), 0 18px 40px -24px rgba(0, 0, 0, .6);
    --tint: color-mix(in srgb, var(--blue) 16%, var(--surface-card));
    --tint-ink: #b3cbff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0d1a4f;
  --surface-card: #16295c;
  --surface-sunk: #12235a;
  --ink: #fbfbfb;
  --ink-muted: #8fb4ff;
  --border: #253569;
  --block: #16295c;
  --blue-text: #397dfc;
  --green-text: #78b016;
  --orange-text: #fe4f18;
  --navy-mark: #8fb4ff;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .12), 0 18px 40px -24px rgba(0, 0, 0, .6);
  --tint: color-mix(in srgb, var(--blue) 16%, var(--surface-card));
  --tint-ink: #b3cbff;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--surface); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
html.fp, html.fp body { height: 100%; overflow: hidden; overscroll-behavior: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.label--orange { color: var(--orange-text); }
.title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }

/* ---------- màn ---------- */
.screens { position: relative; }
.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  outline: none;
  background: var(--surface);
  color: var(--ink);
}
.fp .screens { height: 100%; }
.fp .screen { position: absolute; inset: 0; min-height: 0; visibility: hidden; }
.fp .screen.is-active, .fp .screen.is-moving { visibility: visible; }

.screen__inner {
  position: relative; z-index: 1;
  height: 100%;
  width: 100%; max-width: 1440px;
  margin-inline: auto;
  display: flex; flex-direction: column;
  gap: clamp(14px, 2.4vh, 24px);
  padding: calc(var(--hd) + env(safe-area-inset-top, 0px) + clamp(6px, 2.4vh, 28px)) var(--gx) calc(var(--gb) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.screen__inner::-webkit-scrollbar { display: none; }
/* vùng cuộn bắt đầu ngay dưới thanh trên, nội dung dài không trượt đè lên thanh */
.fp .screen__inner { position: absolute; top: calc(var(--hd) + env(safe-area-inset-top, 0px)); bottom: 0; left: 0; right: 0; height: auto; padding-top: clamp(6px, 2.4vh, 28px); }
.screen__body { flex: 1 1 auto; min-height: 0; }
.screen__body--center { flex: 0 0 auto; margin-block: auto; }
.screen__shade { position: absolute; inset: 0; z-index: 5; background: #070c22; opacity: 0; pointer-events: none; }

/* ---------- thanh trên: viên thuốc nổi ---------- */
.hd {
  position: fixed; z-index: 50;
  top: calc(env(safe-area-inset-top, 0px) + var(--hd-top));
  left: var(--gx); right: var(--gx);
  max-width: calc(1440px - var(--gx) * 2);
  margin-inline: auto;
  height: calc(var(--hd) - var(--hd-top) - 8px);
  padding: 0 8px 0 18px;
  display: flex; align-items: center; gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface-card) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  transition: color .5s, background-color .5s, border-color .5s;
}
html[data-tone="dark"] .hd, html[data-tone="dark"] .dots, html[data-tone="dark"] .foot, .menu-open .hd { color: var(--white); }
html[data-tone="dark"] .hd, .menu-open .hd { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .6); }

.brand { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.brand__blocks { display: inline-flex; align-items: center; gap: 3px; }
.brand__blocks i { width: 16px; height: 8px; border-radius: var(--radius-full); background: var(--blue); transition: transform .5s var(--ease); }
.brand__blocks i:nth-child(2) { width: 8px; background: var(--green); }
.brand__blocks i:nth-child(3) { width: 8px; background: var(--orange); }
.brand:hover .brand__blocks i:nth-child(1) { transform: translateY(-3px); }
.brand:hover .brand__blocks i:nth-child(2) { transform: translateY(3px); }
.brand:hover .brand__blocks i:nth-child(3) { transform: translateY(-2px); }

.hd__now { margin-left: auto; display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd__now #nowNo { font-weight: 500; }
.hd__total { opacity: .5; }
.hd__label { margin-left: 8px; padding: 3px 12px; border-radius: var(--radius-full); background: color-mix(in srgb, currentColor 8%, transparent); opacity: .9; }
.hd__act { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  padding: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  background: transparent; cursor: pointer;
  transition: background-color .3s, border-color .3s, opacity .3s;
}
.icon-btn:hover { border-color: currentColor; }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.icon-btn:disabled { opacity: .28; cursor: default; }
#themeToggle .i-moon { opacity: 0; }
.is-dark #themeToggle .i-sun { opacity: 0; }
.is-dark #themeToggle .i-moon { opacity: 1; }
#themeToggle svg { transition: opacity .3s; }

.hd__cta { padding: 8px 16px; border: 0; border-radius: var(--radius-full); background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color .5s, color .5s; }
html[data-tone="dark"] .hd__cta { background: var(--white); color: var(--navy); }
.menu-btn { display: none; }

/* chấm điều hướng */
.dots { position: fixed; right: max(12px, calc(var(--gx) / 2 - 14px)); top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; color: var(--ink); transition: color .5s; }
.dot { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot i { width: 6px; height: 6px; border-radius: var(--radius-full); background: currentColor; opacity: .3; transition: height .5s var(--ease), opacity .3s, background-color .3s; }
.dot:hover i { height: 10px; opacity: .75; }
.dot[aria-current="true"] i { height: 20px; opacity: 1; background: var(--blue); }
.dot span { position: absolute; right: 38px; padding: 4px 10px; border-radius: var(--radius-full); background: var(--surface-card); color: var(--ink); font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; transform: translateX(6px); pointer-events: none; box-shadow: 0 8px 20px -12px rgba(13, 26, 79, .5); transition: opacity .25s, transform .4s var(--ease); }
.dot:hover span, .dot:focus-visible span { opacity: 1; transform: none; }

/* chân trang cố định */
.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 var(--gx) calc(env(safe-area-inset-bottom, 0px) + 18px); color: var(--ink); pointer-events: none; transition: color .5s; }
.foot > * { pointer-events: auto; }
.hint { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .04em; opacity: .7; transition: opacity .5s, transform .6s var(--ease); }
.hint.is-off { opacity: 0; transform: translateY(8px); pointer-events: none; }
.mouse { position: relative; width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; }
.mouse i { position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; border-radius: 1px; background: currentColor; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }
.arrows { display: flex; gap: 8px; margin-left: auto; }

.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; pointer-events: none; }
.bar i { display: block; height: 100%; border-radius: 0 var(--radius-full) var(--radius-full) 0; background: linear-gradient(90deg, var(--blue) 0 34%, var(--green) 34% 67%, var(--orange) 67%); transform-origin: left; transform: scaleX(var(--p, .1)); transition: transform .95s var(--ease-io); }

/* menu toàn màn (điện thoại) */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding: calc(var(--hd) + 16px) var(--gx) 32px;
  background: var(--navy); color: var(--white);
  clip-path: circle(0% at calc(100% - var(--gx) - 26px) calc(var(--hd-top) + 26px));
  visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - var(--gx) - 26px) calc(var(--hd-top) + 26px)); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
.menu__list { display: grid; gap: 4px; }
.menu__list button { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 8px 16px; border: 0; border-radius: var(--radius-md); background: none; color: inherit; font-size: clamp(22px, 6vw, 32px); font-weight: 400; text-align: left; cursor: pointer; transition: background-color .3s; }
.menu__list small { font-size: 12px; color: var(--on-block-muted); font-variant-numeric: tabular-nums; }
.menu__list button[aria-current="true"] { background: rgba(255, 255, 255, .08); color: var(--on-block-muted); }
.menu__foot { padding-inline: 16px; font-size: 13px; color: var(--on-block-muted); }

/* ---------- tab tiêu đề: viên thuốc + chấm màu ---------- */
.tabline { display: flex; align-items: center; gap: 6px; height: 30px; flex: none; }
.tabline__tab { display: flex; align-items: center; height: 100%; padding: 0 14px; border-radius: var(--radius-full); background: var(--blue); color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.tabline__tab--navy { background: var(--block); }
.tabline__acc { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--green); }
.tabline__acc--orange { background: var(--orange); }
.tabline__rule { flex: 1; height: 1px; margin-inline: 10px 14px; background: linear-gradient(90deg, var(--border), transparent); transform-origin: left; }
.tabline__meta { display: flex; align-items: center; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }

.shead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 32px; flex-wrap: wrap; flex: none; }
.count { padding: 6px 14px; border-radius: var(--radius-full); background: var(--tint); font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.count b { margin-right: 4px; font-size: 15px; font-weight: 600; color: var(--tint-ink); font-variant-numeric: tabular-nums; }
.more { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-full); background: var(--surface-card); box-shadow: var(--shadow-soft); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: border-color .3s, background-color .3s, color .3s, transform .4s var(--ease); }
.more b { font-weight: 600; color: var(--blue-text); font-variant-numeric: tabular-nums; }
.more:hover { border-color: var(--blue); transform: translateY(-2px); }

/* ---------- 01 mở đầu ---------- */
.screen--hero {
  color: var(--white);
  background:
    radial-gradient(90% 70% at 78% 8%, rgba(57, 125, 252, .55) 0%, rgba(57, 125, 252, 0) 60%),
    radial-gradient(50% 50% at 0% 40%, rgba(57, 125, 252, .18) 0%, rgba(57, 125, 252, 0) 70%),
    linear-gradient(180deg, #0d1a4f 0%, #0a1542 60%, #0a0f25 100%);
}
/* nền: mảng màu trôi, lưới hiện quanh con trỏ, đèn soi, hạt nhiễu */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; inset: -8%; }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; }
.aurora i:nth-child(1) { width: 72vmax; height: 72vmax; right: -14vmax; top: -34vmax; background: radial-gradient(closest-side, rgba(57, 125, 252, .6), rgba(57, 125, 252, 0)); animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 54vmax; height: 54vmax; left: -20vmax; top: 18%; background: radial-gradient(closest-side, rgba(57, 125, 252, .26), rgba(57, 125, 252, 0)); animation: drift2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 32vmax; height: 32vmax; right: 16%; bottom: -14vmax; background: radial-gradient(closest-side, rgba(120, 176, 22, .2), rgba(120, 176, 22, 0)); animation: drift3 19s ease-in-out infinite alternate; }
.aurora i:nth-child(4) { width: 28vmax; height: 28vmax; left: 36%; top: -10vmax; background: radial-gradient(closest-side, rgba(254, 79, 24, .16), rgba(254, 79, 24, 0)); animation: drift4 24s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-9vmax, 7vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(10vmax, -6vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-14vmax, -8vmax) scale(1.2); } }
@keyframes drift4 { to { transform: translate(12vmax, 10vmax) scale(.85); } }
.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, rgba(0, 0, 0, .7) 10%, transparent 75%), radial-gradient(280px circle at var(--mx, -100vw) var(--my, -100vh), #000, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, rgba(0, 0, 0, .7) 10%, transparent 75%), radial-gradient(280px circle at var(--mx, -100vw) var(--my, -100vh), #000, transparent);
}
.hero__glow--low { -webkit-mask-image: radial-gradient(ellipse 60% 60% at 90% 10%, #000 5%, transparent 70%); mask-image: radial-gradient(ellipse 60% 60% at 90% 10%, #000 5%, transparent 70%); }
.hero__spot { position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(143, 180, 255, .14), rgba(143, 180, 255, 0) 70%); opacity: 0; transition: opacity .8s; }
.is-pointer .hero__spot { opacity: 1; }
.grain { position: absolute; inset: 0; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4.5vw, 72px); }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-block-muted); }
.hero__meta span + span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 16px; vertical-align: middle; border-radius: 50%; background: var(--green); }
.hero__name { margin-top: clamp(18px, 4vh, 40px); font-size: clamp(16px, 1.4vw, 20px); color: rgba(255, 255, 255, .72); }
.hero__name b { font-weight: 500; color: var(--green); }

/* tiêu đề cỡ lớn: từng dòng trồi lên, chữ đậm dần khi con trỏ tới gần */
.hero__title { margin-top: 6px; font-size: clamp(52px, min(7.6vw, 14vh), 136px); line-height: .9; font-weight: 400; letter-spacing: -.045em; }
.ln { display: block; overflow: hidden; padding: .04em .12em .16em 0; margin-bottom: -.12em; }
.ln--2 { padding-left: .42em; }
.ln__in {
  display: inline-block; will-change: transform;
  background: linear-gradient(100deg, #ffffff 0%, #dde6ff 28%, #f3e2ff 52%, #ffffff 76%, #dde6ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
.ln__in .ch { font-weight: inherit; }
.ln__dot { display: inline-block; width: .15em; height: .15em; margin-left: .05em; border-radius: 50%; background: var(--orange); box-shadow: 0 0 .3em rgba(254, 79, 24, .7); }
@keyframes sheen { 50% { background-position: 100% 0; } }

.hero__lede { margin-top: clamp(16px, 3vh, 28px); max-width: 32em; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .74); }
.rot { display: inline-grid; align-items: center; height: 1.8em; margin-left: .1em; vertical-align: middle; overflow: hidden; border-radius: var(--radius-full); background: rgba(57, 125, 252, .24); box-shadow: inset 0 0 0 1px rgba(143, 180, 255, .32); color: var(--white); font-weight: 500; }
.rot > span { grid-area: 1 / 1; justify-self: start; padding: 0 .65em; line-height: 1.8em; white-space: nowrap; }
.rot > span:not(.is-on) { opacity: 0; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 4.2vh, 40px); }
.btn { display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--radius-full); font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color .3s, border-color .3s, color .3s, box-shadow .4s; }
.btn--primary { padding-right: 8px; background: var(--white); color: var(--navy); box-shadow: 0 20px 44px -18px rgba(57, 125, 252, .85); }
.btn--primary:hover { box-shadow: 0 24px 56px -16px rgba(57, 125, 252, 1); }
.btn__ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--white); overflow: hidden; }
.btn__ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn--primary:hover .btn__ic svg { transform: translateX(3px); }
.btn--ghost { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); color: var(--white); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius-full); font-size: 12px; font-weight: 500; }
.chips--dark li { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* chồng thẻ 3D: nghiêng theo chuột, ánh sáng loang từ ảnh trên cùng */
.hero__deck { display: grid; gap: 16px; padding-top: 11%; perspective: 1400px; }
.deck { position: relative; width: min(88%, 74vh); aspect-ratio: 16 / 10; transform-style: preserve-3d; }
.deck__amb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); filter: blur(46px) saturate(1.7); opacity: .7; transform: translateZ(-420px) scale(1.75); pointer-events: none; }
.card {
  position: absolute; inset: 0;
  padding: 0; border: 0; border-radius: var(--radius-lg);
  overflow: hidden; cursor: zoom-in;
  background: #0a1542;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .12);
  transform-origin: 50% 100%;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 48%); mix-blend-mode: overlay; opacity: 0; transition: opacity .6s; pointer-events: none; }
.is-pointer .card::after { opacity: 1; }
.deck__cap { display: flex; align-items: center; gap: 12px; width: min(88%, 74vh); font-size: 13px; color: rgba(255, 255, 255, .85); }
.deck__no { flex: none; padding: 3px 10px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .08); font-size: 12px; color: var(--on-block-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.deck__title { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* dải logo khách hàng chạy ngang */
.marquee { flex: none; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.marquee__label { flex: none; display: flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 500; line-height: 1.45; letter-spacing: .12em; text-transform: uppercase; color: var(--on-block-muted); }
.marquee__label b { font-size: 34px; line-height: 1; font-weight: 500; letter-spacing: -.03em; color: var(--white); }
.marquee__track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__row { display: flex; width: max-content; animation: marquee 150s linear infinite; }
.marquee:hover .marquee__row, .fp .screen:not(.is-active) .marquee__row { animation-play-state: paused; }
.marquee__set { display: flex; gap: 10px; padding-right: 10px; }
.marquee__logo { flex: none; width: 128px; height: 58px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-full); background: rgba(255, 255, 255, .03); }
.marquee__logo img { width: 100%; height: 100%; object-fit: cover; filter: url(#logoMono); opacity: .66; transition: opacity .3s; }
.marquee__logo:hover img { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- màn chờ mở đầu ---------- */
.intro {
  position: fixed; inset: 0; z-index: 500;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(60% 50% at 50% 42%, rgba(57, 125, 252, .28), rgba(57, 125, 252, 0) 70%), #0a1236;
  color: var(--white);
  will-change: transform;
}
.intro-on .intro { display: flex; animation: introSafe .6s 7s forwards; }
@keyframes introSafe { to { opacity: 0; visibility: hidden; } }
.intro__center { display: grid; justify-items: center; gap: 18px; padding-inline: var(--gx); text-align: center; }
.intro__mark { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.intro__mark i { width: 64px; height: 30px; border-radius: var(--radius-full); background: var(--blue); }
.intro__mark i:nth-child(2) { width: 30px; background: var(--green); }
.intro__mark i:nth-child(3) { width: 30px; background: var(--orange); }
.intro__name, .intro__role { overflow: hidden; }
.intro__name span, .intro__role span { display: inline-block; }
.intro__name { font-size: clamp(38px, 6vw, 80px); line-height: 1.08; font-weight: 500; letter-spacing: -.035em; }
.intro__role { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--on-block-muted); }
.intro__foot { position: absolute; left: var(--gx); right: var(--gx); bottom: calc(env(safe-area-inset-bottom, 0px) + 36px); display: flex; align-items: center; gap: 18px; }
.intro__bar { flex: 1; height: 3px; overflow: hidden; border-radius: var(--radius-full); background: rgba(255, 255, 255, .12); }
.intro__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--green) 60%, var(--orange)); transform-origin: left; transform: scaleX(0); }
.intro__num { min-width: 3ch; font-size: 13px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; color: var(--on-block-muted); }

/* ---------- 02 về tôi ---------- */
.about { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 80px); width: 100%; max-width: 1160px; margin-inline: auto; }
.about__photo { position: relative; width: clamp(180px, min(26vw, 46vh), 380px); aspect-ratio: 1; border-radius: 50%; background: #f1f1f1; box-shadow: 0 0 0 10px var(--surface), 0 0 0 11px var(--border), 0 40px 80px -40px rgba(13, 26, 79, .45); }
.about__photo::before { content: ""; position: absolute; inset: -18%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 22%, transparent), transparent); }
.about__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.about__text { display: grid; gap: 10px; max-width: 640px; }
.about__text .title { font-size: clamp(26px, 2.6vw, 36px); }
.about__role { font-size: 14px; color: var(--ink-muted); }
.about__bio { margin-top: 6px; max-width: 34em; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-card); box-shadow: var(--shadow-soft); }
.stats dd { font-size: clamp(28px, 2.8vw, 38px); line-height: 1; font-weight: 500; letter-spacing: -.02em; color: var(--blue-text); font-variant-numeric: tabular-nums; }
.stats dt { font-size: 11px; font-weight: 500; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; color: var(--ink-muted); }
.about__info { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--ink-muted); }
.about__info span { padding: 5px 14px; border-radius: var(--radius-full); background: var(--surface-sunk); }

/* ---------- 03 trình chiếu GameFi ---------- */
.viewer { display: flex; flex-direction: column; gap: 12px; }
.stage { position: relative; flex: 1 1 auto; min-height: 160px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; background: #0a1236; box-shadow: var(--shadow-soft); }
.stage__bg { position: absolute; inset: -10%; z-index: 0; }
.stage__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(1.2); opacity: .5; transition: opacity .6s; }
.stage__main { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; background: none; cursor: zoom-in; }
.stage__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 48px 26px 30px; background: linear-gradient(180deg, rgba(7, 12, 34, 0), rgba(7, 12, 34, .8)); color: var(--white); pointer-events: none; }
.stage__title { font-size: 15px; font-weight: 500; }
.stage__meta { font-size: 12px; color: rgba(255, 255, 255, .72); }
.stage__no { position: absolute; top: 16px; right: 18px; z-index: 2; padding: 5px 12px; border-radius: var(--radius-full); background: rgba(7, 12, 34, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--white); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stage__nav { position: absolute; top: 50%; z-index: 3; margin-top: -18px; color: var(--white); background: rgba(7, 12, 34, .45); border-color: rgba(255, 255, 255, .25); opacity: 0; transition: opacity .3s, background-color .3s; }
.stage__nav:hover { background: var(--blue); border-color: var(--blue); }
.stage:hover .stage__nav, .stage__nav:focus-visible { opacity: 1; }
.stage__nav--prev { left: 18px; }
.stage__nav--next { right: 18px; }
.stage__nav { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.stage__timer { position: absolute; left: 26px; right: 26px; bottom: 16px; z-index: 3; height: 3px; border-radius: var(--radius-full); overflow: hidden; background: rgba(255, 255, 255, .16); }
.stage__timer i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.strip { flex: none; display: flex; gap: 10px; padding: 5px; margin: -5px; overflow-x: auto; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.thumb { flex: none; height: clamp(44px, 7.5vh, 68px); aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-sunk); cursor: pointer; opacity: .45; transition: opacity .3s, box-shadow .3s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .85; }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--blue); }

/* ---------- 04–05 lưới ảnh ---------- */
.mosaic { display: grid; gap: 12px; }
.mosaic--event { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr); }
.mosaic--event .tile:nth-child(-n+2) { grid-column: span 2; }
.mosaic--event .tile:nth-child(-n+2) img { object-position: 50% 78%; }
.mosaic--beauty { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; display: block; min-height: 0; padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; isolation: isolate; background: var(--surface-sunk); box-shadow: var(--shadow-soft); cursor: zoom-in; text-align: left; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; background: linear-gradient(180deg, rgba(7, 12, 34, 0), rgba(7, 12, 34, .82)); color: var(--white); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }
.tile__cap strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.3; }
.tile__cap small { display: block; font-size: 11px; color: rgba(255, 255, 255, .75); }

/* ---------- 06 tường logo ---------- */
.wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 10px; perspective: 900px; }
.lt { position: relative; min-height: 0; padding: 0; border: 0; border-radius: var(--radius-md); background: none; cursor: zoom-in; }
.lt__in { position: absolute; inset: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--tile); box-shadow: var(--shadow-soft); backface-visibility: hidden; }
.lt img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.lt:hover img { transform: scale(1.08); }
.lt__name { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 5px 12px; border-radius: var(--radius-full); background: var(--navy); color: var(--white); font-size: 11px; font-weight: 500; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); }
.lt:hover .lt__name, .lt:focus-visible .lt__name { opacity: 1; transform: none; }

/* ---------- 07 kỹ năng ---------- */
.skills { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(12px, 1.4vw, 20px); align-items: stretch; }
.skills__col { display: grid; gap: 10px; align-content: start; padding: clamp(20px, 2.2vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-card); box-shadow: var(--shadow-soft); }
.skills__col .label:not(:first-child) { margin-top: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { padding: 6px 14px; border-radius: var(--radius-full); background: var(--tint); color: var(--tint-ink); font-size: 13px; font-weight: 500; }
.pills--soft li { padding: 5px 13px; border: 1px solid var(--border); background: transparent; color: var(--ink); font-weight: 400; }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
.tool { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--ink-muted); text-align: center; }
.tool__ic { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); transition: transform .5s var(--ease), box-shadow .5s; }
.tool:hover .tool__ic { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.tool__ic.is-adobe { border-color: #151419; background: #151419; color: #ffffff; font-size: 17px; font-weight: 500; }
.tool__ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.edu { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--radius-md); background: var(--surface-sunk); }
.edu__school { font-size: 16px; font-weight: 500; }
.edu__meta { font-size: 13px; color: var(--ink-muted); }
.ai { position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(20px, 2.4vw, 32px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-lg); background: radial-gradient(120% 80% at 100% 0%, rgba(57, 125, 252, .42), rgba(57, 125, 252, 0) 60%), var(--navy); box-shadow: var(--shadow-soft); color: var(--white); }
.ai__label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.ai__title { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.25; font-weight: 500; }
.pipeline { display: flex; flex-wrap: wrap; gap: 4px; counter-reset: s; }
.pipeline li { counter-increment: s; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-full); color: rgba(255, 255, 255, .65); font-size: 12px; transition: background-color .4s, color .4s, border-color .4s; }
.pipeline li::before { content: counter(s, decimal-leading-zero) " "; font-size: 10px; color: var(--on-block-muted); }
.pipeline li.is-on { border-color: var(--white); background: var(--white); color: var(--navy); }
.pipeline li.is-on::before { color: var(--blue-text); }
.ai .chips li { font-size: 12px; }
.ai__notes { display: grid; gap: 6px; margin-top: 4px; }
.ai__notes div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 10px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); font-size: 13px; }
.ai__notes dt { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-block-muted); }

/* ---------- 08 kinh nghiệm ---------- */
.xp { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.xp__list { display: grid; gap: 6px; }
.xp__btn { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 15px 20px 15px 44px; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; text-align: left; cursor: pointer; transition: background-color .3s, box-shadow .3s, border-color .3s; }
.xp__btn::before { content: ""; position: absolute; left: 20px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--c); transition: box-shadow .4s var(--ease); }
.xp__btn:hover { background: var(--surface-sunk); }
.xp__btn[aria-pressed="true"] { border-color: var(--line); background: var(--surface-card); box-shadow: var(--shadow-soft); }
.xp__btn[aria-pressed="true"]::before { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }
.xp__co { font-size: 16px; font-weight: 500; }
.xp__date { font-size: 12px; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-c="blue"] { --c: var(--blue); } [data-c="green"] { --c: var(--green); } [data-c="deep"] { --c: var(--blue-text); }
[data-c="orange"] { --c: var(--orange); } [data-c="navy"] { --c: var(--navy-mark); }
.xp__panel { position: relative; isolation: isolate; display: grid; gap: 8px; padding: clamp(24px, 2.8vw, 40px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-card); box-shadow: var(--shadow-soft); }
.xp__panel::before { content: ""; position: absolute; z-index: -1; right: -90px; top: -110px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), transparent); transition: background .6s; }
.xp__p-role { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; font-weight: 500; color: var(--blue-text); }
.xp__p-co { font-size: 13px; color: var(--ink-muted); }
.xp__p-desc { font-size: 14px; color: var(--ink-muted); }
.xp__p-list { position: relative; z-index: 1; display: grid; gap: 8px; margin-top: 10px; }
.xp__p-list li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.xp__p-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.xp__p-year { position: absolute; right: 18px; bottom: -18px; font-size: clamp(72px, 8vw, 120px); line-height: 1; font-weight: 300; color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; font-variant-numeric: tabular-nums; }

/* ---------- 09 liên hệ ---------- */
.screen--contact { color: var(--white); background: radial-gradient(70% 60% at 85% 0%, rgba(57, 125, 252, .4), rgba(57, 125, 252, 0) 70%), linear-gradient(180deg, #0d1a4f, #0a1236); }
.contact { display: grid; gap: 14px; width: 100%; max-width: 1100px; }
.contact__blocks { display: flex; gap: 4px; }
.contact__blocks i { width: 26px; height: 8px; border-radius: var(--radius-full); background: var(--blue); }
.contact__blocks i:nth-child(2) { width: 8px; background: var(--green); }
.contact__blocks i:nth-child(3) { width: 8px; background: var(--orange); }
.contact__eyebrow { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-block-muted); }
.contact__title { max-width: 14em; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; font-weight: 500; letter-spacing: -.03em; }
.contact__lede { font-size: 15px; color: rgba(255, 255, 255, .75); }
.clist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: clamp(12px, 4vh, 40px); }
.clist li { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 14px 12px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-md); background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.clist li:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.clist svg { width: 40px; height: 40px; flex: none; padding: 10px; border-radius: 50%; background: rgba(143, 180, 255, .14); fill: none; stroke: var(--on-block-muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.clist__v { color: var(--white); font-size: 15px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
a.clist__v::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
a.clist__v:hover { color: var(--on-block-muted); }
.copy { margin-left: auto; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius-full); background: transparent; color: var(--white); font-size: 11px; font-weight: 500; cursor: pointer; transition: background-color .25s, color .25s; }
.copy:hover { background: var(--white); color: var(--navy); }
.contact__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: clamp(12px, 4vh, 40px); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--on-block-muted); }

/* ---------- xem ảnh lớn ---------- */
.lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 64px) var(--gx) calc(env(safe-area-inset-bottom, 0px) + 24px); }
.lb__bg { position: absolute; inset: 0; background: rgba(7, 12, 34, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s; }
.lb.is-open .lb__bg { opacity: 1; }
.lb__fig { position: relative; display: grid; gap: 12px; max-width: min(1400px, 100%); max-height: 100%; opacity: 0; transform: translateY(20px) scale(.97); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.lb.is-open .lb__fig { opacity: 1; transform: none; }
.lb__stage { display: grid; place-items: center; min-height: 0; }
.lb__stage img { width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 180px); object-fit: contain; border-radius: var(--radius-md); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.lb__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; color: var(--white); }
.lb__title { font-size: 16px; font-weight: 500; }
.lb__meta { font-size: 13px; color: var(--on-block-muted); }
.lb__count { margin-left: auto; padding: 4px 12px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--on-block-muted); font-variant-numeric: tabular-nums; }
.lb__btn { position: absolute; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(13, 26, 79, .6); color: var(--white); cursor: pointer; transition: background-color .3s, transform .4s var(--ease); }
.lb__btn:hover { background: var(--blue); }
.lb__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb__close { top: calc(env(safe-area-inset-top, 0px) + 12px); right: var(--gx); }
.lb__close:hover { transform: rotate(90deg); }
.lb__prev { left: var(--gx); top: 50%; margin-top: -22px; }
.lb__next { right: var(--gx); top: 50%; margin-top: -22px; }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 320; padding: 10px 18px; border-radius: var(--radius-full); background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 500; opacity: 0; visibility: hidden; transform: translate(-50%, 16px); transition: opacity .3s, transform .55s var(--ease), visibility 0s .55s; pointer-events: none; }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .3s, transform .55s var(--ease), visibility 0s; }

/* ---------- màn hình thấp ---------- */
@media (max-height: 760px) and (min-width: 761px) {
  :root { --hd: 64px; --hd-top: 8px; --gb: 64px; }
  .tabline { height: 26px; }
  .about__photo { width: clamp(160px, 38vh, 300px); }
  .stats { margin-top: 8px; }
  .stats div { padding: 12px 16px; }
}

/* ---------- máy tính bảng ---------- */
@media (max-width: 1100px) {
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills .ai { grid-column: 1 / -1; }
  .hd__label { display: none; }
}

/* ---------- điện thoại ---------- */
@media (max-width: 760px) {
  :root { --hd: 68px; --hd-top: 10px; --gx: 18px; --gb: 72px; }
  .dots, .hd__cta { display: none; }
  .menu-btn { display: grid; }
  .hd { left: 10px; right: 10px; gap: 12px; padding: 0 6px 0 16px; }
  .hd__now { font-size: 12px; }
  .menu { clip-path: circle(0% at calc(100% - 34px) calc(var(--hd-top) + 25px)); }
  .menu.is-open { clip-path: circle(150% at calc(100% - 34px) calc(var(--hd-top) + 25px)); }
  .tabline__meta { display: none; }
  .tabline__rule { margin-right: 0; }

  .hero { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 22px; }
  .hero__meta { display: none; }
  .hero__name { margin-top: 0; font-size: 15px; }
  .hero__title { font-size: clamp(46px, 15vw, 72px); }
  .hero__lede { margin-top: 12px; font-size: 15px; }
  .hero__cta { margin-top: 18px; }
  .btn { height: 46px; padding: 0 18px; font-size: 14px; }
  .btn--primary { padding-right: 5px; }
  .btn__ic { width: 36px; height: 36px; }
  .hero__deck { gap: 12px; padding-top: 8%; justify-items: center; }
  .deck, .deck__cap { width: 76%; }
  .marquee { gap: 12px; }
  .marquee__label { gap: 8px; font-size: 9px; }
  .marquee__label b { font-size: 26px; }
  .marquee__logo { width: 96px; height: 44px; }

  .about { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .about__photo { width: 120px; box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--border); }
  .stats { gap: 8px; }
  .stats div { padding: 12px; border-radius: var(--radius-sm); }
  .stats dt { font-size: 10px; letter-spacing: .06em; }

  .stage { min-height: 200px; }
  .stage__nav { opacity: 1; }

  .mosaic--event { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .mosaic--event .tile:nth-child(2) { display: none; }
  .mosaic--beauty { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .mosaic--beauty .tile:nth-child(n+7) { display: none; }
  .mosaic { gap: 8px; }
  .tile { border-radius: var(--radius-sm); }
  .tile__cap { display: none; }

  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .lt, .lt__in { border-radius: var(--radius-sm); }
  .lt:nth-child(n+13) { display: none; }
  .lt__name { left: 5px; right: 5px; bottom: 5px; opacity: 1; transform: none; font-size: 10px; padding: 3px 8px; }

  .stage { border-radius: var(--radius-md); }
  .stage__cap { padding: 40px 18px 26px; }
  .stage__timer { left: 18px; right: 18px; bottom: 12px; }

  .skills { grid-template-columns: minmax(0, 1fr); }
  .xp { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .xp__btn { padding-block: 11px; }
  .clist { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .clist li { padding-block: 8px; }
  .lb__prev, .lb__next { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); margin-top: 0; }
}
@media (max-width: 760px) and (hover: none) {
  .hint__txt { font-size: 0; }
  .hint__txt::after { content: "Vuốt lên để chuyển màn"; font-size: 12px; }
  .mouse { display: none; }
}

/* ---------- giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
