/* ====================================================
   THANHOAI.COM — Indigo Almanac · Folk Crafts Manuscript
   Vùng đất 51 làng nghề Bắc Bộ
   ==================================================== */

/* === RESET === */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -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 {
  /* Indigo deep — chàm áo nông dân Bắc Bộ */
  --indigo-900: #15203f;
  --indigo-800: #1e2a52;
  --indigo-700: #2a3866;
  --indigo-600: #3d4d80;

  /* Crimson hương — sắc đỏ bó hương */
  --crimson-700: #9d2820;
  --crimson-600: #c4392c;
  --crimson-500: #d65340;

  /* Saffron miến — vàng miến phơi nắng */
  --saffron-700: #a26c14;
  --saffron-600: #d68d1e;
  --saffron-500: #e8a830;

  /* Cream giấy dó */
  --paper:      #f4ebd6;
  --paper-light:#faf3df;
  --paper-dark: #e8dcb9;

  /* Brick — gạch nung mái ngói */
  --brick-700:  #6b2a1a;
  --brick-600:  #8b3a26;
  --brick-500:  #a8503a;

  /* Bamboo — lá cọ, lúa */
  --bamboo-700: #36502d;
  --bamboo-600: #4a6b3c;
  --bamboo-500: #5d854c;

  /* Mist */
  --mist:       #d8d2c0;
  --mist-light: #e8e2d0;

  /* Ink */
  --ink:        #2a2418;
  --ink-soft:   #4a4332;
  --ink-mute:   #6e6651;

  /* Fonts */
  --f-display:  'Spectral', 'Cormorant Garamond', Georgia, serif;
  --f-body:     'Public Sans', system-ui, sans-serif;
  --f-mono:     'Space Mono', 'IBM Plex Mono', ui-monospace, monospace;

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

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

p { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: var(--crimson-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; }
.icon--lg { width: 1.6em; height: 1.6em; }

/* === POSTMARK STRIP (top, navy ribbon) === */
.postmark {
  background: var(--indigo-900);
  color: var(--paper);
  padding: 11px 0;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--saffron-600);
}
.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(244, 235, 214, 0.85);
}
.postmark__dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.postmark__dots span {
  width: 7px; height: 7px;
  display: inline-block;
  transform: rotate(45deg);
}
.postmark__dots span:nth-child(1) { background: var(--crimson-600); }
.postmark__dots span:nth-child(2) { background: var(--saffron-600); }
.postmark__dots span:nth-child(3) { background: var(--bamboo-500); }

/* === HEADER === */
.site-header {
  background: var(--paper);
  border-bottom: 1.5px solid var(--paper-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: 44px; height: 44px;
  background: var(--indigo-800);
  color: var(--paper);
  display: grid;
  place-items: center;
  border-radius: 2px;
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  font-style: italic;
  box-shadow: 3px 3px 0 var(--saffron-600);
}
.brand__text strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--indigo-900);
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.brand__text small {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  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.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--crimson-600); }
.nav .btn-cta {
  background: var(--indigo-800);
  color: var(--paper);
  padding: 10px 18px;
  margin-left: 6px;
}
.nav .btn-cta:hover { background: var(--indigo-900); color: var(--paper); }
.menu-toggle { display: none; padding: 10px; border-radius: 2px; }
.menu-toggle .icon { width: 24px; height: 24px; color: var(--indigo-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: 600;
  letter-spacing: 0.15em;
  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(--saffron-600);
  color: var(--indigo-900);
  border-color: var(--saffron-600);
  box-shadow: 4px 4px 0 var(--indigo-900);
}
.btn--gold:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--indigo-900);
}
.btn--ghost {
  background: transparent;
  color: var(--indigo-900);
  border-color: var(--indigo-800);
}
.btn--ghost:hover {
  background: var(--indigo-900);
  color: var(--paper);
}
.btn--crimson {
  background: var(--crimson-600);
  color: var(--paper);
  border-color: var(--crimson-600);
  box-shadow: 4px 4px 0 var(--indigo-900);
}
.btn--crimson:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--indigo-900);
}

/* === HERO === */
.hero {
  padding: clamp(56px, 8vw, 100px) 0 clamp(70px, 9vw, 120px);
  background:
    linear-gradient(to bottom, var(--paper-light) 0%, var(--paper) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(214, 141, 30, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.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, 11rem);
  color: var(--saffron-600);
  opacity: 0.18;
  line-height: 0.85;
  position: absolute;
  top: -30px;
  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.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin-bottom: 28px;
  color: var(--indigo-900);
}
.hero h1 em {
  color: var(--crimson-600);
  font-weight: 500;
  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(--indigo-900); font-weight: 600; }
.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);
  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.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__meta-item strong {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  color: var(--indigo-900);
}

/* Hero photo collage */
.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  grid-template-rows: 0.8fr 1fr;
  gap: 14px;
  height: 540px;
}
.hero__photo {
  position: relative;
  overflow: hidden;
  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: 8px solid var(--paper);
  outline: 1.5px solid var(--paper-dark);
}
.hero__photo--top {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  border: 6px solid var(--paper);
  outline: 1.5px solid var(--paper-dark);
  transform: rotate(2deg);
}
.hero__photo--bot {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  border: 6px solid var(--paper);
  outline: 1.5px solid var(--paper-dark);
  transform: rotate(-2deg);
}
.hero__stamp {
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 130px;
  height: 130px;
  background: var(--crimson-600);
  color: var(--paper);
  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: 500;
  line-height: 1.15;
  padding: 12px;
  transform: rotate(-12deg);
  box-shadow: 0 12px 30px rgba(196, 57, 44, 0.35);
  z-index: 5;
  border: 2px dashed var(--paper);
  outline: 4px solid var(--crimson-600);
}
.hero__stamp small {
  display: block;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
  text-transform: uppercase;
  opacity: 0.85;
}

@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.02em;
  line-height: 1.12;
  margin-bottom: 16px;
}
.section-head h2 em { color: var(--crimson-600); font-weight: 500; }
.section-head p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Chapter heading */
.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1.5px solid var(--paper-dark);
}
.chapter-head__num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 4.5vw, 3.6rem);
  color: var(--saffron-600);
  line-height: 1;
  white-space: nowrap;
}
.chapter-head__title {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.12;
}
.chapter-head__title em { color: var(--crimson-600); font-weight: 500; }

/* === FACTSHEET (intro panel) === */
.factsheet {
  background: var(--paper-light);
  padding: clamp(36px, 5vw, 60px);
  border-radius: 2px;
  border: 1.5px solid var(--paper-dark);
  position: relative;
}
.factsheet::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--mist);
  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(--crimson-600); font-weight: 500; }
.factsheet p { margin-bottom: 14px; line-height: 1.7; }
.factsheet p strong { color: var(--indigo-900); }

/* Factsheet right: quartet of crafts */
.quartet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.quartet__item {
  background: var(--paper);
  border: 1.5px solid var(--paper-dark);
  border-radius: 2px;
  padding: 18px 16px;
  text-align: center;
  position: relative;
  transition: all 0.25s;
}
.quartet__item:hover {
  border-color: var(--crimson-600);
  transform: translateY(-3px);
}
.quartet__num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--saffron-600);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.quartet__name {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--indigo-900);
  display: block;
  margin-bottom: 6px;
}
.quartet__sub {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

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

/* === CRAFTS QUARTET (4 large cards) === */
.crafts-section {
  background: var(--indigo-900);
  color: var(--paper);
}
.crafts-section .section-head h2 { color: var(--paper); }
.crafts-section .section-head p { color: rgba(244, 235, 214, 0.78); }
.crafts-section .eyebrow {
  color: var(--saffron-500);
}
.crafts-section .eyebrow::before { background: var(--saffron-500); }

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

/* === THESIS CARDS (6 cluster pillars) === */
.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(--paper-light);
  border: 1.5px solid var(--paper-dark);
  border-radius: 2px;
  padding: 30px 26px;
  position: relative;
  transition: all 0.25s;
}
.pillar-card:hover {
  border-color: var(--crimson-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.pillar-card__num {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--saffron-600);
  margin-bottom: 14px;
  display: block;
}
.pillar-card h4 {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--indigo-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(--indigo-900); font-weight: 600; }

/* === TWOFACE === */
.twoface {
  background: var(--paper-light);
  border-block: 1.5px solid var(--paper-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;
}
.twoface__panel--past {
  background:
    linear-gradient(to bottom, rgba(30, 42, 82, 0.18) 0%, rgba(30, 42, 82, 0.85) 100%),
    url('../photos/19-lang-co-ho-dao-1024.webp') center/cover no-repeat;
  color: var(--paper);
}
.twoface__panel--future {
  background:
    linear-gradient(to bottom, rgba(30, 42, 82, 0.20) 0%, rgba(30, 42, 82, 0.80) 100%),
    url('../photos/17-aerial-canh-dong-lua-1024.webp') center/cover no-repeat;
  color: var(--paper);
}
.twoface__label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron-500);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.twoface__label::before {
  content: '';
  width: 32px; height: 1.5px;
  background: var(--saffron-500);
}
.twoface__panel h3 {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.018em;
  line-height: 1.18;
  margin-bottom: 16px;
}
.twoface__panel h3 em { color: var(--saffron-500); font-style: italic; font-weight: 500; }
.twoface__panel p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: rgba(244, 235, 214, 0.85);
  max-width: 480px;
}

/* === ALBUM === */
.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);
}
.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(30, 42, 82, 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.68rem;
  letter-spacing: 0.14em;
  color: var(--paper);
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 2;
}
/* Album spans */
.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] pattern) === */
.model {
  background: var(--paper);
}
.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(--paper-light);
  border: 1.5px solid var(--paper-dark);
  border-left: 5px solid var(--crimson-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: 600;
  font-size: 2rem;
  color: var(--saffron-600);
  line-height: 1;
  flex-shrink: 0;
}
.layer__body strong {
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--indigo-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(--paper-light);
  border-top: 1.5px solid var(--paper-dark);
}
.faq__list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  background: var(--paper);
  border: 1.5px solid var(--paper-dark);
  border-radius: 2px;
  padding: 26px 30px;
  transition: all 0.25s;
}
.faq__item:hover {
  border-color: var(--crimson-600);
  box-shadow: var(--shadow-card);
}
.faq__item summary {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--indigo-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(--crimson-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);
  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(--indigo-900);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(214, 141, 30, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(196, 57, 44, 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: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--paper);
  margin-bottom: 22px;
}
.cta-panel h2 em { color: var(--saffron-500); font-style: italic; font-weight: 500; }
.cta-panel p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(244, 235, 214, 0.78);
  margin-bottom: 16px;
}
.cta-panel p strong { color: var(--paper); }
.cta-panel__visual {
  background: var(--indigo-800);
  border: 1.5px solid var(--indigo-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(214, 141, 30, 0.4);
  pointer-events: none;
}
.cta-panel__domain {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  font-style: italic;
  color: var(--saffron-500);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}
.cta-panel__domain em {
  color: var(--paper);
  font-weight: 400;
}
.cta-panel__visual small {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(244, 235, 214, 0.55);
  text-transform: uppercase;
  margin-top: 20px;
}
.cta-panel__visual--badge {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  background: var(--crimson-600);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.note-mono {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 235, 214, 0.55);
  margin-top: 18px;
}

/* === FOOTER === */
.site-footer {
  background: var(--indigo-900);
  color: rgba(244, 235, 214, 0.7);
  padding: 64px 0 32px;
  border-top: 1px solid var(--indigo-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: 600;
  color: var(--saffron-500);
  margin-bottom: 4px;
  display: block;
}
.footer__brand-sub {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: rgba(244, 235, 214, 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(244, 235, 214, 0.55);
  line-height: 1.5;
}
.footer__niem-yet a { color: var(--saffron-500); border-bottom: 1px dashed var(--saffron-500); }
.footer__col h4 {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--saffron-500);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 9px; }
.footer__col a {
  color: rgba(244, 235, 214, 0.7);
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--saffron-500); }
.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--indigo-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.14em;
  color: rgba(244, 235, 214, 0.5);
  text-transform: uppercase;
}

/* === REVEAL ANIMATIONS === */
/* SAFE-FIRST: content visible by default, JS opts in to animation */
.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(21, 32, 63, 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(--paper);
  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(--saffron-600);
  box-shadow: -10px 0 40px rgba(30, 42, 82, 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);
}
.mobile-menu__brand {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--indigo-900);
}
.mobile-menu__brand em { color: var(--crimson-600); }
.mobile-menu__close {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: var(--paper-dark);
  color: var(--indigo-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.05rem;
  font-weight: 600;
  color: var(--indigo-900);
  padding: 14px 8px;
  border-bottom: 1px dashed var(--mist);
  transition: color 0.2s, background 0.2s;
  letter-spacing: -0.01em;
}
.mobile-menu__list a::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--crimson-600);
  display: inline-block;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.mobile-menu__list a:hover {
  color: var(--crimson-600);
  background: var(--paper-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);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu__foot span {
  width: 6px; height: 6px;
  background: var(--saffron-600);
  display: inline-block;
  transform: rotate(45deg);
}

/* ====================================================
   BOTTOM NAV (mobile only)
   ==================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--paper-light);
  border-top: 1.5px solid var(--paper-dark);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: none;
  box-shadow: 0 -8px 24px rgba(30, 42, 82, 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: 600;
  letter-spacing: 0.08em;
  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(--crimson-600);
  background: var(--paper-dark);
}
.bottom-nav__item .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke-width: 1.6;
}
.bottom-nav__item--cta {
  background: var(--saffron-600);
  color: var(--indigo-900);
}
.bottom-nav__item--cta:hover,
.bottom-nav__item--cta:active {
  background: var(--saffron-500);
  color: var(--indigo-900);
  transform: translateY(-2px);
}

/* Show bottom-nav on mobile/tablet, push body up */
@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; }
}
