/* Vũ Số Hóa: màu lấy từ logo và banner trong thư mục brand/ */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-vietnamese-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --violet-400: #8B52FF;
  --violet-500: #7C3FEA;
  --violet-600: #5B26CF;
  --violet-800: #3A1590;
  --violet-950: #1E0A46;
  --gold: #FFBE1E;
  --gold-soft: #FFD257;
  --cream: #FDF1D8;
  --paper: #FFFAF0;
  --ink: #1E0A46;
  --ink-soft: #4B3B6E;
  --rule: rgba(30, 10, 70, .14);
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100%, 76rem); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  padding: .6rem 1rem; border-radius: .5rem;
  background: var(--ink); color: #fff;
}
.skip:focus { top: .75rem; }

h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 800;
  text-wrap: balance;
}
.eyebrow {
  margin-bottom: .9rem;
  color: var(--violet-600);
  font-size: .875rem;
  font-weight: 700;
}
.eyebrow--gold { color: var(--gold); }

/* Thanh trên cùng */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 800; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
}
.topbar nav { display: flex; gap: clamp(.9rem, 3vw, 2rem); }
.topbar nav a {
  padding-block: .6rem;
  font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.topbar nav a:hover { color: var(--violet-600); }

/* Hero: bố cục đường chéo của banner */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(36rem, calc(100svh - 4rem), 52rem);
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(30, 10, 70, .09) 1px, transparent 1.5px) 0 0 / 26px 26px,
    radial-gradient(60% 70% at 38% 0%, rgba(255, 190, 30, .34), transparent 70%),
    linear-gradient(120deg, var(--paper), var(--cream));
}
.hero__copy {
  position: relative; z-index: 3;
  width: min(100%, 76rem); margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
}
.hero__logo { width: clamp(4rem, 7vw, 5.5rem); height: auto; margin-bottom: 1.25rem; border-radius: 22%; }

.wordmark {
  isolation: isolate;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark__b { position: relative; color: var(--violet-600); }
.wordmark__b::before {
  content: "";
  position: absolute; z-index: -1;
  left: -.14em; right: -.14em; bottom: .1em; height: .36em;
  border-radius: .08em;
  background: var(--gold);
}

.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.pills li {
  padding: .35rem 1rem;
  border-radius: 999px;
  background: var(--violet-600); color: #fff;
  font-size: .95rem; font-weight: 700;
}
.pills .pills__dark { background: var(--ink); }

.hero__lead { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 600; text-wrap: balance; }
.hero__motto { color: var(--violet-600); font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .6rem 1.4rem;
  border: 2px solid var(--ink); border-radius: .75rem;
  font-weight: 700; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--violet-600); border-color: var(--violet-600); }
.btn--line:hover { background: var(--ink); color: #fff; }

.hero__panel { position: absolute; inset: 0 0 0 auto; width: 56%; --top: 24%; --bottom: 0%; }
.slash {
  position: absolute; inset: 0;
  clip-path: polygon(calc(var(--top) + var(--d)) 0, 100% 0, 100% 100%, calc(var(--bottom) + var(--d)) 100%);
}
.slash--line { --d: 0rem; background: var(--violet-600); }
.slash--gap  { --d: .5rem; background: var(--cream); }
.slash--gold { --d: 1.5rem; background: var(--gold); }
.slash--main {
  --d: 3rem;
  background:
    radial-gradient(34% 44% at 64% 40%, rgba(255, 190, 30, .32), transparent 72%),
    linear-gradient(180deg, var(--violet-500), var(--violet-800) 62%, var(--violet-950));
}
.rings {
  position: absolute; right: -8%; top: -6%;
  width: 112%; height: auto;
  stroke: rgba(255, 255, 255, .16); stroke-width: 1.5;
}
.hero__portrait {
  position: absolute; z-index: 2;
  right: max(3%, calc((100vw - 76rem) / 2));
  top: 10%;
  width: auto; height: 122%; max-width: none;
  filter: drop-shadow(0 0 22px rgba(255, 200, 110, .4));
}

/* Giới thiệu */
.about { padding-block: clamp(4rem, 9vw, 7rem); }
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 5rem); }
.about__intro p:last-child { margin-top: 1.25rem; max-width: 34rem; color: var(--ink-soft); }
.pillars { counter-reset: pillar; }
.pillars li {
  counter-increment: pillar;
  display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
.pillars li:last-child { border-bottom: 1px solid var(--rule); }
.pillars li::before {
  content: "0" counter(pillar);
  grid-row: span 2;
  color: var(--violet-600);
  font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums;
}
.pillars h3 { font-size: 1.35rem; line-height: 1.3; letter-spacing: -.01em; }
.pillars p { margin-top: .3rem; color: var(--ink-soft); }

/* Bài viết trên trang chủ */
.work {
  --muted: rgba(255, 255, 255, .74);
  --media: rgba(255, 255, 255, .08);
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--violet-950); color: #fff;
}
.work__head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Thẻ bài viết */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.5rem; margin-top: 2.5rem; }
.post__link { display: block; text-decoration: none; }
.post__media {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: .9rem;
  background: var(--media, var(--cream));
}
.thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.thumb--none { width: 4.5rem; height: 4.5rem; border-radius: 22%; }
.post__link:hover .thumb:not(.thumb--none) { transform: scale(1.03); }
.post__chip {
  position: absolute; left: .6rem; top: .6rem;
  padding: .1rem .6rem; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  font-size: .8rem; font-weight: 700;
}
.post__meta { margin-top: .9rem; color: var(--muted, var(--ink-soft)); font-size: .875rem; font-weight: 600; }
.post h2, .post h3 {
  margin-top: .3rem;
  font-size: 1.2rem; line-height: 1.32; letter-spacing: -.01em; font-weight: 700;
  transition: color .15s ease;
}
.post__link:hover h2, .post__link:hover h3 { color: var(--violet-600); }
.work .post__link:hover h3 { color: var(--gold); }
.post__summary {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  margin-top: .4rem; color: var(--muted, var(--ink-soft)); font-size: 1rem;
}
.empty { margin-top: 2rem; color: var(--muted, var(--ink-soft)); }

/* Trang danh sách bài viết */
.blog { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }
.blog h1, .article h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.12; letter-spacing: -.025em; font-weight: 800; text-wrap: balance;
}
.topics { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.topics a {
  padding: .4rem 1rem;
  border: 2px solid var(--rule); border-radius: 999px;
  font-size: .95rem; font-weight: 600; text-decoration: none;
}
.topics a:hover { border-color: var(--violet-600); }
.topics a[aria-current] { border-color: var(--violet-600); background: var(--violet-600); color: #fff; }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; font-weight: 600; }

/* Trang bài viết */
.article { max-width: 52rem; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6rem); }
.article__back { color: var(--violet-600); font-weight: 600; text-underline-offset: .2em; }
.article .post__meta { margin-top: 1.5rem; margin-bottom: .5rem; }
.article__media {
  margin: 2rem 0 0;
  aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center;
  border-radius: 1.1rem; background: var(--cream);
}
.article__play { position: relative; display: block; width: 100%; height: 100%; }
.article__icon {
  position: absolute; right: .9rem; bottom: .9rem;
  width: 4.25rem; height: 3rem;
  border-radius: .85rem; background: var(--gold);
  transition: transform .15s ease;
}
.article__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -.75rem 0 0 -.5rem;
  border-style: solid; border-width: .75rem 0 .75rem 1.25rem;
  border-color: transparent transparent transparent var(--ink);
}
.article__play:hover .article__icon { transform: scale(1.08); }
.article__lead { margin-top: 1.75rem; font-size: 1.2rem; font-weight: 500; }
.article__body { margin-top: 1rem; color: var(--ink-soft); }
.article__body h2 { margin-top: 2rem; color: var(--ink); font-size: 1.45rem; line-height: 1.25; letter-spacing: -.015em; }
.article__body p { margin-top: 1rem; }
.article__body ul { margin-top: .75rem; padding-left: 1.25rem; list-style: disc; }
.article__body li + li { margin-top: .35rem; }
.article__links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* Kết nối */
.connect {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: linear-gradient(160deg, var(--violet-500), var(--violet-800));
  color: #fff;
}
.connect__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.channels a {
  display: flex; align-items: baseline; justify-content: space-between; gap: .25rem 1rem;
  flex-wrap: wrap;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .28);
  font-size: 1.2rem; font-weight: 700; text-decoration: none;
  transition: color .15s ease, padding-left .15s ease;
}
.channels li:last-child a { border-bottom: 1px solid rgba(255, 255, 255, .28); }
.channels a:hover { color: var(--gold); padding-left: .5rem; }
.channels__handle { font-size: 1rem; font-weight: 500; opacity: .85; overflow-wrap: anywhere; }

/* Chân trang */
.footer { padding-block: 1.5rem; background: var(--violet-950); color: rgba(255, 255, 255, .75); font-size: .9rem; }
.footer__inner { display: flex; align-items: center; gap: .75rem; }
.footer img { border-radius: 22%; }

/* Trang 404 */
.notfound {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1rem;
  min-height: 60svh;
}

/* Màn hình hẹp: chữ ở trên, ảnh ở dưới */
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero__copy { padding-bottom: 2.25rem; }
  .hero__panel {
    position: relative; inset: auto; width: 100%; height: clamp(24rem, 96vw, 34rem);
  }
  .slash { clip-path: polygon(0 calc(2.75rem + var(--d)), 100% var(--d), 100% 100%, 0 100%); }
  .slash--gold { --d: 1rem; }
  .slash--main { --d: 1.6rem; background: radial-gradient(50% 44% at 50% 42%, rgba(255, 190, 30, .32), transparent 72%), linear-gradient(180deg, var(--violet-500), var(--violet-800) 62%, var(--violet-950)); }
  .rings { right: auto; left: 50%; top: 2%; width: 150%; transform: translateX(-50%); }
  .hero__portrait {
    top: auto; right: auto; left: 50%; bottom: 0;
    width: min(70vw, 22rem); height: auto;
    transform: translate(-50%, 34%);
  }
  .about__grid, .connect__grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .posts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .brand span { font-size: .95rem; }
  .topbar nav a { font-size: .875rem; }
}
@media (max-width: 360px) {
  .brand span { display: none; }
}
