/* ---------- Tokens: trang luôn sáng, không đổi theo chế độ tối của máy.
   Nền trắng, chữ màu than chì, màu gỗ sồi của logo làm màu thương hiệu. */
:root {
  --paper: #FFFFFF;
  --sheet: #F7F5F1;
  --ink: #1F2124;
  --ink-2: #4A4E55;
  --ink-3: #6B7078;
  --rule: #E8E4DD;
  --rule-2: #CEC8BE;
  --brand: #B08457;
  --brand-ink: #8A5A2E;
  --btn: #94643A;
  --btn-h: #7D5230;
  --on-btn: #FFFFFF;
  --tint: #F6ECDF;
  --inv-bg: #F4E7D6;
  --inv-ink: #1F2124;
  --inv-2: #5B4F44;
  --inv-rule: #D8C3A6;
  --zalo: #0068FF;
  --draw-filter: none;
  --img-filter: none;
  --font: 'Archivo', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --wrap: 1360px;
  --pad: clamp(20px, 5vw, 64px);
  --gap: clamp(16px, 2.2vw, 32px);
  --header-h: 64px;
  --ease: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

/* ---------- Base */
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; font-weight: 400; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink); text-wrap: balance; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; border-radius: 3px; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Type scale (major third on a 17px body; display sizes step up for headings) */
.t-display { font-size: clamp(2.55rem, 1.2rem + 5.4vw, 6.3rem); line-height: 1.06; letter-spacing: -.028em; font-stretch: 116%; font-weight: 500; }
.t-h1 { font-size: clamp(2.2rem, 1.35rem + 3.4vw, 4.4rem); line-height: 1.08; letter-spacing: -.024em; font-stretch: 114%; font-weight: 500; }
.t-h2 { font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.75rem); line-height: 1.14; letter-spacing: -.018em; font-stretch: 110%; font-weight: 500; }
.t-h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.008em; font-stretch: 104%; font-weight: 600; }
.t-lead { font-size: clamp(1.12rem, 1.02rem + .35vw, 1.32rem); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.t-body { color: var(--ink-2); max-width: 36em; }
.t-small { font-size: .9375rem; line-height: 1.55; color: var(--ink-2); }
.t-meta { font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
.t-num { font-variant-numeric: tabular-nums lining-nums; }
.stack > * + * { margin-top: 1em; }

/* ---------- Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.25em;
  border-radius: 3px; border: 1px solid var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; line-height: 1.2;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap;
}
.btn--solid { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.btn--solid:hover { background: var(--btn-h); border-color: var(--btn-h); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--sheet); }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { font-weight: 500; color: var(--brand-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-ink) 35%, transparent); text-underline-offset: .3em; transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: currentColor; }

/* ---------- Header */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; min-height: calc(var(--header-h) + 1px); background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; } /* min-height: giữ chỗ cho thanh đầu trang trước khi app.js vẽ xong, để nội dung không bị đẩy xuống */
.hdr.is-scrolled { border-bottom-color: var(--rule); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand__txt { display: grid; gap: 5px; }
.brand__sub { font-size: .625rem; line-height: 1; letter-spacing: .42em; font-weight: 500; color: var(--ink-2); }
.brand__name { font-weight: 650; font-stretch: 125%; letter-spacing: .06em; font-size: 1.02rem; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 10px 12px; text-decoration: none; font-size: .9688rem; color: var(--ink-2); border-radius: 3px; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--brand); }
.hdr__cta { margin-left: 8px; }
.menu-btn { display: none; width: 48px; height: 48px; margin-right: -12px; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 3px; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 28px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 35; background: var(--paper); padding: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 8px) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex; flex-direction: column; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.menu-open .mnav { opacity: 1; visibility: visible; transition: opacity .2s; }
.mnav__list { border-top: 1px solid var(--rule); }
.mnav__list a { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); font-stretch: 112%; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.mnav__list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.mnav__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; }
.mnav__foot .btn { width: 100%; }
.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
  .nav, .hdr__cta { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Page scaffolding */
main { display: block; outline: none; }
.page { padding-bottom: clamp(56px, 8vw, 120px); }
.block { margin-top: clamp(72px, 10vw, 160px); }
.block--tight { margin-top: clamp(48px, 6vw, 96px); }
.block__head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) {
  .block__head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: var(--gap); }
  .block__head--top { align-items: start; }
}
.rule-top { border-top: 1px solid var(--rule); padding-top: clamp(28px, 4vw, 48px); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--rule-2); }
.phead { padding-top: clamp(28px, 5vw, 72px); }
.phead__grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .phead__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: var(--gap); } }

/* ---------- Figures */
.pic { margin: 0; position: relative; overflow: hidden; background: var(--sheet); aspect-ratio: var(--r, 4 / 3); border-radius: 2px; }
.pic img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.pic--draw img { filter: var(--draw-filter); }
.cap { margin-top: 12px; font-size: .9375rem; color: var(--ink-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }

/* ---------- Drawing / finished comparison */
.cmp { --pos: 50%; position: relative; margin: 0; aspect-ratio: var(--r, 16 / 9); overflow: hidden; border-radius: 2px; background: var(--paper);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; outline: 1px solid var(--rule); outline-offset: -1px; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cmp__draw { filter: var(--draw-filter); }
.cmp__top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.cmp__top img { filter: var(--img-filter); }
.cmp__bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1.5px; margin-left: -.75px; background: var(--ink); pointer-events: none; }
.cmp__knob { position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink); display: grid; place-items: center; cursor: ew-resize; }
.cmp__knob svg { width: 22px; height: 22px; }
.cmp__tag { position: absolute; top: 14px; padding: 5px 10px; font-size: .8125rem; font-weight: 500; line-height: 1.2; border-radius: 2px; pointer-events: none;
  background: color-mix(in srgb, var(--paper) 86%, transparent); color: var(--ink); transition: opacity .2s; }
.cmp__tag--l { left: 14px; }
.cmp__tag--r { right: 14px; }
.cmp.is-sweep .cmp__top { transition: clip-path 1.7s var(--ease); }
.cmp.is-sweep .cmp__bar, .cmp.is-sweep .cmp__knob { transition: left 1.7s var(--ease); }
@media (max-width: 640px) { .cmp__knob { width: 42px; height: 42px; margin: -21px 0 0 -21px; } .cmp__tag { top: 10px; } .cmp__tag--l { left: 10px; } .cmp__tag--r { right: 10px; } }

/* ---------- Home: hero */
.hero { padding-top: clamp(24px, 4.5vw, 64px); }
.hero__grid { display: grid; gap: 24px; }
.hero__side { display: grid; gap: 24px; align-content: end; }
@media (min-width: 1120px) {
  .hero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--gap); align-items: end; }
}
.hero__media { margin-top: clamp(28px, 4vw, 56px); }
.cmp--hero { --r: 2 / 1; }
.cmp--wide { --r: 16 / 9; }
@media (max-width: 760px) { .cmp--hero, .cmp--wide { --r: 4 / 3; } }

.statement { font-size: clamp(1.55rem, 1.1rem + 2vw, 2.85rem); line-height: 1.2; letter-spacing: -.018em; font-stretch: 108%; font-weight: 400; max-width: 24em; color: var(--ink); text-wrap: pretty; }
.statement b { font-weight: 600; }

/* services list (rows, not cards) */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; gap: 10px; padding: 24px 0 26px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; position: relative; }
@media (min-width: 900px) {
  .row { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); column-gap: var(--gap); padding: 30px 0 32px; align-items: start; }
}
a.row { transition: background-color .15s; }
a.row:hover { background: linear-gradient(to right, transparent, var(--sheet) 12%, var(--sheet) 88%, transparent); }
a.row:hover .row__go { text-decoration-color: currentColor; }
.row__title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-stretch: 110%; font-weight: 500; letter-spacing: -.012em; line-height: 1.2; }
.row__fit { font-size: .9375rem; color: var(--ink-3); }
.row__fit strong { display: block; font-weight: 500; color: var(--ink-2); margin-bottom: 2px; }
.row__go { display: inline-block; margin-top: 10px; font-weight: 500; font-size: .9375rem; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: .3em; }

/* project tiles */
.tile { display: block; text-decoration: none; color: inherit; }
.tile .pic img { transition: transform .5s var(--ease); }
.tile:hover .pic img { transform: scale(1.025); }
.tile__title { margin-top: 14px; font-size: 1.15rem; font-weight: 600; font-stretch: 104%; line-height: 1.3; }
.tile:hover .tile__title { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.tile__meta { margin-top: 4px; font-size: .9375rem; color: var(--ink-3); }
.feature { display: grid; gap: clamp(32px, 4vw, 40px) var(--gap); }
.feature__side { display: grid; gap: 32px; align-content: start; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature__side { gap: 40px; }
  /* ảnh của dự án lớn kéo cao bằng cả cột bên phải, không để khoảng trống phía dưới */
  .feature > .tile { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; }
  .feature > .tile .pic { aspect-ratio: auto; height: 100%; min-height: 420px; }
}

/* workshop band */
.band { display: grid; gap: 32px var(--gap); align-items: center; }
@media (min-width: 900px) { .band { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .band--flip .band__media { order: 2; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.facts > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: .875rem; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-size: 1.35rem; font-stretch: 108%; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.facts--lg dd { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }

/* why grid */
.why { display: grid; gap: 32px var(--gap); }
@media (min-width: 720px) { .why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .why { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.why h3 { margin-bottom: 10px; }
.why p { color: var(--ink-2); font-size: 1rem; }

/* inverse band */

/* ---------- About */
.split { display: grid; gap: 32px var(--gap); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.pair { display: grid; gap: 32px var(--gap); }
@media (min-width: 800px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair__label { font-size: .9375rem; color: var(--ink-3); margin-bottom: 10px; }
.pair__text { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem); line-height: 1.3; font-stretch: 106%; letter-spacing: -.012em; }
.list4 { display: grid; gap: 28px var(--gap); }
@media (min-width: 720px) { .list4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .list4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.list4 h3 { margin-bottom: 8px; }
.list4 p { color: var(--ink-2); font-size: 1rem; }

.timeline { border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
@media (min-width: 900px) { .timeline li { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--gap); padding: 22px 0; } }
.timeline__y { font-size: 1.5rem; font-stretch: 112%; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.timeline__t { color: var(--ink-2); max-width: 40em; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; border-top: 1px solid var(--rule); }
.table-wrap::-webkit-scrollbar { height: 6px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 3px; }
.table { width: 100%; border-collapse: collapse; font-size: .9688rem; min-width: 640px; }
.table th, .table td { text-align: left; padding: 15px 18px 15px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table thead th { font-weight: 600; color: var(--ink); font-size: .9375rem; }
.table tbody th { font-weight: 500; color: var(--ink); width: 26%; }
.table td { color: var(--ink-2); }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table--team td:nth-child(2), .table--team th:nth-child(2) { width: 9rem; }

/* ---------- Services */
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.jump a { text-decoration: none; padding: 9px 14px; border: 1px solid var(--rule-2); border-radius: 3px; font-size: .9375rem; transition: background-color .15s, border-color .15s; }
.jump a:hover { background: var(--sheet); border-color: var(--ink-3); }
.svc { display: grid; gap: 32px var(--gap); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }
@media (min-width: 960px) {
  .svc { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; }
  .svc--flip .svc__media { order: -1; }
  .svc__media { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 24px); }
}
.svc__text > * + * { margin-top: 18px; }
.svc__cols { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 640px) { .svc__cols { grid-template-columns: 1fr 1fr; } }
.svc__label { font-size: .9375rem; font-weight: 600; margin-bottom: 8px; }
.ticks li { position: relative; padding: 7px 0 7px 22px; border-bottom: 1px solid var(--rule); font-size: .9688rem; color: var(--ink-2); line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 9px; height: 1.5px; background: var(--ink-3); }
.svc__fit { padding: 16px 18px; background: var(--sheet); border-radius: 3px; color: var(--ink-2); font-size: .9688rem; }
.svc__fit strong { color: var(--ink); font-weight: 600; }

.sectors li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 800px) { .sectors li { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap); align-items: baseline; } }
.sectors { border-top: 1px solid var(--rule); }
.sectors b { font-weight: 500; font-size: 1.15rem; font-stretch: 106%; }
.sectors span { color: var(--ink-2); }

/* ---------- Projects */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(var(--pad) * -1) 0; padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.filters::-webkit-scrollbar { height: 4px; }
.filters::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 2px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: 3px; background: transparent; cursor: pointer; font-size: .9375rem; transition: background-color .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip small { font-size: .8125rem; opacity: .7; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .filters { margin: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; } }
.count { margin-top: 14px; }
/* lưới dự án: một dự án rộng cả hàng, rồi hai dự án nửa hàng. Ảnh lớn, chữ ít. */
.pjs { display: grid; gap: clamp(44px, 6vw, 88px) var(--gap); margin-top: clamp(28px, 4vw, 48px); }
.pj { display: grid; gap: clamp(16px, 2vw, 24px); align-content: start; text-decoration: none; color: inherit; min-width: 0; }
.pj[hidden] { display: none; }
.pj .pic img { transition: transform .7s var(--ease); }
.pj:hover .pic img { transform: scale(1.03); }
.pj:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 2px; }
.pj__body { display: grid; gap: 12px; }
.pj__kick { display: flex; gap: 14px; align-items: baseline; font-size: .9375rem; color: var(--ink-3); }
.pj__kick span { font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.pj__title { margin-top: 6px; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); font-stretch: 110%; font-weight: 500; letter-spacing: -.016em; line-height: 1.16; }
.pj:hover .pj__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.pj__sum { color: var(--ink-2); max-width: 38em; }
.pj__meta { margin-top: 8px; font-size: .9375rem; color: var(--ink-3); }
@media (min-width: 760px) {
  .pjs { grid-template-columns: 1fr 1fr; }
  .pj.is-wide { grid-column: 1 / -1; }
  .pj.is-wide .pic { --r: 21 / 9 !important; }
  .pj.is-wide .pj__title { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem); }
}
@media (min-width: 960px) { .pj.is-wide .pj__body { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: var(--gap); align-items: end; } }

/* trang chi tiết dự án */
.pd__kick { margin-bottom: 14px; font-size: .9375rem; color: var(--brand-ink); font-weight: 500; }
.pd__facts { margin-top: clamp(40px, 6vw, 80px); padding: clamp(28px, 4vw, 52px) 0; background: var(--sheet); }
.facts6 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 36px) var(--gap); margin-block: 0; }
@media (min-width: 900px) { .facts6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts6 dt { font-size: .875rem; color: var(--ink-3); }
.facts6 dd { margin: 6px 0 0; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-stretch: 106%; font-weight: 500; letter-spacing: -.01em; line-height: 1.28; }
.story { display: grid; gap: clamp(32px, 4vw, 48px) clamp(32px, 6vw, 96px); }
@media (min-width: 860px) { .story { grid-template-columns: 1fr 1fr; } }
.story__h { padding-top: 16px; border-top: 1.5px solid var(--ink); font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; }
.story__p { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.gallery { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .gallery--pair { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; } .gallery--pair .pic { aspect-ratio: auto; height: 100%; min-height: 360px; } }
.items { display: grid; column-gap: var(--gap); counter-reset: it; border-top: 1px solid var(--rule); }
@media (min-width: 620px) { .items { grid-template-columns: 1fr 1fr; } }
.items li { counter-increment: it; display: flex; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; line-height: 1.4; }
.items li::before { content: counter(it, decimal-leading-zero); font-size: .8125rem; font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.nextp { display: grid; gap: 24px var(--gap); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule); text-decoration: none; color: inherit; }
@media (min-width: 900px) { .nextp { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: end; } }
.nextp__txt { display: grid; gap: 8px; }
.nextp__txt span { font-size: .9375rem; color: var(--ink-3); }
.nextp__txt b { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.7rem); font-stretch: 110%; font-weight: 500; letter-spacing: -.018em; line-height: 1.14; }
.nextp__txt em { font-style: normal; color: var(--ink-3); font-size: .9375rem; }
.nextp .pic img { transition: transform .7s var(--ease); }
.nextp:hover .pic img { transform: scale(1.03); }
.nextp:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.nextp__all { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 28px; font-size: .9375rem; }

/* ---------- Workshop */
.steps6 { display: grid; gap: 0 var(--gap); border-top: 1px solid var(--rule); counter-reset: s; }
@media (min-width: 760px) { .steps6 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps6 li { padding: 22px 0 26px; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; }
.step-n { font-variant-numeric: tabular-nums; font-size: .9375rem; color: var(--ink-3); font-weight: 500; }
.steps6 h3 { font-size: 1.15rem; }
.steps6 p { color: var(--ink-2); font-size: 1rem; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gap); }
@media (min-width: 640px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.swatch__img { aspect-ratio: 1; border-radius: 2px; overflow: hidden; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.swatch__img img { width: 100%; height: 100%; object-fit: cover; }
.swatch__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,.10)); }
.swatch h3 { font-size: 1rem; margin-top: 12px; }
.swatch p { font-size: .9063rem; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
.qc { display: grid; gap: 24px var(--gap); }
@media (min-width: 900px) { .qc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qc li { border-top: 1.5px solid var(--ink); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.qc p { color: var(--ink-2); font-size: 1rem; }

/* ---------- Process */
.proc { border-top: 1px solid var(--rule); }
.proc li { display: grid; gap: 10px 20px; grid-template-columns: 3rem minmax(0, 1fr); padding: 26px 0; border-bottom: 1px solid var(--rule); }
.proc__n { font-size: 1.5rem; font-stretch: 112%; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.2; grid-row: span 3; }
.proc h3 { font-size: 1.25rem; line-height: 1.3; }
.proc p { color: var(--ink-2); max-width: 38em; }
.proc__facts { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: .9375rem; color: var(--ink-3); }
.proc__facts b { font-weight: 500; color: var(--ink-2); }
@media (min-width: 960px) {
  .proc li { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); column-gap: var(--gap); align-items: baseline; }
  .proc__n { grid-row: auto; }
  .proc__facts { display: grid; gap: 6px; }
}
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 500; font-size: 1.075rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }

/* ---------- Contact */
.contact { display: grid; gap: 48px var(--gap); }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; } }
.form { display: grid; gap: 22px; }
.fgrid { display: grid; gap: 22px var(--gap); }
@media (min-width: 640px) { .fgrid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field > label, .field > .flabel { font-size: .9375rem; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-2); border-radius: 3px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.input[type="number"]::-webkit-outer-spin-button, .input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input[type="number"] { -moz-appearance: textfield; }
.select-wrap { position: relative; }
.select { padding-right: 44px; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.select option { background: var(--paper); color: var(--ink); }
.field.has-err .input, .field.has-err .select, .field.has-err .textarea { border-color: #B3261E; box-shadow: 0 0 0 1px #B3261E; }
.err { font-size: .875rem; color: #B3261E; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip { position: relative; }
.opt-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: 3px; font-size: .9375rem; transition: background-color .15s, border-color .15s, color .15s; }
.opt-chip input:hover + span { border-color: var(--ink-3); }
.opt-chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .9688rem; color: var(--ink-2); line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1px solid var(--rule-2); border-radius: 3px; background: var(--paper); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, border-color .15s; }
.check input::after { content: ""; width: 6px; height: 11px; border-right: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { opacity: 1; }
.check input:hover { border-color: var(--ink-3); }
.form__foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.form__note { font-size: .875rem; color: var(--ink-3); max-width: 28em; }
.done { padding: clamp(28px, 4vw, 44px); background: var(--sheet); border-radius: 3px; display: grid; gap: 14px; }
.done h2 { font-size: 1.6rem; font-stretch: 108%; }
.done p { color: var(--ink-2); }
.done__sum { margin: 0; padding: 14px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; font: inherit; font-size: .9375rem; line-height: 1.55; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.btn[disabled] { opacity: .6; cursor: default; }
.policy { max-width: 44em; }
.policy h2 { margin-top: 1.8em; }
.policy h2:first-child { margin-top: 0; }
.policy p { margin-top: .5em; color: var(--ink-2); }
/* thẻ liên hệ: nền màu gỗ của thương hiệu, số điện thoại cỡ lớn, nút Zalo đúng màu Zalo */
.ccard { background: var(--inv-bg); color: var(--inv-ink); border-radius: 4px; overflow: hidden; }
.ccard__top { padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 6px; }
.ccard__lbl { font-size: .9375rem; color: var(--inv-2); }
.ccard__tel { font-size: clamp(1.7rem, .8rem + 1.6vw, 2.3rem); font-stretch: 112%; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: var(--inv-ink); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ccard__tel:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }
.ccard__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ccard__zalo { background: var(--zalo); border-color: var(--zalo); color: #fff; }
.ccard__zalo:hover { filter: brightness(.93); }
.ccard__dl { margin: 0; padding: 4px clamp(20px, 2.4vw, 32px) 10px; border-top: 1px solid var(--inv-rule); }
.ccard__dl > div { padding: 14px 0; border-bottom: 1px solid var(--inv-rule); display: grid; gap: 2px; }
.ccard__dl > div:last-child { border-bottom: 0; }
.ccard__dl dt { font-size: .875rem; color: var(--inv-2); }
.ccard__dl dd { margin: 0; font-weight: 500; line-height: 1.45; }
.ccard__dl dd a { color: inherit; }

/* ---------- Footer as a drawing title block */
.ftr { margin-top: 0; padding-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--rule); }
.ftr__top { display: grid; gap: 36px var(--gap); padding-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .ftr__top { grid-template-columns: minmax(0, 5fr) minmax(0, 2.33fr) minmax(0, 2.33fr) minmax(0, 2.33fr); } }
.ftr__brand p { margin-top: 16px; color: var(--ink-2); max-width: 26em; font-size: 1rem; }
.ftr h2 { font-size: .9375rem; font-weight: 600; margin-bottom: 12px; font-stretch: 100%; }
.ftr ul li + li { margin-top: 8px; }
.ftr ul a { text-decoration: none; color: var(--ink-2); font-size: .9688rem; }
.ftr ul a:hover { color: var(--ink); text-decoration: underline; }
/* Các ô cách nhau 1px trên nền màu đường kẻ, nên đường kẻ luôn đúng dù ô xếp thành mấy hàng.
   Mỗi ô rộng nửa hàng trên máy tính để tên công ty và địa chỉ nằm trọn một dòng. */
.tblock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule-2); border-radius: 2px; overflow: hidden; margin: 0 0 28px; }
.tblock > div { grid-column: span 2; padding: 12px 14px; background: var(--paper); min-width: 0; }
.tblock > .m1 { grid-column: span 1; }
.tblock dt { font-size: .75rem; color: var(--ink-3); letter-spacing: .01em; }
.tblock dd { margin: 3px 0 0; font-size: .875rem; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.tblock dd a { text-decoration: none; }
.tblock dd a:hover { text-decoration: underline; }
.tblock__tel dd { font-size: 1rem; font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .tblock { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tblock > .m1 { grid-column: span 2; }
  .tblock > .d1 { grid-column: span 1; }
}
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 0 76px 28px 0; font-size: .875rem; color: var(--ink-3); } /* chừa chỗ bên phải cho hai nút nổi Zalo và gọi điện */

/* ---------- Floating contact */
.float { position: fixed; right: 0; bottom: 0; z-index: 30; display: grid; gap: 10px; padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 16px) 0; }
.float a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; background: var(--btn); color: var(--on-btn); box-shadow: 0 6px 18px rgba(0,0,0,.16); font-size: .75rem; font-weight: 700; letter-spacing: .01em; transition: transform .15s; }
.float a:hover { transform: translateY(-2px); }
.float svg { width: 22px; height: 22px; }
.menu-open .float { display: none; }
@media (max-width: 640px) { .float { gap: 8px; padding: 0 12px calc(env(safe-area-inset-bottom, 0px) + 12px) 0; } .float a { width: 46px; height: 46px; } .float svg { width: 20px; height: 20px; } }

/* ---------- Route change: a short fade only (responds to the click) */
.page { animation: pagein .28s ease-out both; }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Vật liệu An Cường + phối màu
   ===================================================================== */
/* swatch: flat colour + grain overlay (colour comes from the material, never from the UI) */
.swp { display: block; width: 100%; height: 100%; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); }
.pw { background-image: var(--g-d); background-size: 140px auto; }
.pwd { background-image: var(--g-l), var(--g-d); background-size: 140px auto, 140px auto; }
.ps { background-image: var(--st); background-size: 220px auto; }
.pf { background-image: var(--fa); background-size: 48px auto; }
.pm { background-image: var(--me), linear-gradient(135deg, rgba(255,255,255,.32), rgba(255,255,255,0) 55%); background-size: 200px auto, 100% 100%; }

.libbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.search { position: relative; flex: 1 1 320px; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 44px; }
.search .input::-webkit-search-cancel-button { -webkit-appearance: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.libbar__f { display: none; }
.lib { display: grid; gap: 28px; }
@media (min-width: 960px) { .lib { grid-template-columns: 250px minmax(0, 1fr); column-gap: clamp(28px, 4vw, 56px); align-items: start; }
  .lib__side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-right: 6px;
    scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; } }
@media (max-width: 959px) {
  .libbar__f { display: inline-flex; }
  .lib__side { display: none; padding: 18px; background: var(--sheet); border-radius: 3px; }
  .lib.show-f .lib__side { display: block; }
}
.fgroup { border: 0; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.fgroup legend { font-weight: 600; font-size: .9375rem; margin-bottom: 10px; padding: 0; }
.fgroup .opt-chip span { min-height: 36px; font-size: .875rem; padding: 0 10px; }
.tones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.tone { position: relative; display: flex; align-items: center; gap: 9px; font-size: .9375rem; cursor: pointer; color: var(--ink-2); min-height: 32px; }
.tone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tone__dot { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(128,128,128,.4); }
.tone input:checked + .tone__dot { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.tone input:checked ~ span:last-child { color: var(--ink); font-weight: 500; }
.tone input:focus-visible + .tone__dot { outline: 2px solid var(--ink); outline-offset: 4px; }
.fclear { background: none; border: 0; padding: 0; cursor: pointer; font-size: .9375rem; }

/* gần 1.900 mã nên ô mẫu nhỏ lại để mỗi màn hình xem được nhiều mã hơn */
.swgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; margin-top: 14px; }
@media (min-width: 560px) { .swgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px; } }
@media (min-width: 960px) { .swgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .swgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sw { display: grid; gap: 3px; align-content: start; text-align: left; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.sw__img { display: block; aspect-ratio: 1; border-radius: 3px; overflow: hidden; margin-bottom: 8px; transition: transform .2s var(--ease); }
.sw:hover .sw__img { transform: translateY(-2px); }
.sw:focus-visible { outline: none; }
.sw:focus-visible .sw__img { outline: 2px solid var(--ink); outline-offset: 3px; }
.sw__code { font-weight: 600; font-size: .9688rem; font-stretch: 104%; font-variant-numeric: tabular-nums; }
.sw__name { font-size: .875rem; color: var(--ink-2); line-height: 1.35; }
.sw__line { font-size: .75rem; color: var(--ink-3); }
.sw.is-cur .sw__img { outline: 2px solid var(--ink); outline-offset: 3px; }
.hot { color: var(--brand-ink); font-weight: 600; white-space: nowrap; } /* nhãn Bán chạy, Xu hướng, Mới theo đánh dấu của hãng */
.check small { margin-left: 4px; font-size: .8125rem; color: var(--ink-3); }
.lib__more { display: flex; justify-content: center; margin-top: 30px; }
.lib__more [hidden] { display: none; }
.codeline { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-stretch: 112%; letter-spacing: .02em; display: flex; gap: .6em; flex-wrap: wrap; color: var(--ink); }
.codeline b { border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; font-weight: 500; }
.note { padding: clamp(22px, 3vw, 32px); background: var(--sheet); border-radius: 3px; display: grid; gap: 10px; max-width: 60em; }
.note p { color: var(--ink-2); }

/* dialog */
.dlg { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dlg__back { position: absolute; inset: 0; background: rgba(20, 20, 22, .48); opacity: 0; transition: opacity .2s; }
.dlg__panel { position: relative; width: min(980px, 100%); max-height: calc(100% - 20px); overflow-y: auto; background: var(--paper); border-radius: 4px;
  padding: clamp(22px, 3.5vw, 40px); box-shadow: 0 20px 60px rgba(0,0,0,.25); transform: translateY(12px); opacity: 0; transition: transform .25s var(--ease), opacity .2s;
  scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; overscroll-behavior: contain; }
.dlg.is-open .dlg__back { opacity: 1; }
.dlg.is-open .dlg__panel { transform: none; opacity: 1; }
.dlg__panel:focus { outline: none; }
.dlg__x { position: sticky; top: 0; float: right; z-index: 2; width: 44px; height: 44px; margin: -10px -10px 0 8px; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; }
.dlg__x span { position: absolute; left: 13px; right: 13px; top: 21px; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.dlg__x span + span { transform: rotate(-45deg); }
.dlg-open { overflow: hidden; }
@media (max-width: 640px) {
  .dlg { padding: 0; align-items: flex-end; }
  .dlg__panel { max-height: 92%; border-radius: 10px 10px 0 0; padding: 22px 18px calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateY(40px); }
}
.det { display: grid; gap: 26px; }
@media (min-width: 760px) { .det { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .det__sw { position: sticky; top: 0; } }
.det__sw { display: grid; gap: 8px; }
.det__sw .swp { aspect-ratio: 1; height: auto; border-radius: 3px; }
.det__note { font-size: .8125rem; color: var(--ink-3); }
.det__body { display: grid; gap: 14px; align-content: start; }
.det__code { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); font-stretch: 112%; letter-spacing: -.01em; line-height: 1.15; }
.det__name { font-size: 1.15rem; color: var(--ink-2); margin-top: -6px; }
.det__dl { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.det__dl > div { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); }
.det__dl dt { font-size: .8125rem; color: var(--ink-3); }
.det__dl dd { margin: 2px 0 0; font-weight: 500; }
.det__act { margin-top: 6px; }
.det__links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
/* trang riêng của một mã vật liệu: cùng bố cục với hộp xem nhanh, chữ mã lớn hơn và ô mẫu đứng yên dưới thanh đầu trang khi cuộn */
.det--page { gap: clamp(26px, 4vw, 56px); }
.det--page .det__code { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 500; }
.det--page .det__body { gap: 16px; }
@media (min-width: 760px) { .det--page .det__sw { top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 20px); } }
@media (max-width: 759px) { .det--page .det__sw .swp { aspect-ratio: 16 / 10; } } /* trên điện thoại ô mẫu thấp lại để mã và tên màu nằm ngay màn hình đầu */
.det__grp { display: grid; gap: 10px; padding-top: 6px; }
.det__lbl { font-weight: 600; font-size: .9375rem; }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mchip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--rule-2); border-radius: 3px; background: transparent; cursor: pointer; font-size: .875rem; color: inherit; text-decoration: none; }
.mchip:hover { border-color: var(--ink-3); }
.mchip .swp { width: 28px; height: 28px; border-radius: 2px; }
.mchip b { font-weight: 600; }
.table--mini { min-width: 0; font-size: .875rem; }
.table--mini th, .table--mini td { padding: 9px 12px 9px 0; }
.table--mini tbody th { width: 46%; }

/* quote list bar */
.selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--inv-bg); color: var(--inv-ink); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -8px 24px rgba(0,0,0,.12); }
.selbar[hidden] { display: none; }
.selbar__in { display: flex; align-items: center; gap: 14px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.selbar__sw { display: flex; }
.selbar__sw .swp { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px var(--inv-bg); margin-left: -8px; }
.selbar__sw .swp:first-child { margin-left: 0; }
.selbar p { flex: 1; font-size: .9375rem; color: var(--inv-2); }
.selbar p b { color: var(--inv-ink); font-weight: 600; }
.selbar__act { display: flex; gap: 8px; }
.selbar .btn--solid { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.selbar .btn--line { color: var(--inv-ink); border-color: var(--inv-rule); }
.has-sel .float { bottom: 64px; }
.has-sel .page { padding-bottom: 120px; }
@media (max-width: 520px) { .selbar__sw { display: none; } .selbar p { font-size: .875rem; } }

/* configurator */
.cfg__tabs { margin-bottom: 22px; }
.cfg__tabs .chip { text-decoration: none; }
.cfg { display: grid; gap: 28px; }
@media (min-width: 1000px) { .cfg { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(24px, 3vw, 44px); align-items: start; }
  .cfg__stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 18px); } }
.cfg__fig { margin: 0 0 10px; border-radius: 3px; overflow: hidden; background: var(--sheet); }
.cfg__svg { display: block; width: 100%; height: auto; }
.cfg__svg .sl { cursor: pointer; transition: filter .15s; }
.cfg__svg .sl.is-hot { filter: brightness(1.07) saturate(1.05); }
@media (max-width: 999px) { .cfg__stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 5; background: var(--paper); padding-bottom: 6px; margin: 0 calc(var(--pad) * -1); padding-inline: var(--pad); } }
.cfg__lbl { font-weight: 600; font-size: .9375rem; margin: 0 0 10px; }
.cfg__presets { margin-bottom: 22px; }
.cfg__presets .chip { min-height: 38px; }
.parts { border-top: 1px solid var(--rule); }
.part { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px solid var(--rule);
  background: none; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.part__sw { width: 52px; height: 52px; border-radius: 3px; }
.part__txt { display: grid; gap: 1px; min-width: 0; }
.part__lbl { font-size: .8125rem; color: var(--ink-3); }
.part__code { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part__name { font-size: .875rem; color: var(--ink-2); }
.part__go { font-size: .875rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: .3em; }
.part:hover .part__go { text-decoration-color: currentColor; }
.cfg__act { display: grid; gap: 10px; margin-top: 22px; }
.cfg__act .btn { width: 100%; }
#cfgmsg { margin-top: 10px; min-height: 1.4em; }
.pick { display: grid; gap: 14px; }
.pick__f { display: grid; gap: 10px; }
.chip--tone { gap: 7px; padding: 0 12px 0 8px; }
.chip--tone .tone__dot { width: 18px; height: 18px; }
.swgrid--pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 640px) { .swgrid--pick { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 900px) { .swgrid--pick { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.swgrid--pick .sw__line { display: none; }

/* home mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mosaic__it { position: relative; display: block; aspect-ratio: 1; border-radius: 3px; overflow: hidden; text-decoration: none; }
.mosaic__it span:last-child { position: absolute; left: 8px; bottom: 7px; font-size: .75rem; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.mosaic__it:hover span:last-child, .mosaic__it:focus-visible span:last-child { opacity: 1; }
@media (hover: none) { .mosaic__it span:last-child { opacity: 1; } }

.dlg-open .float { display: none; }
@media (max-width: 999px) { [data-route="phoi-mau"] .float, [data-route="vat-lieu"] .float { display: none; } }


/* ---------- nhiều hãng: mã chưa có màu, cách đọc mã, cốt ván theo hãng */
.pnone { background: repeating-linear-gradient(135deg, var(--sheet) 0 7px, var(--paper) 7px 14px); box-shadow: inset 0 0 0 1px var(--rule-2); }
.sw__img { position: relative; }
.sw__none { position: absolute; left: 10px; right: 10px; bottom: 9px; font-size: .75rem; line-height: 1.3; color: var(--ink-2); }
.swgrid--pick .sw__none { display: none; }
.fdyn__hint { margin: 0 0 22px; }
.det__name--none { color: var(--ink-3); font-size: 1rem; }
.lw { font-variant-numeric: tabular-nums; }
.codereads { display: grid; gap: 18px; }
.coderead { display: grid; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.coderead:last-child { border-bottom: 0; padding-bottom: 0; }
.coderead .codeline { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); }
.coretabs { margin-bottom: 18px; }
.core__note { margin-top: 12px; }
.note ul { margin: 0; padding-left: 1.15em; display: grid; gap: 6px; color: var(--ink-2); }

/* =====================================================================
   Dự án theo loại sản phẩm, dịch vụ gọn, xưởng và cách làm việc ghi ngắn
   ===================================================================== */
.anchor { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 24px); }

/* khung giới thiệu loại sản phẩm đang lọc trên trang Dự án */
.spinfo { margin-top: 18px; padding: 18px 20px; background: var(--sheet); border-radius: 3px; display: grid; gap: 16px; }
@media (min-width: 760px) { .spinfo { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--gap); } }
.spinfo__txt { display: grid; gap: 8px; min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .8125rem; line-height: 1.4; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--brand-ink); font-weight: 500; }
/* dãy liên kết loại sản phẩm có dòng chú thích phía trên */
.jump__lbl { margin-top: clamp(28px, 4vw, 44px); }
.jump__lbl + .jump { margin-top: 12px; }

.svc3 { display: grid; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .svc3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); } }
.svc3 a { display: grid; gap: 8px; align-content: start; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
@media (min-width: 900px) { .svc3 a { border-bottom: 0; padding-bottom: 0; } }
.svc3 h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); font-weight: 600; font-stretch: 106%; line-height: 1.25; }
.svc3 p { color: var(--ink-2); }
.svc3__go { font-weight: 500; font-size: .9375rem; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: .3em; }
.svc3 a:hover .svc3__go { text-decoration-color: currentColor; }


.flow { display: flex; flex-wrap: wrap; gap: 8px; }
.flow li { padding: 7px 12px; background: var(--sheet); border-radius: 3px; font-size: .9375rem; color: var(--ink-2); }

.steps5 { display: grid; border-top: 1px solid var(--rule); counter-reset: st; }
@media (min-width: 900px) { .steps5 { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); } }
.steps5 li { display: grid; gap: 4px; align-content: start; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.steps5 li::before { counter-increment: st; content: counter(st); font-size: .875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps5 b { font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.steps5 span { color: var(--ink-3); font-size: .9375rem; font-variant-numeric: tabular-nums; }

.faq .ans--wide { max-width: none; }
.faq .ans .coretabs { margin-top: 14px; }
.note-in ul { margin: 0 0 10px; padding-left: 1.15em; display: grid; gap: 6px; }

/* ---------- Thương hiệu: dải cam kết dưới phần đầu trang, nút Zalo đúng màu Zalo, logo theo màu thương hiệu */
.float a.float__zalo { background: var(--zalo); color: #fff; }
.promise { margin-top: clamp(36px, 5vw, 64px); }
.promise__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 960px) { .promise__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.promise__list li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 16px 20px 0; min-width: 0; }
@media (max-width: 959px) { .promise__list li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
.promise__list svg { flex: none; width: 30px; height: 30px; color: var(--brand); margin-top: 2px; }
.promise__list b { display: block; font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.promise__list span { display: block; margin-top: 3px; font-size: .9375rem; line-height: 1.4; color: var(--ink-3); }
/* Slogan sized so "Nâng tầm không gian" stays on one line; balance is the fallback if the font differs. */
.hero .t-display { font-size: min(8.9vw, 4.4rem); text-wrap: balance; }
@media (min-width: 1120px) { .hero .t-display { font-size: clamp(3.6rem, .6rem + 4.9vw, 5.1rem); } }
.hero .t-display .hl { color: var(--brand-ink); display: block; }
@media (max-width: 559px) {
  .promise__list li { flex-direction: column; gap: 8px; padding: 18px 12px 18px 0; }
  .promise__list svg { width: 26px; height: 26px; margin-top: 0; }
  .promise__list span { font-size: .875rem; }
}
