/* ── Variables ──────────────────────────────────── */
:root {
  --ink:    #14100D;
  --cream:  #F8F3EA;
  --sand:   #EDE5D5;
  --ochre:  #C4741A;
  --rust:   #8B3A1C;
  --sky:    #2B7CB8;
  --eucalyptus: #3F6B52;
  --muted:  #8A7B6F;
  --border: rgba(20,16,13,0.12);
  --focus:  #B85C22;

  /* Typography — both families ship a Vietnamese subset (lang="vi") */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Focus + form accessibility ─────────────────── */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
/* keyboard focus only — pointer clicks stay clean */
:focus:not(:focus-visible) { outline: none; }
input, textarea, select, button { font-family: inherit; }
/* ≥16px prevents iOS Safari zoom-on-focus */
input, textarea, select { font-size: max(16px, 1rem); }

/* ── Grain overlay ──────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0.028;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(20,16,13,1) 2px, rgba(20,16,13,1) 3px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(20,16,13,1) 3px, rgba(20,16,13,1) 4px);
  background-size: 4px 4px;
}

/* ── Navigation ─────────────────────────────────── */
/* 1. Thiết lập Nav luôn cố định và có nền sáng */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(20,16,13,0.08);
}

.nav-inner {
  max-width: 1280px; 
  margin: 0 auto;
  height: 68px; 
  padding: 0 32px;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
}

/* 2. Màu chữ Logo cố định màu tối */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); /* Đổi thành màu tối */
}
.nav-logo em { 
  font-style: italic; font-weight: 300; 
}

/* 3. Màu chữ Menu cố định màu tối */
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--muted); /* Chữ màu tối nhạt */
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--ochre);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover { 
  color: var(--ink); /* Hover thành màu tối đậm */
}
.nav-links a:hover::after { 
  transform: scaleX(1); 
}

/* 4. Nút Khám phá ngay cố định viền và chữ tối */
.nav-cta {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  border: 1px solid var(--ink); /* Viền màu tối */
  color: var(--ink); /* Chữ màu tối */
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { 
  background: var(--ink); 
  color: var(--cream); 
}

/* 5. Nút Hamburger menu (cho mobile) màu tối */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px; 
  background: var(--ink); /* Gạch ngang màu tối */
}

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: var(--ink); flex-direction: column;
  justify-content: center; align-items: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2rem; font-weight: 400;
  color: var(--cream); letter-spacing: -0.01em;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--ochre); }
.mobile-close {
  position: absolute; top: 20px; right: 32px;
  background: none; border: none; color: var(--cream);
  font-size: 2rem; cursor: pointer; font-family: var(--font-body);
  font-weight: 300;
}



/* ── Hero Base ──────────────────────────────────── */
/* Hero + stats strip together always fill exactly one screen, so the
   strip sits flush on the true bottom edge no matter the viewport height. */
.hero-viewport {
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.hero {
  position: relative; flex: 1 1 auto; min-height: 0;
  background: var(--ink); overflow: hidden;
  display: flex; align-items: center;
}

/* ── Global Overlays (Giữ nguyên) ───────────────── */
.hero-stars {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(248,243,234,0.9) 0.5px, transparent 0.5px),
    radial-gradient(circle, rgba(248,243,234,0.6) 0.5px, transparent 0.5px),
    radial-gradient(circle, rgba(248,243,234,0.4) 0.5px, transparent 0.5px);
  background-size: 200px 200px, 150px 150px, 300px 300px;
  background-position: 20px 30px, 80px 60px, 0px 0px;
  opacity: 0.45;
}
.hero-glow {
  position: absolute; bottom: 0; left: 0; right: 0; height: 45%; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(196,116,26,0.25) 0%, transparent 100%);
}
.hero-silhouette {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%; z-index: 4; pointer-events: none;
  background: rgba(20,16,13,0.85);
  clip-path: polygon(
    0% 100%, 0% 68%, 5% 65%, 12% 70%, 18% 52%, 24% 48%,
    28% 50%, 32% 35%, 38% 30%, 44% 32%, 48% 28%, 52% 30%,
    56% 35%, 62% 48%, 68% 50%, 72% 42%, 78% 38%, 84% 45%,
    88% 55%, 92% 52%, 96% 62%, 100% 65%, 100% 100%
  );
}

/* ── Slider Mechanics ───────────────────────────── */
.hero-slider {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: center;
  /* Chừa chỗ cho nav fixed (68px) + đệm thêm để khối chữ hạ thấp, không bị nav che */
  padding-top: calc(68px + 2.5rem);
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}
.hero-slide.active {
  opacity: 1; visibility: visible; z-index: 5;
}

.hero-landscape {
  position: absolute; inset: 0; z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Ken Burns — ảnh thở chậm suốt vòng đời slide, thay cho chữ nhảy loop cũ */
.hero-slide.active .hero-landscape {
  animation: kenBurns 9s ease-out both;
}

/* Gradient scrim — sits between the photo (z-index 1) and the copy (z-index 10)
   so the title stays legible on the left no matter what the photo looks like. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(20,16,13,0.94) 0%,
      rgba(20,16,13,0.82) 30%,
      rgba(20,16,13,0.50) 55%,
      rgba(20,16,13,0.16) 76%,
      transparent 94%),
    linear-gradient(to top,
      rgba(20,16,13,0.55) 0%,
      rgba(20,16,13,0.08) 38%,
      transparent 62%);
}

/* ── Content & Animations ───────────────────────── */
.hero-content {
  position: relative; z-index: 10;
  padding: 0 clamp(2rem, 8vw, 7rem);
  max-width: 1280px; width: 100%; margin: 0 auto;
}

/* Reset opacity before active */
.hero-eyebrow, .hero-bottom, .hero-headline .line-inner {
  opacity: 0;
}

.hero-eyebrow {
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--ochre); margin-bottom: 1.5rem;
}
/* Vào một lần rồi đứng yên — không loop để chữ luôn đọc được */
.hero-slide.active .hero-eyebrow {
  animation: eyebrowIn 1.2s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}

.hero-headline {
  font-family: var(--font-display); font-size: clamp(2.4rem, 7.5vw, 6.8rem);
  font-weight: 300; line-height: 0.92; letter-spacing: -0.03em;
  color: var(--cream); margin-bottom: 2rem;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(20,16,13,0.45);
}
.hero-headline .line { display: block; overflow: hidden; perspective: 700px; }

/* Chỉ chạy animation khi slide có class .active — vào MỘT lần, không bay đi */
.hero-slide.active .line-inner {
  display: block;
  transform-origin: bottom center;
  animation: lineUnfoldIn 1.4s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-slide.active .line:nth-child(1) .line-inner { animation-delay: 0.35s; }
.hero-slide.active .line:nth-child(2) .line-inner { animation-delay: 0.5s; }
.hero-slide.active .line:nth-child(3) .line-inner {
  font-style: italic; font-weight: 400; color: #E39A4C;
  animation:
    lineUnfoldIn 1.4s cubic-bezier(0.16,1,0.3,1) 0.65s both,
    emberPulse 4s ease-in-out 1.9s infinite;
}

/* Khối chữ dưới headline: subtitle + nút CTA xếp dọc, thẳng hàng bên trái
   (trước đây space-between đẩy nút văng ra mép phải, tách rời khối chữ) */
.hero-slide.active .hero-bottom {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem;
  animation: fadeUp 1s 0.85s cubic-bezier(0.16,1,0.3,1) both;
}

/* Style chữ và nút giữ nguyên */
.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem); font-weight: 300;
  color: rgba(248,243,234,0.65); line-height: 1.6; max-width: 420px;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; }

.btn-hero {
  display: inline-flex; align-items: center; gap: 0.6rem; background: var(--ochre); color: #fff; text-decoration: none;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.9rem 2rem; border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
}
.btn-hero:hover { background: var(--rust); transform: translateY(-2px); }
.btn-hero svg { transition: transform 0.3s; }
.btn-hero:hover svg { transform: translateX(3px); }

.btn-ghost {
  font-size: 0.85rem; font-weight: 500; color: rgba(248,243,234,0.6); letter-spacing: 0.04em; text-decoration: none;
  transition: color 0.3s;
}
.btn-ghost:hover { color: var(--cream); }

/* Nút Scroll — bấm được, cuộn xuống phần điểm đến */
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.2rem; cursor: pointer;
  animation: fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) 1.6s both;
}
/* Quầng sáng ochre thở phía sau — kéo mắt về giữa đáy hero */
.hero-scroll::before {
  content: '';
  position: absolute; inset: -20%;
  background: radial-gradient(ellipse at center, rgba(196,116,26,0.28) 0%, transparent 65%);
  animation: scrollHalo 2.4s ease-in-out infinite;
  pointer-events: none;
}
.hero-scroll span {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(248,243,234,0.85);
  text-shadow: 0 2px 12px rgba(20,16,13,0.6);
  animation: scrollLabelBreathe 2.4s ease-in-out infinite;
  transition: color 0.3s;
}
.hero-scroll:hover span { color: #E39A4C; }
.scroll-line {
  width: 2px; height: 52px; border-radius: 2px;
  background: linear-gradient(to bottom, transparent, rgba(248,243,234,0.3));
  position: relative; overflow: hidden;
}
/* Giọt sáng ochre trượt dọc sợi chỉ — nhịp mời cuộn xuống */
.scroll-line::after {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 55%;
  border-radius: 2px;
  background: linear-gradient(to bottom, transparent, var(--ochre) 45%, #F8C060);
  box-shadow: 0 0 10px 1px rgba(227,154,76,0.75);
  animation: scrollDrop 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.scroll-chevron {
  color: #E39A4C; margin-top: -0.35rem;
  filter: drop-shadow(0 0 6px rgba(227,154,76,0.6));
  animation: chevronBob 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes scrollDrop {
  0%       { transform: translateY(-100%); opacity: 0; }
  25%      { opacity: 1; }
  75%, 100% { transform: translateY(185%); opacity: 0; }
}
@keyframes scrollLabelBreathe {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}
@keyframes scrollHalo {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50%      { opacity: 1; transform: scale(1.05); }
}
@keyframes chevronBob {
  0%, 100% { transform: translateY(-2px); opacity: 0.55; }
  55%      { transform: translateY(3px); opacity: 1; }
}

/* ── Hero nav: "nhật ký hành trình" — số slide + thanh tiến trình + mũi tên ── */
.hero-nav {
  position: absolute; bottom: 2rem; z-index: 10;
  right: clamp(2rem, 8vw, 7rem);
  display: flex; align-items: center; gap: 1.1rem;
}
.hero-nav-count {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-size: 1.05rem; color: var(--cream); letter-spacing: 0.02em;
  display: flex; align-items: baseline; gap: 0.3rem; white-space: nowrap;
}
.hero-nav-count .current { font-style: italic; font-size: 1.5rem; color: #E39A4C; }
.hero-nav-count .total   { font-weight: 300; color: rgba(248,243,234,0.45); font-size: 0.9rem; }
.hero-nav-track {
  width: clamp(70px, 10vw, 130px); height: 2px; border-radius: 2px;
  background: rgba(248,243,234,0.2); overflow: hidden;
}
.hero-nav-progress {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--ochre), #E39A4C);
  transform: scaleX(0); transform-origin: left;
}
.hero-nav-progress.running {
  transition: transform var(--slide-duration, 5000ms) linear;
  transform: scaleX(1);
}
.hero-nav-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(248,243,234,0.08); border: 1px solid rgba(248,243,234,0.28);
  color: var(--cream); cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.hero-nav-btn:hover {
  background: var(--ochre); border-color: var(--ochre); transform: translateY(-2px);
}
.hero-nav-btn:active { transform: translateY(0); }

/* ── Stats strip ────────────────────────────────── */
.stats-strip {
  flex-shrink: 0;
  background: var(--ink); color: rgba(248,243,234,0.45);
  overflow: hidden; border-bottom: 1px solid rgba(248,243,234,0.08);
  padding: 0;
}
.stats-track {
  display: flex; width: max-content;
  animation: marquee 40s linear infinite;
}
.stats-item {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem 3rem; white-space: nowrap;
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stats-item strong {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 400;
  color: var(--cream); letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.stats-sep { width: 1px; height: 24px; background: rgba(248,243,234,0.15); flex-shrink: 0; }

/* ── Categories ─────────────────────────────────── */
.categories {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1280px; margin: 0 auto;
}
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ochre);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.025em;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--muted); }
.section-sub {
  font-size: 0.9rem; font-weight: 300; color: var(--muted);
  line-height: 1.7; max-width: 280px; text-align: right;
}

/* Region tabs — atlas index: big serif labels, dotted-route underline
   for the active region (echoes the manifesto flight route) */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.6rem;
  margin-bottom: 1.2rem;
}
.cat-tab {
  font: inherit;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0 0.1rem 0.5rem;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
}
.cat-tab::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  border-bottom: 3px dotted var(--ochre);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.cat-tab:hover { color: var(--ink); }
.cat-tab--active { color: var(--ink); font-style: italic; }
.cat-tab--active::after { transform: scaleX(1); }

.cat-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.cat-subgroup { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cat-subgroup[hidden] { display: none; }
.cat-chip {
  font: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.cat-chip:hover { color: var(--ink); border-color: var(--ink); }
.cat-chip--active {
  color: #fff;
  background: var(--ochre);
  border-color: var(--ochre);
}

/* Filterable destination grid — magazine opener: the first visible
   destination leads at 4×2, the rest follow three-up */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}
.cat-card {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: 4px;
  grid-column: span 2;
  aspect-ratio: 3 / 2;
  background: var(--ink);
  text-decoration: none;
  display: block;
}
.cat-card--lead {
  grid-column: span 4;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 320px;
}
.cat-card[hidden] { display: none; }
.cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6rem 2rem;
  color: var(--muted);
}
.cat-empty p {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}
.cat-empty span { font-size: 0.85rem; opacity: 0.6; }

.cat-view-all {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-view-all:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.cat-bg {
  position: absolute; inset: 0;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
  object-fit: cover;
}
.cat-card:hover .cat-bg { transform: scale(1.06); }
.cat-img-element {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Hoạt động tương tự như background-size: cover */

}
/* Landscape gradients — cycle across the full filtered set */
.cat-card:nth-of-type(6n+1) .cat-bg { background: linear-gradient(160deg, #2A1A0E 0%, #6B2D10 25%, #C4741A 55%, #E8A45C 80%, #D4845C 100%); }
.cat-card:nth-of-type(6n+2) .cat-bg { background: linear-gradient(160deg, #041E2A 0%, #0A4A6E 40%, #1A82B8 70%, #4ECDE6 100%); }
.cat-card:nth-of-type(6n+3) .cat-bg { background: linear-gradient(160deg, #0E3A1C 0%, #1B6B35 35%, #42A85A 65%, #7DD68E 100%); }
.cat-card:nth-of-type(6n+4) .cat-bg { background: linear-gradient(160deg, #38BDF8 0%, #0EA5E9 30%, #7DD3FC 55%, #F0F9FF 100%); }
.cat-card:nth-of-type(6n+5) .cat-bg { background: linear-gradient(135deg, #14100D 0%, #3D1C0C 30%, #8B3A1C 55%, #C4741A 80%, #F8C060 100%); }
.cat-card:nth-of-type(6n+6) .cat-bg { background: linear-gradient(160deg, #1C0D2E 0%, #4A1870 30%, #8B2FC9 60%, #C87DE8 100%); }

.cat-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,16,13,0.85) 0%, rgba(20,16,13,0.1) 50%, rgba(20,16,13,0.3) 100%);
}

.cat-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem;
}
.card-wrapper {
  position: relative; 
}
/* Waypoint badge — a map marker instead of a ghost numeral */
.cat-number {
  position: relative;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1rem; font-style: italic; font-weight: 400;
  color: var(--cream); line-height: 1;
  background: rgba(20,16,13,0.32);
  border-radius: 50%;
}
.cat-number::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(248,243,234,0.7);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.cat-card:hover .cat-number::before { transform: rotate(60deg); }

.cat-bottom { display: flex; flex-direction: column; gap: 0.35rem; }
.cat-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 600;
  color: var(--cream); line-height: 1.1; letter-spacing: -0.015em;
}
.cat-desc {
  font-size: 0.8rem; font-weight: 300; color: rgba(248,243,234,0.7);
  line-height: 1.5; max-width: 32ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-card--lead .cat-content { padding: clamp(1.5rem, 2.5vw, 2.2rem); }
.cat-card--lead .cat-name { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.cat-card--lead .cat-desc {
  font-size: 0.9rem; max-width: 46ch;
  -webkit-line-clamp: 3;
}
.cat-arrow {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(248,243,234,0.12); border: 1px solid rgba(248,243,234,0.25);
  display: grid; place-items: center; color: var(--cream);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.4s, transform 0.4s;
}
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

/* ── Manifesto strip ────────────────────────────── */
.manifesto {
  margin: 0;
  padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  background: #F2E8D4;
  border-top: 1px solid rgba(160,110,40,0.18);
  border-bottom: 1px solid rgba(160,110,40,0.18);
  position: relative; overflow: hidden;
}
/* Linen weave texture */
.manifesto::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.032;
  background-image:
    repeating-linear-gradient(0deg, #6B4417 0px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, #6B4417 0px, transparent 1px, transparent 3px);
  background-size: 4px 4px;
}
/* Map latitude/longitude grid overlay */
.manifesto::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(0deg, rgba(130,85,25,0.7) 0px, transparent 1px, transparent 46px),
    repeating-linear-gradient(90deg, rgba(130,85,25,0.7) 0px, transparent 1px, transparent 68px);
  background-size: 68px 46px;
}
.manifesto-inner {
  max-width: 1080px; margin: 0 auto;
  position: relative; z-index: 1;
}
.manifesto-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ochre);
  margin-bottom: 2.2rem;
  position: relative; padding-left: 3.2rem;
}
/* Ruler tick — echoes the lat/long grid overlay */
.manifesto-label::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 2.4rem; height: 1px; background: var(--ochre);
}

/* Oversized declaration — the manifesto itself is the visual */
.manifesto-statement {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.6vw, 4.4rem);
  font-weight: 340; line-height: 1.08; letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 2.4rem;
  text-wrap: balance;
}
.mani-line { display: block; }
.mani-em {
  font-style: italic; font-weight: 420; color: var(--rust);
  position: relative; display: inline-block; white-space: nowrap;
  padding-bottom: 0.24em;
}
/* Dotted flight route drawing itself under the key phrase */
.mani-route {
  position: absolute; left: 0; bottom: 0; width: 100%; height: auto;
  clip-path: inset(-20% 100% -20% 0);
  transition: clip-path 1.4s cubic-bezier(0.65,0,0.15,1) 0.6s;
}
.mani-line.visible .mani-route { clip-path: inset(-20% 0 -20% 0); }

.manifesto-body {
  font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 300; color: #2E2318;
  line-height: 1.9; max-width: 60ch;
  margin-bottom: 3rem;
}
.manifesto-body strong { font-weight: 600; color: var(--ink); }

/* Baseline row: stat count-up + contacts under a hairline rule */
.manifesto-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(160,110,40,0.25);
}
.manifesto-stat { display: flex; align-items: center; gap: 1rem; }
.manifesto-stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.2rem); font-weight: 300;
  line-height: 0.9; letter-spacing: -0.04em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.manifesto-years-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: #3D2F25; line-height: 1.5;
}
.manifesto-sep { width: 1px; height: 2.6rem; background: rgba(160,110,40,0.3); }

@media (prefers-reduced-motion: reduce) {
  .mani-route { transition: none; }
}

/* Horizontal contact row */
.manifesto-contacts {
  display: flex; flex-direction: row; flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
}
.manifesto-contact {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.83rem; font-weight: 400; color: #4A3828;
  text-decoration: none; transition: color 0.2s ease;
}
.manifesto-contact:hover { color: var(--ochre); }
.manifesto-contact svg { flex-shrink: 0; color: #4A3828; transition: color 0.2s ease; }
.manifesto-contact:hover svg { color: var(--ochre); }
.manifesto-contact-label { font-weight: 600; }

/* ── Footer ─────────────────────────────────────── */
footer {
  background: var(--ink); color: rgba(248,243,234,0.55);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem);
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(248,243,234,0.1);
  margin-bottom: 3rem;
}
.footer-brand .logo-footer {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 400; color: var(--cream);
  letter-spacing: -0.02em; display: block; margin-bottom: 1rem;
}
.footer-brand .logo-footer em { font-style: italic; font-weight: 300; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 260px; }
.footer-brand .newsletter {
  margin-top: 1.5rem; display: flex; gap: 0;
}
.newsletter input {
  flex: 1; min-width: 0;
  padding: 0.7rem 1rem; font-size: 16px; font-family: inherit;
  background: rgba(248,243,234,0.06); border: 1px solid rgba(248,243,234,0.15);
  border-right: none; color: var(--cream); outline: none;
  border-radius: 2px 0 0 2px;
  transition: border-color 0.3s;
}
.newsletter input::placeholder { color: rgba(248,243,234,0.3); }
.newsletter input:focus { border-color: var(--ochre); }
.newsletter button {
  padding: 0.65rem 1.1rem; background: var(--ochre); border: none;
  color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer; font-family: inherit;
  border-radius: 0 2px 2px 0;
  transition: background 0.3s;
}
.newsletter button:hover { background: var(--rust); }

.footer-col h4 {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cream);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  font-size: 0.85rem; color: rgba(248,243,234,0.55);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 0.78rem; color: rgba(248,243,234,0.3);
}
.footer-socials { display: flex; gap: 0.75rem; }
.social-btn {
  width: 34px; height: 34px; border-radius: 2px;
  border: 1px solid rgba(248,243,234,0.15);
  display: grid; place-items: center; color: rgba(248,243,234,0.5);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.social-btn:hover { border-color: var(--ochre); color: var(--ochre); }
.staff-link {
  color: rgba(248,243,234,0.2); font-size: 0.75rem;
  transition: color 0.3s;
}
.staff-link:hover { color: rgba(248,243,234,0.5); }

/* ── Keyframes ───────────────────────────────────── */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineUnfoldIn {
  from { transform: translateY(105%) rotateX(-55deg); opacity: 0; }
  to   { transform: translateY(0) rotateX(0deg); opacity: 1; }
}
@keyframes eyebrowIn {
  from { opacity: 0; transform: translateY(14px); letter-spacing: 0.55em; }
  to   { opacity: 1; transform: translateY(0); letter-spacing: 0.25em; }
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
@keyframes emberPulse {
  0%, 100% { text-shadow: 0 4px 28px rgba(20,16,13,0.45), 0 0 0 rgba(227,154,76,0); }
  50%      { text-shadow: 0 4px 28px rgba(20,16,13,0.45), 0 0 22px rgba(227,154,76,0.4); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50%       { opacity: 1; transform: scaleY(1); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Scroll reveal ───────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.45s; }
.reveal-delay-5 { transition-delay: 0.6s; }
.reveal-delay-6 { transition-delay: 0.75s; }

/* ── Responsive ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active .hero-landscape { animation: none; }
  .hero-slide.active .line-inner,
  .hero-slide.active .line:nth-child(3) .line-inner,
  .hero-slide.active .hero-eyebrow,
  .hero-slide.active .hero-bottom {
    animation: none; opacity: 1;
  }
  .hero-nav-progress.running { transition: none; transform: scaleX(1); }
  .hero-scroll, .hero-scroll span, .hero-scroll::before,
  .scroll-line::after, .scroll-chevron { animation: none; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }
  .hero-nav { right: auto; left: clamp(2rem, 8vw, 7rem); bottom: 1.5rem; }
  .hero-nav-btn { width: 36px; height: 36px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card { grid-column: span 1; }
  .cat-card--lead { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; min-height: 0; }
  .manifesto-statement { font-size: clamp(2rem, 8.5vw, 3.2rem); }
  .manifesto-body { font-size: 1rem; }
  .manifesto-foot { gap: 1.25rem 1.5rem; }
  .manifesto-sep { display: none; }
  .manifesto-contacts { flex-direction: column; gap: 0.65rem; width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card, .cat-card--lead { grid-column: span 1; aspect-ratio: 4/3; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ── Travel News — Nhật ký hành trình ──────────── */
.travel-news-section {
  padding: 6rem clamp(1.5rem, 6vw, 6rem) 5rem;
  background: #2D4A3E;
  position: relative;
  overflow: hidden;
}
.travel-news-section::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 25% 20%, rgba(248,243,234,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 75% 70%, rgba(196,133,60,0.07) 0%, transparent 70%);
}
.tn-container {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
}
.tn-section-title { color: #FDF8EE; }
.tn-section-title em { color: #B8C5BE; }
.tn-section-sub { color: #B8C5BE; }
.tn-section-sub-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}
.tn-see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #FDF8EE;
  text-decoration: none;
  border-bottom: 1px solid rgba(253,248,238,0.35);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.tn-see-all:hover { border-color: #FDF8EE; opacity: 0.85; }
.tn-page-anchor {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

/* ── Journal: dispatches along a dotted route ────
   Each entry is a stop on a continuous route line running through
   the rail — same route language as the manifesto underline and the
   category waypoint badges. */
.tn-journal {
  --tn-gap: 2rem;
  display: flex;
  gap: var(--tn-gap);
  padding-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tn-journal::-webkit-scrollbar { display: none; }

.tn-page {
  flex-shrink: 0;
  width: 360px;
  display: flex;
  flex-direction: column;
}

.tn-page-img {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 2px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.12),
    0 8px 24px rgba(0,0,0,0.22);
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.tn-page:hover .tn-page-img { transform: translateY(-5px); }
.tn-page-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.tn-page:hover .tn-page-img img {
  transform: scale(1.03);
  filter: brightness(1.06) saturate(1.04);
}

/* Route segment — each card carries its slice of the line and bridges
   half the gap on either side, so the dots read as one journey */
.tn-stop {
  position: relative;
  height: 30px;
  margin-top: 0.9rem;
}
.tn-stop::before {
  content: '';
  position: absolute; top: 50%;
  left: calc(var(--tn-gap) / -2);
  right: calc(var(--tn-gap) / -2);
  border-top: 2px dotted rgba(253,248,238,0.3);
}
.tn-page:first-child .tn-stop::before { left: 0; }
.tn-stop-dot {
  position: absolute; top: 50%; left: 22px;
  transform: translateY(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #2D4A3E;
  border: 2px solid #E3A45C;
  transition: background 0.3s, transform 0.3s;
}
.tn-page:hover .tn-stop-dot {
  background: #E3A45C;
  transform: translateY(-50%) scale(1.25);
}

/* Entry text sits directly on the wall */
.tn-page-body { padding: 0 0.15rem; }

.tn-date {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9DB3A8;
  margin-bottom: 0.7rem;
}

.tn-page-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: #FDF8EE;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  transition: color 0.25s;
}
.tn-page:hover .tn-page-title { color: #F0C68E; }

.tn-page-summary {
  font-size: 0.86rem;
  font-weight: 300;
  color: #B8C5BE;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.tn-page-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: #E3A45C;
  transition: color 0.2s, gap 0.3s;
}
.tn-page:hover .tn-page-link { color: #F0C68E; gap: 0.65rem; }

@media (max-width: 900px) {
  .travel-news-section {
    padding: 4rem clamp(1rem, 5vw, 2rem) 3rem;
  }
  .tn-journal { --tn-gap: 1.5rem; }
  .tn-page { width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .tn-page-img, .tn-page-img img, .tn-stop-dot { transition: none; }
}

/* ── Partners ────────────────────────────────────── */
/* --- SECTION ĐỐI TÁC TIÊU BIỂU --- */
.partners-section {
  padding: 60px 0;
  background-color: var(--cream, #F8F3EA);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.partners-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--ink, #333333);
  margin-bottom: 40px;
}

/* Khung chứa slider, bật flex để 2 cụm nối đuôi nhau nằm ngang */
.partners-slider {
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden; 
  position: relative;
  display: flex; 
}

/* Hiệu ứng làm mờ (fade) mượt mà ở 2 cạnh màn hình */
.partners-slider::before,
.partners-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px; 
  height: 100%;
  z-index: 2;
  pointer-events: none; /* Để không cản trở việc di chuột vào logo ở rìa */
}
.partners-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--cream, #F8F3EA) 0%, transparent 100%);
}
.partners-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--cream, #F8F3EA) 0%, transparent 100%);
}

/* Container bao bọc các logo */
.partners-group {
  display: flex;
  align-items: center;
  gap: 50px; /* Khoảng cách giữa các khung logo */
  padding-right: 50px; /* Phải bằng với gap để vòng lặp nối liền mạch */
  animation: scroll 52s linear infinite; 
}

/* TẠO KHUNG VÀ SCALE HÌNH ẢNH */
.partners-group img {
  width: 160px; /* Cố định chiều rộng của khung */
  height: 80px; /* Cố định chiều cao của khung */
  
  /* ĐIỂM MẤU CHỐT: Ngăn Flexbox bóp méo hoặc ép các khung đè lên nhau */
  flex-shrink: 0; 
  
  /* Scale hình ảnh vừa vặn vào bên trong khung, không bị méo tỉ lệ */
  object-fit: contain; 
  
  /* Hiệu ứng màu sắc (tùy chọn) */
  filter: grayscale(100%) opacity(0.6); 
  transition: filter 0.3s, opacity 0.3s;
}

.partners-group img:hover {
  filter: grayscale(0%) opacity(1); 
}

/* Khi di chuột vào cả vùng slider thì tạm dừng chạy để khách hàng dễ bấm/nhìn */


/* Animation dịch chuyển chu kỳ 100% không khựng gãy */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}