/* ====================================================
   XUANHUONGDALAT.COM — Pine & Mist Travelogue
   Hồ Xuân Hương · Trái tim Đà Lạt · Belle Époque cao nguyên
   ==================================================== */

/* === RESET === */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Karla', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* === DESIGN TOKENS === */
:root {
  /* Pine — xanh thông Đà Lạt */
  --pine-900: #142724;
  --pine-800: #1f3a36;
  --pine-700: #2a4d48;
  --pine-600: #3a635c;

  /* Mirror lake — xanh lục thuỳ hồ */
  --lake-700: #356561;
  --lake-600: #4a7c79;
  --lake-500: #6da19d;

  /* Vintage gold — vàng cũ Pháp Belle Époque */
  --gold-700: #957a4f;
  --gold-600: #b89968;
  --gold-500: #d2b888;

  /* Sakura blush — lá đào mùa thu */
  --sakura-700: #a85249;
  --sakura-600: #d4736e;
  --sakura-500: #e89691;

  /* Cream paper */
  --cream:       #faf6ee;
  --cream-light: #fdf9f1;
  --cream-dark:  #f0e9d9;

  /* Mist */
  --mist:        #e8edea;
  --mist-dark:   #d4dcd6;

  /* Stone */
  --stone-700:   #4d4a40;
  --stone-600:   #6e6a5e;
  --stone-500:   #8a867a;

  /* Ink */
  --ink:        #2a2820;
  --ink-soft:   #4a4738;
  --ink-mute:   #6e6a5e;

  /* Fonts */
  --f-display:  'Cardo', Georgia, 'Times New Roman', serif;
  --f-body:     'Karla', system-ui, sans-serif;
  --f-mono:     'Roboto Mono', ui-monospace, monospace;

  /* Layout */
  --content-width: 1180px;
  --gutter: 24px;
  --radius: 4px;
  --shadow-card: 0 12px 30px rgba(31, 58, 54, 0.10);
  --shadow-deep: 0 20px 50px rgba(31, 58, 54, 0.20);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--pine-900);
  line-height: 1.18;
}
em, .it { font-style: italic; font-family: var(--f-display); }
strong { font-weight: 700; color: var(--pine-900); }
p { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-700);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1.5px;
  background: var(--gold-600);
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}

/* === ICONS === */
.icon { width: 1em; height: 1em; vertical-align: -0.12em; fill: currentColor; flex-shrink: 0; }

/* === POSTMARK STRIP === */
.postmark {
  background: var(--pine-900);
  color: var(--cream);
  padding: 11px 0;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-700);
}
.postmark .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.postmark__left, .postmark__right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(250, 246, 238, 0.78);
}
.postmark__seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.postmark__seal::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold-600);
  box-shadow: 0 0 0 2px var(--pine-900), 0 0 0 3px var(--gold-600);
}

/* === HEADER === */
.site-header {
  background: var(--cream);
  border-bottom: 1.5px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand__mark {
  width: 46px; height: 46px;
  background: var(--pine-800);
  color: var(--gold-500);
  display: grid;
  place-items: center;
  border-radius: 2px;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  border: 2px solid var(--gold-600);
  box-shadow: 3px 3px 0 var(--gold-600);
}
.brand__text strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--pine-900);
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.brand__text strong em { color: var(--sakura-600); font-style: italic; font-weight: 400; }
.brand__text small {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  margin-top: 3px;
  text-transform: uppercase;
}
.nav { display: flex; gap: 8px; align-items: center; }
.nav a {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 2px;
  transition: color 0.2s;
}
.nav a:hover { color: var(--sakura-600); }
.nav .btn-cta {
  background: var(--pine-800);
  color: var(--cream);
  padding: 10px 18px;
  margin-left: 6px;
}
.nav .btn-cta:hover { background: var(--pine-900); }
.menu-toggle { display: none; padding: 10px; border-radius: 2px; }
.menu-toggle .icon { width: 24px; height: 24px; color: var(--pine-800); }

@media (max-width: 880px) {
  .nav a:not(.btn-cta) { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav .btn-cta { display: none; }
  .brand__text small { display: none; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold-600);
  color: var(--pine-900);
  border-color: var(--gold-600);
  box-shadow: 4px 4px 0 var(--pine-900);
}
.btn--gold:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--pine-900);
}
.btn--ghost {
  background: transparent;
  color: var(--pine-900);
  border-color: var(--pine-800);
}
.btn--ghost:hover {
  background: var(--pine-900);
  color: var(--cream);
}
.btn--sakura {
  background: var(--sakura-600);
  color: var(--cream);
  border-color: var(--sakura-600);
  box-shadow: 4px 4px 0 var(--pine-900);
}
.btn--sakura:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--pine-900);
}

/* === HERO === */
.hero {
  padding: clamp(56px, 8vw, 100px) 0 clamp(70px, 9vw, 120px);
  background:
    radial-gradient(ellipse at 80% -10%, rgba(184, 153, 104, 0.12) 0%, transparent 60%),
    linear-gradient(to bottom, var(--cream-light) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__text { position: relative; }
.hero__chapter {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(7rem, 14vw, 12rem);
  color: var(--gold-600);
  opacity: 0.16;
  line-height: 0.85;
  position: absolute;
  top: -40px;
  left: -10px;
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.04em;
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow { margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--pine-900);
}
.hero h1 em {
  color: var(--sakura-600);
  font-weight: 400;
  font-style: italic;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 560px;
}
.hero__lede strong { color: var(--pine-900); font-weight: 700; }
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero__meta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1.5px dashed var(--mist-dark);
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero__meta-item small {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__meta-item strong {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 700;
  color: var(--pine-900);
}

/* Hero polaroid stack */
.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  grid-template-rows: 0.85fr 1fr;
  gap: 14px;
  height: 540px;
}
.hero__photo {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border-radius: 2px;
  box-shadow: var(--shadow-deep);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__photo--main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  border: 10px solid var(--cream-light);
  outline: 1.5px solid var(--cream-dark);
}
.hero__photo--top {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  border: 8px solid var(--cream-light);
  outline: 1.5px solid var(--cream-dark);
  transform: rotate(2.5deg);
}
.hero__photo--bot {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  border: 8px solid var(--cream-light);
  outline: 1.5px solid var(--cream-dark);
  transform: rotate(-2deg);
}
.hero__stamp {
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 130px;
  height: 130px;
  background: var(--pine-900);
  color: var(--gold-500);
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 12px;
  transform: rotate(-12deg);
  box-shadow: 0 12px 30px rgba(31, 58, 54, 0.40);
  z-index: 5;
  border: 2px dashed var(--gold-600);
  outline: 4px solid var(--pine-900);
}
.hero__stamp small {
  display: block;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
  text-transform: uppercase;
  color: var(--gold-600);
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 380px; }
  .hero__chapter { font-size: 7rem; top: -10px; }
}

/* === SECTION HEAD === */
.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin-bottom: 16px;
}
.section-head h2 em { color: var(--sakura-600); font-weight: 400; }
.section-head p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Page-style chapter heading (travelogue) */
.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 26px;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1.5px solid var(--cream-dark);
}
.chapter-head__num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold-700);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.chapter-head__title {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.12;
}
.chapter-head__title em { color: var(--sakura-600); font-weight: 400; }

/* === FACTSHEET (vintage double-frame panel) === */
.factsheet {
  background: var(--cream-light);
  padding: clamp(36px, 5vw, 60px);
  border-radius: 2px;
  border: 1.5px solid var(--cream-dark);
  position: relative;
}
.factsheet::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--mist-dark);
  pointer-events: none;
}
.factsheet__inner { position: relative; }
.factsheet__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.factsheet h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 18px;
  letter-spacing: -0.018em;
}
.factsheet h3 em { color: var(--sakura-600); font-weight: 400; }
.factsheet p { margin-bottom: 14px; line-height: 1.7; }
.factsheet p strong { color: var(--pine-900); }

/* Factsheet right: register entry */
.register {
  background: var(--cream);
  border: 1.5px solid var(--gold-600);
  border-radius: 2px;
  padding: 26px 24px;
  position: relative;
}
.register::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--cream-dark);
  pointer-events: none;
}
.register__title {
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 700;
  font-style: italic;
  color: var(--pine-900);
  margin-bottom: 14px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--mist-dark);
}
.register__list {
  list-style: none;
}
.register__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--mist-dark);
  font-size: 0.92rem;
}
.register__list li:last-child { border-bottom: none; }
.register__list .label {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.register__list .value {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  color: var(--pine-900);
}

@media (max-width: 880px) {
  .factsheet__grid { grid-template-columns: 1fr; }
}

/* === LANDMARKS QUARTET (4 large cards dark pine) === */
.landmarks-section {
  background: var(--pine-900);
  color: var(--cream);
}
.landmarks-section .section-head h2 { color: var(--cream); }
.landmarks-section .section-head p { color: rgba(250, 246, 238, 0.8); }
.landmarks-section .eyebrow { color: var(--gold-500); }
.landmarks-section .eyebrow::before { background: var(--gold-500); }

.landmarks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 880px) {
  .landmarks-grid { grid-template-columns: 1fr; gap: 24px; }
}
.landmark-card {
  background: var(--pine-800);
  border: 1.5px solid var(--pine-700);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}
.landmark-card:hover {
  border-color: var(--gold-600);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.landmark-card__photo {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.landmark-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.landmark-card:hover .landmark-card__photo img { transform: scale(1.04); }
.landmark-card__num {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--cream);
  color: var(--pine-900);
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 14px;
  border-radius: 1px;
  box-shadow: 3px 3px 0 var(--gold-600);
}
.landmark-card__body { padding: 26px 26px 28px; }
.landmark-card__eyebrow {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-500);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.landmark-card__name {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.landmark-card__name em { color: var(--gold-500); font-style: italic; font-weight: 400; }
.landmark-card__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(250, 246, 238, 0.82);
  margin-bottom: 14px;
}
.landmark-card__meta {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: rgba(250, 246, 238, 0.55);
  padding-top: 12px;
  border-top: 1px dashed rgba(250, 246, 238, 0.18);
  text-transform: uppercase;
}

/* === PILLARS (6 cluster) === */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pillars-grid { grid-template-columns: 1fr; }
}
.pillar-card {
  background: var(--cream-light);
  border: 1.5px solid var(--cream-dark);
  border-left: 4px solid var(--gold-600);
  border-radius: 2px;
  padding: 30px 26px;
  position: relative;
  transition: all 0.25s;
}
.pillar-card:hover {
  border-left-color: var(--sakura-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.pillar-card__num {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold-700);
  margin-bottom: 14px;
  display: block;
}
.pillar-card h4 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pine-900);
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin-bottom: 12px;
}
.pillar-card p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.pillar-card p strong { color: var(--pine-900); font-weight: 700; }

/* === TWOFACE (day vs night) === */
.twoface {
  background: var(--cream-light);
  border-block: 1.5px solid var(--cream-dark);
}
.twoface__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 880px) {
  .twoface__grid { grid-template-columns: 1fr; }
}
.twoface__panel {
  padding: clamp(48px, 6vw, 80px);
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--cream);
}
.twoface__panel--day {
  background:
    linear-gradient(to bottom, rgba(31, 58, 54, 0.18) 0%, rgba(31, 58, 54, 0.78) 100%),
    url('../photos/02-ho-suong-som-la-vang-1024.webp') center/cover no-repeat;
}
.twoface__panel--night {
  background:
    linear-gradient(to bottom, rgba(20, 39, 36, 0.30) 0%, rgba(20, 39, 36, 0.85) 100%),
    url('../photos/03-ho-dem-den-vang-phan-chieu-1024.webp') center/cover no-repeat;
}
.twoface__label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.twoface__label::before {
  content: '';
  width: 32px; height: 1.5px;
  background: var(--gold-500);
}
.twoface__panel h3 {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.018em;
  line-height: 1.18;
  margin-bottom: 16px;
}
.twoface__panel h3 em { color: var(--gold-500); font-style: italic; font-weight: 400; }
.twoface__panel p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: rgba(250, 246, 238, 0.85);
  max-width: 480px;
}

/* === ALBUM (mosaic 8 tiles polaroid) === */
.album-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
@media (max-width: 880px) {
  .album-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; }
}
.album-tile {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-card);
  background: var(--cream-light);
}
.album-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.album-tile:hover img { transform: scale(1.05); }
.album-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 39, 36, 0.55), transparent 50%);
  pointer-events: none;
}
.album-tile__caption {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--cream);
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 2;
  font-weight: 500;
}
.album-tile:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.album-tile:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.album-tile:nth-child(3) { grid-column: span 3; grid-row: span 1; }
.album-tile:nth-child(4) { grid-column: span 3; grid-row: span 1; }
.album-tile:nth-child(5) { grid-column: span 3; grid-row: span 1; }
.album-tile:nth-child(6) { grid-column: span 4; grid-row: span 1; }
.album-tile:nth-child(7) { grid-column: span 4; grid-row: span 1; }
.album-tile:nth-child(8) { grid-column: span 4; grid-row: span 1; }
@media (max-width: 880px) {
  .album-tile:nth-child(1) { grid-column: span 6; grid-row: span 2; }
  .album-tile:nth-child(n+2) { grid-column: span 3; grid-row: span 1; }
  .album-tile:nth-child(6),
  .album-tile:nth-child(7),
  .album-tile:nth-child(8) { grid-column: span 6; }
}

/* === MODEL (Vùng đất [X] 3 layers) === */
.model { background: var(--cream); }
.model__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}
@media (max-width: 880px) {
  .model__grid { grid-template-columns: 1fr; }
}
.model__layers {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.layer {
  background: var(--cream-light);
  border: 1.5px solid var(--cream-dark);
  border-left: 5px solid var(--gold-600);
  padding: 22px 26px;
  border-radius: 2px;
  display: flex;
  gap: 20px;
  align-items: start;
}
.layer__num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--gold-700);
  line-height: 1;
  flex-shrink: 0;
}
.layer__body strong {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pine-900);
  display: block;
  margin-bottom: 5px;
}
.layer__body p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* === FAQ === */
.faq {
  background: var(--cream-light);
  border-top: 1.5px solid var(--cream-dark);
}
.faq__list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  background: var(--cream);
  border: 1.5px solid var(--cream-dark);
  border-radius: 2px;
  padding: 26px 30px;
  transition: all 0.25s;
}
.faq__item:hover {
  border-color: var(--gold-600);
  box-shadow: var(--shadow-card);
}
.faq__item summary {
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--pine-900);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--sakura-600);
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--mist-dark);
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.faq__answer p { margin-bottom: 10px; }
.faq__answer p:last-child { margin-bottom: 0; }

/* === CTA === */
.cta-section {
  background: var(--pine-900);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(184, 153, 104, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(212, 115, 110, 0.13) 0%, transparent 50%);
  pointer-events: none;
}
.cta-panel { position: relative; z-index: 1; }
.cta-panel__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) {
  .cta-panel__grid { grid-template-columns: 1fr; }
}
.cta-panel h2 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 22px;
}
.cta-panel h2 em { color: var(--gold-500); font-style: italic; font-weight: 400; }
.cta-panel p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(250, 246, 238, 0.82);
  margin-bottom: 16px;
}
.cta-panel p strong { color: var(--cream); }
.cta-panel__visual {
  background: var(--pine-800);
  border: 1.5px solid var(--gold-700);
  border-radius: 2px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
}
.cta-panel__visual::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(184, 153, 104, 0.4);
  pointer-events: none;
}
.cta-panel__domain {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
  font-style: italic;
  color: var(--gold-500);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}
.cta-panel__domain em {
  color: var(--cream);
  font-weight: 400;
}
.cta-panel__visual small {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: rgba(250, 246, 238, 0.55);
  text-transform: uppercase;
  margin-top: 20px;
}
.cta-panel__visual--badge {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  background: var(--sakura-600);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}
.note-mono {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.55);
  margin-top: 18px;
}

/* === FOOTER === */
.site-footer {
  background: var(--pine-900);
  color: rgba(250, 246, 238, 0.7);
  padding: 64px 0 32px;
  border-top: 1px solid var(--pine-800);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand-col { grid-column: span 2; }
}
.footer__brand-mark {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 700;
  color: var(--gold-500);
  margin-bottom: 4px;
  display: block;
}
.footer__brand-mark em { color: var(--sakura-600); }
.footer__brand-sub {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: rgba(250, 246, 238, 0.5);
  text-transform: uppercase;
  display: block;
  margin-bottom: 18px;
}
.footer__about {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.footer__niem-yet {
  font-size: 0.85rem;
  color: rgba(250, 246, 238, 0.58);
  line-height: 1.5;
}
.footer__niem-yet a { color: var(--gold-500); border-bottom: 1px dashed var(--gold-500); }
.footer__col h4 {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-500);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 9px; }
.footer__col a {
  color: rgba(250, 246, 238, 0.7);
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--gold-500); }
.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--pine-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(250, 246, 238, 0.5);
  text-transform: uppercase;
}

/* === REVEAL — SAFE-FIRST (lesson từ ThanhOai!) === */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
body.js-reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
}
body.js-reveal-enabled .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* === UTILITIES === */
.flex-row { display: flex; gap: 14px; flex-wrap: wrap; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 36px; }

/* ====================================================
   MOBILE MENU DRAWER
   ==================================================== */
body.no-scroll { overflow: hidden; }
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(20, 39, 36, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 85vw);
  background: var(--cream);
  padding: 22px 24px 28px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--gold-600);
  box-shadow: -10px 0 40px rgba(31, 58, 54, 0.25);
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1.5px dashed var(--mist-dark);
}
.mobile-menu__brand {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pine-900);
}
.mobile-menu__brand em { color: var(--sakura-600); font-weight: 400; }
.mobile-menu__close {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: var(--cream-dark);
  color: var(--pine-900);
  font-family: var(--f-display);
  font-size: 1.6rem;
  line-height: 1;
  transition: background 0.2s;
}
.mobile-menu__close:hover { background: var(--mist); }
.mobile-menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0; padding: 0;
}
.mobile-menu__list a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--pine-900);
  padding: 14px 8px;
  border-bottom: 1px dashed var(--mist-dark);
  transition: color 0.2s, background 0.2s;
  letter-spacing: -0.01em;
}
.mobile-menu__list a::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-600);
  display: inline-block;
  flex-shrink: 0;
  border: 1.5px solid var(--pine-900);
}
.mobile-menu__list a:hover {
  color: var(--sakura-600);
  background: var(--cream-light);
}
.mobile-menu__list a:last-child { border-bottom: none; }
.mobile-menu__cta {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu__cta .btn { width: 100%; justify-content: center; }
.mobile-menu__foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--mist-dark);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu__foot::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold-600);
  border-radius: 50%;
  display: inline-block;
}

/* ====================================================
   BOTTOM NAV (mobile)
   ==================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--cream-light);
  border-top: 1.5px solid var(--cream-dark);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: none;
  box-shadow: 0 -8px 24px rgba(31, 58, 54, 0.08);
}
.bottom-nav__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  max-width: 580px;
  margin: 0 auto;
}
.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px 6px;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  text-transform: uppercase;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s, transform 0.15s;
  text-align: center;
  line-height: 1.05;
}
.bottom-nav__item:hover,
.bottom-nav__item:active {
  color: var(--sakura-600);
  background: var(--cream-dark);
}
.bottom-nav__item .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke-width: 1.6;
}
.bottom-nav__item--cta {
  background: var(--gold-600);
  color: var(--pine-900);
}
.bottom-nav__item--cta:hover,
.bottom-nav__item--cta:active {
  background: var(--gold-500);
  color: var(--pine-900);
  transform: translateY(-2px);
}
@media (max-width: 880px) {
  .bottom-nav { display: block; }
  body { padding-bottom: 72px; }
  .site-footer { padding-bottom: 32px; }
}
@media (max-width: 380px) {
  .bottom-nav__item { font-size: 0.55rem; }
  .bottom-nav__item .icon { width: 20px; height: 20px; }
}
