/* ==========================================================================
   Nguyễn Gia Đạt — style.css
   Một file duy nhất cho toàn site. Thứ tự: token màu & chữ → nền tảng → từng
   thành phần → các khối bổ sung theo từng đợt chỉnh sửa (v3, v5...).
   Các khối phía sau ghi đè khối phía trước, nên khi sửa một thành phần hãy
   tìm hết các chỗ nó xuất hiện. Xem README.md, mục "Design tokens".
   ========================================================================== */
/* Layout: full-bleed smoke hero, then left-aligned bands on one 1320px wrap. Rhythm comes from alternating
   grounds: page, a deep-purple rounded band (expertise), a tinted band (process), a dark streak card, a dark footer card. */
:root {
  color-scheme: light;
  --bg: #faf9fc;
  --surface: #f0edf5;
  --ink: #0c0a10;
  --muted: #625c6c;
  --line: rgba(12, 10, 16, 0.14);
  --brand: #3d2461;
  --brand-2: #6a45b0;
  --accent: #3d2461;
  --on-brand: #f3ecfd;
  --on-brand-dim: rgba(243, 236, 253, 0.68);
  --cover: #140b22;
  --deep: #0e0a14;
  --deep-2: #2b1747;
  --on-deep: #f3ecfd;
  --on-deep-dim: rgba(243, 236, 253, 0.64);
  --deep-line: rgba(243, 236, 253, 0.15);
  --deep-accent: #c2aaec;
  --smoke-a: #3d2461;
  --smoke-b: #8f6fd0;
  --smoke-k: 0.42;
  --nav-bg: rgba(250, 249, 252, 0.8);
  --f-hero: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --f: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.7rem, 7.4vw, 6.6rem);
  --fs-h1: clamp(2.2rem, 5.2vw, 4.4rem);
  --fs-h2: clamp(1.85rem, 3.8vw, 3.2rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1.06rem, 1.4vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-label: 0.72rem;
  --r: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08070a;
    --surface: #14111b;
    --ink: #f4f1f8;
    --muted: #a098ad;
    --line: rgba(244, 241, 248, 0.15);
    --accent: #c2aaec;
    --deep: #120d1b;
    --deep-2: #35205a;
    --smoke-a: #3d2461;
    --smoke-b: #a485e6;
    --smoke-k: 1;
    --nav-bg: rgba(8, 7, 10, 0.74);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08070a;
  --surface: #14111b;
  --ink: #f4f1f8;
  --muted: #a098ad;
  --line: rgba(244, 241, 248, 0.15);
  --accent: #c2aaec;
  --deep: #120d1b;
  --deep-2: #35205a;
  --smoke-a: #3d2461;
  --smoke-b: #a485e6;
  --smoke-k: 1;
  --nav-bg: rgba(8, 7, 10, 0.74);
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 var(--fs-body)/1.7 var(--f);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition:
    background 0.4s,
    color 0.4s;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  display: block;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--brand);
  color: var(--on-brand);
}

.wrap {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4.2vw, 60px);
}
.sec {
  padding-block: clamp(72px, 9.5vw, 140px);
}
.sec.tight {
  padding-block: clamp(40px, 5vw, 72px);
}
.rule {
  border-top: 1px solid var(--line);
}
.label {
  font: 500 var(--fs-label)/1.4 var(--f);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label.on {
  color: var(--accent);
}
.display {
  font-family: var(--f);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h1 {
  font-size: var(--fs-h1);
  line-height: 1.14;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.18;
}
.h3 {
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  max-width: 36em;
}
.muted {
  color: var(--muted);
}
.prose {
  display: grid;
  gap: 1.15em;
  max-width: 38em;
}
em.hl {
  font-style: normal;
  color: var(--accent);
}

/* bands: the grounds that break up the page */
.band {
  margin-inline: clamp(8px, 1.2vw, 18px);
  border-radius: clamp(22px, 3vw, 40px);
  padding-block: clamp(64px, 9vw, 128px);
}
.band.dark {
  background: linear-gradient(152deg, var(--deep-2), var(--deep) 48%);
  color: var(--on-deep);
  --ink: var(--on-deep);
  --muted: var(--on-deep-dim);
  --line: var(--deep-line);
  --accent: var(--deep-accent);
  --bg: var(--deep);
}
.band.tint {
  background: var(--surface);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 1.55em;
  border-radius: 999px;
  font: 500 0.94rem/1 var(--f);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.4s var(--ease);
}
.btn .ar {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.btn:hover .ar {
  transform: translateX(5px);
}
.wk-more:hover .ar {
  transform: translateY(3px);
}
.btn:active {
  transform: scale(0.97);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.line {
  background: transparent;
  color: var(--on-deep);
  border-color: var(--on-deep-dim);
}
.btn.line:hover {
  background: var(--on-deep);
  color: var(--deep);
  border-color: var(--on-deep);
}
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 500;
  font-size: 0.96rem;
  padding-bottom: 0.25em;
  border-bottom: 1px solid var(--line);
  transition:
    border-color 0.3s,
    color 0.3s;
}
.tlink:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tlink .ar {
  transition: transform 0.35s var(--ease);
}
.tlink:hover .ar {
  transform: translateX(5px);
}
.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition:
    background 0.35s,
    border-color 0.35s,
    transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.away {
  transform: translateY(-100%);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.logo {
  font: 600 1.18rem/1 var(--f);
  letter-spacing: -0.03em;
}
.logo i {
  font-style: normal;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 400;
  position: relative;
  padding-block: 6px;
  color: var(--muted);
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.5s var(--ease);
}
.icon-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.nav .btn {
  padding: 0.8em 1.3em;
  font-size: 0.86rem;
}
#menuBtn {
  display: none;
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  padding: calc(96px + env(safe-area-inset-top, 0px)) clamp(18px, 4.2vw, 60px) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  overflow: auto;
}
.menu a.big {
  display: block;
  font: 300 clamp(2.1rem, 10vw, 3.2rem)/1.3 var(--f);
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
  padding-block: 0.22em;
}
.menu a.big[aria-current="page"] {
  color: var(--accent);
}
@media (max-width: 900px) {
  .nav-links,
  .nav .btn {
    display: none;
  }
  #menuBtn {
    display: grid;
  }
}

/* views */
.view {
  min-height: 60vh;
}
.view.inner {
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
}
.page-head {
  padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px);
  display: grid;
  gap: 26px;
}
@media (prefers-reduced-motion: no-preference) {
  .view {
    animation: viewIn 0.7s var(--ease);
  }
  @keyframes viewIn {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .rise {
    animation: rise 1.1s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 100ms + 150ms);
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .hero h1 .ln > span {
    animation: lineUp 1.2s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 120ms + 200ms);
  }
  @keyframes lineUp {
    from {
      transform: translateY(108%);
    }
    to {
      transform: none;
    }
  }
  /* scroll reveal: only armed by script, only for content below the first screen */
  .rv [data-rv] {
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity 1s var(--ease),
      transform 1s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .rv [data-rv].in {
    opacity: 1;
    transform: none;
  }
}

/* hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(90svh, 880px);
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(60% 70% at 78% 30%, color-mix(in srgb, var(--smoke-a) calc(var(--smoke-k) * 100%), var(--bg)), transparent 70%),
    var(--bg);
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-in {
  width: 100%;
  padding-block: calc(120px + env(safe-area-inset-top, 0px)) clamp(36px, 5vw, 64px);
  display: grid;
  gap: clamp(22px, 3vw, 36px);
}
.hero h1 {
  font-family: var(--f-hero);
  font-weight: 300;
  letter-spacing: -0.025em;
  font-size: var(--fs-hero);
  line-height: 1.08;
  max-width: 11.5em;
}
.hero h1 .ln {
  display: block;
  overflow: hidden;
  padding-block: 0.24em 0.2em;
  margin-top: -0.44em;
}
.hero h1 {
  padding-top: 0.2em;
  margin-bottom: -0.2em;
}
.hero h1 .ln > span {
  display: block;
}
.hero .lead {
  max-width: 34em;
}
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 40px;
  padding-top: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--line);
  margin-top: clamp(12px, 3vw, 40px);
}
.hero-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

/* proof strip */

/* split blocks */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}
.split.rev {
  grid-template-columns: 7fr 5fr;
}
.split > * {
  min-width: 0;
}
.stack {
  display: grid;
  gap: clamp(18px, 2.2vw, 28px);
  justify-items: start;
}
.photo {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.photo:hover img {
  transform: scale(1.04);
}
.photo.land {
  aspect-ratio: 4/3;
}
.photo.land img {
  object-position: 68% 40%;
}
.photo.port {
  aspect-ratio: 4/5;
}
.photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 0.55em 1em;
  border-radius: 999px;
  background: var(--cover);
  color: var(--on-brand);
  font: 500 0.68rem/1.3 var(--f);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 860px) {
  .split,
  .split.rev {
    grid-template-columns: 1fr;
  }
  .photo.port {
    max-width: 440px;
  }
}

.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.sec-head .stack {
  gap: 16px;
}
@media (max-width: 700px) {
  .sec-head {
    grid-template-columns: 1fr;
  }
}

/* expertise: list on the left, picture for the active line on the right */
.exp {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.exp-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding-block: clamp(16px, 2vw, 26px);
  border-top: 1px solid var(--line);
  opacity: 0.5;
  transition:
    opacity 0.45s,
    padding 0.55s var(--ease);
}
.exp-list li:last-child .exp-item {
  border-bottom: 1px solid var(--line);
}
.exp-item.on {
  opacity: 1;
  padding-left: 16px;
}
.exp-name {
  font-size: clamp(1.5rem, 3.1vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.exp-desc {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 32em;
}
.exp-ar {
  grid-row: 1/3;
  grid-column: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transform: scale(0.7) rotate(-45deg);
  opacity: 0;
  transition:
    transform 0.55s var(--ease),
    opacity 0.4s;
}
.exp-item.on .exp-ar {
  transform: none;
  opacity: 1;
}
.exp-stage {
  position: sticky;
  top: 104px;
  aspect-ratio: 1/1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--deep);
  border: 1px solid var(--line);
}
.exp-fig {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(1.1);
  clip-path: inset(14% round 18px);
  transition:
    opacity 0.55s var(--ease),
    transform 1.2s var(--ease),
    clip-path 1s var(--ease);
  background:
    radial-gradient(70% 60% at var(--gx, 70%) var(--gy, 20%), var(--brand-2), transparent 70%),
    radial-gradient(70% 70% at 10% 100%, var(--brand), transparent 70%), var(--deep);
}
.exp-fig.on {
  opacity: 1;
  transform: none;
  clip-path: inset(0 round 0px);
  z-index: 1;
}
.exp-fig svg {
  width: 84%;
  height: auto;
  max-height: 84%;
}
.exp-fig img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.exp-fig figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 0.6em 1em;
  border-radius: 999px;
  background: var(--on-deep);
  color: var(--deep);
  font: 500 0.68rem/1.3 var(--f);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ill .s {
  fill: none;
  stroke: var(--deep-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ill .f1 {
  fill: var(--brand-2);
}
.ill .f2 {
  fill: var(--on-deep);
}
.ill .f3 {
  fill: var(--on-deep);
  opacity: 0.38;
}
.ill text {
  fill: var(--deep);
  font: 700 15px var(--f);
}
@media (max-width: 860px) {
  .exp {
    grid-template-columns: 1fr;
  }
  .exp-stage {
    order: -1;
    position: relative;
    top: auto;
    aspect-ratio: 16/11;
  }
  .exp-item.on {
    padding-left: 0;
  }
}

/* project cards */
.pgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 5.5vw, 84px) clamp(20px, 3vw, 44px);
}
@media (max-width: 760px) {
  .pgrid {
    grid-template-columns: 1fr;
  }
}
.pc {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}
.pc-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 16/11;
  border-radius: var(--r);
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 30px);
  color: var(--on-brand);
  background: var(--cover);
  isolation: isolate;
  margin-bottom: 8px;
}
.pc-cover::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(38% 46% at var(--x, 70%) var(--y, 30%), var(--brand-2), transparent 70%),
    radial-gradient(46% 52% at calc(100% - var(--x, 70%)) calc(100% - var(--y, 30%)), var(--brand), transparent 72%);
  filter: blur(22px);
  transition: transform 1.4s var(--ease);
}
.pc:hover .pc-cover::before {
  transform: scale(1.12);
}
.pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font: 500 0.66rem/1 var(--f);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7em 1em;
  border-radius: 999px;
  border: 1px solid var(--on-brand-dim);
  color: var(--on-brand);
}
.pc-kpi {
  display: grid;
  gap: 8px;
  transition: transform 0.7s var(--ease);
}
.pc:hover .pc-kpi {
  transform: translateY(-6px);
}
.pc-kpi b {
  font: 300 clamp(2.1rem, 5.2vw, 4.6rem)/1.04 var(--f);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.pc-kpi.word b {
  font-size: clamp(1.6rem, 3.3vw, 2.9rem);
  line-height: 1.14;
}
.pc-kpi span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--on-brand-dim);
  max-width: 30em;
}
.pc-open {
  position: absolute;
  right: clamp(14px, 2vw, 24px);
  top: clamp(14px, 2vw, 24px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--on-brand);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transform: scale(0.6) rotate(-45deg);
  opacity: 0;
  transition:
    transform 0.5s var(--ease),
    opacity 0.3s;
}
a.pc-cover:hover .pc-open,
a.pc-cover:focus-visible .pc-open {
  transform: none;
  opacity: 1;
}
.pc h3 {
  font: 500 clamp(1.3rem, 2.1vw, 1.75rem)/1.25 var(--f);
  letter-spacing: -0.025em;
}
.pc p {
  color: var(--muted);
  max-width: 34em;
}
.pc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  margin-top: 6px;
}

/* clients marquee */
.mq {
  display: grid;
  gap: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.mq-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: mq 52s linear infinite;
}
.mq-track.rev {
  animation-direction: reverse;
  animation-duration: 60s;
}
.mq:hover .mq-track {
  animation-play-state: paused;
}
@keyframes mq {
  to {
    transform: translateX(calc(-50% - 7px));
  }
}
.logo-tile {
  flex: none;
  display: grid;
  gap: 5px;
  align-content: center;
  min-width: 230px;
  height: 108px;
  padding: 0 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition:
    background 0.4s,
    color 0.4s,
    border-color 0.4s;
}
.logo-tile:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.logo-tile:hover span {
  color: var(--on-brand-dim);
}
.logo-tile b {
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.logo-tile span {
  font: 500 0.64rem/1.3 var(--f);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.4s;
}
.logo-tile img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  justify-self: center;
}
@media (prefers-reduced-motion: reduce) {
  .mq {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .mq-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    padding-inline: clamp(18px, 4.2vw, 60px);
  }
  .mq-track [aria-hidden] {
    display: none;
  }
  .mq-track.rev {
    display: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* process */
.steps {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
  position: relative;
  padding-top: 40px;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 1px;
  background: var(--line);
}
.steps::after {
  background: var(--accent);
  height: 2px;
  top: 4.5px;
  transform: scaleX(var(--p, 1));
  transform-origin: 0 50%;
}
.steps > li {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.steps > li::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent);
  transition:
    background 0.4s,
    box-shadow 0.4s;
}
.steps > li.dim {
  opacity: 0.38;
  transform: translateY(8px);
}
.steps > li.dim::before {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--muted);
}
.steps .num {
  font: 500 var(--fs-label)/1 var(--f);
  letter-spacing: 0.14em;
  color: var(--accent);
}
.steps p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}
@media (max-width: 980px) {
  .steps {
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-left: 34px;
    gap: 30px;
  }
  .steps::before,
  .steps::after {
    left: 5px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }
  .steps::after {
    width: 2px;
    left: 4.5px;
    transform: scaleY(var(--p, 1));
    transform-origin: 50% 0;
  }
  .steps > li::before {
    top: 4px;
    left: -34px;
  }
}

/* career */
.career {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.career > li {
  padding: 28px clamp(16px, 2.4vw, 36px) 0 0;
  border-top: 1px solid var(--line);
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
}
.career > li::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--muted);
}
.career > li.now::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent);
}
.career p {
  color: var(--muted);
  max-width: 26em;
}
@media (max-width: 820px) {
  .career {
    grid-template-columns: 1fr;
  }
  .career > li {
    padding: 24px 0 28px 26px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .career > li::before {
    top: 30px;
    left: -6px;
  }
}

/* posts */
.posts > li {
  border-top: 1px solid var(--line);
}
.posts > li:last-child {
  border-bottom: 1px solid var(--line);
}
.post {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  gap: 10px clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding-block: clamp(22px, 2.8vw, 36px);
  transition: padding 0.5s var(--ease);
}
.post:hover {
  padding-left: 14px;
}
.post h3 {
  font: 500 clamp(1.15rem, 1.9vw, 1.5rem)/1.35 var(--f);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.post p {
  color: var(--muted);
  margin-top: 0.5em;
  max-width: 40em;
}
.status {
  font: 500 0.66rem/1 var(--f);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65em 1em;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .post {
    grid-template-columns: 1fr;
  }
  .post:hover {
    padding-left: 0;
  }
  .status {
    justify-self: start;
  }
}
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topics li {
  padding: 0.6em 1.05em;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.86rem;
}

/* closing card: dark ground with slow diagonal streaks */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--deep);
  color: var(--on-deep);
  border: 1px solid var(--deep-line);
  border-radius: clamp(20px, 3vw, 36px);
  padding: clamp(64px, 10vw, 150px) clamp(22px, 5vw, 80px);
  display: grid;
  gap: clamp(16px, 2.2vw, 26px);
  justify-items: center;
  text-align: center;
}
.cta canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.cta .label {
  color: var(--deep-accent);
}
.cta h2 {
  font-size: clamp(1.9rem, 4.8vw, 4rem);
  line-height: 1.14;
  max-width: 15em;
}
.cta p {
  color: var(--on-deep-dim);
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.6;
}
.cta .btnrow {
  justify-content: center;
  margin-top: 10px;
}
.cta .mail {
  font-weight: 400;
  font-size: 1.02rem;
  color: var(--on-deep-dim);
  user-select: all;
}

/* about extras */
.system {
  display: grid;
  gap: 14px;
}
.sys-top {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 2.6vw, 32px);
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 8px 32px;
  align-items: baseline;
}
.sys-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sys-col {
  background: var(--surface);
  border-radius: var(--r);
  padding: clamp(20px, 2.6vw, 32px);
  display: grid;
  gap: 18px;
  align-content: start;
}
.sys-col ul {
  display: grid;
  gap: 16px;
}
.sys-col li {
  display: grid;
  gap: 4px;
}
.sys-col li b {
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.35;
}
.sys-col li span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.sys-arrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 860px) {
  .sys-flow,
  .sys-top {
    grid-template-columns: 1fr;
  }
}
.quote {
  font: 300 clamp(1.5rem, 3.3vw, 2.7rem)/1.34 var(--f);
  letter-spacing: -0.03em;
  max-width: 23em;
  text-wrap: balance;
}
.tl > li {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 8px clamp(20px, 4vw, 64px);
  padding-block: clamp(22px, 2.8vw, 36px);
  border-top: 1px solid var(--line);
}
.tl > li:last-child {
  border-bottom: 1px solid var(--line);
}
.tl .stack {
  gap: 8px;
}
.tl p {
  color: var(--muted);
  max-width: 38em;
}
@media (max-width: 760px) {
  .tl > li {
    grid-template-columns: 1fr;
  }
}

/* case study */

/* contact */
.clist > li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 8px 28px;
  align-items: center;
  padding-block: clamp(18px, 2.2vw, 26px);
  border-top: 1px solid var(--line);
}
.clist > li:last-child {
  border-bottom: 1px solid var(--line);
}
.clist .val {
  font: 300 clamp(1.1rem, 2.1vw, 1.6rem)/1.35 var(--f);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  user-select: all;
}
.clist a.val {
  transition: color 0.3s;
}
.clist a.val:hover {
  color: var(--accent);
}
.clist .val.ph {
  color: var(--muted);
  font-size: 1.02rem;
  letter-spacing: 0;
  user-select: auto;
}
.copy {
  font: 500 0.68rem/1 var(--f);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85em 1.15em;
  border-radius: 999px;
  border: 1px solid var(--line);
  min-width: 92px;
  text-align: center;
  transition:
    background 0.3s,
    color 0.3s;
}
.copy:hover {
  background: var(--ink);
  color: var(--bg);
}
@media (max-width: 640px) {
  .clist > li {
    grid-template-columns: 1fr auto;
  }
  .clist .label {
    grid-column: 1/-1;
  }
}

/* footer: one dark rounded card */
footer {
  padding: clamp(8px, 1.2vw, 18px);
}
.foot {
  border-radius: clamp(22px, 3vw, 40px);
  color: var(--on-deep);
  padding: clamp(44px, 6vw, 92px) clamp(22px, 4.4vw, 72px) 30px;
  display: grid;
  gap: clamp(40px, 5vw, 72px);
  background: linear-gradient(118deg, var(--deep-2) 0%, var(--deep) 36%, var(--deep) 62%, var(--deep-2) 100%);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.35fr 1.3fr 1fr 1fr 1fr;
  gap: 40px clamp(24px, 3vw, 48px);
}
.foot-top > div {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}
.foot .logo {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  letter-spacing: -0.045em;
}
.foot .logo i {
  color: var(--deep-accent);
}
.foot h4 {
  font: 600 1.22rem/1.3 var(--f);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.foot-top a,
.foot-top span,
.foot-top li {
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--on-deep);
  overflow-wrap: anywhere;
}
.foot-top a {
  transition:
    color 0.3s,
    transform 0.4s var(--ease);
  justify-self: start;
}
.foot-top a:hover {
  color: var(--deep-accent);
  transform: translateX(4px);
}
.foot-top p {
  color: var(--on-deep-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 22em;
}
.foot-top ul {
  display: grid;
  gap: 14px;
}
.foot-top li.dot {
  display: flex;
  gap: 14px;
  align-items: center;
}
.foot-top li.dot::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--deep-accent);
  box-shadow:
    inset 0 0 0 3px var(--deep),
    inset 0 0 0 4.5px var(--deep-accent);
}
.foot-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.foot-tiles > div {
  background: rgba(243, 236, 253, 0.06);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  transition: background 0.4s;
}
.foot-tiles > div:hover {
  background: rgba(243, 236, 253, 0.11);
}
.foot-tiles b {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.foot-tiles span {
  font: 500 0.66rem/1.45 var(--f);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-deep-dim);
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--on-deep-dim);
  font-size: 0.86rem;
  font-weight: 400;
}
@media (max-width: 1100px) {
  .foot-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .foot-top > div:first-child {
    grid-column: 1/-1;
  }
  .foot-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .foot-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-top > div:nth-child(2) {
    grid-column: 1/-1;
  }
  .foot-tiles {
    grid-template-columns: 1fr;
  }
}
/* ---------- v3 ---------- */
:root {
  --err: #b3261e;
  --stat-a: #3d2461;
  --stat-b: #7a52c7;
  --tg-day: 1;
  --tg-x: 30px;
  --tg-rot: 90deg;
  --tg-night: #150d2b;
  --tg-night-2: #3d2461;
  --tg-sky: #4e9fef;
  --tg-sky-2: #a9d6fb;
  --tg-knob: #ffffff;
  --tg-plane: #3f8fe0;
  --tg-dot: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --err: #ff8a80;
    --stat-a: #c9b3f5;
    --stat-b: #8b63da;
    --tg-day: 0;
    --tg-x: 0px;
    --tg-rot: -90deg;
    --tg-plane: #3d2461;
  }
}
:root[data-theme="dark"] {
  --err: #ff8a80;
  --stat-a: #c9b3f5;
  --stat-b: #8b63da;
  --tg-day: 0;
  --tg-x: 0px;
  --tg-rot: -90deg;
  --tg-plane: #3d2461;
}

/* công tắc sáng / tối: máy bay bay giữa trời nắng và trời đêm */
.tg {
  position: relative;
  flex: none;
  width: 64px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--tg-night), var(--tg-night-2));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.3s var(--ease);
}
.tg:active {
  transform: scale(0.95);
}
.tg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--tg-sky), var(--tg-sky-2));
  opacity: var(--tg-day);
  transition: opacity 0.6s;
}
.tg i {
  position: absolute;
  background: var(--tg-dot);
  border-radius: 999px;
  transition:
    opacity 0.6s,
    transform 0.8s var(--ease);
}
.tg .c1 {
  left: 8px;
  top: 9px;
  width: 13px;
  height: 6px;
  opacity: var(--tg-day);
}
.tg .c2 {
  left: 15px;
  top: 19px;
  width: 9px;
  height: 5px;
  opacity: calc(var(--tg-day) * 0.75);
}
.tg .s1 {
  right: 10px;
  top: 8px;
  width: 3px;
  height: 3px;
  opacity: calc(1 - var(--tg-day));
}
.tg .s2 {
  right: 21px;
  top: 16px;
  width: 2px;
  height: 2px;
  opacity: calc(1 - var(--tg-day));
}
.tg .s3 {
  right: 9px;
  top: 22px;
  width: 2px;
  height: 2px;
  opacity: calc((1 - var(--tg-day)) * 0.7);
}
.tg-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tg-knob);
  color: var(--tg-plane);
  display: grid;
  place-items: center;
  transform: translateX(var(--tg-x));
  transition:
    transform 0.8s var(--ease),
    color 0.6s;
  box-shadow: 0 2px 8px rgba(8, 7, 10, 0.3);
}
.tg-knob svg {
  transform: rotate(var(--tg-rot));
  transition: transform 0.8s var(--ease);
}
.tg:hover .tg-knob svg {
  transform: rotate(var(--tg-rot)) scale(1.15);
}

/* nhãn có chấm tròn */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0.62em 1.15em 0.62em 0.95em;
  border-radius: 999px;
  border: 1px solid var(--line);
  font: 500 0.82rem/1 var(--f);
  letter-spacing: 0.03em;
}
.tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 26%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .tag i {
    animation: pulse 2.4s ease-in-out infinite;
  }
  @keyframes pulse {
    50% {
      box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent);
    }
  }
}

/* nền màu */
.band.dark {
  background:
    radial-gradient(80% 70% at 0% 0%, var(--deep-2), transparent 62%),
    radial-gradient(60% 70% at 100% 100%, color-mix(in srgb, var(--brand) 75%, transparent), transparent 70%), var(--deep);
}
.band.brand {
  background:
    radial-gradient(70% 90% at 100% 0%, var(--brand-2), transparent 62%),
    radial-gradient(60% 80% at 0% 100%, var(--cover), transparent 70%), var(--brand);
  color: var(--on-brand);
  --ink: var(--on-brand);
  --muted: var(--on-brand-dim);
  --line: rgba(243, 236, 253, 0.22);
  --accent: #dccbfa;
  --bg: var(--brand);
}
.band.dark .btn:hover,
.band.brand .btn:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.band.dark .btn.ghost:hover,
.band.brand .btn.ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.hero-band {
  padding-block: clamp(48px, 7vw, 108px);
  overflow: hidden;
}
.band + .band {
  margin-top: clamp(8px, 1.2vw, 18px);
}
.page-top {
  display: grid;
  gap: 26px;
  justify-items: start;
}

/* số liệu nổi bật */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(20px, 4vw, 64px);
  text-align: center;
  padding-block: clamp(56px, 8vw, 120px) clamp(24px, 3vw, 40px);
}
.stats > div {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
}
.stats b {
  font: 700 clamp(4.4rem, 11vw, 9rem)/1 var(--f);
  letter-spacing: -0.06em;
  padding-inline: 0.07em;
  color: var(--stat-a);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: transform 0.6s var(--ease);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stats b {
    background: linear-gradient(165deg, var(--stat-a) 20%, var(--stat-b));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.stats > div:hover b {
  transform: scale(1.06) translateY(-4px);
}
.stats h3 {
  font: 600 clamp(1.1rem, 1.6vw, 1.4rem)/1.3 var(--f);
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.stats p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 22em;
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* chuyên môn: chữ to, đậm, dòng đang chọn thành một khối tím */
.band.dark .h2.strong,
.band.brand .h2.strong {
  font-weight: 600;
  letter-spacing: -0.04em;
}
.exp-list {
  display: grid;
  gap: 6px;
}
.exp-item {
  opacity: 1;
  padding: clamp(16px, 2vw, 26px) clamp(16px, 2.2vw, 30px);
  border: 0;
  border-radius: 20px;
  background: rgba(243, 236, 253, 0.045);
  color: var(--on-deep);
  transition:
    background 0.5s,
    transform 0.6s var(--ease);
}
.exp-list li:last-child .exp-item {
  border-bottom: 0;
}
.exp-item:hover {
  background: rgba(243, 236, 253, 0.09);
}
.exp-item.on {
  padding-left: clamp(16px, 2.2vw, 30px);
  background: linear-gradient(100deg, var(--brand-2), color-mix(in srgb, var(--brand) 82%, var(--brand-2)));
  transform: translateX(8px);
}
.exp-name {
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  letter-spacing: -0.045em;
  color: rgba(243, 236, 253, 0.82);
  transition: color 0.4s;
}
.exp-item.on .exp-name {
  color: var(--on-deep);
}
.exp-desc {
  color: rgba(243, 236, 253, 0.62);
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.4s;
}
.exp-item.on .exp-desc {
  color: rgba(243, 236, 253, 0.92);
}
.exp-ar {
  border-color: rgba(243, 236, 253, 0.5);
  background: var(--on-deep);
  color: var(--brand);
}
@media (max-width: 860px) {
  .exp-item.on {
    transform: none;
  }
}

/* giới thiệu: hero có ảnh, khung tím và hai thẻ nổi */
.ab-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4.2fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}
.ab-hero .stack {
  gap: clamp(18px, 2.4vw, 30px);
}
.ab-hero h1 {
  font-weight: 600;
  letter-spacing: -0.045em;
}
.ab-photo {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}
.ab-photo::before {
  content: "";
  position: absolute;
  inset: 7% -7% -6% 10%;
  border-radius: 30px;
  background: linear-gradient(160deg, var(--brand-2), var(--brand));
  transform: rotate(5deg);
  transition: transform 1s var(--ease);
}
.ab-photo:hover::before {
  transform: rotate(8deg) scale(1.02);
}
.band.brand .ab-photo::before {
  background: linear-gradient(160deg, var(--on-brand-dim), var(--brand-2));
}
.ab-photo .photo {
  border-radius: 26px;
  z-index: 1;
}
.float {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--on-deep);
  color: var(--deep);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  box-shadow: 0 14px 40px rgba(8, 7, 10, 0.35);
}
.float b {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.float.a {
  left: -9%;
  bottom: 12%;
}
.float.b {
  right: -13%;
  top: 6%;
}
@media (prefers-reduced-motion: no-preference) {
  .float {
    animation: bob 6s ease-in-out infinite;
  }
  .float.b {
    animation-delay: -3s;
  }
  @keyframes bob {
    50% {
      transform: translateY(-10px);
    }
  }
}
@media (max-width: 900px) {
  .ab-hero {
    grid-template-columns: 1fr;
  }
  .ab-photo {
    max-width: 340px;
    justify-self: start;
    margin-left: 6%;
  }
  .float.a {
    left: -5%;
  }
  .float.b {
    right: -4%;
    top: -18px;
  }
  .ab-photo {
    margin-top: 14px;
  }
}
.journey {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
.journey > .stack {
  position: sticky;
  top: 110px;
}
.journey .prose p:first-child {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink);
}
.journey .prose p {
  color: var(--muted);
}
@media (max-width: 860px) {
  .journey {
    grid-template-columns: 1fr;
  }
  .journey > .stack {
    position: static;
  }
}
.tl > li {
  transition: padding 0.5s var(--ease);
}
.tl > li:hover {
  padding-left: 14px;
}
.bigquote {
  position: relative;
  display: grid;
  gap: clamp(24px, 3.4vw, 44px);
  justify-items: start;
}
.bigquote::before {
  content: "“";
  position: absolute;
  right: 0;
  top: -0.42em;
  font: 700 clamp(10rem, 26vw, 22rem)/1 var(--f);
  color: rgba(243, 236, 253, 0.09);
  pointer-events: none;
}
.bigquote .quote {
  font-weight: 400;
  position: relative;
}

/* đồng đội */
.tm {
  display: flex;
  gap: 14px;
  height: clamp(400px, 40vw, 540px);
}
.tm-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0fr;
  background: var(--deep);
  color: var(--on-deep);
  text-align: left;
  transition:
    flex-grow 0.9s var(--ease),
    grid-template-columns 0.9s var(--ease);
}
.tm-card.on {
  flex-grow: 2.7;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}
.tm-ph {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 22px;
  min-width: 0;
  filter: grayscale(1) brightness(0.78);
  transition: filter 0.8s;
  background: radial-gradient(90% 60% at 72% 16%, var(--brand-2), transparent 70%), linear-gradient(180deg, var(--brand), var(--deep));
}
.tm-card.on .tm-ph,
.tm-card:hover .tm-ph {
  filter: none;
}
.tm-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.tm-ph::after {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(8, 7, 10, 0.88));
  z-index: -1;
  transition: opacity 0.6s;
}
.tm-card.on .tm-ph::after {
  opacity: 0;
}
.tm-ph .tm-mono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 clamp(6rem, 11vw, 10rem)/1 var(--f);
  letter-spacing: -0.06em;
  color: rgba(243, 236, 253, 0.16);
  z-index: -1;
}
.tm-card.on .tm-ph .tm-mono {
  opacity: 1;
}
.tm-ph b {
  font: 600 1.22rem/1.25 var(--f);
  letter-spacing: -0.025em;
  transition: opacity 0.4s;
}
.tm-ph span {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--on-deep-dim);
  transition: opacity 0.4s;
}
.tm-card.on .tm-ph b,
.tm-card.on .tm-ph span {
  opacity: 0;
}
.tm-info {
  overflow: hidden;
  min-width: 0;
  display: flex;
  align-items: center;
}
.tm-info > .tm-in {
  flex: none;
  width: clamp(220px, 20vw, 290px);
  padding: clamp(20px, 2.2vw, 30px);
  display: grid;
  gap: 10px;
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity 0.4s,
    transform 0.7s var(--ease);
}
.tm-card.on .tm-info > .tm-in {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}
.tm-info b {
  font: 600 clamp(1.3rem, 1.9vw, 1.7rem)/1.2 var(--f);
  letter-spacing: -0.03em;
}
.tm-info .role {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--deep-accent);
}
.tm-info .bio {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--on-deep-dim);
}
@media (max-width: 860px) {
  .tm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }
  .tm-card,
  .tm-card.on {
    grid-template-columns: minmax(0, 1fr) 0fr;
    aspect-ratio: 3/4;
  }
  .tm-card.on .tm-ph b,
  .tm-card.on .tm-ph span {
    opacity: 1;
  }
  .tm-card.on .tm-ph::after {
    opacity: 1;
  }
  .tm-ph {
    filter: none;
  }
  .tm-info {
    display: none;
  }
}

/* liên hệ */
.ct {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.ct-info {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  position: sticky;
  top: 110px;
}
.ct-info .clist > li {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
}
.ct-info .clist .label {
  grid-column: 1/-1;
}
.ct-info .clist .val {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 400;
}
.ct-form {
  background: var(--surface);
  border-radius: clamp(22px, 3vw, 34px);
  padding: clamp(22px, 3.6vw, 48px);
  display: grid;
  gap: 22px;
}
.ct-form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.fld {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.fld label,
.fld legend {
  font: 500 0.86rem/1.3 var(--f);
  padding: 0;
}
.fld label small {
  font-weight: 300;
  color: var(--muted);
}
.fld input,
.fld textarea {
  font: 400 1rem/1.5 var(--f);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  width: 100%;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.fld textarea {
  min-height: 150px;
  resize: vertical;
}
.fld input::placeholder,
.fld textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
.fld input:focus,
.fld textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.fld [aria-invalid="true"] {
  border-color: var(--err);
}
.fld .err {
  font-size: 0.84rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--err);
  min-height: 1.4em;
}
fieldset.fld {
  border: 0;
  margin: 0;
  padding: 0;
}
.pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pick label {
  position: relative;
  cursor: pointer;
}
.pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.pick span {
  display: block;
  padding: 0.7em 1.15em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 400;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.pick input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.pick input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.form-note {
  border-radius: 18px;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px dashed var(--accent);
  display: grid;
  gap: 12px;
  justify-items: start;
}
.form-note b {
  font-weight: 600;
}
.form-note pre {
  margin: 0;
  font: 400 0.88rem/1.6 var(--f);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  max-width: 100%;
}
@media (max-width: 900px) {
  .ct {
    grid-template-columns: 1fr;
  }
  .ct-info {
    position: static;
  }
}
@media (max-width: 560px) {
  .ct-form .row {
    grid-template-columns: 1fr;
  }
}

/* mạng xã hội */
.soc {
  display: flex;
  gap: 10px;
}
.soc a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition:
    background 0.35s,
    color 0.35s,
    border-color 0.35s,
    transform 0.5s var(--ease);
}
.soc a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-4px);
}
.foot .soc {
  margin-top: 6px;
}
.foot .soc a {
  border-color: var(--deep-line);
  color: var(--on-deep);
}
.foot .soc a:hover {
  background: var(--on-deep);
  border-color: var(--on-deep);
  color: var(--deep);
  transform: translateY(-4px);
}
.foot-top {
  grid-template-columns: 1.5fr 1.3fr 1fr 1fr;
}
@media (max-width: 1100px) {
  .foot-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .foot-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.post {
  border-radius: 16px;
  transition:
    padding 0.5s var(--ease),
    background 0.4s;
}
.post:hover {
  background: var(--surface);
  padding-inline: 18px;
}

/* ---------- v5: trang dự án chia theo nhóm + dải chữ dọc cạnh thanh cuộn ---------- */
.rail {
  position: fixed;
  right: clamp(9px, 1.25vw, 20px);
  top: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 22px;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  font: 500 0.66rem/1 var(--f);
  letter-spacing: 0.44em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
  pointer-events: none;
  transition: color 0.5s;
}
.rail.on-dark {
  color: var(--on-deep);
}
.rail-name:empty {
  display: none;
}
.rail-line {
  position: relative;
  width: 1px;
  height: 104px;
  background: color-mix(in srgb, currentColor 26%, transparent);
}
.rail-line i {
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: scaleY(var(--sp, 0));
  transform-origin: 50% 0;
}
.rail-line b {
  position: absolute;
  left: -2.5px;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .rail-line b {
    animation: railDot 2.4s var(--ease) infinite;
  }
  @keyframes railDot {
    0% {
      transform: translateY(-8px);
      opacity: 0;
    }
    20% {
      opacity: 1;
    }
    85% {
      opacity: 1;
    }
    100% {
      transform: translateY(104px);
      opacity: 0;
    }
  }
  .rail-name.swap {
    animation: railIn 0.8s var(--ease);
  }
  @keyframes railIn {
    from {
      opacity: 0;
      transform: translateY(-18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (max-width: 1100px) {
  .rail {
    display: none;
  }
}

.wk-hero {
  padding-block: clamp(44px, 6vw, 96px) 0;
}
.wk-hero h1 {
  font: 800 clamp(2.5rem, 8.4vw, 7.8rem)/1.2 var(--f);
  letter-spacing: -0.055em;
  text-transform: uppercase;
  margin-bottom: clamp(48px, 8vw, 130px);
}
.wk-hero h1 > span {
  display: block;
}
.wk-hero .dot {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.2em;
  vertical-align: -0.03em;
}
@media (prefers-reduced-motion: no-preference) {
  .wk-hero .dot {
    animation: dotPop 3.2s var(--ease) infinite;
  }
  @keyframes dotPop {
    0%,
    100% {
      transform: scale(1);
    }
    50% {
      transform: scale(0.72);
    }
  }
}
.wk-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27em);
  gap: 18px 48px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.wk-bar p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}
.wk-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
}
.wk-nav button {
  font: 700 clamp(0.95rem, 1.15vw, 1.08rem)/1.4 var(--f);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding-block: 6px;
  position: relative;
  transition: color 0.3s;
}
.wk-nav button sup {
  margin-left: 0.45em;
  letter-spacing: 0;
  font-size: 0.62em;
  font-weight: 600;
  color: var(--accent);
}
.wk-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease);
}
.wk-nav button:hover {
  color: var(--accent);
}
.wk-nav button:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.wk-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.wk-band {
  padding-block: 0;
  margin-block: clamp(8px, 1.2vw, 18px);
}
.wk-band .wk-row {
  border-bottom: 0;
}
.wk-side {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: min(74vh, 600px);
  padding: 18px clamp(18px, 3vw, 48px) 36px 0;
}
.wk-idx {
  display: flex;
  justify-content: space-between;
}
.wk-side > div {
  align-self: center;
  display: grid;
  gap: 16px;
  justify-items: start;
}
.wk-side > .wk-idx {
  display: flex;
  justify-content: space-between;
  align-self: start;
  gap: 0;
}
.wk-side h2 {
  font: 700 clamp(1.7rem, 2.8vw, 2.6rem)/1.12 var(--f);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.wk-side p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
  max-width: 24em;
}
.wk-count {
  display: inline-flex;
  padding: 0.7em 1.15em;
  border-radius: 999px;
  border: 1px solid var(--line);
  font: 500 0.7rem/1 var(--f);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wk-main {
  border-left: 1px solid var(--line);
  padding: clamp(12px, 1.4vw, 20px) 0 clamp(44px, 5vw, 76px) clamp(12px, 1.4vw, 20px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 60px) clamp(12px, 1.4vw, 20px);
  align-content: start;
}
.wk-main .pc {
  gap: 8px;
}
.wk-main .pc-cover {
  aspect-ratio: 4/3;
  border-radius: 10px;
  margin-bottom: 10px;
}
.wk-more {
  grid-column: 1/-1;
  justify-self: center;
}
.wk-main .pc-kpi b {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 500;
}
.wk-main .pc-kpi.word b {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
}
.wk-main .pc > .label {
  order: 2;
}
.wk-main .pc h3 {
  order: 1;
  font: 700 1.02rem/1.3 var(--f);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.wk-main .pc p {
  order: 3;
  font-size: 0.92rem;
  line-height: 1.55;
}
.wk-main .pc-links {
  order: 4;
}
.wk-main .pc-cover {
  order: 0;
}
.wk-empty {
  grid-column: 1/-1;
  min-height: clamp(240px, 30vw, 400px);
  border: 1px dashed var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
}
.wk-empty div {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 26em;
}
.wk-empty b {
  font-weight: 600;
  font-size: 1.15rem;
}
.wk-empty span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .wk-bar {
    grid-template-columns: 1fr;
  }
  .wk-row {
    grid-template-columns: 1fr;
  }
  .wk-side {
    position: static;
    min-height: 0;
    grid-template-rows: auto auto;
    gap: 28px;
    padding: 22px 0 26px;
  }
  .wk-main {
    border-left: 0;
    padding-left: 0;
  }
  .wk-band .wk-main {
    padding-bottom: 40px;
  }
}
@media (max-width: 520px) {
  .wk-main {
    grid-template-columns: 1fr;
  }
}

/* ảnh thật cho dự án tiêu biểu ở trang chủ */
.pc-cover.has-img {
  padding: 0;
}
.pc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 1.4s var(--ease);
}
.pc-img.contain {
  object-fit: contain;
  padding: 6%;
}
.pc:hover .pc-img {
  transform: scale(1.05);
}

/* dải hình chạy ngang ở trang chủ */
.gal {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  padding-block: 6px 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.gal-track {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: max-content;
}
.gal-item {
  flex: none;
  position: relative;
  height: clamp(210px, 25vw, 350px);
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--cover);
  isolation: isolate;
  transition: transform 0.7s var(--ease);
}
.gal-item:nth-child(even) {
  margin-top: 28px;
}
.gal-item:hover {
  transform: translateY(-6px);
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.gal-item:hover img {
  transform: scale(1.05);
}
.gal-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--on-brand-dim);
  font: 500 0.68rem/1 var(--f);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gal-ph::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  filter: blur(22px);
  background:
    radial-gradient(40% 46% at var(--x, 70%) var(--y, 30%), var(--brand-2), transparent 70%),
    radial-gradient(46% 52% at calc(100% - var(--x, 70%)) calc(100% - var(--y, 30%)), var(--brand), transparent 72%);
}

/* ---------- trang chi tiết (dự án và bài viết dùng chung một bố cục) ---------- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.post-meta b {
  font-weight: 500;
  color: var(--ink);
}
.article {
  padding-block: clamp(48px, 7vw, 104px);
}
.article-body {
  max-width: 44rem;
  margin-inline: auto;
  display: grid;
  gap: 1.25em;
  font-size: 1.1rem;
  line-height: 1.8;
}
.article-body h2 {
  font: 500 clamp(1.5rem, 2.6vw, 2.1rem)/1.25 var(--f);
  letter-spacing: -0.03em;
  margin-top: 0.8em;
}
.article-body h3 {
  font: 600 1.25rem/1.35 var(--f);
  letter-spacing: -0.02em;
  margin-top: 0.4em;
}
.article-body ul,
.article-body ol {
  display: grid;
  gap: 0.5em;
  padding-left: 1.3em;
}
.article-body ul {
  list-style: disc;
}
.article-body ol {
  list-style: decimal;
}
.article-body li::marker {
  color: var(--accent);
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.2em 0 0.2em 1.2em;
  font-size: 1.25rem;
  line-height: 1.6;
}
.article-body img {
  border-radius: var(--r);
  width: 100%;
  height: auto;
}
.article-cover {
  margin: 0 0 0.4em;
  aspect-ratio: 16/9;
  border-radius: var(--r);
  overflow: hidden;
  background: radial-gradient(60% 70% at 72% 24%, var(--brand-2), transparent 70%), var(--cover);
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.article-cover img.contain {
  object-fit: contain;
  padding: 5%;
}

/* lưới 3 ô "dự án khác" ở cuối trang chi tiết dự án */
.pgrid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px);
}
.pgrid.three .pc-cover {
  aspect-ratio: 4/3;
  border-radius: 14px;
  margin-bottom: 6px;
}
.pgrid.three .pc h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}
.pgrid.three .pc p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.pgrid.three .pc-kpi b {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}
@media (max-width: 860px) {
  .pgrid.three {
    grid-template-columns: 1fr;
  }
}

/* đồng đội: đủ chỗ cho 6 người trên một hàng; dưới 1180px chuyển sang lưới */
.tm {
  gap: 12px;
}
.tm-card.on {
  flex-grow: 3.4;
}
.tm-ph {
  padding: 18px;
}
.tm-ph b {
  font-size: 1.12rem;
}
.tm-info > .tm-in {
  width: clamp(200px, 17vw, 250px);
  padding: clamp(18px, 1.8vw, 26px);
}
@media (max-width: 1180px) {
  .tm {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
  }
  .tm-card,
  .tm-card.on {
    grid-template-columns: minmax(0, 1fr) 0fr;
    aspect-ratio: 3/4;
  }
  .tm-card.on .tm-ph b,
  .tm-card.on .tm-ph span,
  .tm-card.on .tm-ph::after {
    opacity: 1;
  }
  .tm-ph {
    filter: none;
  }
  .tm-info {
    display: none;
  }
}
@media (max-width: 600px) {
  .tm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ảnh chân dung ở hero trang chủ: tiêu đề nhỏ lại một chút để hai dòng vẫn vừa cột trái */
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 5.4rem);
}
.hero-in {
  grid-template-columns: minmax(0, 1fr) minmax(0, clamp(240px, 27vw, 400px));
  column-gap: clamp(32px, 5vw, 80px);
}
.hero-in > * {
  grid-column: 1;
}
.hero-in > .hero-photo {
  grid-column: 2;
  grid-row: 1/5;
  align-self: end;
  margin: 0;
  position: relative;
}
.hero-in > .hero-foot {
  grid-column: 1/-1;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 6% -6% -5% 9%;
  border-radius: 30px;
  background: linear-gradient(160deg, var(--brand-2), var(--brand));
  transform: rotate(5deg);
  z-index: -1;
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 30px 70px -30px rgba(8, 7, 10, 0.55);
}
@media (max-width: 860px) {
  .hero-in {
    grid-template-columns: 1fr;
  }
  .hero-in > .hero-photo {
    grid-column: 1;
    grid-row: auto;
    max-width: 300px;
    margin: 8px 0 0 6%;
  }
}

/* khung video 16:9 */
.vid {
  position: relative;
  margin: 0;
  aspect-ratio: 16/9;
  border-radius: clamp(18px, 2.4vw, 30px);
  overflow: hidden;
  background: var(--cover);
  isolation: isolate;
}
.vid video,
.vid iframe,
.vid > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.vid-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--on-brand);
  text-align: center;
  padding: 24px;
}
.vid-ph::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  filter: blur(30px);
  background:
    radial-gradient(40% 50% at 72% 28%, var(--brand-2), transparent 70%), radial-gradient(45% 55% at 22% 80%, var(--brand), transparent 72%);
}
.vid-play {
  width: clamp(64px, 7vw, 92px);
  height: clamp(64px, 7vw, 92px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--on-brand);
  color: var(--brand);
  box-shadow: 0 0 0 12px rgba(243, 236, 253, 0.14);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.vid:hover .vid-play {
  transform: scale(1.06);
  box-shadow: 0 0 0 20px rgba(243, 236, 253, 0.1);
}
.vid-ph b {
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
}
.vid-ph > span:not(.vid-play) {
  font: 500 0.7rem/1.4 var(--f);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-brand-dim);
}
button.vid-ph {
  border: 0;
  width: 100%;
  cursor: pointer;
  font: inherit;
}
.gal::-webkit-scrollbar {
  display: none;
}
.gal.dragging {
  cursor: grabbing;
  user-select: none;
}
.gal.dragging img {
  pointer-events: none;
}

/* thẻ kêu gọi: dải ngang, thấp, rộng bằng các khối nền màu; chữ bên trái, nút bên phải */
.cta-wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 36px);
}
.cta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  text-align: left;
  column-gap: clamp(32px, 6vw, 120px);
  row-gap: 12px;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 80px);
}
.cta > * {
  grid-column: 1;
}
.cta h2 {
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  line-height: 1.18;
  max-width: 24em;
}
.cta p {
  max-width: 44em;
  font-size: 1.05rem;
}
.cta > .btnrow {
  grid-column: 2;
  grid-row: 1/4;
  align-self: center;
  justify-content: flex-end;
  margin: 0;
}
.cta > .mail {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: end;
}
.cta:has(> .mail) > .btnrow {
  grid-row: 1/3;
  align-self: end;
}
.cta .btn {
  padding: 1.1em 1.8em;
  font-size: 1rem;
}
@media (max-width: 820px) {
  .cta {
    grid-template-columns: 1fr;
  }
  .cta > .btnrow,
  .cta > .mail,
  .cta:has(> .mail) > .btnrow {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    justify-content: flex-start;
    margin-top: 10px;
  }
}
