/* ══════════════════════════════════════════════════════════════════════
   HẢI HỌC KINH TẾ — EDITORIAL LUXURY DESIGN SYSTEM (v3.0)
   Minimal × Modern × Premium × Strategic × Editorial
   ══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Newsreader:ital,opsz,wght@0,6..72,300..800;1,6..72,300..800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&subset=vietnamese&display=swap');

/* ── Reset & Base Variables ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root,
[data-theme="light"] {
  /* Fonts - Optimized for Vietnamese Typography (No Georgia floating accent bugs) */
  --font-serif: 'Newsreader', 'Lora', 'Times New Roman', serif;
  --font-sans:  'Plus Jakarta Sans', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  /* Colors — Pristine Editorial White & Warm Amber Ochre (Default) */
  --bg:             #fbfbfa;       /* Warm Ivory Editorial White */
  --surface:        #ffffff;       /* Crisp elevated surface cards */
  --surface-subtle: #f5f5f3;       /* Subtle neutral background */
  --surface-hover:  #eeeeea;       /* Hover state */
  
  --border:         #e5e5df;       /* Crisp 1px hairline border */
  --border-h:       #d4d4cb;       /* Hover border */
  --border-active:  #8c8c82;

  --text:           #0f172a;       /* Slate-900 sharp deep black for optimal contrast */
  --text-2:         #334155;       /* Slate-700 secondary readable */
  --text-3:         #64748b;       /* Slate-500 muted metadata */

  --accent:         #c26c1f;       /* Warm Ochre / Rich Amber */
  --accent-muted:   rgba(194, 108, 31, 0.08);
  --accent-hover:   #9a5212;
  
  --nav-bg:         rgba(251, 251, 250, 0.94);
  --shadow-subtle:  0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px -4px rgba(15, 23, 42, 0.06);
  --shadow-hover:   0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 20px 32px -8px rgba(15, 23, 42, 0.1);

  /* Geometry & Rhythm */
  --max-w:          1200px;
  --reading-w:      1140px;
  --nav-h:          68px;
  --r:              6px;
  --r-sm:           4px;
  --r-pill:         100px;
}

[data-theme="dark"] {
  /* Colors — Obsidian & Warm Ochre (Toggle) */
  --bg:             #09090b;       /* Zinc-950 Obsidian */
  --surface:        #121215;       /* Elevated surface */
  --surface-subtle: #17171c;       /* Secondary surface */
  --surface-hover:  #1e1e24;       /* Hover state */
  
  --border:         rgba(255, 255, 255, 0.08); /* 1px Hairline */
  --border-h:       rgba(255, 255, 255, 0.20); /* Hover hairline */
  --border-active:  rgba(255, 255, 255, 0.32);

  --text:           #f4f4f5;       /* Zinc-100 warm off-white */
  --text-2:         #a1a1aa;       /* Zinc-400 neutral */
  --text-3:         #71717a;       /* Zinc-500 muted metadata */

  --accent:         #e28a36;       /* Warm Ochre / Amber Bronze */
  --accent-muted:   rgba(226, 138, 54, 0.12);
  --accent-hover:   #f09b48;
  
  --nav-bg:         rgba(9, 9, 11, 0.88);
  --shadow-subtle:  0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-hover:   0 16px 36px rgba(0, 0, 0, 0.5);
}

html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.68;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* ── Typography & Line-Wrap Optimization (Fix rớt chữ & dàn ngang) ── */
h1, h2, h3, h4, h5, h6,
.editorial-title,
.hero-editorial-statement,
.manifesto-headline,
.pain-title,
.funnel-box-title,
.work-title,
.grid-story-title,
.featured-hero-title,
.article-main-title,
.story-title,
.direct-box-title {
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  letter-spacing: -0.02em;
}

p, li, blockquote,
.hero-editorial-desc,
.editorial-subtitle,
.story-excerpt,
.article-prose p {
  text-wrap: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

.nowrap-phrase {
  white-space: nowrap;
  display: inline-block;
}

.desktop-only-break {
  display: block;
}

@media (max-width: 768px) {
  .desktop-only-break {
    display: inline;
  }
  .nowrap-phrase {
    white-space: normal !important;
    display: inline !important;
  }
  .hero-editorial-statement {
    font-size: clamp(1.75rem, 5.5vw, 2.5rem) !important;
    line-height: 1.25 !important;
  }
  .hero-rotating-wrap {
    min-width: 0 !important;
    display: inline !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Reading Progress Bar ────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1000;
  background: transparent;
}

.rp-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.15s ease-out;
}

/* ── Page Transition Wrapper ─────────────────────────────────────── */
.main-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 24px 48px;
  flex: 1;
  width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-wrapper.page-exit {
  opacity: 0;
  transform: translateY(-10px) scale(0.995);
}

.main-wrapper.page-enter {
  opacity: 0;
  transform: translateY(14px);
}

/* ── Minimalist Editorial Navigation ─────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: border-color 0.2s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.18s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--border-h);
  color: var(--text);
}

/* Default / Light mode: Show moon icon to switch to dark */
.theme-toggle .light-icon { display: none; }
.theme-toggle .dark-icon  { display: flex; }

/* Dark mode: Show sun icon to switch to light */
[data-theme="dark"] .theme-toggle .dark-icon  { display: none; }
[data-theme="dark"] .theme-toggle .light-icon { display: flex; }

/* Language Switcher */
.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  transition: border-color 0.2s ease;
}

.lang-switch-wrap:hover {
  border-color: var(--border-h);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  transition: color 0.15s ease, background-color 0.15s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  color: var(--accent);
  font-weight: 700;
}

.lang-divider {
  color: var(--border-active);
  font-size: 0.6875rem;
  user-select: none;
  opacity: 0.5;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--r-sm);
  background: var(--text);
  color: var(--bg);
  transition: all 0.2s ease;
}

.nav-cta-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: all 0.2s ease;
  position: relative;
}

.hamburger:hover {
  border-color: var(--border-h);
  background: var(--surface-subtle);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(2.75px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* Mobile Menu Dropdown */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  z-index: 890;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

[data-theme="dark"] .mobile-menu {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

@keyframes mobileMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: mobileMenuFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-2);
  min-height: 44px;
  border-radius: var(--r-sm);
  transition: all 0.18s ease;
}

.mm-item:last-child {
  border-bottom: none;
}

.mm-item:hover,
.mm-item:active {
  background: var(--surface-subtle);
  color: var(--text);
  padding-left: 10px;
}

.mm-item.active {
  color: var(--accent);
  font-weight: 700;
}

.mm-item-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ── Typography & Section Primitives ─────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.editorial-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.editorial-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
  text-wrap: balance;
}

.editorial-title em {
  font-style: italic;
  color: var(--accent);
}

.editorial-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 100%;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
}

/* ── Section Hairline Grid Layout (No Bubbles) ───────────────────── */
.hairline-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

.hairline-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 36px 0;
}

/* ── EDITORIAL HERO SECTION (Trang chủ) ──────────────────────────── */
.hero-editorial-wrap {
  display: grid;
  grid-template-columns: 1.38fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0 64px;
  border-bottom: 1px solid var(--border);
}

.hero-editorial-content {
  display: flex;
  flex-direction: column;
}

.hero-editorial-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.75vw, 2.75rem);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-headline-line {
  display: block;
  text-wrap: balance;
}
.hero-headline-accent {
  color: var(--accent);
  font-style: italic;
  min-height: 1.25em;
}

.hero-editorial-statement em {
  font-style: italic;
  color: var(--accent);
}

.hero-editorial-desc {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 100%;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-editorial-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
}

.btn-editorial-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-editorial-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
}

.btn-editorial-secondary:hover {
  border-color: var(--border-active);
  background: var(--surface);
}

.hero-trust-bar {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  color: var(--text-3);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-trust-bar strong {
  color: var(--text);
  font-weight: 600;
}

/* Portrait Visual Box */
.hero-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.portrait-status-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

[data-theme="dark"] .portrait-status-badge {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #f8fafc;
}

.pulse-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

/* ── BIG STATS & CREDENTIALS TIMELINE ────────────────────────────── */
.stats-banner-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number-big {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}

.stat-label-text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.45;
}

/* Credentials Table */
.credentials-section {
  padding: 56px 0;
}

.credentials-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
}

.credentials-table {
  width: 100%;
  border-collapse: collapse;
}

.credentials-table tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s ease;
}

.credentials-table tr:hover {
  background-color: var(--surface);
}

.credentials-table td {
  padding: 20px 12px;
  font-size: 0.9375rem;
}

.cr-year {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-3);
  width: 100px;
}

.cr-title {
  font-weight: 600;
  color: var(--text);
}

.cr-award {
  color: var(--accent);
  font-weight: 600;
  margin-right: 6px;
}

.cr-org {
  color: var(--text-2);
  text-align: right;
  font-size: 0.875rem;
}

/* ── EDITORIAL MANIFESTO & PHILOSOPHY ────────────────────────────── */
.manifesto-quote-block {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.manifesto-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 100%;
}

.manifesto-author {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* 4 Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.principle-col {
  display: flex;
  flex-direction: column;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.principle-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.principle-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* Comparative Matrix (CV vs Portfolio) */
.matrix-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.matrix-box {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.matrix-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.matrix-value {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--text);
  margin-bottom: 12px;
}

.matrix-desc {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── QUICK DIRECTORY CARDS (Chuyển trang tại index) ──────────────── */
.directory-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 0 0;
}

.directory-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.directory-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.dir-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}

.dir-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.dir-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 20px;
}

.dir-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── BLOG & CASE STUDIES UNIFIED CONTROL BAR (`blog.html`) ───────── */
.blog-control-bar,
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.blog-control-bar .blog-filter-tabs {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-search-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.blog-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
  max-width: 100%;
}

.blog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  pointer-events: none;
  width: 16px;
  height: 16px;
  transition: color 0.2s ease;
  z-index: 2;
}

.blog-search-wrap:focus-within .blog-search-icon {
  color: var(--accent);
}

.blog-search-input {
  display: block;
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 34px 0 38px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.blog-search-input::placeholder {
  color: var(--text-3);
  font-size: 0.8125rem;
}

.blog-search-input:focus {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(194, 108, 31, 0.14);
}

.blog-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
  z-index: 2;
  padding: 0;
}

.blog-search-clear:hover {
  background: var(--accent);
  color: #ffffff;
}

.blog-results-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding: 6px 14px;
  background: var(--surface-2);
  border-radius: 999px;
  border: 1px solid var(--border);
  height: 40px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

@media (max-width: 860px) {
  .blog-control-bar,
  .blog-toolbar {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .blog-control-bar .blog-filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    gap: 8px;
    scrollbar-width: none;
  }

  .blog-control-bar .blog-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .blog-search-group {
    width: 100%;
    gap: 10px;
  }

  .blog-search-wrap {
    width: 100%;
    flex: 1;
    min-width: 0;
  }

  .blog-search-input {
    min-width: 0;
  }

  .blog-results-meta {
    flex-shrink: 0;
  }
}

@media (max-width: 540px) {
  .blog-search-group {
    gap: 8px;
  }

  .blog-search-input {
    font-size: 0.8125rem;
    padding: 0 30px 0 36px;
  }

  .blog-results-meta {
    font-size: 0.6875rem;
    padding: 0 10px;
  }
}

@media (max-width: 420px) {
  .blog-results-meta {
    padding: 0 8px;
    min-width: 34px;
    justify-content: center;
  }

  .blog-results-meta .meta-label {
    display: none;
  }
}

.blog-empty-state {
  text-align: center;
  padding: 56px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  margin: 32px 0 48px;
}

.empty-state-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.empty-state-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 0.875rem;
  color: var(--text-3);
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* Format tags on cards: Article vs Case */
.story-format-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}

.story-format-tag.article {
  background: var(--surface-subtle);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.story-format-tag.case {
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid rgba(194, 108, 31, 0.25);
}

[data-theme="dark"] .story-format-tag.case {
  background: rgba(226, 138, 54, 0.15);
  border-color: rgba(226, 138, 54, 0.35);
}

.blog-filter-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.blog-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.blog-filter-pill:hover {
  color: var(--text);
  border-color: var(--border-active);
  background: var(--surface-2);
}

.blog-filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(194, 108, 31, 0.25);
}

[data-blog-section] {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

[data-blog-section].filter-hidden {
  display: none !important;
}

.featured-story-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  align-items: center;
  transition: all 0.2s ease;
}

.featured-story-card:last-child {
  border-bottom: 1px solid var(--border);
}

.story-thumb-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.story-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.featured-story-card:hover .story-thumb-img {
  transform: scale(1.03);
}

.story-content {
  display: flex;
  flex-direction: column;
}

.story-meta-row {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.story-cat-badge {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.story-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.95rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
  transition: color 0.15s ease;
}

.featured-story-card:hover .story-title {
  color: var(--accent);
}

.story-excerpt {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.story-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.story-point-item {
  font-size: 0.875rem;
  color: var(--text-2);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.story-point-item::before {
  content: '—';
  color: var(--accent);
}

.story-read-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.story-coming-pill {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface-subtle);
  border: 1px dashed var(--border);
  border-radius: var(--r-pill);
}

/* ── ARTICLE DETAIL PAGES (Editorial Prose) ──────────────────────── */
.article-detail-wrap {
  max-width: var(--reading-w);
  margin: 0 auto;
  width: 100%;
}

/* Standalone article prose without sidebar grid */
.article-detail-wrap > .article-prose {
  max-width: 880px;
  margin: 0 auto;
}

.article-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-back-link {
  font-size: 0.8125rem;
  color: var(--text-2);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease;
}

.article-back-link:hover {
  color: var(--text);
}

.share-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-share {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-share:hover {
  border-color: var(--border-active);
  color: var(--text);
}

.article-detail-header {
  width: 100%;
}

.article-main-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.75vw, 2.45rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 16px 0 24px;
  text-wrap: normal;
  word-break: normal;
  overflow-wrap: break-word;
  width: 100%;
  max-width: 100%;
}

.article-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--border);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
}

.author-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.article-detail-hero-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 48px;
}

.article-detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article Prose Typographic Styling */
.article-prose {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-2);
  min-width: 0;
  max-width: 100%;
}

.article-prose h2 {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 400;
  color: var(--text);
  margin: 56px 0 20px;
  letter-spacing: -0.015em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.article-prose h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 16px;
}

.article-prose h4 {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 24px 0 10px;
}

.article-prose p {
  margin-bottom: 20px;
  text-align: justify;
  text-justify: inter-word;
  text-wrap: pretty;
  overflow-wrap: break-word;
  hyphens: none;
}

.article-prose ul, .article-prose ol {
  margin-bottom: 28px;
  padding-left: 24px;
}

.article-prose li {
  margin-bottom: 10px;
}

.article-prose strong {
  color: var(--text);
  font-weight: 600;
}

.article-prose blockquote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  padding: 24px 32px;
  margin: 40px 0;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
}

.article-callout {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin: 32px 0;
}

.article-callout.alert {
  border-left: 3px solid var(--accent);
}

.article-callout.success {
  border-left: 3px solid #10B981;
}

/* Editorial Tables & Interactive Article Diagrams */
.table-responsive-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.table-responsive-wrapper table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  margin: 0;
}

.table-responsive-wrapper th {
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table-responsive-wrapper td {
  padding: 14px 18px;
  font-size: 0.90625rem;
  line-height: 1.6;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table-responsive-wrapper tr:last-child td {
  border-bottom: none;
}

.table-responsive-wrapper tr:hover td {
  background-color: var(--surface-subtle);
}

.wbs-code-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--accent);
  border: 1px solid var(--border);
}

/* Editorial Article Figures & Photo Grids (Build in Public) */
.article-figure {
  margin: 36px 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.figure-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.figure-caption {
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  background: var(--surface-subtle);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.figure-caption::before {
  content: '📷';
  font-size: 0.8125rem;
}

.article-photo-duo {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
  margin: 40px 0;
  align-items: stretch;
}

.article-photo-duo .article-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.article-photo-duo .article-figure .figure-img {
  flex: 1;
  min-height: 280px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .article-photo-duo {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Cẩm nang handbook banner callout */
.handbook-callout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r);
  padding: 26px 30px;
  margin: 40px 0;
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.handbook-callout-info {
  flex: 1;
  min-width: 280px;
  max-width: 760px;
}

.handbook-callout-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.handbook-callout-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}

.handbook-callout-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 0;
}


/* Editorial Drop Cap (Package 1) */
.editorial-drop-cap::first-letter {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  line-height: 0.82;
  float: left;
  margin: 0.12em 0.16em 0 0;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

/* Editorial Pull Quote (Package 1) */
.editorial-pull-quote {
  position: relative;
  margin: 44px 0;
  padding: 30px 36px 30px 36px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 6px 24px -2px rgba(15, 23, 42, 0.04);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: all 0.25s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.editorial-pull-quote:hover {
  border-color: var(--border-active);
  border-left-color: var(--accent);
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.08);
}

.pull-quote-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--border);
}

.pull-quote-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.editorial-pull-quote p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 14px;
}

.editorial-pull-quote cite {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-style: normal;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.editorial-pull-quote cite::before {
  content: '—';
  color: var(--accent);
}

/* Filter Pill Count Badge */
.pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  margin-left: 6px;
  color: var(--text-3);
  transition: all 0.18s ease;
}

.blog-filter-pill.active .pill-badge {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

/* Executive Summary Callout Box (Package 2) */
.executive-summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r);
  padding: 28px 32px;
  margin: 36px 0 44px;
  box-shadow: var(--shadow-subtle);
}

.exec-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.exec-summary-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exec-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.exec-summary-col {
  display: flex;
  flex-direction: column;
}

.exec-col-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.exec-col-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.exec-col-desc {
  font-size: 0.84375rem;
  color: var(--text-2);
  line-height: 1.62;
  margin-bottom: 0;
}

@media (max-width: 840px) {
  .exec-summary-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Two-Column Editorial Grid with Sticky Mini-TOC Sidebar (Package 2) */
.article-layout-grid {
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.article-layout-grid > * {
  min-width: 0;
  max-width: 100%;
}

.sticky-toc-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toc-link {
  font-size: 0.775rem;
  color: var(--text-3);
  line-height: 1.35;
  display: block;
  padding: 5px 8px;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: all 0.18s ease;
  word-break: break-word;
}

.toc-link:hover {
  color: var(--text);
  background: var(--surface-subtle);
}

.toc-link.active {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
  background: var(--accent-muted);
}

@media (max-width: 920px) {
  .article-layout-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .sticky-toc-sidebar {
    display: block !important;
    position: static !important;
    margin-bottom: 28px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .article-prose {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Interactive 3-Step Human-in-the-Loop Workflow Diagram (Package 3) */
.workflow-diagram-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  margin: 40px 0;
  box-shadow: var(--shadow-subtle);
}

.wf-diagram-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wf-steps-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

.wf-step-node {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 18px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.wf-step-node:hover,
.wf-step-node.active {
  background: var(--surface);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.wf-node-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent-muted);
  color: var(--accent);
  display: inline-block;
  margin-bottom: 10px;
}

.wf-node-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.wf-node-detail {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 12px;
}

.wf-node-owner {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

@media (max-width: 768px) {
  .wf-steps-track {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Endorsements / Social Proof Section (Package 3) */
.endorsements-section {
  margin: 88px 0 40px;
}

.endorsements-header {
  margin-bottom: 40px;
  text-align: center;
}

.endorsements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  transition: all 0.22s ease;
}

.testimonial-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.testimonial-quote-mark {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}

.testimonial-quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text);
  margin-bottom: 24px;
  flex: 1;
}

.testimonial-author-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.testimonial-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.testimonial-author-meta h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.testimonial-author-meta p {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 0;
  line-height: 1.35;
}

@media (max-width: 960px) {
  .endorsements-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Prompt Box */
.prompt-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  margin: 24px 0;
}

.btn-copy-prompt {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-prompt:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Next / Prev Navigation Grid */
.article-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 64px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-nav-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.article-nav-card.next {
  text-align: right;
  align-items: flex-end;
}

.article-nav-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.article-nav-dir {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.article-nav-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
}

/* Author Bio Card */
.author-bio-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}

.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.author-bio-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.author-bio-content p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ── ACADEMIC OPEN ARCHIVE (`tai-nguyen-detail.html`) ─────────────── */
.doc-search-wrap {
  margin: 32px 0 24px;
  position: relative;
  width: 100%;
}

.doc-search-input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: all 0.2s ease;
}

.doc-search-input:focus {
  border-color: var(--accent);
}

.doc-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.5;
  pointer-events: none;
}

.doc-no-results {
  display: none;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.9375rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  margin-top: 16px;
}

.docs-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 36px 0;
}

.doc-cat-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.doc-cat-card:hover {
  border-color: var(--border-active);
}

.doc-cat-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.doc-cat-desc {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 16px;
}

.doc-items-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-items-list li {
  font-size: 0.875rem;
  color: var(--text-2);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.doc-items-list li::before {
  content: '✦';
  font-size: 0.65rem;
  color: var(--accent);
}

.doc-btn-download {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.doc-btn-download:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── CONTACT & COLLABORATION (`hop-tac.html`) ─────────────────────── */
.contact-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px 0;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item-row {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.contact-item-lbl {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.contact-item-val {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color 0.15s ease;
}

.contact-item-val:hover {
  color: var(--accent);
}

.contact-direct-box {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
}

.direct-box-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--text);
  margin: 12px 0;
}

.direct-box-desc {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 28px;
}

.btn-brief-template {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-bottom: 12px;
}

.btn-brief-template:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.web-gmail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  width: 100%;
}

.web-gmail-btn:hover {
  border-color: var(--border-active);
  background: var(--surface-subtle);
}

.btn-direct-zalo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  background: #0068ff;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  width: 100%;
  margin-bottom: 12px;
}

.btn-direct-zalo:hover {
  background: #0056d6;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Official Contact Box */
.contact-official-card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-subtle);
}

/* ── FLOATING QUICK CONTACT WIDGET (Always on all pages) ────────── */
.floating-contact-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 920;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.floating-contact-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  border-radius: var(--r);
  padding: 8px;
  min-width: 230px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-contact-wrap.open .floating-contact-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-subtle);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.floating-contact-link:hover {
  background: var(--surface-hover);
  border-color: var(--border-active);
  color: var(--accent);
}

.floating-contact-link.zalo:hover {
  border-color: #0068ff;
  color: #0068ff;
}

.floating-contact-link.gmail:hover {
  border-color: #ea4335;
  color: #ea4335;
}

/* ── CIRCULAR FAB & ATTENTION RADAR ANIMATION ────────────────────── */
.floating-contact-trigger.circular-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #0f172a;
  color: #ffffff;
  border: 2px solid rgba(194, 108, 31, 0.45);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  animation: fabRadarWave 2.8s infinite cubic-bezier(0.25, 1, 0.5, 1), fabGlowBounce 4.5s ease-in-out infinite;
}

[data-theme="dark"] .floating-contact-trigger.circular-fab {
  background: #18181b;
  color: #ffffff;
  border-color: rgba(194, 108, 31, 0.6);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

.floating-contact-trigger.circular-fab:hover {
  transform: scale(1.12);
  background: var(--accent);
  border-color: var(--accent);
  animation-play-state: paused;
  box-shadow: 0 14px 32px rgba(194, 108, 31, 0.4);
}

.floating-contact-wrap.open .floating-contact-trigger.circular-fab {
  transform: rotate(90deg);
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.2);
  animation: none;
}

.fab-icon-msg,
.fab-icon-close {
  transition: transform 0.2s ease;
}

.fab-icon-close {
  display: none;
}

.floating-contact-wrap.open .fab-icon-msg {
  display: none;
}

.floating-contact-wrap.open .fab-icon-close {
  display: block;
}

.floating-contact-wrap.open .fab-pulse-badge {
  display: none;
}

.floating-contact-wrap.open .floating-contact-tooltip {
  display: none !important;
}

/* Green online live beacon */
.fab-pulse-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2.5px solid #0f172a;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

[data-theme="dark"] .fab-pulse-badge {
  border-color: #18181b;
}

/* Radar wave radiating outward continuously */
@keyframes fabRadarWave {
  0% {
    box-shadow: 0 0 0 0 rgba(194, 108, 31, 0.65), 0 8px 24px rgba(15, 23, 42, 0.28);
  }
  60% {
    box-shadow: 0 0 0 18px rgba(194, 108, 31, 0), 0 12px 28px rgba(15, 23, 42, 0.32);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(194, 108, 31, 0), 0 8px 24px rgba(15, 23, 42, 0.28);
  }
}

@keyframes fabGlowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Tooltip floating to the left of the circular FAB */
.floating-contact-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  bottom: 12px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 925;
}

[data-theme="dark"] .floating-contact-tooltip {
  background: rgba(24, 24, 27, 0.96);
  border-color: rgba(255, 255, 255, 0.18);
}

.floating-contact-wrap:hover .floating-contact-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ── FLOATING BACK TO TOP BUTTON ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 82px;
  right: 28px;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  cursor: pointer;
  z-index: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── EDITORIAL SCROLL MOTION & REVEAL ANIMATIONS ─────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes for hero stats and cards */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

.hero-editorial-wrap {
  animation: fadeInUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-portrait-frame {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-portrait-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.portrait-status-badge .pulse-dot-green {
  animation: pulseGlow 2s infinite;
}

.stat-item {
  transition: transform 0.25s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
}

.credentials-table tr {
  transition: background-color 0.15s ease, transform 0.2s ease;
}

.credentials-table tr:hover {
  background-color: var(--surface-hover);
  transform: translateX(4px);
}

.directory-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.28s ease;
}

.directory-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-subtle);
}

/* ── TOAST NOTIFICATION ──────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.22s ease;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── MASTER EDITORIAL FOOTER ─────────────────────────────────────── */
.master-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 56px 24px 36px;
  margin-top: auto;
}

.footer-inner-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-statement {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  max-width: 820px;
}

.footer-statement em {
  font-style: italic;
  color: var(--accent);
}

.footer-cols-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer-col-brand h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-col-brand p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.15s ease;
}

.footer-links-list a:hover {
  color: var(--text);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 0.8125rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-bar span.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

/* ── RESPONSIVE ADAPTATIONS (Mobile-First Polish) ─────────────────── */
@media (max-width: 960px) {
  .hero-editorial-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-portrait-frame {
    aspect-ratio: 16 / 10;
    max-height: 420px;
  }
  .stats-banner-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .directory-nav-grid {
    grid-template-columns: 1fr;
  }
  .featured-story-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .story-thumb-box {
    aspect-ratio: 16 / 9;
  }
  .docs-category-grid {
    grid-template-columns: 1fr;
  }
  .contact-editorial-grid {
    grid-template-columns: 1fr;
  }
  .footer-cols-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-center {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .main-wrapper {
    padding: 24px 16px 64px;
  }
  .stats-banner-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .matrix-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .article-nav-grid {
    grid-template-columns: 1fr;
  }
  .article-nav-card.next {
    text-align: left;
    align-items: flex-start;
  }
  .author-bio-card {
    flex-direction: column;
    text-align: center;
  }
  .footer-cols-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-top-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 24px;
  }

  /* Hero portrait badge containment */
  .portrait-status-badge {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    font-size: 0.6875rem;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    white-space: normal;
    line-height: 1.35;
  }

  /* Credentials table responsive card stack */
  .credentials-table,
  .credentials-table tbody,
  .credentials-table tr,
  .credentials-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .credentials-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .credentials-table td {
    padding: 2px 0;
    text-align: left;
  }
  .cr-year {
    width: auto;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
  }
  .cr-title {
    font-size: 0.9375rem;
    line-height: 1.4;
  }
  .cr-org {
    text-align: left;
    font-size: 0.8125rem;
    color: var(--text-3);
  }

  /* Article prose text left-alignment on mobile for clean reading */
  .article-prose p {
    text-align: left !important;
    text-justify: auto !important;
    font-size: 0.95rem;
    line-height: 1.68;
  }

  .editorial-pull-quote {
    padding: 18px 16px 18px 18px !important;
    margin: 24px 0 !important;
    border-radius: 0 12px 12px 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .editorial-pull-quote p {
    font-size: 1.125rem !important;
    line-height: 1.55 !important;
  }
  .pull-quote-topbar {
    margin-bottom: 0.85rem !important;
  }
  .article-callout {
    padding: 16px 16px !important;
    margin: 20px 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .article-figure {
    padding: 16px 14px !important;
    margin: 20px 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Article back bar & share wrap */
  .article-back-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }
  .share-btn-group {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Contact direct box */
  .contact-direct-box {
    padding: 24px 16px;
  }

  /* Floating contact FAB & Back-to-top position decoupling */
  .floating-contact-wrap {
    bottom: 16px;
    right: 16px;
  }
  .floating-contact-trigger.circular-fab {
    width: 48px;
    height: 48px;
  }
  .floating-contact-tooltip {
    display: none !important;
  }
  .floating-contact-menu {
    min-width: 200px;
    right: 0;
  }
  .back-to-top {
    left: 16px;
    right: auto;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  /* Case drawer mobile full width */
  .case-drawer {
    width: 100vw;
    max-width: 100vw;
  }
  .case-drawer-header {
    padding: 16px 20px;
  }
  .case-drawer-body {
    padding: 20px 18px 36px;
  }
  .case-drawer-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
  .case-drawer-footer {
    padding: 14px 20px;
    flex-direction: column;
    gap: 10px;
  }
  .case-drawer-footer .btn-editorial-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Resource cluster card mobile breathing room */
  .resource-cluster-card {
    padding: 1.35rem 1.15rem 1.15rem;
    border-radius: 12px;
  }
  .cluster-title {
    font-size: 1.2rem;
  }
  .cluster-desc {
    font-size: 0.84375rem;
  }
  .cluster-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .cluster-action-row a,
  .cluster-action-row button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* AI Voice Reader Player Mobile optimization */
  .article-audio-player {
    padding: 1.15rem 1rem 1rem;
    border-radius: var(--r-sm);
  }
  .audio-player-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.85rem;
  }
  .audio-badge-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .audio-speed-controls {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }
  .audio-player-main {
    gap: 12px;
  }
  .audio-play-btn {
    width: 44px;
    height: 44px;
  }
  .audio-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .audio-now-playing {
    font-size: 0.8125rem;
    max-width: 220px;
  }
  .audio-visualizer {
    display: none;
  }
  .audio-player-footer {
    margin-top: 0.6rem;
  }
  .audio-player-tip {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .main-wrapper {
    padding: 20px 14px 96px !important;
  }
  .nav {
    padding: 0 12px !important;
    height: 60px !important;
  }
  .nav-right {
    gap: 6px !important;
  }
  .brand-main {
    font-size: 0.84375rem;
  }
  .nav-brand {
    gap: 8px;
  }
  .nav-brand-logo {
    width: 28px;
    height: 28px;
  }
  .lang-switch-wrap {
    padding: 2px 6px;
    font-size: 0.6875rem;
  }
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
  .hamburger {
    width: 34px;
    height: 34px;
  }
  .editorial-title {
    font-size: clamp(1.75rem, 6.2vw, 2.25rem);
  }
  .editorial-subtitle {
    font-size: 0.9375rem;
  }
  .hero-editorial-statement {
    font-size: clamp(1.6rem, 5.8vw, 2.1rem) !important;
  }
  .article-main-title {
    font-size: clamp(1.5rem, 5.5vw, 1.95rem) !important;
  }
  .article-detail-wrap,
  .article-layout-grid,
  .article-prose {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .article-prose * {
    max-width: 100%;
    box-sizing: border-box;
  }
  .table-responsive-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .article-callout {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 16px 14px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .editorial-pull-quote {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 16px 14px !important;
  }
  .article-prose p,
  .article-prose li {
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }
  .editorial-drop-cap {
    overflow-wrap: break-word;
  }
}

/* ==========================================================================
   PARTNERS & CREDENTIALS LOGO CLOUD (P2.1)
   ========================================================================== */
.partner-cloud-section {
  padding: 36px 0 44px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.partner-cloud-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 24px;
}

.partner-badges-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: stretch;
}

.partner-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  cursor: pointer;
}

.partner-badge-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.p-badge-logo-wrap {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--r-sm);
  padding: 5px 10px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.partner-badge-item:hover .p-badge-logo-wrap {
  border-color: rgba(194, 108, 31, 0.4);
  box-shadow: 0 4px 12px rgba(194, 108, 31, 0.12);
  transform: translateY(-1px);
}

[data-theme="dark"] .p-badge-logo-wrap {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.p-badge-logo {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.p-badge-org {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.p-badge-desc {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 900px) {
  .partner-badges-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .partner-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .partner-badge-item {
    padding: 12px 10px 14px;
  }
  .partner-badge-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 260px;
    margin: 0 auto;
    width: 100%;
  }
  .p-badge-logo-wrap {
    height: 50px;
    margin-bottom: 8px;
    padding: 4px 8px;
  }
  .p-badge-logo {
    max-height: 38px;
  }
  .p-badge-org {
    font-size: 0.8125rem;
  }
  .p-badge-desc {
    font-size: 0.6875rem;
  }
}

/* ==========================================================================
   FULL-SCREEN IMAGE LIGHTBOX (P1.1)
   ========================================================================== */
.editorial-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}

.editorial-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-box {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: lightboxZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.95);
    opacity: 0.7;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-caption {
  margin-top: 14px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 680px;
  line-height: 1.45;
  font-family: var(--font-body);
}

.lightbox-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Clickable zoom indicator on article images */
.article-detail-hero-img,
.article-figure .figure-img {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-detail-hero-img:hover,
.article-figure .figure-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}



/* ══════════════════════════════════════════════════════════════════════
   EDITORIAL & REFINED LUXURY COMPONENT SUITE (v3.1)
   Selected Work · Expertise Grid · Manifesto Stack · Clean Fast Brief
   ══════════════════════════════════════════════════════════════════════ */

/* Shared Editorial Utility Layouts */
.section-pad-sm { padding: 3rem 0; }
.section-pad-lg { padding: 6.5rem 0; }
.border-bottom-subtle { border-bottom: 1px solid var(--border); }
.site-container-narrow { max-width: 840px; margin: 0 auto; padding: 0 1.5rem; }

.editorial-section-header { margin-bottom: 3.5rem; }
.editorial-section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.editorial-section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}
.editorial-section-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 720px;
}

/* ── 1. Selected Proof Strip ────────────────────────────────────────── */
.selected-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 2.25rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin: 3rem 0 4rem 0;
  box-shadow: var(--shadow-subtle);
}
.proof-strip-grid {
  display: contents;
}
.proof-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.proof-num {
  font-size: clamp(2rem, 2.8vw, 2.75rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.proof-text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.45;
}

/* ── 2. Selected Work Section ────────────────────────────────────────── */
.selected-work-section {
  background: var(--bg);
  padding: 4.75rem 0;
  border-bottom: 1px solid var(--border);
}
.section-editorial-header {
  margin-bottom: 3.5rem;
}
.work-editorial-list,
.editorial-work-list {
  display: flex;
  flex-direction: column;
}
.work-editorial-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2.75rem;
  padding: 3.25rem 0;
  border-top: 1px solid var(--border);
}
.work-editorial-row:first-child {
  border-top: 1px solid var(--border);
  padding-top: 3.25rem;
}
.work-meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.work-index-num {
  font-size: 2.75rem;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1;
}
.work-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.work-body-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.work-title {
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}
.work-subtitle {
  font-size: 1rem;
  color: var(--text-2);
  margin-top: -0.25rem;
}
.work-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--border);
}
.work-triad-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.triad-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.triad-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-2);
}
.work-action-row {
  margin-top: 0.5rem;
}
.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.editorial-link:hover {
  color: var(--accent-hover);
  gap: 0.75rem;
}

/* ── 3. What I Do / Expertise Open Section ───────────────────────────── */
.expertise-open-section {
  background: var(--bg);
  padding: 5rem 0 4rem 0;
  border-bottom: 1px solid var(--border);
}
.expertise-open-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
}
.expertise-open-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.expertise-num {
  font-size: 1.25rem;
  color: var(--text-3);
  font-weight: 300;
}
.expertise-name {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--text);
}
.expertise-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* ── 05. Latest Blog Post Feature Section (`index.html`) ───────────────── */
.latest-blog-section {
  background: var(--bg);
  padding: 4.75rem 0;
  border-bottom: 1px solid var(--border);
}

.editorial-split-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}

@media (max-width: 640px) {
  .latest-blog-section {
    padding: 3.25rem 0;
  }
}

/* ── 4. Recognition Badges ───────────────────────────────────────────── */
.recognition-section {
  background: var(--surface);
  padding: 4.5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.recognition-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2rem;
}
.recognition-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  align-items: stretch;
}
.recognition-badge-card {
  padding: 1.125rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 170px;
}
.rec-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}
.rec-badge-desc {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ── 5. Personal Statement & Signature Manifesto Block ──────────────── */
.personal-statement-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 2.5rem 0;
}

.signature-quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  box-sizing: border-box;
}

.signature-quote-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 18px 42px -6px rgba(15, 23, 42, 0.08);
}

.signature-quote-decor {
  position: absolute;
  top: -18px;
  left: 28px;
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}

.signature-quote-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.signature-quote-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.signature-quote-label .label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-copy-quote-discrete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-quote-discrete:hover,
.btn-copy-quote-discrete.copied {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(194, 99, 44, 0.08);
  transform: translateY(-1px);
}

.personal-statement-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.62;
  color: var(--text);
  margin: 0 auto 2.25rem;
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.signature-quote-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 2;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.signature-author-seal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(194, 99, 44, 0.08);
  border: 1px solid rgba(194, 99, 44, 0.25);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.signature-author-meta {
  text-align: left;
}

.personal-statement-author {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  text-transform: uppercase;
}

.personal-statement-role {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 2px;
}
.home-final-cta-section {
  background: var(--bg);
}
.home-final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}
.home-final-cta-title {
  font-size: clamp(1.875rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}
.home-final-cta-desc {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 600px;
  margin-bottom: 1rem;
}

/* ── 6. Blog Listing & Archive Grid ─────────────────────────────────── */
.featured-story-hero {
  margin-bottom: 3.5rem;
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.featured-story-hero:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-subtle);
}
.featured-story-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.75rem;
  align-items: center;
}
.featured-hero-thumb {
  aspect-ratio: 16/10;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-subtle);
}
.featured-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  cursor: pointer;
}
.featured-story-hero:hover .featured-hero-img {
  transform: scale(1.02);
}
.featured-hero-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.featured-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.story-category-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-pill);
}
.story-time-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}
.featured-hero-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
}
.featured-hero-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.featured-hero-title a:hover {
  color: var(--accent);
}
.featured-hero-excerpt {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-2);
}

.editorial-archive-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.archive-section-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}
.editorial-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.grid-story-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.grid-story-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-subtle);
}
.grid-story-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-subtle);
}
.grid-story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.grid-story-card:hover .grid-story-img {
  transform: scale(1.03);
}
.grid-story-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.grid-story-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.grid-story-title {
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.35;
}
.grid-story-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.grid-story-title a:hover {
  color: var(--accent);
}
.grid-story-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.grid-story-footer {
  margin-top: auto;
  padding-top: 1rem;
}

/* ── 7. Thought Leadership Manifesto (Góc Nhìn) ─────────────────────── */
.manifesto-principles-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4rem;
}
.manifesto-big-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.manifesto-big-block:first-child {
  border-top: none;
  padding-top: 1.5rem;
}
.manifesto-num-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.m-num {
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text-3);
}
.m-en-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.manifesto-content-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.manifesto-headline {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}
.manifesto-lead {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  opacity: 0.95;
}
.manifesto-content-col p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
}
.manifesto-sub-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-left: 0;
  list-style: none;
}
.m-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-2);
}
.m-bullet-item::before {
  content: "—";
  color: var(--accent);
  font-weight: 700;
}
.manifesto-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.m-comp-box {
  padding: 1.5rem 1.65rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.25s ease;
}
.m-comp-box.highlight,
.m-comp-box.active {
  background: var(--surface-subtle);
  border-color: var(--accent);
  box-shadow: 0 4px 16px -2px rgba(194, 99, 44, 0.12);
}
.m-comp-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.m-comp-box.highlight .m-comp-label,
.m-comp-box.active .m-comp-label {
  color: var(--accent);
}
.m-comp-val {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.m-comp-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-2);
}
.m-quote-callout {
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--surface-subtle);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  margin-top: 0.5rem;
  border-radius: 0 var(--r) var(--r) 0;
}

#credentialsArchiveSection {
  padding-top: 3.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.credentials-archive-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
}

/* ── 8. Clean Brief Builder (Hợp Tác) ────────────────────────────────── */
.brief-builder-clean {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.brief-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.brief-step-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.brief-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.brief-pill,
.brief-pill-btn {
  padding: 0.5rem 1.125rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.brief-pill:hover,
.brief-pill-btn:hover {
  border-color: var(--text-3);
  color: var(--text);
}
.brief-pill.active,
.brief-pill-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.brief-preview-box {
  background: var(--surface-subtle);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px dashed var(--border);
}
.brief-preview-lbl,
.brief-preview-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
#briefPreviewText {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--accent);
}
.contact-actions-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Hide floating contact widget on hop-tac.html */
body[data-page="hop-tac"] #floatingContact {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .proof-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .work-editorial-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .work-triad-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .expertise-open-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .featured-story-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .editorial-stories-grid {
    grid-template-columns: 1fr;
  }
  .manifesto-big-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .manifesto-comparison-grid {
    grid-template-columns: 1fr;
  }
  .contact-actions-pair {
    grid-template-columns: 1fr;
  }
}

.m-bullet-item strong {
  white-space: nowrap;
  color: var(--text);
  margin-right: 4px;
}
.contact-editorial-grid {
  align-items: start !important;
}


/* ══════════════════════════════════════════════════════════════════════
   FUNNEL-DRIVEN LAYOUT & PROFESSIONAL EFFECTS SUITE (v4.0)
   Value Proposition · Bottlenecks · Agency vs Hai · Dynamic Animation
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1. Hero Typographic Animation & Micro-interactions ──────────────── */
.hero-rotating-wrap {
  display: inline-block;
  color: var(--accent);
  position: relative;
  min-width: 280px;
}
.hero-rotating-text {
  display: inline-block;
  font-style: italic;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.hero-rotating-text.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}
.hero-rotating-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced CTA Micro-interactions (Modern Tactile Editorial Buttons) */
.btn-editorial-primary,
.nav-cta-btn,
.btn-funnel-primary {
  background: var(--accent) !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 6px rgba(194, 99, 44, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.btn-editorial-primary:hover,
.nav-cta-btn:hover,
.btn-funnel-primary:hover {
  transform: translateY(-1.5px);
  background: #a94a1c !important;
  box-shadow: 0 6px 16px -2px rgba(194, 99, 44, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-editorial-primary:active,
.nav-cta-btn:active,
.btn-funnel-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(194, 99, 44, 0.25);
}

.btn-editorial-secondary,
.btn-funnel-secondary {
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-editorial-secondary:hover,
.btn-funnel-secondary:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: rgba(194, 99, 44, 0.05) !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.btn-editorial-secondary:active,
.btn-funnel-secondary:active {
  transform: translateY(0);
}

[data-theme="dark"] .btn-editorial-primary,
[data-theme="dark"] .nav-cta-btn,
[data-theme="dark"] .btn-funnel-primary {
  background: var(--accent) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .btn-editorial-primary:hover,
[data-theme="dark"] .nav-cta-btn:hover,
[data-theme="dark"] .btn-funnel-primary:hover {
  background: #d46b28 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .btn-editorial-secondary,
[data-theme="dark"] .btn-funnel-secondary {
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text) !important;
}
[data-theme="dark"] .btn-editorial-secondary:hover,
[data-theme="dark"] .btn-funnel-secondary:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: rgba(194, 99, 44, 0.12) !important;
}

/* ── 2. Subtle Parallax Ambient Elements ─────────────────────────────── */
.parallax-bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  contain: strict;
}
.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.04;
  will-change: transform;
}
[data-theme="dark"] .parallax-orb {
  opacity: 0.07;
}
.orb-1 {
  width: 520px;
  height: 520px;
  top: 5%;
  right: -80px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}
.orb-2 {
  width: 580px;
  height: 580px;
  top: 45%;
  left: -120px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}
@media (max-width: 768px) {
  .parallax-bg-mesh {
    display: none !important;
  }
}

/* ── 3. Funnel Stage: The 3 Growth Bottlenecks (Vấn đề) ───────────────── */
.funnel-pain-section {
  padding: 4.75rem 0;
  border-bottom: 1px solid var(--border);
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.75rem;
}
.pain-card {
  padding: 2.25rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 12px 28px -4px rgba(239, 68, 68, 0.08);
}
.pain-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  display: inline-block;
  align-self: flex-start;
}
.pain-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}
.pain-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* ── 4. Funnel Stage: The Solution (Agency vs Nguyễn Văn Hải) ────────── */
.funnel-solution-section {
  padding: 4.75rem 0;
  border-bottom: 1px solid var(--border);
}
.comparison-matrix-wrap {
  margin-top: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}
.comparison-header-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.15fr;
  padding: 1.25rem 1.75rem;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.col-hai-header {
  color: var(--accent);
}
.comparison-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.15fr;
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background-color 0.15s ease;
}
.comparison-row:last-child {
  border-bottom: none;
}
.comparison-row:hover {
  background: var(--surface-hover);
}
.comp-feature-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}
.comp-agency-val {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.5;
  padding-right: 1rem;
}
.comp-hai-val {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
  font-weight: 500;
}
.comp-hai-val strong {
  color: var(--accent);
  font-weight: 600;
}

/* ── 5. Closing Conversion Lead Magnet Box ───────────────────────────── */
.funnel-conversion-box {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 2.75rem 2.25rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem 0;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}
.funnel-conversion-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #3b82f6 100%);
}
.funnel-box-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
  max-width: 720px;
  text-wrap: balance;
}
.funnel-box-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto;
  text-wrap: balance;
}
.funnel-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
}

/* ── 6. Floating Quick Conversion CTA ───────────────────────────────── */
.floating-quick-cta {
  position: fixed;
  bottom: 24px;
  right: 92px; /* Positioned to the left of the floating contact trigger at right: 24px */
  z-index: 890;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--accent) 0%, #db781e 100%);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 24px rgba(194, 108, 31, 0.42);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-quick-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(194, 108, 31, 0.6);
  color: #ffffff !important;
}
body[data-page="hop-tac"] .floating-quick-cta {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .pain-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .comparison-header-row,
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .comparison-header-row {
    display: none;
  }
  .funnel-conversion-box {
    padding: 3rem 1.5rem;
  }
  .floating-quick-cta {
    bottom: 20px;
    right: 88px;
    padding: 10px 18px;
    font-size: 0.8125rem;
  }
}


/* Mobile navigation bar spacing & CTA hide (prevent horizontal overflow & button stacking) */
@media (max-width: 768px) {
  .floating-quick-cta {
    display: none !important;
  }
  .nav-cta-btn {
    display: none !important;
  }
  .nav {
    padding: 10px 16px !important;
  }
  .nav-right {
    gap: 8px !important;
  }
  .brand-sub {
    display: none !important;
  }
}


/* Responsive proof strip: 2 cols on tablet, 1 col on mobile */
@media (max-width: 900px) {
  .selected-proof-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    padding: 1.75rem 1.5rem !important;
    margin: 2.5rem 0 !important;
  }
}
@media (max-width: 520px) {
  .selected-proof-strip {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    padding: 1.35rem 1.15rem !important;
  }
  .hero-rotating-wrap {
    min-width: 0 !important;
    display: inline !important;
  }
  .nowrap-phrase {
    white-space: normal !important;
  }
  .hero-actions-row {
    flex-direction: column !important;
    width: 100% !important;
  }
  .btn-editorial-primary, .btn-editorial-secondary {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}


:root {
  --bg-card: var(--surface);
  --bg-subtle: var(--surface-subtle);
  --text-1: var(--text);
}
[data-theme="dark"] {
  --bg-card: var(--surface);
  --bg-subtle: var(--surface-subtle);
  --text-1: var(--text);
}

.case-drawer-body,
.cmd-palette-body {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.case-drawer-body::-webkit-scrollbar,
.cmd-palette-body::-webkit-scrollbar {
  width: 6px;
}
.case-drawer-body::-webkit-scrollbar-thumb,
.cmd-palette-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* ── 7. Organic Film Grain / Paper Texture Overlay (Disabled for 60/120fps GPU performance) ── */
.editorial-grain-overlay {
  display: none !important;
}

/* ── 8. Card Cursor Spotlight Effect ─────────────────────────────────── */
.spotlight-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(194, 108, 31, 0.08), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 1;
}
.spotlight-card:hover::before {
  opacity: 1;
}

/* ── 9. Command Palette Modal (Ctrl + K) ──────────────────────────────── */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 15, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 13vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmd-palette-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.cmd-palette-dialog {
  width: min(620px, 92vw);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(194, 108, 31, 0.18);
  overflow: hidden;
  transform: translateY(-14px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmd-palette-backdrop.active .cmd-palette-dialog {
  transform: translateY(0) scale(1);
}
.cmd-palette-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.cmd-palette-icon {
  font-size: 1.15rem;
  color: var(--accent);
}
.cmd-palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-1);
}
.cmd-palette-input::placeholder {
  color: var(--text-3);
  font-size: 0.9375rem;
}
.cmd-palette-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 3px 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-2);
}
.cmd-palette-body {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px 12px;
}
.cmd-palette-section-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 10px 12px 4px;
}
.cmd-palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--text-1);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.875rem;
}
.cmd-palette-item:hover,
.cmd-palette-item.selected {
  background: var(--bg-subtle);
  color: var(--accent);
}
.cmd-palette-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmd-palette-item-icon {
  font-size: 1rem;
}
.cmd-palette-item-key {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.cmd-palette-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}

/* ── 10. Nav Command Palette Trigger ─────────────────────────────────── */
.nav-cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}
.nav-cmd-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 820px) {
  .nav-cmd-trigger {
    display: none !important;
  }
}

/* ── 11. Case Study Slide-Over Drawer ────────────────────────────────── */
.case-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 15, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9995;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.case-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(720px, 94vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 52px rgba(0, 0, 0, 0.22);
  z-index: 9996;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.36s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.case-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.case-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.case-drawer-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-weight: 700;
}
.case-drawer-close {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.case-drawer-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.case-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px 48px;
}
.case-drawer-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  line-height: 1.25;
  color: var(--text-1);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.case-drawer-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.case-drawer-metric-item {
  display: flex;
  flex-direction: column;
}
.case-drawer-metric-val {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.15;
}
.case-drawer-metric-lbl {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-top: 4px;
}
.case-drawer-section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.case-drawer-prose {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--text-2);
}
.case-drawer-callout {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-subtle);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 1.75rem 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-1);
  line-height: 1.6;
}
.case-drawer-footer {
  padding: 18px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ── DRIVE REPOSITORY ACCESS MODAL ──────────────────────────────── */
.drive-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 15, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.drive-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.drive-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.97);
  width: min(540px, 92vw);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.drive-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.drive-modal-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drive-modal-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
}
.drive-modal-close {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.drive-modal-close:hover {
  color: var(--text);
}
.drive-modal-body {
  padding: 24px;
}
.drive-modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
}
.drive-modal-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 20px;
}
.drive-modal-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drive-modal-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.84375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.drive-modal-opt-btn:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--accent);
}
.drive-modal-opt-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.drive-modal-opt-btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

/* ── 12. Interactive Credential Popover ───────────────────────────────── */
.partner-badge-item {
  position: relative;
  cursor: pointer;
}
.credential-popover {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  text-align: left;
}
.credential-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--border) transparent transparent transparent;
}
.partner-badge-item:hover .credential-popover,
.partner-badge-item:focus-within .credential-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.cred-pop-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cred-pop-desc {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.48;
  color: var(--text-2);
  margin-top: 6px;
}
.cred-pop-metric {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 6px;
}

/* Popover edge boundary protection on desktop */
@media (min-width: 901px) {
  .partner-badge-item:first-child .credential-popover {
    left: 0;
    transform: translateX(0) translateY(8px);
  }
  .partner-badge-item:first-child:hover .credential-popover,
  .partner-badge-item:first-child:focus-within .credential-popover {
    transform: translateX(0) translateY(0);
  }
  .partner-badge-item:first-child .credential-popover::after {
    left: 36px;
    transform: none;
  }

  .partner-badge-item:last-child .credential-popover {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(8px);
  }
  .partner-badge-item:last-child:hover .credential-popover,
  .partner-badge-item:last-child:focus-within .credential-popover {
    transform: translateX(0) translateY(0);
  }
  .partner-badge-item:last-child .credential-popover::after {
    left: auto;
    right: 36px;
    transform: none;
  }
}

@media (max-width: 600px) {
  .credential-popover {
    width: 250px;
    max-width: calc(100vw - 32px);
  }
  .partner-badge-item:nth-child(odd) .credential-popover {
    left: 0;
    right: auto;
    transform: translateX(0) translateY(8px);
  }
  .partner-badge-item:nth-child(odd):hover .credential-popover,
  .partner-badge-item:nth-child(odd):focus-within .credential-popover {
    transform: translateX(0) translateY(0);
  }
  .partner-badge-item:nth-child(odd) .credential-popover::after {
    left: 28px;
    transform: none;
  }
  .partner-badge-item:nth-child(even) .credential-popover {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(8px);
  }
  .partner-badge-item:nth-child(even):hover .credential-popover,
  .partner-badge-item:nth-child(even):focus-within .credential-popover {
    transform: translateX(0) translateY(0);
  }
  .partner-badge-item:nth-child(even) .credential-popover::after {
    left: auto;
    right: 28px;
    transform: none;
  }
}

/* ── 13. Click-to-Copy Quote ─────────────────────────────────────────── */
.copyable-quote-box {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}
.copyable-quote-box:hover {
  background: var(--bg-subtle);
}
.copy-quote-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-top: 10px;
  opacity: 0.8;
  transition: all 0.2s ease;
}
.copyable-quote-box:hover .copy-quote-badge {
  opacity: 1;
  border-color: var(--accent);
}

/* ── 14. AI Key Takeaways Box (60-Second Executive Summary) ─────────── */
.ai-takeaways-card {
  margin: 2.25rem 0 3rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.ai-takeaways-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.ai-takeaways-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.ai-takeaways-time {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}
.ai-takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.ai-takeaways-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-2);
}
.ai-takeaways-item::before {
  content: '✦';
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1.8;
  flex-shrink: 0;
}
.ai-takeaways-item strong {
  color: var(--text-1);
}

/* ── 15. About Journey & 3-Pillar Architecture ───────────────────────── */
.about-journey-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.about-journey-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-narrative-prose p {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text-2);
  margin-bottom: 1.35rem;
}
.about-narrative-prose p:last-child {
  margin-bottom: 0;
}
.about-pillars-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  transition: all 0.25s ease;
}
.about-pillar-card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}
.pillar-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0.65rem;
}
.pillar-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pillar-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.pillar-desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-2);
}

/* ── 16. Grounded Milestone Proof Strip ──────────────────────────────── */
.proof-milestone-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proof-milestone-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.proof-milestone-val {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.15;
}
.proof-milestone-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.proof-milestone-desc {
  font-family: var(--font-sans);
  font-size: 0.84375rem;
  line-height: 1.48;
  color: var(--text-2);
}

/* ── 17. Custom Brief Textarea in Contact ────────────────────────────── */
.brief-custom-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
  margin-top: 10px;
}
.brief-custom-textarea:focus {
  border-color: var(--accent);
}

/* ── 18. Four Resource Clusters Grid (tai-nguyen.html) ────────────────── */
.resource-clusters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.85rem;
  margin: 3rem 0 4.5rem;
}
.resource-cluster-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 3px solid transparent;
}
.resource-cluster-card:hover {
  border-color: var(--border-active);
  border-top-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.09);
}

.cluster-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.cluster-badge-row .story-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(194, 99, 44, 0.08);
  color: var(--accent);
  border: 1px solid rgba(194, 99, 44, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cluster-meta-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-subtle);
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cluster-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.85rem;
}
.cluster-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.cluster-title a:hover {
  color: var(--accent);
}

.cluster-desc {
  font-family: var(--font-sans);
  font-size: 0.90625rem;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

.cluster-highlights {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cluster-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text);
}
.cluster-highlight-item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(194, 99, 44, 0.16);
}

.cluster-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

@media (max-width: 900px) {
  .about-journey-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .resource-clusters-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ── 19. AI Voice Reader Audio Player (.article-audio-player) ────────── */
.article-audio-player {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.25rem 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.article-audio-player:hover {
  border-color: var(--border-h);
}

.article-audio-player.is-playing {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(194, 99, 44, 0.12);
}

.audio-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.audio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audio-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  position: relative;
}

.article-audio-player.is-playing .audio-pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: audioPulse 1.5s infinite;
}

@keyframes audioPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.audio-speed-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-speed-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-3);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-speed-btn:hover {
  color: var(--text);
  border-color: var(--border-h);
}

.audio-speed-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.audio-player-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.audio-play-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(194, 99, 44, 0.28);
  transition: all 0.2s ease;
}

.audio-play-btn:hover {
  transform: scale(1.06);
  background: var(--accent-h, #a85121);
}

.audio-info-track {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audio-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audio-now-playing {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-time-display {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
}

.audio-scrubber-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.audio-scrubber-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
  transition: width 0.15s linear;
}

.audio-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  width: 28px;
  flex-shrink: 0;
}

.audio-visualizer .bar {
  flex: 1;
  background: var(--accent);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.article-audio-player.is-playing .audio-visualizer .bar:nth-child(1) {
  animation: eqWave 0.7s infinite ease-in-out alternate;
}
.article-audio-player.is-playing .audio-visualizer .bar:nth-child(2) {
  animation: eqWave 0.9s infinite ease-in-out 0.15s alternate;
}
.article-audio-player.is-playing .audio-visualizer .bar:nth-child(3) {
  animation: eqWave 0.6s infinite ease-in-out 0.3s alternate;
}
.article-audio-player.is-playing .audio-visualizer .bar:nth-child(4) {
  animation: eqWave 0.8s infinite ease-in-out 0.2s alternate;
}
.article-audio-player.is-playing .audio-visualizer .bar:nth-child(5) {
  animation: eqWave 1s infinite ease-in-out 0.1s alternate;
}
.article-audio-player.is-playing .audio-visualizer .bar:nth-child(6) {
  animation: eqWave 0.75s infinite ease-in-out 0.25s alternate;
}

@keyframes eqWave {
  0% { height: 4px; }
  100% { height: 22px; }
}

.audio-player-footer {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

.audio-player-tip {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  display: block;
}

.speaking-highlight {
  background: rgba(194, 99, 44, 0.08);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  border-radius: 0 4px 4px 0;
  transition: all 0.3s ease;
}

@media (max-width: 640px) {
  .audio-player-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .audio-visualizer {
    display: none;
  }
  .audio-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ── 20. SEO Breadcrumb Navigation ────────────────────────── */
.seo-breadcrumb-bar {
  margin-bottom: 1.25rem;
  padding: 0.5rem 0;
}
.seo-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}
.seo-breadcrumb-item {
  display: inline-flex;
  align-items: center;
}
.seo-breadcrumb-item a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.seo-breadcrumb-item a:hover {
  color: var(--accent);
}
.seo-breadcrumb-item.active {
  color: var(--text);
  font-weight: 500;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seo-breadcrumb-sep {
  color: var(--border-h, #ccc);
  user-select: none;
}

/* ── 21. Topic Cluster & Internal Linking Block (SEO 2026) ── */
.topic-cluster-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem 2rem;
  margin: 3rem 0 2.5rem 0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}
.topic-cluster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.topic-cluster-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(194, 99, 44, 0.08);
  border: 1px solid rgba(194, 99, 44, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}
.topic-cluster-hub-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.topic-cluster-hub-link:hover {
  color: var(--accent);
}
.topic-cluster-desc {
  font-size: 0.90625rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.topic-cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 1.5rem;
}
.topic-cluster-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.topic-cluster-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.topic-cluster-card-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  font-weight: 600;
}
.topic-cluster-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}
.topic-cluster-card-desc {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.5;
  margin: 0;
}
.topic-cluster-cta {
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84375rem;
  color: var(--text-2);
}
.btn-cluster-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-cluster-cta:hover {
  color: var(--accent-h, #a85121);
  transform: translateX(3px);
}
@media (max-width: 640px) {
  .topic-cluster-block {
    padding: 1.25rem;
  }
  .topic-cluster-grid {
    grid-template-columns: 1fr;
  }
  .topic-cluster-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   PREMIUM CREATIVE AGENCY UX/UI SUITE (AWWWARDS / EDITORIAL GRADE)
   1. Kinetic Typography & Text Reveal
   2. Smooth Scroll & Subtle Parallax
   3. Interactive Project Hover & Image Reveal
   4. Cinematic Page Transitions
   5. Magnetic Button & Contextual Cursor
   ========================================================================== */

/* ── 1. KINETIC TYPOGRAPHY & TEXT REVEAL ───────────────────────── */
@keyframes kineticLineReveal {
  0% {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: translateY(28px);
    opacity: 0;
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes kineticFadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-headline-line {
  display: block;
  text-wrap: balance;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  animation: kineticLineReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-headline-line:nth-child(1) {
  animation-delay: 0.08s;
}

.hero-headline-line:nth-child(2) {
  animation-delay: 0.22s;
}

.hero-editorial-desc,
.editorial-subtitle {
  animation: kineticFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

/* Typography Balance, Spacing Harmony & Anti-Orphan Suite (Chống rớt chữ & Căn lề chuẩn) */
h1, h2, h3, h4, h5, h6,
.hero-editorial-statement,
.editorial-title,
.editorial-masthead-title,
.section-editorial-title,
.featured-hero-title,
.funnel-box-title,
.manifesto-headline,
.personal-statement-quote,
.signature-quote-decor {
  text-wrap: balance;
  opacity: 1 !important;
  clip-path: none !important;
}

p,
.hero-editorial-desc,
.editorial-subtitle,
.funnel-box-desc,
.manifesto-lead,
.article-callout p,
.proof-milestone-desc,
.case-card-desc,
.grid-story-excerpt {
  text-wrap: pretty;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Ensure buttons and badges never wrap or drop single words */
.btn-editorial-primary,
.btn-editorial-secondary,
.nav-cta-btn,
.story-cat-badge,
.proof-milestone-tag,
.cr-award {
  white-space: nowrap;
}

/* ── 2. SMOOTH SCROLL & SUBTLE PARALLAX DEPTH ─────────────────── */
.hero-portrait-frame {
  will-change: transform;
}

.hero-portrait-img {
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-status-badge {
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-portrait-img,
.featured-hero-img {
  will-change: transform;
}

/* ── 3. INTERACTIVE PROJECT HOVER & IMAGE REVEAL ─────────────── */
.case-card,
.grid-story-card,
.topic-cluster-card,
.resource-card,
.bento-card-editorial {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.case-card-thumb,
.grid-story-thumb,
.featured-hero-thumb {
  position: relative;
  overflow: hidden;
}

.case-card-thumb img,
.grid-story-thumb img,
.featured-hero-thumb img {
  transform: scale(1);
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  will-change: transform;
}

.case-card:hover .case-card-thumb img,
.grid-story-card:hover .grid-story-thumb img,
.featured-story-hero:hover .featured-hero-img {
  transform: scale(1.042);
}

.case-card-title,
.grid-story-title,
.featured-hero-title a {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.case-card:hover .case-card-title,
.grid-story-card:hover .grid-story-title,
.featured-story-hero:hover .featured-hero-title a {
  transform: translateX(4px);
  color: var(--accent);
}

/* Floating Project Hover Pill Indicator */
.project-hover-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(23, 20, 18, 0.88);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.case-card:hover .project-hover-pill,
.grid-story-card:hover .project-hover-pill,
.featured-story-hero:hover .project-hover-pill {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── 5. MAGNETIC BUTTONS (Native Hardware Precision Cursor) ──────── */
.editorial-cursor-wrap,
.cursor-dot,
.cursor-ring {
  display: none !important;
}

/* Magnetic CTA button transition (GPU-accelerated micro-translation) */
.btn-magnetic {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              background-color 0.2s ease,
              border-color 0.2s ease;
  will-change: transform;
}

/* ── ACCESSIBILITY / PREFERS-REDUCED-MOTION ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-headline-line,
  .hero-editorial-desc,
  .editorial-subtitle,
  .kinetic-heading-reveal {
    animation: none !important;
    clip-path: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .main-wrapper,
  .main-wrapper.page-exit,
  .main-wrapper.page-enter {
    transform: none !important;
    transition: opacity 0.1s ease !important;
  }

  .editorial-cursor-wrap,
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  .btn-magnetic {
    transform: none !important;
  }
}

