/* THỔ MỘC — concept-a
   North star: bảng tiến độ tuần kẻ tay trên giấy kẻ ly.
   Bất biến: border-radius 0, không box-shadow, reveal chỉ dùng transform,
   xám kẻ đường không bao giờ làm chữ, một màu nhấn một nghĩa. */

:root {
  /* ---- màu: bốn vai ---- */
  --paper:      #EEF0E8;   /* mặt giấy kẻ ly */
  --paper-2:    #E4E7DA;   /* giấy ấm, dải xen kẽ */
  --paper-3:    #D8DCCB;   /* giấy đậm, ô nhấn trong bảng */
  --dark:       #262922;   /* dải tối */
  --dark-2:     #1B1D17;   /* dải tối đậm, chân trang */

  /* ---- hai token xám: một cho nét, một cho chữ ---- */
  --rule:       #A7AE9B;   /* CHỈ kẻ đường, không bao giờ làm chữ */
  --rule-soft:  rgba(122,139,110,.30);
  --grid:       rgba(122,139,110,.16);
  --ink:        #22241E;   /* chữ chính trên giấy */
  --ink-2:      #545848;   /* chữ phụ trên giấy, 6,1:1 */
  --on-dark:    #E9EBE0;
  --on-dark-2:  #A9AF9B;   /* chữ phụ trên nền tối, 6,5:1 */

  /* ---- màu nhấn: mực đỏ của người giữ bảng tiến độ ---- */
  --accent:     #B0342A;
  --accent-ink: #8E2A22;   /* cùng mực, dùng khi làm chữ trên giấy */

  /* ---- thang chữ ---- */
  --fs-micro: 0.7rem;
  --fs-small: 0.8125rem;
  --fs-body:  1.0625rem;
  --fs-lead:  1.1875rem;
  --fs-h3:    1.3125rem;
  --fs-h2:    clamp(1.55rem, 3.1vw, 2.1rem);
  --fs-h1:    clamp(2.05rem, 5.6vw, 3.7rem);
  --fs-num:   clamp(1.45rem, 2.9vw, 1.95rem);
  --fs-num-l: clamp(2.1rem, 4.4vw, 3rem);

  /* ---- nhịp ---- */
  --gap:   1.5rem;
  --band:  clamp(3.5rem, 7vw, 6rem);
  --wrap:  1220px;

  --f-head: 'Chivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Bitter', Georgia, 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  background-image:
    repeating-linear-gradient(to right,  var(--grid) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, var(--grid) 0 1px, transparent 1px 40px);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-variant-numeric: lining-nums tabular-nums;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

/* mọi con số dùng chữ số tabular của mặt mono */
.num {
  font-family: var(--f-mono);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* nhãn micro-caps: tối thiểu 11.2px */
.lab {
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.155em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: block;
  font-weight: 500;
}
.on-dark .lab, .band-dark .lab { color: var(--on-dark-2); }

.cap {
  font-size: var(--fs-small);
  color: var(--ink-2);
  line-height: 1.5;
}
.band-dark .cap { color: var(--on-dark-2); }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow > * { max-width: 780px; }

.band { padding-block: var(--band); border-top: 1px solid var(--rule); }
.band-paper2 { background: var(--paper-2); }
.band-dark {
  background: var(--dark);
  color: var(--on-dark);
  border-top-color: #3B3F34;
  background-image:
    repeating-linear-gradient(to right,  rgba(233,235,224,.055) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, rgba(233,235,224,.055) 0 1px, transparent 1px 40px);
}
.band-dark h2, .band-dark h3 { color: var(--on-dark); }

/* ====== đầu dải: nhãn giai đoạn, đọc như đầu cột bảng tiến độ ====== */
.band-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .55rem;
  margin-bottom: 2.2rem;
}
.band-dark .band-head { border-bottom-color: #3B3F34; }
.band-head .stage {
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  letter-spacing: .16em;
  color: var(--accent-ink);
  font-weight: 700;
  flex: none;
}
.band-dark .band-head .stage { color: #E0705F; }
.band-head .stage-name { margin-left: auto; }

/* ====== header ====== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 66px;
  padding-block: .5rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: .2em;
  text-decoration: none;
  flex: none;
}
.wordmark span { display: block; font-family: var(--f-mono); font-size: var(--fs-micro); letter-spacing: .13em; color: var(--ink-2); font-weight: 400; }
.nav {
  display: flex;
  gap: 1.15rem;
  margin-left: auto;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  font-family: var(--f-head);
  font-size: .9rem;
  text-decoration: none;
  padding-block: .3rem;
  position: relative;
}
.nav a[aria-current="page"] { color: var(--accent-ink); }
.nav-tail { display: flex; align-items: center; gap: .8rem; flex: none; }
.nav-phone { font-family: var(--f-mono); font-size: .88rem; text-decoration: none; font-weight: 500; white-space: nowrap; }

.lang-toggle { display: inline-flex; border: 1px solid var(--rule); flex: none; }
.lang-toggle button {
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  padding: .3rem .5rem;
  background: transparent;
  border: 0;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.4;
}
.lang-toggle button + button { border-left: 1px solid var(--rule); }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ====== nút ====== */
.btn {
  display: inline-block;
  position: relative;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .72rem 1.2rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.band-dark .btn-ghost { color: var(--on-dark); border-color: #4A4F41; }
.btn-sm { font-size: .85rem; padding: .5rem .85rem; }

/* ====== THIẾT BỊ HOVER DUY NHẤT: vạch gióng ======
   một vạch mực đỏ 2px tự kéo từ trái sang, nối một dòng với con số của nó. */
.gion { position: relative; }
.gion::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .42s cubic-bezier(.2,.75,.2,1);
  pointer-events: none;
}
.gion:hover::after, .gion:focus-visible::after, .gion:focus-within::after { transform: scaleX(1); }
.btn.gion::after { background: var(--ink); bottom: -3px; }
.btn-ghost.gion::after { background: var(--accent); }
.band-dark .btn-ghost.gion::after { background: #E0705F; }

/* ====== dòng thông số: nhãn trên, giá trị dưới ====== */
.specs { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.spec {
  border-top: 1px solid var(--rule);
  padding: .85rem 0 .95rem;
  padding-right: 1rem;
}
.band-dark .spec { border-top-color: #3B3F34; }
.spec .val {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: var(--fs-num);
  line-height: 1.05;
  display: block;
  margin-top: .3rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.spec .val small { font-family: var(--f-body); font-weight: 400; font-size: .82rem; color: var(--ink-2); letter-spacing: 0; }
/* giá trị là chữ, không phải số: giữ cùng dòng thông số nhưng không lấy cỡ số lớn */
.spec .val.val-text { font-size: 1.02rem; line-height: 1.3; letter-spacing: -.005em; }
.specs.specs-wide { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); column-gap: 1.6rem; margin-top: 2.6rem; }
.band-dark .spec .val small { color: var(--on-dark-2); }

/* ====== HERO: bảng tiến độ tuần ====== */
.hero { padding-block: clamp(2.6rem, 5.5vw, 4.4rem) var(--band); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: end; }
.hero h1 { margin: .55rem 0 0; }
.hero-lead { font-size: var(--fs-lead); color: var(--ink); max-width: 46ch; margin-top: 1.1rem; }
.hero-act { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-side { border-left: 1px solid var(--rule); padding-left: 1.4rem; }
.hero-side .kv { border-top: 1px solid var(--rule); padding: .6rem 0; }
.hero-side .kv:first-of-type { border-top: 0; padding-top: 0; }
.hero-side .kv b { font-family: var(--f-head); font-size: 1.05rem; display: block; }

/* bảng tiến độ */
.chart { margin-top: clamp(2rem, 4.5vw, 3.2rem); border-top: 1px solid var(--ink); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; padding: .6rem 0 .9rem; gap: 1rem; flex-wrap: wrap; }
.crow {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr) 92px;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--rule-soft);
  padding: .7rem 0;
}
.crow-id { min-width: 0; }
.crow-id b { font-family: var(--f-head); font-size: .98rem; display: block; letter-spacing: -.01em; }
.crow-id .code { font-family: var(--f-mono); font-size: var(--fs-micro); letter-spacing: .14em; color: var(--accent-ink); }
.crow-track {
  position: relative; height: 26px;
  border-bottom: 1px solid var(--rule-soft);
  background-image: repeating-linear-gradient(to right, var(--rule-soft) 0 1px, transparent 1px calc(100% / 6));
}
.crow-bar {
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  background: var(--ink);
  transform-origin: left center;
  animation: draw .42s cubic-bezier(.25,.8,.3,1) both;
}
.crow-bar::after {
  content: "";
  position: absolute;
  right: 0; top: -5px; bottom: -5px;
  width: 3px;
  background: var(--accent);
}
.crow-days { font-family: var(--f-mono); font-size: .9rem; text-align: right; font-weight: 500; }
.crow-days span { color: var(--ink-2); font-size: var(--fs-small); display: block; letter-spacing: .03em; }
.crow:hover .crow-bar, .crow:focus-within .crow-bar { background: var(--accent); }

.ruler { display: flex; border-top: 1px solid var(--ink); margin-top: .2rem; }
.ruler-pad { flex: none; width: 250px; }
.ruler-pad span { font-family: var(--f-mono); font-size: var(--fs-micro); letter-spacing: .14em; color: var(--ink-2); display: block; padding-top: .4rem; }
.ruler-scale { flex: 1; display: flex; position: relative; margin-left: 1rem; margin-right: calc(92px + 1rem); }
.ruler-end { position: absolute; right: 0; top: .35rem; transform: translateX(50%); font-size: var(--fs-micro); color: var(--ink-2); }
.ruler-tick { flex: 1; border-left: 1px solid var(--rule); padding-top: .35rem; }
.ruler-tick:last-child { border-right: 1px solid var(--rule); }
.ruler-tick span { font-family: var(--f-mono); font-size: var(--fs-micro); color: var(--ink-2); padding-left: .25rem; }

/* ====== khối văn xuôi ====== */
.prose { max-width: 68ch; }
.prose p + h3 { margin-top: 2rem; }
.prose h3 + p { margin-top: .7rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; }

/* ====== dòng dịch vụ có giá ====== */
.plist { border-top: 1px solid var(--ink); }
.pline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: baseline;
  border-bottom: 1px solid var(--rule-soft);
  padding: 1rem 0 1.05rem;
}
.pline .name { font-family: var(--f-head); font-weight: 700; font-size: 1.08rem; }
.pline .desc { grid-column: 1 / 2; font-size: var(--fs-small); color: var(--ink-2); max-width: 60ch; margin-top: .3rem; }
.band-dark .pline .desc { color: var(--on-dark-2); }
.pline .price { font-family: var(--f-mono); font-weight: 700; font-size: 1.02rem; text-align: right; white-space: nowrap; }
.pline .price em { display: block; font-style: normal; font-size: var(--fs-micro); letter-spacing: .155em; color: var(--ink-2); font-weight: 400; }
.band-dark .pline .price em { color: var(--on-dark-2); }
.pline .price b { color: var(--accent-ink); }
.band-dark .pline .price b { color: #E0705F; }
.band-dark .plist { border-top-color: var(--on-dark); }
.band-dark .pline { border-bottom-color: #3B3F34; }

/* ====== gói vật tư ====== */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.pack { border-right: 1px solid var(--rule); padding: 1.2rem 1.3rem 1.4rem 0; }
.pack:last-child { border-right: 0; }
.pack + .pack { padding-left: 1.3rem; }
.pack h3 { font-size: 1.5rem; }
.pack .price { font-family: var(--f-mono); font-weight: 700; font-size: 1.15rem; margin-top: .5rem; display: block; }
.pack .price em { font-style: normal; font-size: var(--fs-micro); letter-spacing: .155em; color: var(--ink-2); display: block; }
.pack p { font-size: var(--fs-small); color: var(--ink-2); margin-top: .8rem; }
.band-dark .packs { border-top-color: var(--on-dark); }
.band-dark .pack { border-right-color: #454A3C; }
.band-dark .pack p, .band-dark .pack .price em { color: var(--on-dark-2); }

/* ====== thủ tục đánh số / điều khoản ====== */
.terms { border-top: 1px solid var(--ink); }
.term { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: .5rem 1.2rem; border-bottom: 1px solid var(--rule-soft); padding: 1.05rem 0 1.15rem; align-items: start; }
.term .n { font-family: var(--f-mono); font-weight: 700; color: var(--accent-ink); font-size: 1rem; padding-top: .15rem; }
.term .t { font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; }
.term .d { grid-column: 2 / 3; font-size: var(--fs-small); color: var(--ink-2); margin-top: .35rem; max-width: 64ch; }
.term .w { font-family: var(--f-mono); font-size: .95rem; font-weight: 700; text-align: right; white-space: nowrap; }
.band-dark .terms { border-top-color: var(--on-dark); }
.band-dark .term { border-bottom-color: #3B3F34; }
.band-dark .term .n { color: #E0705F; }
.band-dark .term .d { color: var(--on-dark-2); }

/* ====== thẻ hồ sơ công trình ====== */
.recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem; }
.rec { border: 1px solid var(--rule); background: var(--paper); display: flex; flex-direction: column; }
.band-dark .rec { background: #2E322A; border-color: #454A3C; }
.rec-figure { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--rule); }
.rec-figure img { width: 100%; height: 100%; object-fit: cover; }
.rec-code {
  position: absolute; left: 0; top: 0;
  font-family: var(--f-mono); font-size: var(--fs-micro); letter-spacing: .14em; font-weight: 700;
  background: var(--paper); color: var(--ink);
  padding: .3rem .55rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.rec-body { padding: 1rem 1.1rem 0; }
.rec-body h3 { font-size: 1.12rem; }
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: auto; padding: 1rem 1.1rem 1.1rem; gap: .75rem .8rem; }
.rec-grid div { border-top: 1px solid var(--rule-soft); padding-top: .4rem; }
.rec-grid b { font-family: var(--f-mono); font-size: .92rem; display: block; margin-top: .15rem; }

/* ====== ảnh có khung, có mã hiệu ====== */
.plate { border: 1px solid var(--rule); position: relative; }
.plate img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.plate-tall img { aspect-ratio: 4 / 3; }
.plate figcaption {
  display: flex; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--rule);
  padding: .5rem .7rem;
  font-family: var(--f-mono);
  font-size: var(--fs-small);
  letter-spacing: .03em;
  color: var(--ink-2);
}
.band-dark .plate { border-color: #454A3C; }
.band-dark .plate figcaption { border-top-color: #454A3C; color: var(--on-dark-2); }

/* ====== cảm nhận ====== */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.quote { border-right: 1px solid var(--rule); padding: 1.3rem 1.4rem 1.4rem 0; }
.quote + .quote { padding-left: 1.4rem; }
.quote:last-child { border-right: 0; }
.quote p { font-size: 1.05rem; }
.quote .who { font-family: var(--f-mono); font-size: var(--fs-small); letter-spacing: .03em; color: var(--ink-2); margin-top: .8rem; display: block; }
.band-dark .quotes { border-top-color: var(--on-dark); }
.band-dark .quote { border-right-color: #454A3C; }
.band-dark .quote .who { color: var(--on-dark-2); }

/* ====== form ====== */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.4rem 1.6rem; margin-top: 1.8rem; }
.field label { display: block; }
.field input, .field select {
  width: 100%;
  font-family: var(--f-mono);
  font-size: 1rem;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: .45rem 0;
  margin-top: .3rem;
}
.band-dark .field input, .band-dark .field select { border-bottom-color: #4A4F41; }
.field input:focus, .field select:focus { outline: 0; border-bottom-color: var(--accent); border-bottom-width: 2px; }
.field select option { color: #22241E; background: #EEF0E8; }
.form-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 2rem; }

/* ====== bài viết ====== */
.arts { border-top: 1px solid var(--ink); }
.art {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: .4rem 1.3rem;
  border-bottom: 1px solid var(--rule-soft);
  padding: 1.1rem 0 1.2rem;
  text-decoration: none;
  align-items: baseline;
}
.art .date { font-family: var(--f-mono); font-size: var(--fs-small); letter-spacing: .03em; color: var(--ink-2); }
.art h3 { font-size: 1.1rem; }
.art .sum { grid-column: 2 / 3; font-size: var(--fs-small); color: var(--ink-2); max-width: 64ch; }
.art .go { font-family: var(--f-mono); font-size: var(--fs-micro); letter-spacing: .14em; color: var(--accent-ink); white-space: nowrap; }
.band-dark .arts { border-top-color: var(--on-dark); }
.band-dark .art { border-bottom-color: #3B3F34; }
.band-dark .art .date, .band-dark .art .sum { color: var(--on-dark-2); }
.band-dark .art .go { color: #E0705F; }
.band-dark .table-wrap { border-top-color: var(--on-dark); }
.band-dark .rec-table th { color: var(--on-dark-2); }
.band-dark .rec-table th, .band-dark .rec-table td { border-bottom-color: #3B3F34; }

.article-body { max-width: 68ch; }
.article-body h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.article-body h2 + p { margin-top: .8rem; }
.article-body ol, .article-body ul { padding-left: 1.2rem; margin: 0 0 1.05em; }
.article-body li { margin-bottom: .45em; }
.article-body figure { margin: 2rem 0; }

/* ====== bảng tra cứu ====== */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table.rec-table { width: 100%; border-collapse: collapse; min-width: 660px; }
.rec-table th, .rec-table td { text-align: left; padding: .75rem .9rem .8rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.rec-table th { font-family: var(--f-mono); font-size: var(--fs-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.rec-table td { font-size: var(--fs-small); }
.rec-table td.n { font-family: var(--f-mono); }
.rec-table tr:hover td { background: var(--paper-3); }
.band-dark .rec-table tr:hover td { background: #32362D; }

/* ====== bộ lọc ====== */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.filters button {
  font-family: var(--f-mono); font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--rule); color: var(--ink-2);
  padding: .4rem .7rem; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ====== chân trang ====== */
.site-foot { background: var(--dark-2); color: var(--on-dark); padding-block: var(--band) 2.5rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 2rem; border-top: 1px solid #3B3F34; padding-top: 1.8rem; }
.foot-grid h3 { font-size: .95rem; margin-bottom: .7rem; }
.foot-grid p, .foot-grid li { font-size: var(--fs-small); color: var(--on-dark-2); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .4rem; }
.foot-grid a { text-decoration: none; }
.foot-legal { border-top: 1px solid #3B3F34; margin-top: 2.2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-legal span { font-family: var(--f-mono); font-size: var(--fs-small); letter-spacing: .03em; color: var(--on-dark-2); }

/* ====== CHUYỂN ĐỘNG ======
   Một entrance mang xuyên suốt + một thiết bị hover (.gion).
   Bất biến: opacity không bao giờ tham gia. */
@keyframes lift { from { transform: translateY(20px); } to { transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.enter { animation: lift .62s cubic-bezier(.2,.75,.2,1) both; }
.enter-1 { animation-delay: .02s; }
.enter-2 { animation-delay: .10s; }
.enter-3 { animation-delay: .18s; }
.enter-4 { animation-delay: .26s; }

.reveal { transform: translateY(18px); transition: transform .62s cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { transform: none; }
.reveal-2 { transition-delay: .07s; }
.reveal-3 { transition-delay: .14s; }

@media (prefers-reduced-motion: reduce) {
  .enter, .crow-bar { animation: none; }
  .reveal { transform: none; transition: none; }
  .gion::after { transition: none; }
}

/* ====== responsive ====== */
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .hero-side { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 1.2rem; }
  .two-col { grid-template-columns: 1fr; }
  .crow { grid-template-columns: minmax(0, 1fr) 84px; row-gap: .5rem; }
  .crow-id { grid-column: 1; grid-row: 1; }
  .crow-days { grid-column: 2; grid-row: 1; }
  .crow-track { grid-column: 1 / -1; grid-row: 2; }
  .ruler-pad { display: none; }
  .ruler-scale { margin-left: 0; margin-right: 0; }
  .pack { border-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; padding-left: 0 !important; }
  .pack:last-child { border-bottom: 0; }
  .quote { border-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; padding-left: 0 !important; }
  .quote:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  :root { --band: 3rem; }
  .site-head { position: static; }
  .site-head .wrap { min-height: 0; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: .9rem; border-top: 1px solid var(--rule); padding-top: .5rem; }
  .nav-tail { margin-left: auto; }
  .term { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .term .w { grid-column: 2 / 3; text-align: left; margin-top: .4rem; }
  .art { grid-template-columns: 1fr; }
  .art .sum { grid-column: 1 / -1; }
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
}
