/* Fraunces + Be Vietnam Pro — tự lưu trên server (SIL Open Font License 1.1, xem fonts/OFL-*.txt). */
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-400-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-500-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-500-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-600-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-700-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fraunces-600-italic-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fraunces-600-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fraunces-600-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/fraunces-500-600-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/fraunces-500-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/fraunces-500-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================================================================================
 * Theme asahome — hướng nhận diện B "Vật liệu" (Sprint 4.9; bản mẫu duyệt 2026-11-07).
 * Nền đá xám ấm, chữ nâu cà phê, điểm nhấn gỗ sồi; Fraunces (tiêu đề) + Be Vietnam Pro (nội dung).
 * Block (ADR-0027) dùng markup mặc định `blk-*`; theme chỉ định kiểu.
 * =================================================================================================================== */
:root {
  --bg: #EFEDE9; --surface: #E5E1DA; --paper: #F7F5F1; --ink: #24201C; --muted: #615A51; --line: #D3CDC3;
  --accent: #8B5E34; --accent-dark: #74491F; --on-accent: #FFFFFF; --link: #7A4F2A;
  --band: #24201C; --on-band: #F4F1EC; --band-muted: #B9B0A4; --band-line: rgba(244, 241, 236, .16);
  --chip: #E2D6C8; --chip-ink: #5C3D20; --ok: #2F6B3F; --error: #9B2C1F;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 2px; --gutter: 20px; --max: 1240px; --header-h: 72px;
  --space: clamp(44px, 6vw, 88px);
  --ease: cubic-bezier(.16, 1, .3, 1); --ease-soft: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--body); text-rendering: optimizeLegibility;
  overflow-wrap: break-word; /* chuỗi liền dài (vd. tên file) không đẩy trang rộng ra */ }
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h4, h5, h6 { font-family: var(--body); font-weight: 600; line-height: 1.35; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.06; }
h2 { font-size: clamp(27px, 3.2vw, 42px); }
h3 { font-size: clamp(21px, 2.2vw, 27px); }
h4 { font-size: 19px; } h5 { font-size: 17px; } h6 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
table { border-collapse: collapse; width: 100%; }
.ah-container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.ah-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ah-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--on-band); }
.ah-skip:focus { top: 12px; }
.ah-preview { background: #F2C14E; color: #2A2108; text-align: center; padding: 6px; font-weight: 600; font-size: 14px; }
.ah-muted { color: var(--muted); font-size: 15px; }
.ah-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ah-empty { padding: 40px 0; color: var(--muted); }

/* ===== Nút, chip ===== */
.ah-btn, .blk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px;
  border: 1.5px solid transparent; border-radius: var(--r); font: 600 15px/1.3 var(--body); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.ah-btn--lg { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.ah-btn--primary, .blk-btn--primary { background: var(--accent); color: var(--on-accent); }
.ah-btn--primary:hover, .blk-btn--primary:hover { background: var(--accent-dark); color: var(--on-accent); }
.ah-btn--secondary, .blk-btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.ah-btn--secondary:hover, .blk-btn--secondary:hover { background: var(--ink); color: var(--on-band); }
.blk-btn--link { min-height: 44px; padding: 0; color: var(--link); text-decoration: underline; background: none; }
.blk-btn--link::after { content: '→'; transition: transform .6s var(--ease); }
.blk-btn--link:hover::after { transform: translateX(4px); }
.ah-btn--light { background: var(--on-band); color: var(--band); }
.ah-btn--light:hover { background: #fff; color: var(--band); }
.ah-btn--outline-light { border-color: var(--on-band); color: var(--on-band); background: transparent; }
.ah-btn--outline-light:hover { background: var(--on-band); color: var(--band); }
.ah-btn[disabled] { opacity: .6; cursor: progress; }
.ah-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r); background: var(--chip); color: var(--chip-ink);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.ah-chip--line { background: transparent; border: 1px solid var(--line); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; padding: 9px 14px; }
.ah-chip--line:hover { border-color: var(--ink); color: var(--ink); }

/* ===== Logo Asa Home (bản màu trên nền sáng, bản gold trên nền tối) ===== */
.ah-logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.ah-logo-img, .ah-logo-img img { display: block; }
.ah-logo-img img { width: auto; height: 44px; }
.ah-logo-img--gold img { height: 72px; }
.ah-footer__logo { display: inline-flex; }
.ah-quote__brand .ah-logo-img img { height: 46px; }
@media (min-width: 1024px) { .ah-logo-img img { height: 50px; } .ah-logo-img--gold img { height: 80px; } }

/* ===== Thanh trên cùng ===== */
.ah-topbar { background: var(--band); color: var(--on-band); font-size: 13px; }
.ah-topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; min-height: 36px; padding-block: 6px; }
.ah-topbar p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ah-topbar a { color: var(--on-band); text-decoration: none; }
.ah-topbar a:hover { color: #fff; text-decoration: underline; }
.ah-topbar__contact span:not(:first-child) { color: var(--band-muted); }
.ah-topbar__links { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.ah-menu-inline { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ===== Header + menu ===== */
.ah-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.ah-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.ah-header__actions { display: flex; align-items: center; gap: 8px; }
.ah-icon-btn, .ah-menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--ink); font: 600 15px var(--body); cursor: pointer; text-decoration: none; }
.ah-menu-btn { background: var(--surface); border-color: var(--surface); }
.ah-menu__list, .ah-menu__panel ul { list-style: none; margin: 0; padding: 0; }
.ah-menu__top { display: flex; align-items: center; }
.ah-menu__link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
span.ah-menu__link { cursor: default; }
.ah-menu__link:hover, .ah-menu__item.is-open > .ah-menu__top .ah-menu__link { color: var(--accent-dark); }
.ah-menu__toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 44px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.ah-menu__item.is-open > .ah-menu__top .ah-menu__toggle svg { transform: rotate(180deg); }
.ah-menu__panel a, .ah-menu__panel span { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.4; }
.ah-menu__panel a:hover { color: var(--accent-dark); }
.ah-mega__title { font-weight: 600; }
.ah-mega__group ul ul { padding-left: 12px; border-left: 1px solid var(--line); }
.ah-nav-cta { margin-top: 16px; }

@media (max-width: 1023.98px) {
  .ah-hide-sm { display: none !important; }
  .ah-header__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--nav-top, var(--header-h)));
    max-height: calc(100dvh - var(--nav-top, var(--header-h))); overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(36, 32, 28, .12); }
  .ah-header__nav.is-open { display: block; }
  body.ah-nav-open { overflow: hidden; }
  body.ah-nav-open::after { content: ''; position: fixed; inset: 0; z-index: 45; background: rgba(36, 32, 28, .42); animation: ah-fade .35s var(--ease); }
  .ah-menu__item { border-bottom: 1px solid var(--line); }
  .ah-menu__top { justify-content: space-between; }
  .ah-menu__link { font-weight: 600; padding-left: 0; }
  .ah-menu__toggle { width: 44px; }
  .ah-menu__panel { display: none; padding: 0 0 14px 12px; }
  .ah-menu__item.is-open > .ah-menu__panel { display: block; }
  .ah-mega { padding: 0; display: block; }
  .ah-mega__group { padding: 4px 0; }
  .ah-topbar .ah-menu-inline { display: none; }
}
@media (min-width: 1024px) {
  .ah-show-sm { display: none !important; }
  .ah-nav-cta { display: none !important; }
  .ah-header__nav { display: flex; align-items: center; flex: 1; justify-content: center; }
  .ah-menu__list { display: flex; align-items: center; gap: 2px; }
  .ah-menu__item { position: relative; }
  .ah-menu__item.is-mega { position: static; }
  .ah-menu__toggle { width: 22px; margin-left: -6px; }
  .ah-menu__panel { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; padding: 12px 20px; background: var(--paper);
    border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(36, 32, 28, .12); z-index: 60; }
  .ah-menu__panel ul ul { padding-left: 12px; }
  .ah-menu__item.has-sub:hover > .ah-menu__panel, .ah-menu__item.has-sub:focus-within > .ah-menu__panel, .ah-menu__item.is-open > .ah-menu__panel { display: block; }
  .ah-menu__panel--mega { left: 0; right: 0; padding: 28px 0 32px; border-left: 0; border-right: 0; }
  .ah-mega { column-count: 4; column-gap: 32px; }
  .ah-mega__group { break-inside: avoid; padding-bottom: 14px; }
  .ah-mega__title { font-family: var(--display); font-size: 18px; }
}

/* ===== Đầu trang, đường dẫn ===== */
.ah-page-head { background: var(--surface); padding: 22px 0 clamp(32px, 4vw, 52px); }
.ah-page-head h1 { margin: 0; max-width: 22ch; }
.ah-breadcrumb { display: flex; gap: 8px; margin: 0 0 22px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.ah-breadcrumb > * { flex: none; }
.ah-breadcrumb > :last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ah-breadcrumb a { color: var(--muted); }
.ah-breadcrumb--flush { margin: 18px 0 0; }

/* ===== Trang chủ — chuyển động mềm, cao cấp (2026-11-07) ===== */
.ah-hero { position: relative; overflow: hidden; background: var(--surface); }
.ah-hero__grid { display: grid; gap: 32px; padding-block: 40px 56px; align-items: center; }
.ah-hero__text > * { animation: ah-rise 1.2s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
.ah-hero__eyebrow { display: flex; align-items: center; }
.ah-hero__line { display: inline-block; width: 44px; height: 1px; margin-right: 14px; background: currentColor; transform-origin: left; animation: ah-line 1.4s var(--ease) .35s both; }
.ah-hero__text h1, .ah-hero__title { font: 600 clamp(38px, 5.6vw, 72px)/1.03 var(--display); letter-spacing: -.015em; margin: 0 0 22px; max-width: 14ch; }
.ah-hero__text h1 em, .ah-hero__title em { font-style: italic; font-weight: 500; color: var(--accent); }
.ah-hero__lead { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 34em; }
.ah-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.ah-hero__note { font-size: 14px; color: var(--muted); }
.ah-hero__media { position: relative; margin: 0; height: clamp(320px, 48vw, 660px); overflow: hidden; border-radius: var(--r); animation: ah-unveil 1.7s var(--ease) .1s both; will-change: transform; }
.ah-hero__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 62% 48%; animation: ah-kenburns 2.8s var(--ease) both, ah-drift 28s ease-in-out 2.8s infinite alternate; }
.ah-hero__caption { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; margin: 0; font-size: 13px; color: var(--ink);
  background: rgba(247, 245, 241, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: var(--r); animation: ah-rise 1s var(--ease) 1.3s both; }
.ah-hero__scroll { display: none; }
@media (min-width: 900px) {
  .ah-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; padding-block: 64px 88px; }
  .ah-hero__scroll { position: absolute; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: 22px; display: inline-flex; align-items: center; gap: 14px;
    font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-decoration: none; animation: ah-rise 1s var(--ease) 1.6s both; }
  .ah-hero__scroll-line { position: relative; width: 64px; height: 1px; background: var(--line); overflow: hidden; }
  .ah-hero__scroll-line::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: ah-sweep 2.6s var(--ease) 2.2s infinite; }
}
@keyframes ah-rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes ah-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ah-unveil { from { clip-path: inset(10% 0 10% 0); opacity: .4; } to { clip-path: inset(0); opacity: 1; } }
@keyframes ah-kenburns { from { transform: scale(1.16); } to { transform: scale(1.02); } }
@keyframes ah-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.085) translate3d(-1.4%, -1%, 0); } }
@keyframes ah-sweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.ah-marquee { overflow: hidden; padding-block: 20px; background: var(--bg); border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ah-marquee__track { display: flex; width: max-content; animation: ah-marquee 80s linear infinite; }
.ah-marquee:hover .ah-marquee__track, .ah-marquee:focus-within .ah-marquee__track { animation-play-state: paused; }
.ah-marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ah-marquee li { display: flex; align-items: center; }
.ah-marquee li::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .55; }
.ah-marquee a { padding: 0 28px; font: italic 500 clamp(21px, 2.4vw, 30px)/1.25 var(--display); color: var(--ink); text-decoration: none; white-space: nowrap; transition: color .5s var(--ease); }
.ah-marquee a:hover { color: var(--accent); }
@keyframes ah-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ah-facts { background: var(--bg); border-bottom: 1px solid var(--line); }
.ah-facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px 32px; padding-block: 32px; }
.ah-facts p { margin: 0; display: flex; flex-direction: column; gap: 4px; }
/* Số liệu dùng Be Vietnam Pro: bản Fraunces tự lưu chỉ có chữ số kiểu cổ (không có lnum) — số trông nhỏ, lệch dòng. */
.ah-facts strong { font: 600 21px/1.35 var(--body); letter-spacing: -.01em; }
.ah-facts strong [data-ah-count] { font-variant-numeric: tabular-nums; }
.ah-facts p > span:last-child { color: var(--muted); font-size: 15px; } /* chỉ dòng mô tả — không áp vào con số trong <strong> */

/* Các phần nội dung của trang chủ (block) */
.ah-page--home .ah-page-body > .blk-section > .blk-section__inner > .blk-heading { font-size: clamp(32px, 4.2vw, 54px); max-width: 18ch; }
.ah-page--home #gioi-thieu .blk-section__inner { align-items: center; gap: 40px 72px; }
.ah-page--home #gioi-thieu .blk-image img { aspect-ratio: 4 / 5; object-fit: cover; }
.ah-page--home #gioi-thieu .blk-rich-text p:last-child em { font-family: var(--display); font-size: 21px; color: var(--accent-dark); }
.ah-page--home #dich-vu .ah-media img { aspect-ratio: 4 / 5; }
.ah-page--home #dich-vu .blk-card h3 { font-size: clamp(23px, 2.2vw, 28px); }
.ah-page--home #cam-ket .blk-cols { gap: 20px; }
.ah-page--home #cam-ket .blk-card { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--band-line); border-radius: var(--r); transition: border-color .8s var(--ease), background-color .8s var(--ease); }
.ah-page--home #cam-ket .blk-card:hover { border-color: rgba(244, 241, 236, .38); background: rgba(244, 241, 236, .035); }
.ah-page--home #cam-ket .blk-card p { line-height: 1.7; }
.ah-page--home #du-an .blk-post-list { margin-top: 44px; }
.ah-page--home #du-an .blk-post-list > h3 { font-size: 22px; margin-bottom: 18px; }
.ah-page--home #lien-he .blk-cta { padding: clamp(36px, 6vw, 80px); }
.ah-page--home #lien-he .blk-cta h2 { font-size: clamp(32px, 4.4vw, 56px); }

/* ===== Nội dung dạng block (ADR-0027) ===== */
.ah-page-body { padding-bottom: var(--space); }
.ah-page-body:has(> .blk-section:last-child) { padding-bottom: 0; }
.ah-page-body > :not(.blk-section):not(.ah-estimator):not(.ah-quote) { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.ah-page-body > .blk:first-child:not(.blk-section) { margin-top: 32px; }
.blk { margin-bottom: 28px; }
.blk:last-child { margin-bottom: 0; }
.blk-section { padding-block: var(--space); margin: 0; border-top: 1px solid var(--line); }
.ah-page-body > .blk-section:first-child { border-top: 0; }
.blk-section__inner { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.blk-section .blk-section { padding-block: 0; border-top: 0; margin-bottom: 28px; }
.blk-section .blk-section .blk-section__inner { padding-inline: 0; max-width: none; }
/* Phần chỉ có một tiêu đề (nội dung WordPress): dính vào phần ngay sau, không thành dải trống giữa hai đường kẻ */
.blk-section:has(> .blk-section__inner > .blk-heading:only-child) { padding-bottom: 0; }
.blk-section:has(> .blk-section__inner > .blk-heading:only-child) + .blk-section { border-top: 0; padding-top: clamp(20px, 2.4vw, 32px); }
.blk-section--surface { background: var(--surface); border-top-color: transparent; }
.blk-section--band { background: var(--band); color: var(--on-band); border-top-color: transparent; }
.blk-section--band h1, .blk-section--band h2, .blk-section--band h3, .blk-section--band h4 { color: var(--on-band); }
.blk-section--band a { color: var(--on-band); }
.blk-cols { display: grid; gap: 28px 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.blk-cols > * { margin-bottom: 0; }
@media (min-width: 720px) {
  .blk-cols--2, .blk-cols--3, .blk-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .blk-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blk-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.blk-center { text-align: center; }
.blk-heading { max-width: 30ch; }
.blk-heading.blk-center { margin-inline: auto; }
h1.blk-heading { max-width: 22ch; }
.blk-heading a { color: inherit; text-decoration: none; }
.blk-heading a:hover { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1px; }
.blk-group > .blk + .blk { margin-top: 18px; }

/* Chữ dài: đoạn văn, danh sách, bảng, ảnh trong bài */
.blk-rich-text, .blk-html, .ah-prose { max-width: 76ch; }
.blk-cols .blk-rich-text, .blk-cols .blk-html { max-width: none; }
.blk-rich-text > :last-child, .blk-html > :last-child, .ah-prose > :last-child { margin-bottom: 0; }
.blk-rich-text h2, .blk-rich-text h3, .blk-html h2, .blk-html h3, .ah-prose h2, .ah-prose h3 { margin-top: 1.4em; }
.blk-rich-text h4, .blk-html h4, .ah-prose h4 { margin-top: 1.2em; }
.blk-rich-text ul, .blk-rich-text ol, .blk-html ul, .ah-prose ul, .ah-prose ol { padding-left: 1.2em; }
.blk-rich-text li, .blk-html li, .ah-prose li { margin-bottom: .35em; }
.blk-rich-text li::marker, .ah-prose li::marker { color: var(--accent); }
.blk-rich-text img, .blk-html img, .ah-prose img { border-radius: var(--r); margin-block: 8px; }
.blk-rich-text figure, .blk-html figure, .ah-prose figure { margin: 24px 0; }
figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.blk-rich-text table, .blk-html table, .ah-prose table { display: block; overflow-x: auto; margin: 20px 0; font-size: 15px; }
.blk-rich-text th, .blk-rich-text td, .blk-html th, .blk-html td, .ah-prose th, .ah-prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.blk-rich-text th, .blk-html th, .ah-prose th { background: var(--surface); font-weight: 600; }
:is(.blk-rich-text, .blk-html, .ah-prose) tr:has(> :nth-child(4)) > * { min-width: 7.5em; }
.blk-rich-text blockquote, .ah-prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font: italic 500 20px/1.5 var(--display); }
.blk-rich-text iframe, .blk-html iframe, .ah-prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
@media (max-width: 719.98px) {
  :is(.blk-rich-text, .blk-html, .ah-prose) [style*="justify"] { text-align: left !important; }
}

figure.blk { margin-inline: 0; margin-top: 0; } /* bỏ lề 40px mặc định của trình duyệt */
.blk-image img { width: 100%; border-radius: var(--r); }
.blk-gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); } /* auto-fit: ít ảnh vẫn trải hết chiều ngang */
.blk-gallery figure { margin: 0; }
.blk-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }

.blk-media-text { display: grid; gap: 24px 56px; align-items: center; }
.blk-media-text__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); }
.blk-media-text__body > :last-child { margin-bottom: 0; }
.blk-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.blk-buttons.blk-center { justify-content: center; }
@media (min-width: 900px) {
  .blk-media-text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .blk-media-text--right .blk-media-text__media { order: 2; }
}

/* Thẻ: ngành hàng, dịch vụ, dự án — cả thẻ bấm được qua link tiêu đề.
   Số cột theo bề rộng thật của khối (container query) — khối đặt trong cột hẹp không bị ép 4 thẻ một hàng. */
.blk-cards, .blk-post-list { container-type: inline-size; }
.blk-cards > .blk-cols, .blk-post-list > .blk-cols { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@container (min-width: 520px) {
  .blk-cards > .blk-cols:not(.blk-cols--1), .blk-post-list > .blk-cols:not(.blk-cols--1) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Cùng độ ưu tiên với quy tắc 2 cột ở trên (0,3,0) và đứng sau nó — trước đây :is() làm độ ưu tiên thấp hơn nên mọi
   lưới bị khoá ở 2 cột trên máy tính. */
@container (min-width: 820px) {
  .blk-cards > .blk-cols:is(.blk-cols--3, .blk-cols--4), .blk-post-list > .blk-cols:is(.blk-cols--3, .blk-cols--4) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (min-width: 1040px) {
  .blk-cards > .blk-cols.blk-cols--4, .blk-post-list > .blk-cols.blk-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 719.98px) {
  @container (max-width: 519.98px) {
    /* Lưới nhiều thẻ (≥ 5, vd. các loại shop) → 2 cột trên điện thoại cho gọn */
    .blk-cards > .blk-cols.blk-cols--4:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
    .blk-cards > .blk-cols.blk-cols--4:has(> :nth-child(5)) .blk-card :is(h2, h3, h4) { font-size: 17px; }
    .blk-cards > .blk-cols.blk-cols--4:has(> :nth-child(5)) .blk-card p { font-size: 13px; }
    .blk-post-list > .blk-cols:has(> :nth-child(2)) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 16px;
      margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; overflow-x: auto; overscroll-behavior-x: contain;
      scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
    .blk-post-list > .blk-cols > * { scroll-snap-align: start; }
  }
}
.blk-cards > h2, .blk-cards > h3 { margin-bottom: 24px; }
.blk-card { position: relative; display: flex; flex-direction: column; gap: 8px; }
.blk-card img, .ah-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.ah-media { display: block; overflow: hidden; border-radius: var(--r); margin-bottom: 6px; }
.ah-media img { margin: 0; transition: transform 1.6s var(--ease); }
.blk-card:hover .ah-media img, .ah-tile:hover .ah-media img { transform: scale(1.05); }
.blk-card h2, .blk-card h3, .blk-card h4, .blk-card h5 { margin: 0; font-size: clamp(19px, 1.8vw, 22px); }
.blk-card h4, .blk-card h5 { font-family: var(--display); font-weight: 600; }
.blk-card :is(h2, h3, h4, h5, h6) a { color: var(--ink); text-decoration: none; }
.blk-card :is(h2, h3, h4, h5, h6) a::after { content: ''; position: absolute; inset: 0; }
.blk-card:hover :is(h2, h3, h4, h5, h6) a { color: var(--accent-dark); }
.blk-card p { margin: 0; color: var(--muted); font-size: 15px; }
.blk-card .blk-more { font-weight: 600; color: var(--link); }
.blk-card time { font-size: 14px; color: var(--muted); }
.blk-section--band .blk-card p, .blk-section--band .blk-card time { color: var(--band-muted); }
.blk-cards.blk-cards--stats > .blk-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (min-width: 720px) { .blk-cards.blk-cards--stats > .blk-cols { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.blk-cards--stats .blk-card { gap: 6px; }
.blk-cards--stats .blk-card :is(h2, h3, h4, h5) { font: 600 clamp(38px, 4.6vw, 58px)/1 var(--body); letter-spacing: -.03em; }
.blk-cards--stats .blk-card p { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.blk-section--band .blk-card :is(h2, h3, h4, h5, h6) a { color: var(--on-band); }

/* Bảng giá */
.blk-pricing > h2 { margin-bottom: 24px; }
.blk-plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); height: 100%; }
.blk-plan h3 { margin: 0; font-size: 23px; }
.blk-plan__ribbon { align-self: flex-start; padding: 4px 10px; background: var(--band); color: var(--on-band); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--r); }
.blk-plan__price { margin: 0; font: 600 26px/1.2 var(--display); color: var(--accent-dark); }
.blk-plan__price span { font: 500 14px var(--body); color: var(--muted); }
.blk-plan p { margin: 0; color: var(--muted); font-size: 15px; }
.blk-plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.blk-plan li { position: relative; padding-left: 24px; }
.blk-plan li::before { content: ''; position: absolute; left: 3px; top: .45em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.blk-plan .blk-btn { margin-top: auto; align-self: flex-start; }

/* Kêu gọi hành động */
.blk-cta { padding: clamp(28px, 4vw, 48px); background: var(--band); color: var(--on-band); border-radius: var(--r); }
.blk-cta :is(h2, h3, h4) { color: var(--on-band); margin-bottom: 10px; }
.blk-cta p { color: var(--band-muted); max-width: 60ch; }
.blk-cta .blk-buttons { margin: 18px 0 0; }
.blk-cta .blk-btn--primary { background: var(--on-band); color: var(--band); }
.blk-cta .blk-btn--primary:hover { background: #fff; color: var(--band); }
.blk-cta .blk-btn--secondary { border-color: var(--on-band); color: var(--on-band); }
.blk-cta .blk-btn--link { color: var(--on-band); }
@media (max-width: 599.98px) {
  .ah-hero__actions .ah-btn, .blk-cta .blk-btn:not(.blk-btn--link) { flex: 1 1 100%; }
  .blk-cta .blk-btn--link { margin-inline: auto; }
}

/* Danh sách bài */
.blk-post-list > h2, .blk-post-list > h3 { margin-bottom: 22px; }
.blk-post-list .blk-card h3, .blk-post-list .blk-card h4 { font-size: 19px; line-height: 1.3; }

/* ===== Đẳng cấp hơn (2026-11-12, trang dịch vụ): tiêu đề phần, thẻ ảnh lớp phủ, số liệu, ảnh + chữ, thẻ dự án ===== */

/* Tiêu đề mở đầu mỗi phần (và tiêu đề của khối ảnh + chữ): vạch gỗ sồi mảnh phía trên */
.ah-page-body > .blk-section:not(:first-child) > .blk-section__inner > .blk-heading:first-child::before,
.ah-page-body > .blk-section:not(:first-child) > .blk-section__inner > .blk-group:first-child > .blk-heading:first-child::before,
.blk-media-text__body > :is(h2, h3):first-child::before {
  content: ''; display: block; width: 44px; height: 2px; margin-bottom: 22px; background: var(--accent);
}
.blk-heading.blk-center::before { margin-inline: auto !important; }

/* Thẻ ảnh lớp phủ: lưới ≥ 4 thẻ 4 cột có ảnh (các loại shop, dịch vụ) — chữ nằm trên ảnh, ảnh phóng nhẹ khi rê chuột */
.blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media) {
  isolation: isolate; overflow: hidden; justify-content: flex-end; gap: 6px; aspect-ratio: 3 / 4; padding: 22px 22px 20px;
  border-radius: 6px; background: var(--band); box-shadow: 0 1px 0 rgba(36, 32, 28, .04);
  transition: transform .9s var(--ease), box-shadow .9s var(--ease);
}
.blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media)::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0) 38%, rgba(20, 17, 14, .58) 66%, rgba(20, 17, 14, .9) 100%);
  transition: opacity .9s var(--ease);
}
.blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media) > .ah-media { position: absolute; inset: 0; z-index: -2; margin: 0; border-radius: 0; }
.blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media) > .ah-media img { height: 100%; aspect-ratio: auto; border-radius: 0; transition: transform 1.8s var(--ease); }
.blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media) :is(h2, h3, h4) { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.2; }
.blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media) :is(h2, h3, h4) a { color: #fff; }
.blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media) p { color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.5; }
.blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media) .blk-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  background: none;
}
.blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media) .blk-more::after { content: '→'; transition: transform .7s var(--ease); }
.blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media):hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(36, 32, 28, .55); }
.blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media):hover .ah-media img { transform: scale(1.07); }
.blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media):hover .blk-more::after { transform: translateX(5px); }
.blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media):hover :is(h2, h3, h4) a { color: #fff; }

/* Số liệu: đường ngăn mảnh giữa các ô, dấu +/% màu gỗ */
.blk-cards--stats .blk-card { padding-left: 26px; border-left: 1px solid var(--band-line); }
.blk-cards--stats .blk-card:first-child { padding-left: 0; border-left: 0; }
.blk-cards--stats .ah-stat-suffix { color: var(--accent); margin-left: 2px; }
.blk-section--band .blk-cards--stats .ah-stat-suffix { color: #C99A6B; }

/* Ảnh + chữ: mảng nền lệch sau ảnh (kiểu tạp chí), bo góc mềm */
.blk-media-text__media { position: relative; isolation: isolate; }
.blk-media-text__media img { border-radius: 6px; }
@media (min-width: 900px) {
  .blk-media-text { gap: 32px 80px; }
  .blk-media-text__media::before { content: ''; position: absolute; inset: 28px -28px -28px 28px; z-index: -1; border-radius: 6px; background: var(--surface); }
  .blk-media-text--right .blk-media-text__media::before { inset: 28px 28px -28px -28px; }
  .blk-section--surface .blk-media-text__media::before { background: var(--line); }
  .blk-media-text__body h2 { font-size: clamp(30px, 3vw, 42px); }
}

/* Thẻ dự án: tiêu đề tối đa 3 dòng cho đều hàng, rê chuột nâng nhẹ */
.blk-post-list .blk-card :is(h3, h4) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blk-post-list .blk-card { transition: transform .9s var(--ease); }
.blk-post-list .blk-card:hover { transform: translateY(-3px); }
.blk-post-list > p:last-child { margin-top: 26px; }

@media (max-width: 719.98px) {
  /* Thẻ ảnh lớp phủ trên điện thoại: 2 cột ảnh dọc, chữ gọn */
  .blk-cards > .blk-cols--4:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media) { aspect-ratio: 4 / 5.4; padding: 14px 14px 13px; border-radius: 5px; gap: 4px; }
  .blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media) :is(h2, h3, h4) { font-size: 16px !important; line-height: 1.22; }
  .blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media) > p:not(:has(.blk-more)) { display: none; }
  .blk-cards > .blk-cols--4:has(> :nth-child(4)) > .blk-card:has(> .ah-media) .blk-more { font-size: 11px; margin-top: 2px; }
  /* Số liệu 2 × 2 */
  .blk-cards--stats .blk-card { padding-left: 0; border-left: 0; }
  /* Ảnh + chữ: nút rộng hết hàng, ảnh đầu khối */
  .blk-media-text .blk-buttons .blk-btn:not(.blk-btn--link) { flex: 1 1 100%; }
  .blk-media-text__body h2 { font-size: 27px; }
}

/* Video: ảnh xem trước + nút phát, chỉ tải YouTube khi bấm */
.blk-video { margin-inline: 0; }
.blk-video a { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--band); }
.blk-video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .85; transition: opacity .2s; }
.blk-video a:hover img { opacity: 1; }
.blk-video a::after { content: ''; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: var(--on-band) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5l12 7-12 7z' fill='%2324201C'/%3E%3C/svg%3E") 56% 50% / 30px no-repeat; }
.ah-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: #000; }
/* Nhúng (form Google, bản đồ, tài liệu) */
.blk-embed { margin-inline: 0; }
.blk-embed iframe { display: block; width: 100%; max-width: 760px; margin-inline: auto; border: 0; border-radius: var(--r); background: var(--paper); }

/* Câu hỏi thường gặp */
.blk-faq details { border-top: 1px solid var(--line); }
.blk-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.blk-faq summary { position: relative; padding: 18px 40px 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.blk-faq summary::-webkit-details-marker { display: none; }
.blk-faq summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font: 400 28px/1 var(--body); color: var(--accent); }
.blk-faq details[open] summary::after { content: '–'; }
.blk-faq details > div { padding: 0 0 18px; color: var(--muted); }

/* ===== Bài viết ===== */
.ah-post { padding: 20px 0 var(--space); }
.ah-post__head { max-width: 900px; padding: 18px 0 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ah-post__head h1 { margin: 0; font-size: clamp(32px, 4.4vw, 54px); }
.ah-post__meta { margin: 0; color: var(--muted); font-size: 15px; }
.ah-post__cover { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--r); }
.ah-post__layout { display: grid; gap: 48px; padding-top: 48px; }
.ah-post__body { font-size: 18px; line-height: 1.8; min-width: 0; }
.ah-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.ah-card-dark { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--band); color: var(--on-band); border-radius: var(--r); }
.ah-card-dark p { margin: 0; color: var(--band-muted); font-size: 15px; }
.ah-card-dark .ah-card-dark__title { font: 600 23px/1.2 var(--display); color: var(--on-band); }
.ah-aside-list { display: flex; flex-direction: column; margin-top: 28px; }
.ah-aside-list__title { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ah-aside-list a { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
@media (min-width: 1024px) {
  .ah-post__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; }
  .ah-post__aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

/* ===== Chuyên mục ===== */
.ah-archive { padding-bottom: var(--space); }
.ah-archive .ah-page-head { margin-bottom: 44px; }
.ah-grid { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.ah-tile { position: relative; display: flex; flex-direction: column; gap: 10px; }
.ah-tile .ah-media { margin-bottom: 0; }
.ah-tile time { font-size: 14px; color: var(--muted); }
.ah-tile h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.ah-tile h2 a { color: var(--ink); text-decoration: none; }
.ah-tile h2 a::after { content: ''; position: absolute; inset: 0; }
.ah-tile:hover h2 a { color: var(--accent-dark); }
.ah-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; }
.ah-pagination a, .ah-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 500; }
.ah-pagination [aria-current] { background: var(--ink); border-color: var(--ink); color: var(--on-band); }
.ah-archive__about { margin-top: var(--space); padding-top: 40px; border-top: 1px solid var(--line); }
.ah-archive__about :is(h1, h2) { font-size: clamp(24px, 2.6vw, 32px); }
.ah-archive__about h3 { font-size: clamp(20px, 2vw, 24px); }

/* ===== Dự toán (block asahome_estimator) ===== */
.ah-estimator { width: 100%; max-width: var(--max); margin: var(--space) auto; padding-inline: var(--gutter); }
.ah-estimator__head { max-width: 720px; margin-bottom: 28px; }
.ah-estimator__meta { font-size: 14px; color: var(--muted); }
.ah-estimator__form { padding: clamp(20px, 3vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.ah-estimator fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.ah-estimator legend { margin-bottom: 14px; font: 600 21px/1.2 var(--display); }
.ah-fields { display: grid; gap: 16px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.ah-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.ah-field abbr { color: var(--error); text-decoration: none; }
.ah-field input, .ah-field select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  color: var(--ink); font: 400 16px var(--body); }
.ah-field input:focus, .ah-field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.ah-field [aria-invalid="true"] { border-color: var(--error); }
.ah-field__error { color: var(--error); font-style: normal; font-weight: 500; font-size: 13px; }
.ah-estimator__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.ah-estimator__submit span { font-size: 14px; color: var(--muted); }

/* ===== Báo giá (block asahome_quote) ===== */
.ah-quote { width: 100%; max-width: 980px; margin: 32px auto var(--space); padding-inline: var(--gutter); }
.ah-quote__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 20px; }
.ah-quote__sheet { padding: clamp(20px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.ah-quote__header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.ah-quote__brand p { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.ah-quote__title { text-align: right; }
.ah-quote__title h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); }
.ah-quote__customer { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px 20px; margin: 24px 0; }
.ah-quote__customer div { margin: 0; }
.ah-quote__customer dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ah-quote__customer dd { margin: 2px 0 0; font-weight: 600; }
.ah-quote h3 { font-size: 21px; margin-top: 8px; }
.ah-table-wrap { overflow-x: auto; }
.ah-quote__table { font-size: 15px; min-width: 560px; }
.ah-quote__table th, .ah-quote__table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.ah-quote__table th { background: var(--surface); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.ah-quote__table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ah-quote__summary { max-width: 440px; margin: 20px 0 0 auto; }
.ah-quote__summary p { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 20px; margin: 0; padding: 8px 0;
  border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ah-quote__summary strong { margin-left: auto; white-space: nowrap; }
.ah-quote__total { font-size: 19px; border-bottom: 0 !important; color: var(--accent-dark); }
.ah-quote__note { margin-top: 24px; }
.ah-quote__empty { margin: 20px 0; padding: 14px 16px; background: var(--chip); color: var(--chip-ink); border-radius: var(--r); }

/* ===== 404 ===== */
.ah-404 { padding: var(--space) 0; background: var(--surface); }
.ah-404__inner { max-width: 760px; }
.ah-404__links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Chân trang + thanh liên hệ điện thoại ===== */
.ah-footer { background: var(--band); color: var(--on-band); font-size: 15px; }
.ah-footer__grid { display: grid; gap: 36px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); padding-block: 64px 40px; }
@media (max-width: 719.98px) {
  .ah-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-block: 48px 32px; }
  .ah-footer__grid > :first-child, .ah-footer__grid > :last-child { grid-column: 1 / -1; }
}
.ah-footer__brand p { margin: 16px 0 0; color: var(--band-muted); }
.ah-footer__col { display: flex; flex-direction: column; gap: 10px; }
.ah-footer__title { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--band-muted); }
.ah-footer a { color: var(--on-band); text-decoration: none; }
.ah-footer a:hover { text-decoration: underline; color: #fff; }
.ah-footer__muted { color: var(--band-muted); }
.ah-footer__bottom { border-top: 1px solid var(--band-line); font-size: 13px; color: var(--band-muted); }
.ah-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-block: 18px; }
.ah-footer__links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ah-footer__links a { color: var(--band-muted); }
.ah-mbar { display: none; }
@media (max-width: 1023.98px) {
  .ah-footer { padding-bottom: 56px; }
  .ah-mbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(36, 32, 28, .08); }
  .ah-mbar a { display: flex; align-items: center; justify-content: center; min-height: 56px; color: var(--ink); font-weight: 600; text-decoration: none; }
  .ah-mbar a + a { border-left: 1px solid var(--line); }
  .ah-mbar .ah-mbar__call { background: var(--accent); color: var(--on-accent); }
  body.ah-nav-open .ah-mbar { display: none; }
}

/* ===== Chuyển động: hiện dần khi cuộn tới, header kính mờ, nút ===== */
html.js .ah-reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1.1s var(--ease-soft), transform 1.4s var(--ease); transition-delay: var(--d, 0ms); }
html.js .ah-reveal.is-in { opacity: 1; transform: none; }
html.js .ah-reveal .ah-media, html.js .ah-reveal.blk-image { clip-path: inset(14% 0 0 0); transition: clip-path 1.7s var(--ease); transition-delay: var(--d, 0ms); }
html.js .ah-reveal.is-in .ah-media, html.js .ah-reveal.blk-image.is-in { clip-path: inset(0); }
.ah-header { transition: background-color .6s var(--ease), box-shadow .6s var(--ease); }
.ah-header.is-scrolled { background: rgba(239, 237, 233, .82); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 12px 32px rgba(36, 32, 28, .07); }
.ah-btn, .blk-btn { transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); }
.ah-btn:active, .blk-btn:active { transform: translateY(1px); }
.ah-arrow { transition: transform .6s var(--ease); }
.ah-btn:hover .ah-arrow { transform: translateX(4px); }
.blk-card .blk-more, .blk-btn--link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; text-decoration: none; transition: background-size .7s var(--ease); }
.blk-card:hover .blk-more, .blk-btn--link:hover { background-size: 100% 1px; }
.blk-btn--link { min-height: 0; padding-block: 2px; background-size: 100% 1px; align-self: center; }
.ah-menu__panel { animation: ah-fade .35s var(--ease); }
@keyframes ah-fade { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .ah-reveal, html.js .ah-reveal .ah-media, html.js .ah-reveal.blk-image { opacity: 1; transform: none; clip-path: none; transition: none; }
  .ah-hero__text > *, .ah-hero__media, .ah-hero__media img, .ah-hero__caption, .ah-hero__line, .ah-hero__scroll, .ah-menu__panel { animation: none !important; }
  .ah-marquee { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .ah-marquee::-webkit-scrollbar { display: none; }
  .ah-marquee__track { animation: none; }
  .ah-marquee ul[aria-hidden="true"] { display: none; }
  .ah-media img { transition: none; }
}

/* ===== In / PDF dự phòng ===== */
@media print {
  .ah-topbar, .ah-header, .ah-footer, .ah-mbar, .ah-quote__toolbar, .ah-skip, .ah-breadcrumb { display: none !important; }
  body { background: #fff; padding: 0; font-size: 12pt; }
  .ah-quote { margin: 0; padding: 0; max-width: none; }
  .ah-quote__sheet { border: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
