/* ============================================================
   Vietnam Outsource Team — Design System
   Shared foundation across the Kingston United Group ecosystem.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }

/* ---------- Tokens (brand block overrides these) ---------- */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ink: #101623;
  --ink-2: #3d4658;
  --ink-3: #6b7385;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --line: #e6e9ee;
  --line-strong: #d5dae2;

  --dark: #0b1120;
  --dark-2: #101a30;
  --dark-ink: #eef1f6;
  --dark-ink-2: #a9b2c4;
  --dark-line: rgba(255, 255, 255, 0.09);

  --accent: #1f5eff;
  --accent-strong: #1747c4;
  --accent-ink: #ffffff;
  --accent-soft: rgba(31, 94, 255, 0.09);
  --accent-glow: rgba(31, 94, 255, 0.22);
  --accent-warm: #d8a03c;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow: 0 2px 6px rgba(15, 23, 42, 0.05), 0 16px 40px -12px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 4px 10px rgba(15, 23, 42, 0.06), 0 30px 70px -18px rgba(15, 23, 42, 0.24);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;

  --container: 74rem;
  --container-narrow: 47rem;
  --nav-h: 4.5rem;
}

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.35rem); }
h2 { font-size: clamp(1.95rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 700; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: var(--space-2);
}
.kicker::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 44rem; text-wrap: pretty; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(var(--container-narrow), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.section-tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head h2 { margin-bottom: var(--space-2); }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 60rem) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 40rem) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 56rem) { .split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, background-color 0.25s, border-color 0.25s, color 0.25s;
  will-change: transform;
}
.btn .arrow { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 16px 32px -10px var(--accent-glow); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.hero-dark .btn-ghost, .section-dark .btn-ghost, .btn-ghost.light { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.hero-dark .btn-ghost:hover, .section-dark .btn-ghost:hover, .btn-ghost.light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
  position: relative;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.text-link:hover::after { transform: scaleX(1); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.site-header.on-dark-hero:not(.scrolled) { --nav-ink: #fff; }
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--nav-ink, var(--ink));
}
.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
  box-shadow: 0 6px 16px -6px var(--accent-glow);
}
.brand small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; color: var(--nav-ink, var(--ink-3)); opacity: 0.8; }
.brand-logo { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.site-header.on-dark-hero:not(.scrolled) .brand-logo, .site-footer .brand-logo { filter: drop-shadow(0 0 1px rgba(255,255,255,0.4)); }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--nav-ink, var(--ink-2));
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--nav-ink, var(--ink)); }
.nav-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
}
.nav-toggle span {
  width: 1.1rem; height: 2px;
  border-radius: 2px;
  background: var(--nav-ink, var(--ink));
  transition: transform 0.3s, opacity 0.3s;
}
.site-header.on-dark-hero:not(.scrolled) .nav-toggle { border-color: rgba(255,255,255,0.3); }
@media (max-width: 62rem) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) + 0.4rem);
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.6rem;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav-links a { --nav-ink: var(--ink); padding: 0.8rem 1rem; border-radius: 10px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--bg-soft); }
  .nav-open .nav-links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(4rem, 10vw, 8rem));
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: clip;
}
.hero-dark { background: radial-gradient(120% 90% at 70% -10%, var(--dark-2), var(--dark) 60%); color: var(--dark-ink); }
.hero-dark h1, .hero-dark h2 { color: #fff; }
.hero-dark p { color: var(--dark-ink-2); }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
  color: var(--ink-2);
}
.hero-dark .hero-eyebrow { border-color: var(--dark-line); background: rgba(255, 255, 255, 0.05); color: var(--dark-ink-2); }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { margin-bottom: var(--space-3); max-width: 17ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-dark h1 em { color: var(--accent-warm, var(--accent)); }
.hero .lede { margin-bottom: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-note { margin-top: var(--space-3); font-size: 0.9rem; color: var(--ink-3); }
.hero-dark .hero-note { color: var(--dark-ink-2); }

/* Floating gradient blobs */
.blobs { position: absolute; inset: 0; pointer-events: none; overflow: clip; z-index: 0; }
.hero > .container, .hero > .container-narrow { position: relative; z-index: 1; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
  animation: blob-drift 16s ease-in-out infinite alternate;
}
.blob-a { width: 34rem; height: 34rem; top: -14rem; right: -8rem; background: radial-gradient(circle, var(--accent-glow), transparent 65%); }
.blob-b { width: 26rem; height: 26rem; bottom: -12rem; left: -8rem; background: radial-gradient(circle, color-mix(in srgb, var(--accent-warm, var(--accent)) 26%, transparent), transparent 65%); animation-delay: -6s; animation-duration: 20s; }
@keyframes blob-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2.5rem, 2rem, 0) scale(1.08); }
}

/* Hero stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  box-shadow: var(--shadow-sm);
}
.hero-dark .stat-strip { background: var(--dark-line); border-color: var(--dark-line); box-shadow: none; }
.stat-cell { background: var(--bg); padding: 1.5rem 1.6rem; }
.hero-dark .stat-cell { background: rgba(255, 255, 255, 0.035); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}
.hero-dark .stat-value { color: #fff; }
.stat-value .suffix { color: var(--accent); }
.hero-dark .stat-value .suffix { color: var(--accent-warm, var(--accent)); }
.stat-label { font-size: 0.88rem; color: var(--ink-3); margin-top: 0.45rem; }
.hero-dark .stat-label { color: var(--dark-ink-2); }
@media (max-width: 56rem) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card h3 { font-size: 1.32rem; }
.card p { font-size: 0.99rem; }
.card .text-link { margin-top: auto; font-size: 0.95rem; }
a.card { text-decoration: none; }
.card-icon {
  width: 3rem; height: 3rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 0.3rem;
}
.card-icon svg { width: 1.4rem; height: 1.4rem; }
.card-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-strong);
  letter-spacing: 0.06em;
}
.card-list { display: grid; gap: 0.55rem; margin-top: 0.2rem; }
.card-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.96rem;
  color: var(--ink-2);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 0.85rem; height: 0.5rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) scale(0.9);
  border-radius: 1px;
}

.card-feature {
  background: linear-gradient(150deg, var(--dark), var(--dark-2));
  border-color: transparent;
  color: var(--dark-ink);
}
.card-feature h3, .card-feature h4 { color: #fff; }
.card-feature p, .card-feature .card-list li { color: var(--dark-ink-2); }
.card-feature .text-link { color: var(--accent-warm, #fff); }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
button.chip { cursor: pointer; }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Sections on dark ---------- */
.section-dark {
  background: radial-gradient(110% 100% at 30% 0%, var(--dark-2), var(--dark) 65%);
  color: var(--dark-ink);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: var(--dark-ink-2); }
.section-dark .kicker { color: var(--accent-warm, var(--accent)); }
.section-dark .card { background: rgba(255, 255, 255, 0.04); border-color: var(--dark-line); box-shadow: none; }
.section-dark .card:hover { border-color: rgba(255, 255, 255, 0.2); }
.section-dark .card p, .section-dark .card-list li { color: var(--dark-ink-2); }
.section-soft { background: var(--bg-soft); }

/* ---------- Process / timeline ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.4rem;
  padding-block: 1.7rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 0; }
.step-num {
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent-strong);
  background: var(--bg);
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.step p { font-size: 1rem; max-width: 56ch; }
.step .step-meta { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.5rem; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { display: grid; gap: 0.8rem; }
.accordion details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.accordion details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.7rem; height: 0.7rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.3s;
  margin-top: -0.25rem;
}
.accordion details[open] summary::after { transform: rotate(225deg); margin-top: 0.25rem; }
.accordion .acc-body { padding: 0 1.4rem 1.3rem; }
.accordion .acc-body p { font-size: 0.99rem; }
.accordion .acc-body p + p { margin-top: 0.6rem; }

/* ---------- Articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 60rem) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-card .tag { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-strong); }
.article-card h3 { font-size: 1.22rem; line-height: 1.28; }
.article-card p { font-size: 0.94rem; }
.article-card .meta { margin-top: auto; padding-top: 0.6rem; font-size: 0.86rem; color: var(--ink-3); }

.prose { max-width: var(--container-narrow); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 1.95rem); margin-top: 2.6rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--ink-2); display: grid; gap: 0.45rem; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose a { color: var(--accent-strong); font-weight: 600; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.prose td { color: var(--ink-2); }
.article-hero { padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.article-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 24ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.9rem; color: var(--ink-3); margin-top: 1.2rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.88rem; color: var(--ink-3); margin-bottom: 1.4rem; }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-strong); }
.breadcrumbs .sep { opacity: 0.5; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 40rem) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.98rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.form-note { font-size: 0.88rem; color: var(--ink-3); }
.form-status { font-weight: 600; font-size: 0.95rem; color: var(--accent-strong); min-height: 1.4em; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 56rem) { .contact-panel { grid-template-columns: 1fr; } }
.contact-aside { display: grid; gap: 1.1rem; }
.contact-line { display: grid; gap: 0.2rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.contact-line .label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.contact-line a { font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-line a:hover { color: var(--accent-strong); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: clip;
  background: radial-gradient(120% 130% at 80% -20%, var(--dark-2), var(--dark) 60%);
  color: var(--dark-ink);
  border-radius: var(--radius-lg);
  padding: clamp(2.8rem, 6vw, 4.5rem);
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: var(--dark-ink-2); max-width: 46rem; margin: 1rem auto 2rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band::before {
  content: "";
  position: absolute;
  width: 30rem; height: 30rem;
  border-radius: 50%;
  top: -18rem; right: -10rem;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(50px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-ink-2);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--dark-line);
}
@media (max-width: 60rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { max-width: 30rem; margin-top: 0.9rem; color: var(--dark-ink-2); }
.footer-brand .brand { color: #fff; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { color: var(--dark-ink-2); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--dark-ink-2) 75%, transparent);
}
.footer-eco { font-size: 0.85rem; }
.footer-eco a { color: var(--dark-ink-2); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .no-observer .reveal { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.divider { border: 0; border-top: 1px solid var(--line); margin-block: var(--space-5); }
.center { text-align: center; }
.eyebrow-logos { display: flex; flex-wrap: wrap; gap: 2.2rem; align-items: center; justify-content: center; opacity: 0.75; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.4rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-2);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.badge svg { width: 0.95rem; height: 0.95rem; color: var(--accent-strong); }
.hero-dark .badge { background: rgba(255,255,255,0.05); border-color: var(--dark-line); color: var(--dark-ink-2); }

/* ---------- Team ---------- */
.team-card { gap: 0.45rem; }
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  background: var(--bg-soft);
}
.team-role { font-size: 0.86rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); }
.team-card > p:last-child { font-size: 0.93rem; }

/* ---------- Logo wall ---------- */
.logo-wall { display: grid; gap: 1.6rem; }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.2rem);
}
.logo-row img {
  height: 3.4rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}
.logo-row img:hover { filter: none; opacity: 1; transform: translateY(-3px); }

/* ---------- Market explorer ---------- */
.market-explorer {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}
@media (max-width: 56rem) { .market-explorer { grid-template-columns: 1fr; } }
.market-map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(120% 120% at 50% 0%, var(--dark-2), var(--dark) 70%);
  padding: 1rem;
  box-shadow: var(--shadow);
}
#market-map { width: 100%; height: auto; }
#market-map .route { stroke: rgba(255, 255, 255, 0.14); stroke-width: 0.35; }
#market-map .node { cursor: pointer; }
#market-map .node:focus, #market-map .node:focus-visible { outline: none; }
#market-map .node circle { fill: rgba(255, 255, 255, 0.16); stroke: rgba(255, 255, 255, 0.5); stroke-width: 0.3; transition: fill 0.25s, r 0.25s, stroke 0.2s; }
#market-map .node:hover circle, #market-map .node:focus circle { fill: var(--accent); }
#market-map .node:focus-visible circle { stroke: #ffffff; stroke-width: 0.7; }
#market-map .node.active circle { fill: var(--accent); stroke: #fff; }
#market-map .node.hub circle { fill: var(--accent); stroke: #fff; stroke-width: 0.4; }
#market-map .node text { fill: #fff; font-size: 2.6px; font-family: var(--font-sans); font-weight: 600; text-anchor: middle; pointer-events: none; }
#market-map .pulse { fill: none; stroke: var(--accent); stroke-width: 0.3; opacity: 0; animation: map-pulse 2.6s ease-out infinite; }
@keyframes map-pulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.2); }
}
.market-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.market-panel .market-hint { color: var(--ink-3); margin: auto; text-align: center; }
.market-panel h3 { display: flex; align-items: center; gap: 0.6rem; }
.market-meta { font-size: 0.86rem; font-weight: 700; color: var(--ink-3); }
.market-panel .chip-row { margin-top: 0.2rem; }
.market-panel .chip { font-size: 0.8rem; padding: 0.35rem 0.8rem; }
.market-panel h4 { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.4rem; }
.market-panel p { font-size: 0.96rem; }

/* ---------- CEO note ---------- */
.ceo-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-soft), var(--bg));
  box-shadow: var(--shadow);
}
@media (max-width: 44rem) { .ceo-note { grid-template-columns: 1fr; text-align: left; } }
.ceo-photo {
  width: clamp(7rem, 14vw, 9.5rem);
  height: clamp(7rem, 14vw, 9.5rem);
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow);
  background: var(--bg-soft);
}
.ceo-note-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.6rem; }
.ceo-note-body .lede { margin-bottom: 1rem; }
.ceo-sign { font-weight: 700; color: var(--ink); font-size: 0.95rem; margin-bottom: 1.3rem; }
.ceo-sign span { color: var(--ink-3); font-weight: 600; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--nav-ink, var(--ink-2));
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.lang-btn svg { width: 1rem; height: 1rem; opacity: 0.8; }
.lang-btn .chev { width: 0.6rem; height: 0.6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform 0.25s; opacity: 0.7; }
.lang-switch.open .lang-btn .chev { transform: rotate(225deg); margin-top: 2px; }
.site-header.on-dark-hero:not(.scrolled) .lang-btn { border-color: rgba(255,255,255,0.28); color: #fff; }
.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 11rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  display: grid;
  gap: 1px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 120;
}
.lang-switch.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-menu button:hover { background: var(--bg-soft); color: var(--ink); }
.lang-menu button[aria-current="true"] { color: var(--accent-strong); }
.lang-menu button[aria-current="true"]::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
@media (max-width: 62rem) {
  .lang-switch { order: -1; margin-right: 0.4rem; }
  .lang-btn .lang-label { display: none; }
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.25s;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; }
}


/* ---------- Brand tokens ---------- */
/* Mustard-yellow palette — see Vietnam Incorp note above for the reasoning. */
:root {
  --accent: #d8a51b;
  --accent-strong: #7a5c08;
  --accent-ink: #241a00;
  --accent-soft: rgba(216, 165, 27, 0.13);
  --accent-glow: rgba(216, 165, 27, 0.34);
  --accent-warm: #f2d160;
  --dark: #17130a;
  --dark-2: #251d0d;
}
.btn-primary:hover { background: #c0900f; }
.brand-mark { color: #241a00; }

/* --- brand logo (Outsourcing Vietnam wordmark) --- */
.brand-logo-full { height: 2.3rem; width: auto; display: block; }
.brand-logo-wordmark { height: 3rem; width: auto; display: block; }
.site-header .brand-logo-full.logo-white { display: none; }
.site-header.on-dark-hero:not(.scrolled) .brand-logo-full.logo-color { display: none; }
.site-header.on-dark-hero:not(.scrolled) .brand-logo-full.logo-white { display: block; }
@media (max-width: 640px) { .brand-logo-full { height: 1.9rem; } }

/* ---------- Hero background video (silent, autoplay loop) ---------- */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #17130a url(/assets/img/hero-poster.jpg) center/cover no-repeat;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* alphas tuned so hero copy clears WCAG AA against the brightest frame in the clip */
  background: linear-gradient(180deg, rgba(18, 14, 7, 0.8) 0%, rgba(18, 14, 7, 0.7) 45%, rgba(18, 14, 7, 0.9) 100%);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media ~ .blobs { display: none; }   /* video replaces the decorative blobs */
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ---------- Photography ---------- */
.media-band { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.media-band img {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.media-band figcaption {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--ink-3);
  max-width: 46rem;
}
.section-dark .media-band figcaption, .hero-dark .media-band figcaption { color: var(--dark-ink-2); }
.figure { margin: 0 0 1.6rem; }
.figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 56rem) {
  .media-band img { aspect-ratio: 16 / 9; border-radius: var(--radius); }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
