/* ══ RESET & BASE ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #EDE5D5;
  color: #1A140C;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.dark { background: #0D0A08; color: #F0E8D8; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ══ CSS VARIABLES ══ */
:root {
  --paper:   #EDE5D5;
  --surface: #E3D9C6;
  --ink:     #1A140C;
  --text2:   #5A4A3A;
  --border:  rgba(26,20,12,.1);
  --red:     #8C1A0D;
  --black:   #0D0A08;
  --qred:    #B52212;
  --qmuted:  #C8B8A2;
  --qdim:    #6A5A4A;
  --qline:   rgba(255,255,255,.07);
}

/* ══ TYPOGRAPHY ══ */
.cg { font-family: 'Cormorant Garamond', serif; }

/* ══ NAV ══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px;
  background: var(--black);
}
body.home .nav { background: transparent; }

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper);
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .6; }

.nav-end {
  display: flex; align-items: center; gap: 20px;
}
.nav-social {
  display: flex; align-items: center; gap: 18px;
  opacity: 0; transform: translateX(8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
body.menu-open .nav-social { opacity: 1; transform: translateX(0); pointer-events: all; }
.nav-social a { display: flex; color: rgba(240,232,216,.5); transition: color .2s; }
.nav-social a:hover { color: var(--paper); }
.nav-social svg { width: 16px; height: 16px; }

.nav-toggle {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px; margin-right: -10px;
}
.nav-toggle span {
  display: block; width: 26px; height: 1.5px;
  background: rgba(237,229,213,.85);
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
  transform-origin: center;
}
.nav-toggle.open span:first-child { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:last-child  { transform: translateY(-7.5px) rotate(-45deg); }

/* Menu overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 299;
  background: rgba(13,10,8,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

.nav-overlay-inner {
  position: absolute; inset: 0;
  padding: 100px 64px 52px;
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-end;
}

@keyframes menuSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.overlay-links { list-style: none; text-align: right; }
.nav-overlay.open .overlay-links li {
  animation: menuSlideIn .35s cubic-bezier(.25,.46,.45,.94) both;
}
.nav-overlay.open .overlay-links li:nth-child(1) { animation-delay: .04s; }
.nav-overlay.open .overlay-links li:nth-child(2) { animation-delay: .10s; }
.nav-overlay.open .overlay-links li:nth-child(3) { animation-delay: .16s; }
.nav-overlay.open .overlay-links li:nth-child(4) { animation-delay: .22s; }
.nav-overlay.open .overlay-links li:nth-child(5) { animation-delay: .28s; }
.nav-overlay.open .overlay-links li:nth-child(6) { animation-delay: .34s; }
.nav-overlay.open .overlay-links li:nth-child(7) { animation-delay: .40s; }
.nav-overlay.open .overlay-links li:nth-child(8) { animation-delay: .46s; }

.overlay-links a {
  display: block; padding: 14px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600; letter-spacing: .04em; line-height: 1.5;
  color: rgba(240,232,216,.8);
  white-space: nowrap;
  transition: color .2s;
}
.overlay-links a:hover { color: var(--paper); }

/* Bottom bar: lang right */
.overlay-bottom {
  width: 100%;
  display: flex; justify-content: flex-end; align-items: center;
}
.nav-overlay.open .overlay-lang {
  animation: menuSlideIn .35s cubic-bezier(.25,.46,.45,.94) both;
  animation-delay: .44s;
}

.overlay-lang {
  display: flex; gap: 16px; align-items: center;
}
.overlay-lang-btn {
  background: none; border: none; cursor: pointer;
  font-size: 11px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(240,232,216,.4);
  padding: 0; transition: color .2s;
}
.overlay-lang-btn.active { color: rgba(240,232,216,.9); }
.overlay-lang-sep { color: rgba(240,232,216,.15); font-size: 13px; }

/* ══ CONTENT CONTAINER ══ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 56px; }
.container.narrow { max-width: 820px; }

/* ══ PAGE HERO ══ */
.page-hero {
  position: relative; width: 100%;
  height: 64vh; min-height: 480px;
  overflow: hidden; margin-top: 72px;
}
.page-hero img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 35%;
  animation: kb 20s ease-in-out infinite alternate;
}
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.05); } }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,10,8,.1) 0%,
    rgba(13,10,8,.18) 40%,
    rgba(13,10,8,.65) 75%,
    rgba(13,10,8,.85) 100%
  );
}
.page-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 56px 56px;
}
.page-hero-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .28em;
  text-transform: uppercase; color: rgba(240,232,216,.5);
  margin-bottom: 16px;
}
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 700; letter-spacing: .04em;
  line-height: .9; color: var(--paper);
}
.page-hero-title em { color: var(--red); font-style: italic; }
.page-hero-sub {
  margin-top: 20px;
  font-size: 13px; font-weight: 400; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(240,232,216,.5);
}

/* ══ SECTION ══ */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--border); }
body.dark .section + .section { border-top: 1px solid var(--qline); }
.section.tight { padding: 64px 0; }
.section.wide { padding: 0; }

.sec-label {
  display: block;
  font-size: 10.5px; font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 20px;
}
body.dark .sec-label { color: var(--qred); }

.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600; line-height: 1.08;
  letter-spacing: .02em;
}

.sec-title.large {
  font-size: clamp(40px, 6.5vw, 80px);
}

/* ══ DIVIDER ══ */
.rule { display: block; width: 48px; height: 1px; background: var(--red); margin: 36px 0; }
body.dark .rule { background: var(--qred); }
.rule.center { margin-left: auto; margin-right: auto; }

/* ══ TEXT ══ */
.lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400; line-height: 1.5; color: var(--ink);
}
body.dark .lead { color: var(--paper); }

.body-text p {
  font-size: 16px; font-weight: 300; line-height: 1.95;
  color: var(--text2); margin-bottom: 20px;
}
body.dark .body-text p { color: var(--qmuted); }
.body-text p:last-child { margin-bottom: 0; }

.closing-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400; line-height: 1.65;
  color: var(--text2);
  border-left: 2px solid var(--red); padding-left: 24px;
}
body.dark .closing-quote { color: var(--qmuted); border-color: var(--qred); }

/* ══ FULL-WIDTH IMAGE ══ */
.full-img-wrap { position: relative; overflow: hidden; }
.full-img-wrap img { width: 100%; display: block; }
.full-img-wrap.h50 img { height: 50vh; min-height: 340px; object-fit: cover; }
.full-img-wrap.h60 img { height: 60vh; min-height: 400px; object-fit: cover; }
.full-img-wrap.h40 img { height: 40vh; min-height: 280px; object-fit: cover; }
.full-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,10,8,.2) 0%, rgba(13,10,8,.5) 100%);
}

/* ══ PILLARS ══ */
.pillars {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
}
.pillar-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 10px;
}
body.dark .pillar-label { color: var(--qred); }
.pillar p {
  font-size: 15px; font-weight: 300; line-height: 1.8;
  color: var(--text2);
}
body.dark .pillar p { color: var(--qmuted); }

/* ══ TIMELINE ══ */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: grid; grid-template-columns: 56px 1px 1fr;
  gap: 0 28px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
body.dark .tl-item { border-bottom-color: var(--qline); }
.tl-item:first-child { border-top: 1px solid var(--border); }
body.dark .tl-item:first-child { border-top-color: var(--qline); }
.tl-age {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 700;
  color: var(--red); opacity: .3; line-height: 1; padding-top: 2px;
  text-align: right;
}
body.dark .tl-age { color: var(--qred); }
.tl-bar {
  width: 1px; background: var(--border);
  position: relative;
}
body.dark .tl-bar { background: var(--qline); }
.tl-bar::before {
  content: ''; position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--red);
}
body.dark .tl-bar::before { background: var(--qred); }
.tl-content h4 {
  font-size: 14px; font-weight: 500; letter-spacing: .06em;
  color: var(--ink); margin-bottom: 5px;
}
body.dark .tl-content h4 { color: var(--paper); }
.tl-content p { font-size: 13.5px; font-weight: 300; color: var(--text2); }
body.dark .tl-content p { color: var(--qmuted); }

/* ══ WORKS LIST (Dự Án Tham Gia) ══ */
.work-item {
  display: grid; grid-template-columns: 420px 1fr;
  gap: 64px; align-items: start;
  padding: 72px 0; border-bottom: 1px solid var(--border);
}
.work-item:first-child { padding-top: 0; border-top: none; }
.work-item.rev { grid-template-columns: 1fr 420px; }
.work-item.rev .work-img { order: 2; }
.work-item.rev .work-info { order: 1; }

.work-img { position: relative; overflow: hidden; }
.work-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 25%; }
.work-img.no-img {
  aspect-ratio: 4/3; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.work-img.no-img span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px; font-weight: 700; color: rgba(26,20,12,.08);
}

.work-tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.work-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 48px); font-weight: 600;
  line-height: 1.05; letter-spacing: .02em;
  color: var(--ink); margin-bottom: 20px;
}
.work-desc {
  font-size: 15px; font-weight: 300; line-height: 1.85;
  color: var(--text2); margin-bottom: 20px;
}
.work-meta {
  font-size: 12px; font-weight: 400; letter-spacing: .14em;
  color: rgba(26,20,12,.35);
}
.work-award {
  margin-top: 16px;
  font-size: 13px; font-weight: 500; letter-spacing: .1em;
  color: var(--red);
}

/* ══ QUẺ DARK COMPONENTS ══ */
.que-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(64px, 12vw, 160px);
  font-weight: 700; letter-spacing: .06em; line-height: .88;
  color: var(--qred);
}
.que-chapter-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase; color: var(--qdim); margin-bottom: 12px;
}
.que-chapter-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 7vw, 88px); font-weight: 700;
  letter-spacing: .06em; line-height: .9; color: var(--qred);
  margin-bottom: 8px;
}
.que-chapter-name {
  font-size: clamp(16px, 1.8vw, 20px); font-weight: 300;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(240,232,216,.55);
}
/* Performers */
.performers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--qline); }
.performer { background: var(--black); }
.performer-img { position: relative; overflow: hidden; }
.performer-img img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform .5s; }
.performer:hover .performer-img img { transform: scale(1.04); }
.performer-info { padding: 28px 24px; }
.performer-role {
  font-size: 10.5px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--qred); margin-bottom: 6px;
}
.performer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600; color: var(--paper); margin-bottom: 12px;
}
.performer-desc { font-size: 13px; font-weight: 300; line-height: 1.8; color: var(--qmuted); }

/* Pak Yan */
.pakyan-grid {
  display: grid; grid-template-columns: 360px 1fr;
  gap: 72px; align-items: start;
}
.pakyan-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 20%; }
.pakyan-credit {
  font-size: 11px; letter-spacing: .1em; color: var(--qdim); margin-top: 10px;
}
.pakyan-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--qdim); margin-bottom: 14px;
}
.pakyan-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px); font-weight: 700;
  letter-spacing: .04em; color: var(--paper); line-height: 1;
}
.pakyan-role {
  font-size: 12px; font-weight: 400; letter-spacing: .2em;
  text-transform: uppercase; color: var(--qmuted); margin: 10px 0 28px;
}

/* Movements */
.mv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--qline); }
.mv { background: var(--black); padding: 36px 28px; border-top: 2px solid transparent; transition: border-color .2s; }
.mv:hover { border-top-color: var(--qred); }
.mv-num { font-size: 10px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--qdim); margin-bottom: 14px; }
.mv-name { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; color: var(--paper); margin-bottom: 14px; line-height: 1; }
.mv-desc { font-size: 13.5px; font-weight: 300; line-height: 1.8; color: var(--qmuted); }

/* ══ PHOTO GRID ══ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
}
.photo-item { overflow: hidden; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.photo-item:hover img { transform: scale(1.04); }
.ph-a { grid-column: span 7; height: 440px; }
.ph-b { grid-column: span 5; height: 440px; }
.ph-c { grid-column: span 4; height: 300px; }
.ph-d { grid-column: span 4; height: 300px; }
.ph-e { grid-column: span 4; height: 300px; }

/* ══ CONTACT ══ */
.ct-list { list-style: none; }
.ct-item {
  display: flex; gap: 32px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--qline);
}
.ct-item:last-child { border-bottom: none; }
.ct-key {
  font-size: 10.5px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--qdim); min-width: 80px;
}
.ct-val { font-size: 18px; font-weight: 300; color: rgba(240,232,216,.8); }

/* ══ FOOTER ══ */
.footer {
  padding: 36px 56px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border);
}
body.dark .footer { border-top-color: var(--qline); }
.footer-copy { font-size: 20px; font-weight: 300; letter-spacing: .1em; color: var(--text2); }
body.dark .footer-copy { color: var(--qdim); }
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; font-weight: 600; letter-spacing: .18em;
  color: rgba(26,20,12,.3);
}
body.dark .footer-logo { color: rgba(240,232,216,.2); }

/* ══ LANG ══ */
[data-lang="vi"] .en { display: none !important; }
[data-lang="en"] .vi { display: none !important; }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .pakyan-grid { grid-template-columns: 1fr; gap: 40px; }
  .pakyan-img img { aspect-ratio: 4/3; }
  .performers { grid-template-columns: 1fr 1fr; }
  .mv-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .container { padding: 0 24px; }
  .nav-overlay-inner { padding: 96px 32px 48px; }
  .footer { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 56px 0; }
  .pillars { grid-template-columns: 1fr; gap: 24px; }
  .page-hero-content { padding: 0 24px 36px; }
  .tl-item { grid-template-columns: 44px 1px 1fr; gap: 0 16px; }
  .performers { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .mv-grid { grid-template-columns: 1fr; }
  .overlay-links a { font-size: 20px; }
}

/* ══ UTILITY ══ */
.mt8  { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mt32 { margin-top: 32px; }
.mt48 { margin-top: 48px; }
.mt64 { margin-top: 64px; }
.mb8  { margin-bottom: 8px; }
.mb16 { margin-bottom: 16px; }
.mb24 { margin-bottom: 24px; }
.mb32 { margin-bottom: 32px; }
.mb48 { margin-bottom: 48px; }
.border-top { border-top: 1px solid var(--border); }
body.dark .border-top { border-top-color: var(--qline); }
