/* Chăm Film — phần tách từ style.css.
   THỨ TỰ NẠP RẤT QUAN TRỌNG: các quy tắc ở file sau cố ý đè file trước.
   Xem thứ tự trong inc/enqueue.php — đừng đổi. */

/* ═══════════════════════════════════════════
   v2.6 — TRỤ CỘT KIỂU BIÊN TẬP
   Tiêu đề cỡ trang, mỗi ý một hàng lớn kèm
   ảnh riêng, xen kẽ trái–phải.
═══════════════════════════════════════════ */
.cf-pillars.layout-editorial { padding: 7rem 0; }
.cf-pillars .cf-pillars-title.size-large {
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.cf-pillars.layout-editorial .cf-pillars-head {
  max-width: 68ch;
  margin-bottom: 5rem;
}

.cf-pillars-rows { list-style: none; display: grid; gap: 6rem; }
@media (max-width: 900px) { .cf-pillars-rows { gap: 3.5rem; } }

.cf-pillar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}
.cf-pillar-row.media-right .cf-pillar-row-media { order: 2; }
.cf-pillar-row.no-media { grid-template-columns: minmax(0, 820px); justify-content: center; }

@media (max-width: 900px) {
  .cf-pillar-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .cf-pillar-row.media-right .cf-pillar-row-media { order: 0; }
}

/* Ảnh của từng ý */
.cf-pillar-row-media { margin: 0; position: relative; }
.cf-pillar-row-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cf-pillars.ratio-landscape .cf-pillar-row-img,
.cf-pillars.ratio-landscape .cf-pillar-row-media .cf-feature-placeholder { aspect-ratio: 4 / 3; }
.cf-pillars.ratio-square .cf-pillar-row-img,
.cf-pillars.ratio-square .cf-pillar-row-media .cf-feature-placeholder { aspect-ratio: 1 / 1; }
.cf-pillars.ratio-portrait .cf-pillar-row-img,
.cf-pillars.ratio-portrait .cf-pillar-row-media .cf-feature-placeholder { aspect-ratio: 3 / 4; }

/* ─── Chú thích ảnh ───
   Trước đây in hoa, giãn chữ, xám — nặng ngang tiêu đề nên tranh mắt.
   Nay là một dòng nhỏ có vạch vàng dẫn đầu, đọc là biết chú thích. */
.cf-pillar-row-caption {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-subtle);
}
.cf-pillar-row-caption::before {
  content: '';
  flex: 0 0 1.5rem;
  height: 1px;
  background: var(--gold-deep);
  transform: translateY(-0.32em);
}
.cf-pillars.tone-dark .cf-pillar-row-caption { color: rgba(250, 250, 250, 0.62); }
.cf-pillars.tone-dark .cf-pillar-row-caption::before,
.dark .cf-pillar-row-caption::before { background: var(--gold); }

/* ─── Số thứ tự ───
   Trước là 0.85rem màu xám với gạch chân cụt — không ai nhìn thấy.
   Nay là con số khổ lớn màu vàng, làm mỏ neo cho cả hàng. */
.cf-pillar-row-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(1rem, 2vw, 1.75rem);
  margin-bottom: 1.4rem;
}
.cf-pillar-row-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--gold-deep);
  /* Bỏ sạch gạch chân cũ */
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
}
.cf-pillars.tone-dark .cf-pillar-row-num,
.dark .cf-pillar-row-num { color: var(--gold); border: 0; }

.cf-pillar-row-title {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.06;
  color: var(--ink);
  margin: 0;
  /* Vạch vàng mảnh nối số với tiêu đề, kéo hết chiều ngang khối chữ */
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--divider-mid);
}
.cf-pillars.tone-dark .cf-pillar-row-title {
  color: var(--snow);
  border-bottom-color: rgba(250, 250, 250, 0.18);
}

/* Rê chuột vào hàng: vạch dưới tiêu đề sáng lên màu vàng.
   Một tín hiệu duy nhất, không nhấp nháy nhiều thứ cùng lúc. */
.cf-pillar-row-title { transition: border-color 0.45s ease; }
.cf-pillar-row:hover .cf-pillar-row-title { border-bottom-color: var(--gold); }

.cf-pillar-row-text p {
  font-size: 1.03rem;
  line-height: 1.85;
  color: var(--ink-dim);
  max-width: 56ch;
}
.cf-pillar-row-text p + p { margin-top: 1.1rem; }
.cf-pillars.tone-dark .cf-pillar-row-text p { color: rgba(250, 250, 250, 0.78); }

/* ─── Ảnh có khung góc vàng ───
   Chừa chỗ cho nét khung khỏi bị cắt ở mép lưới. */
.cf-pillar-row-media { padding: 0.75rem; }
.cf-pillar-row-media .cf-feature-frame { inset: 0; }

/* Điện thoại: số nằm trên tiêu đề cho đỡ chật */
@media (max-width: 560px) {
  .cf-pillar-row-head { grid-template-columns: 1fr; row-gap: 0.5rem; }
  .cf-pillar-row-media { padding: 0.5rem; }
}

/* ═══════════════════════════════════════════
   v2.5 — THẺ ĐỘI NGŨ KIỂU CHÂN DUNG
   Ảnh khổ dọc, tên đè lên ảnh. Mọi thành viên
   dùng chung một cỡ thẻ — không ai nổi hơn ai.
═══════════════════════════════════════════ */
.cf-team-section.tone-dark {
  position: relative;
  isolation: isolate;
  background: var(--obsidian);
  color: var(--snow);
}
.cf-team-section.tone-dark .cf-section-title { color: var(--snow); }
.cf-team-section.tone-dark .cf-section-desc { color: rgba(250, 250, 250, 0.72); }
.cf-team-section.tone-dark .cf-section-eyebrow { color: var(--gold); }
.cf-team-section.tone-dark .btn-outline {
  color: rgba(250, 250, 250, 0.85);
  border-color: rgba(250, 250, 250, 0.35);
}
.cf-team-section.tone-dark .btn-outline:hover {
  color: var(--obsidian);
  background: var(--snow);
  border-color: var(--snow);
}
.cf-team-section.tone-surface {
  background: var(--surface);
  border-block: 1px solid var(--divider);
}

/* Lưới sát nhau như một tấm ảnh ghép */
.cf-team-section.cards-overlay .team-grid {
  display: grid;
  grid-template-columns: repeat(var(--cf-cols, 5), minmax(0, 1fr));
  gap: 0.5rem;
  align-items: start;
}
@media (max-width: 1200px) { .cf-team-section.cards-overlay .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .cf-team-section.cards-overlay .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .cf-team-section.cards-overlay .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; } }

.member-card.style-overlay {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}
.member-card.style-overlay .member-card-link {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  color: inherit;
}
.member-card.style-overlay .member-card-link:focus-visible {
  outline: 2px solid var(--snow);
  outline-offset: -4px;
}
.member-card.style-overlay .member-card-media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.member-card.style-overlay .member-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: saturate(0.92) brightness(0.94);
}
.member-card.style-overlay:hover .member-card-img {
  transform: scale(1.045);
  filter: saturate(1) brightness(1);
}

/* Chưa có ảnh: ô chữ cái đầu, vẫn giữ đúng khung để lưới không lệch */
.member-card.style-overlay .member-card-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(250, 250, 250, 0.14);
  background: linear-gradient(160deg, #1C3A2E 0%, #0A0A0A 100%);
}

/* Lớp tối chân ảnh cho chữ đọc được trên mọi ảnh */
.member-card.style-overlay .member-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 8, 7, 0.88) 0%,
    rgba(6, 8, 7, 0.55) 22%,
    rgba(6, 8, 7, 0.08) 48%,
    transparent 70%
  );
  transition: opacity 0.4s ease;
}
.member-card.style-overlay:hover .member-card-scrim { opacity: 0.92; }

.member-card.style-overlay .member-card-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.35rem 1.25rem 1.2rem;
  z-index: 2;
}
.member-card.style-overlay .member-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.3s ease;
}
.member-card.style-overlay:hover .member-card-name { color: #fff; }
.member-card.style-overlay .member-card-role {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  text-transform: none;
}

@media (max-width: 640px) {
  .member-card.style-overlay .member-card-caption { padding: 1rem 0.85rem 0.9rem; }
  .member-card.style-overlay .member-card-role { font-size: 0.625rem; }
}

/* Trang lưu trữ Đội Ngũ dùng chung kiểu thẻ */
.team-archive-body { padding: 3.5rem 0 6rem; }
.archive-team .team-hero { background: var(--obsidian); }
.team-filter-note {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: rgba(250, 250, 250, 0.72);
}
.team-filter-note a {
  margin-left: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--mist);
}

/* ═══════════════════════════════════════════
   v2.4 — LOGO (header + footer), chỉnh được
   kích thước trong Giao diện → Tuỳ biến
═══════════════════════════════════════════ */
.site-logo .site-logo-img {
  height: var(--logo-h, 48px);
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-logo .footer-logo-img {
  height: var(--logo-h-footer, 56px);
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  /* Footer luôn nền tối: logo màu tự chuyển sáng cho đọc được.
     Chọn riêng "Logo footer" bản trắng thì bỏ lọc này đi. */
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity 0.25s ease;
}
.footer-logo:hover .footer-logo-img { opacity: 1; }
/* Đã chọn logo footer riêng → giữ nguyên màu gốc */
.footer-logo.has-custom-logo .footer-logo-img { filter: none; }

/* Dấu chữ cái đầu khi chưa chọn logo */
.footer-brand .logo-mark {
  width: 34px; height: 34px;
  border: 1px solid rgba(250, 250, 250, 0.45);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.footer-brand .logo-mark span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--snow);
}
.footer-brand .logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--snow);
}
.site-logo .logo-mark { flex: 0 0 auto; }

/* â”€â”€â”€ Site logo image â”€â”€â”€ */
.site-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* Cỡ chữ Hero và Trích dẫn: xem phần v2.0 ở cuối file.
   Bản cũ ở đây đã gỡ vì trùng selector với giá trị khác nhau.

   LỖI ĐÃ SỬA: ".hero-bg::after" từng phủ thêm một lớp tối rgba(0,0,0,0.55)
   CHỒNG LÊN lớp .hero-overlay → hero luôn tối gấp đôi mức mà thanh trượt
   "Độ tối lớp phủ" trong block Hero đặt ra. Kéo về 0% cũng vẫn tối. */

/* â”€â”€â”€ Archive Team â”€â”€â”€ */
.team-hero { text-align: center; }
.team-hero-inner { max-width: 720px; margin: 0 auto; }
.team-hero-desc {
  font-size: 1.05rem;
  color: var(--ink-dim);
  line-height: 1.7;
  margin-top: 1.25rem;
  max-width: 560px;
  margin-inline: auto;
}

/* Lưới đội ngũ: định nghĩa duy nhất ở phần v2.0/v2.5 cuối file.
   Bản cũ ở đây đã gỡ vì ép cứng 4 cột và thêm padding thừa,
   khiến tuỳ chọn "số cột" trong block không có tác dụng. */

/* Giảm text-overflow trong grid nhỏ */
.team-grid .member-card-bio { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Join CTA */
.team-join-cta {
  background: var(--footer-bg);
  color: var(--snow);
  padding: 5.5rem 0;
  margin-top: 1rem;
  text-align: center;
}
.team-join-inner { max-width: 580px; margin: 0 auto; }
.team-join-cta .archive-eyebrow { color: var(--gold); }
.team-join-cta h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300; margin: 0.75rem 0; color: var(--snow); }
.team-join-cta p  { font-size: 0.95rem; color: rgba(250,250,250,0.62); line-height: 1.7; margin-bottom: 2rem; }
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.6rem;
  background: var(--snow);
  color: var(--obsidian);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--snow);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.btn-primary:hover { background: transparent; color: var(--snow); }

/* ═══════════════════════════════════════════
   HOMEPAGE 2.0 — nav right, ghost CTA, hero video,
   partners marquee, contact section
═══════════════════════════════════════════ */

/* ─── Header: cụm điều hướng dồn sang phải ─── */
.nav-cluster {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.btn-ghost {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--border-mist);
  border-radius: 2px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-ghost:hover { background: #fff; color: #000; border-color: #fff; }
.mobile-cta { display: none; }
@media (max-width: 880px) {
  .nav-cta { display: none; }            /* nút ghost vào trong menu mobile */
  .nav-cluster { gap: 0.75rem; }
}

/* ─── Hero: lớp hoạ tiết mờ nằm trên lớp phủ ─── */
.hero-section .hero-vignette { z-index: 2; }

/* â”€â”€â”€ Partners marquee â”€â”€â”€ */
.partners-section {
  position: relative;
  isolation: isolate;
  background: var(--footer-bg);
  color: var(--snow);
  padding: 4rem 0 4.25rem;
  overflow: hidden;
}
.partners-head { text-align: center; margin-bottom: 2.5rem; }
.partners-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  /* Section này nền luôn tối (--footer-bg) nên dùng thẳng vàng sáng */
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.partners-sub {
  font-size: 0.92rem;
  color: rgba(250, 250, 250, 0.55);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll var(--marquee-speed, 40s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
.partner-logo { flex: 0 0 auto; padding: 0 3rem; }
.partner-logo span,
.partner-logo a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.42);       /* đơn sắc, xám nhạt */
  white-space: nowrap;
  transition: color 0.3s ease;
}
.partner-logo a:hover { color: #fff; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* nhân đôi nhóm → cuộn liền mạch */
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* â”€â”€â”€ Home contact section â”€â”€â”€ */
.home-contact {
  background: var(--canvas);
  border-top: 1px solid var(--divider);
  padding: 6rem 0;
}
.home-contact-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}
@media (max-width: 820px) {
  .home-contact-inner { grid-template-columns: 1fr; gap: 2.75rem; }
}
.hc-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1rem;
}
.dark .hc-eyebrow { color: var(--gold); }
.hc-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 1.25rem;
}
.hc-desc {
  font-size: 1rem;
  color: var(--ink-dim);
  line-height: 1.75;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.home-contact .btn-primary {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}
.home-contact .btn-primary:hover { background: transparent; color: var(--ink); }
.home-contact-details { display: flex; flex-direction: column; gap: 1.1rem; }
.hc-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--divider);
}
.hc-label {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}
.hc-value { font-size: 1.02rem; color: var(--ink); transition: color 0.2s ease; }
a.hc-item:hover .hc-value { color: var(--stone); }
.hc-email .hc-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
.hc-socials { display: flex; gap: 0.6rem; margin-top: 0.75rem; }

/* ─── Header sáng khi nằm trên hero tối (trang chủ, chưa cuộn) ─── */
.home .site-header:not(.scrolled) .primary-nav a,
.home .site-header:not(.scrolled) .logo-text,
.home .site-header:not(.scrolled) .logo-mark span,
.home .site-header:not(.scrolled) .theme-toggle,
.home .site-header:not(.scrolled) .lang-btn { color: rgba(255, 255, 255, 0.9); }
.home .site-header:not(.scrolled) .primary-nav a:hover,
.home .site-header:not(.scrolled) .lang-btn--active { color: #fff; }
.home .site-header:not(.scrolled) .logo-mark { border-color: rgba(255, 255, 255, 0.55); }
.home .site-header:not(.scrolled) .lang-sep { color: rgba(255, 255, 255, 0.4); }
.home .site-header:not(.scrolled) .hamburger span { background: #fff; }
.home .site-header:not(.scrolled) .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.home .site-header:not(.scrolled) .btn-ghost:hover { background: #fff; color: #000; border-color: #fff; }

/* Trang có đầu trang nền ảnh cũng cần menu chữ trắng như trang chủ,
   nếu không menu chìm hẳn vào ảnh sáng. */
/* ─── Header sáng khi nằm trên hero tối (trang chủ, chưa cuộn) ─── */
body.cf-has-header .site-header:not(.scrolled) .primary-nav a,
body.cf-has-header .site-header:not(.scrolled) .logo-text,
body.cf-has-header .site-header:not(.scrolled) .logo-mark span,
body.cf-has-header .site-header:not(.scrolled) .theme-toggle,
body.cf-has-header .site-header:not(.scrolled) .lang-btn { color: rgba(255, 255, 255, 0.9); }
body.cf-has-header .site-header:not(.scrolled) .primary-nav a:hover,
body.cf-has-header .site-header:not(.scrolled) .lang-btn--active { color: #fff; }
body.cf-has-header .site-header:not(.scrolled) .logo-mark { border-color: rgba(255, 255, 255, 0.55); }
body.cf-has-header .site-header:not(.scrolled) .lang-sep { color: rgba(255, 255, 255, 0.4); }
body.cf-has-header .site-header:not(.scrolled) .hamburger span { background: #fff; }
body.cf-has-header .site-header:not(.scrolled) .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
body.cf-has-header .site-header:not(.scrolled) .btn-ghost:hover { background: #fff; color: #000; border-color: #fff; }


/* â”€â”€â”€ Reveal-on-scroll (chung) â”€â”€â”€ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ─── Logo đối tác (đơn sắc trắng) ─── */
.partner-logo.has-img { padding: 0 2.75rem; display: flex; align-items: center; }
.partner-logo img {
  height: 42px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
/* Đơn sắc chỉ khi block bật tuỳ chọn "Logo đơn sắc" */
.partners-section.is-grayscale .partner-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.6;
}
.partner-logo.has-img:hover img,
.partner-logo a:hover img { opacity: 1; }

/* ─── Impact / Con số tác động ─── */
.impact-section {
  background: var(--surface);
  border-block: 1px solid var(--divider);
  padding: 5.5rem 0;
}
.impact-head { text-align: center; margin-bottom: 3.25rem; }
.impact-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.85rem;
}
.dark .impact-eyebrow { color: var(--gold); }
.impact-title {
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: 18ch;
  margin: 0 auto;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(var(--cf-cols, 4), 1fr);
  gap: 2.5rem 1.5rem;
  text-align: center;
}
@media (max-width: 760px) { .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 1rem; } }
.impact-item { position: relative; }
.impact-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 12%; right: -0.75rem; bottom: 12%;
  width: 1px;
  background: var(--divider-mid);
}
@media (max-width: 760px) { .impact-item::after { display: none; } }
.impact-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  /* Con số là chỗ mắt dừng lâu nhất trên trang — để vàng cho nó dẫn mắt.
     Nền sáng phải dùng --gold-deep: #D9A441 chỉ đạt 1.6:1 trên nền khối. */
  color: var(--gold-deep);
  letter-spacing: -0.01em;
}
.dark .impact-number { color: var(--gold); }
.impact-suffix { color: var(--gold-deep); }
.dark .impact-suffix { color: var(--gold); }
.impact-label {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════
   v2.0 — SECTION BLOCKS
   Style cho các section kéo-thả mới: Đội Ngũ,
   Câu Chuyện, form liên hệ, trạng thái rỗng,
   biến thể cỡ chữ.
═══════════════════════════════════════════ */

/* ─── Đầu section dùng chung (Team / Stories) ─── */
.cf-team-section,
.cf-stories-section { padding: 6rem 0; }

.cf-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.25rem;
  flex-wrap: wrap;
}
.cf-section-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  /* Vàng đồng là màu nhấn duy nhất của thiết kế — kéo nó xuống khỏi hero
     để cả trang cùng một giọng, thay vì hero rực rỡ rồi dưới xỉn đi. */
  color: var(--gold-ink);
  margin-bottom: 0.75rem;
}
.dark .cf-section-eyebrow { color: var(--gold); }
.cf-section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.03;
  color: var(--ink);
}
.cf-section-desc {
  margin-top: 0.9rem;
  max-width: 52ch;
  color: var(--ink-dim);
  line-height: 1.7;
}

/* ─── Lưới đội ngũ & câu chuyện (số cột do block quyết định) ─── */
.cf-team-section .team-grid,
.stories-grid {
  display: grid;
  grid-template-columns: repeat(var(--cf-cols, 3), minmax(0, 1fr));
  gap: 2.5rem 1.75rem;
}
@media (max-width: 1100px) {
  .cf-team-section .team-grid,
  .stories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .cf-team-section .team-grid,
  .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
}
@media (max-width: 520px) {
  .cf-team-section .team-grid,
  .stories-grid { grid-template-columns: 1fr; }
}

/* ─── Lưới tác phẩm: kiểu "đều nhau" ─── */
.portfolio-section.layout-even .film-card.wide { grid-column: span 1; }

/* ─── Trích dẫn: ảnh nền + biến thể cỡ chữ ─── */
.quote-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: grayscale(0.4);
}
.quote-section.has-bg .quote-inner { position: relative; z-index: 3; }
.quote-section.size-sm      .main-quote { font-size: clamp(1.2rem, 2.5vw, 2rem); }
.quote-section.size-default .main-quote { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.quote-section.size-lg      .main-quote { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.quote-section.size-xl      .main-quote { font-size: clamp(3.5rem, 7vw, 6.5rem); }

/* ─── Hero: biến thể cỡ chữ ─── */
.hero-title.size-sm      { font-size: clamp(2.5rem, 5vw, 5rem); }
.hero-title.size-default { font-size: clamp(4.5rem, 11vw, 10rem); }
.hero-title.size-lg      { font-size: clamp(6rem, 12vw, 11rem); }
.hero-title.size-xl      { font-size: clamp(7rem, 15vw, 14rem); }
.hero-subtitle.size-sm      { font-size: clamp(0.8rem, 1.5vw, 1.05rem); }
.hero-subtitle.size-default { font-size: clamp(0.9rem, 2.2vw, 1.5rem); }
.hero-subtitle.size-lg      { font-size: clamp(1.2rem, 2.8vw, 2rem); }

/* ─── Nút sáng/tối: điều khiển bằng CSS, không nháy khi tải ─── */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
.dark .theme-toggle .icon-sun  { display: block; }
.dark .theme-toggle .icon-moon { display: none; }
.theme-toggle svg { width: 18px; height: 18px; }

/* Tam giác nút play (giờ là thẻ span) */
.film-card-play .triangle { display: block; }

/* ─── Menu chân trang ─── */
.footer-nav { margin: 2rem 0 0; }
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  list-style: none;
}
.footer-menu a {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: rgba(250, 250, 250, 0.72);
  transition: color 0.2s;
}
.footer-menu a:hover { color: #fff; }

/* ─── Khoá cuộn khi mở menu di động ─── */
body.menu-open { overflow: hidden; }

/* ─── Trang nội dung dài ─── */
.container--narrow { max-width: 820px; }
.site-main.page-container { padding-top: 8rem; padding-bottom: 5rem; min-height: 60vh; }
.entry-title { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; margin-bottom: 1.5rem; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-top: 2em; }
.entry-content h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin-top: 1.6em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════════════════════════════════════
   FORM LIÊN HỆ
═══════════════════════════════════════════ */
.home-contact.has-form .home-contact-inner {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 3.5rem;
}
.home-contact.has-form .home-contact-form { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .home-contact.has-form .home-contact-inner {
    grid-template-columns: 1.05fr 0.6fr 1.1fr;
  }
  .home-contact.has-form .home-contact-form { grid-column: auto; }
}

.hc-form-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.cf-contact-form { display: grid; gap: 1.1rem; }
.cf-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .cf-field-row { grid-template-columns: 1fr; } }

.cf-field { display: flex; flex-direction: column; gap: 0.4rem; }
.cf-field label {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--divider-mid);
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cf-field textarea { resize: vertical; min-height: 130px; }
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--ink-subtle); }
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--stone);
  box-shadow: 0 0 0 3px rgba(90, 107, 96, 0.18);
}
.cf-field.has-error input,
.cf-field.has-error textarea { border-color: #B3261E; }
.dark .cf-field.has-error input,
.dark .cf-field.has-error textarea { border-color: #F2B8B5; }

/* Bẫy bot — ẩn với người, vẫn tồn tại với bot */
.cf-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cf-actions { margin-top: 0.25rem; }
.cf-submit[disabled] { opacity: 0.6; cursor: progress; }

.cf-form-status {
  font-size: 0.9rem;
  line-height: 1.55;
  min-height: 1.4em;
}
.cf-form-status.is-success { color: #1C5A38; }
.cf-form-status.is-error   { color: #B3261E; }
.dark .cf-form-status.is-success { color: #86D9AC; }
.dark .cf-form-status.is-error   { color: #F2B8B5; }

/* ═══════════════════════════════════════════
   TRẠNG THÁI RỖNG — hướng dẫn cho admin,
   khách chỉ thấy một dòng trung tính.
═══════════════════════════════════════════ */
.cf-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ink-dim);
}
.cf-empty--guest { opacity: 0.6; font-size: 0.95rem; }
.cf-empty--admin {
  border: 1px dashed var(--divider-mid);
  border-radius: 4px;
  background: var(--surface);
}
.cf-empty-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.cf-empty-hint {
  font-size: 0.9rem;
  max-width: 46ch;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}
.cf-empty-btn { display: inline-flex; }
.cf-front-hint { margin: 3rem auto; max-width: 640px; }

/* Khối chưa có mục nào — chỉ hiện khi đang sửa trang.
   Trước đây khối trả về rỗng nên trình soạn thảo trông như bị lỗi. */
.cf-empty--block {
  margin: 2rem auto;
  max-width: 640px;
  border: 2px dashed var(--divider-mid);
  border-radius: 8px;
  background: var(--surface);
  padding: 2.5rem 1.5rem;
}
.cf-empty-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--gold);
  color: #12140F;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.cf-empty-note {
  font-size: 0.78rem;
  color: var(--ink-subtle);
  font-style: italic;
  margin-top: 0.75rem;
}

/* ─── Toast: hiệu ứng biến mất ─── */
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }

/* ─── Ảnh chờ khi bài chưa có ảnh đại diện ─── */
.cf-placeholder-img { object-fit: cover; }

/* ═══════════════════════════════════════════
   v3.4 — ẢNH LÀM ĐIỂM NHẤN

   Ảnh nhốt trong ô nửa màn hình thì không bao giờ
   gây ấn tượng. Ba bố cục mới, cộng xử lý màu để
   những tấm ảnh rời rạc trở thành một bộ đồng nhất.
═══════════════════════════════════════════ */

/* ── Tỉ lệ điện ảnh 21:9 ── */
.cf-feature.ratio-cinema .cf-feature-img,
.cf-feature.ratio-cinema .cf-feature-placeholder { aspect-ratio: 21 / 9; }

/* ── Lớp phủ màu, dùng chung cho mọi cách xử lý ── */
.cf-feature-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Duotone xanh rừng — ảnh chụp lệch tông vẫn về cùng một bảng màu */
.cf-feature.treat-duotone .cf-feature-img { filter: grayscale(1) contrast(1.08) brightness(0.98); }
.cf-feature.treat-duotone .cf-feature-tint {
  opacity: 0.86;
  background: linear-gradient(140deg, #1C3A2E 0%, #2D4A3E 45%, #8B9E95 100%);
  mix-blend-mode: color;
}
.cf-feature.treat-duotone:hover .cf-feature-tint { opacity: 0.5; }

/* Đơn sắc — trang trọng, hợp mục nói về đạo đức nghề */
.cf-feature.treat-mono .cf-feature-img { filter: grayscale(1) contrast(1.1); }
.cf-feature.treat-mono:hover .cf-feature-img { filter: grayscale(0.3) contrast(1.04); }

/* Ngả ấm — hợp ảnh chiều muộn và ảnh chân dung */
.cf-feature.treat-warm .cf-feature-img { filter: saturate(1.1) contrast(1.04); }
.cf-feature.treat-warm .cf-feature-tint {
  opacity: 0.2;
  background: linear-gradient(160deg, rgba(255, 196, 120, 0.6), transparent 65%);
  mix-blend-mode: soft-light;
}

/* ── Ảnh tĩnh trôi rất chậm: cảm giác máy quay vẫn đang chạy ── */
@keyframes cfDrift {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  50%  { transform: scale(1.1) translate3d(-1.2%, -0.8%, 0); }
  100% { transform: scale(1.06) translate3d(0, 0, 0); }
}
.cf-feature.has-drift .cf-feature-img {
  animation: cfDrift 26s ease-in-out infinite;
  will-change: transform;
}
/* Trong lúc hiệu ứng vén ảnh đang chạy thì nhường chỗ, tránh giật hình */
.cf-fx.fx-ready [data-fx-mask]:not(.fx-in) .cf-feature-img { animation: none; }

