/* Nata Design Agency */

@font-face { font-family: CerebriSans; font-weight: 300; font-display: swap; src: url('../fonts/CerebriSans-Light.woff2') format('woff2'); }
@font-face { font-family: CerebriSans; font-weight: 400; font-display: swap; src: url('../fonts/CerebriSans-Regular.woff2') format('woff2'); }
@font-face { font-family: CerebriSans; font-weight: 600; font-display: swap; src: url('../fonts/CerebriSans-SemiBold.woff2') format('woff2'); }
@font-face { font-family: CerebriSans; font-weight: 700; font-display: swap; src: url('../fonts/CerebriSans-Bold.woff2') format('woff2'); }
@font-face { font-family: CerebriSans; font-weight: 800; font-display: swap; src: url('../fonts/CerebriSans-ExtraBold.woff2') format('woff2'); }

:root {
    /* Hệ màu Nata: mọi sắc đều đi ra từ logo. */
    --rust: #894C29;        /* nâu logo: thương hiệu, nút, liên kết */
    --espresso: #2E1B10;    /* nâu đậm: tiêu đề, mảng tối */
    --sand: #E0A85A;        /* cát logo: điểm nhấn, không dùng cho chữ trên nền sáng */
    --sand-soft: #F6E5CB;   /* cát nhạt: nền nút, trạng thái đang chọn */
    --paper: #FAF6F0;       /* giấy: nền khối phụ */
    --white: #fff;
    --ink: #231A14;         /* mực: chữ nội dung */
    --muted: #6B5D52;       /* xám ấm: chữ phụ */
    --field: #9C8069;       /* viền ô nhập */

    --display: 'Hanken Grotesk', CerebriSans, system-ui, sans-serif;
    --body: CerebriSans, system-ui, -apple-system, sans-serif;

    --gutter: clamp(16px, 3.6vw, 56px);
    --space: clamp(72px, 10vw, 152px);
    --header: 90px;
    --ease: cubic-bezier(.2, .7, .1, 1);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--muted); font: 400 1rem/1.7 var(--body); overflow-x: clip; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); color: var(--espresso); line-height: 1.12; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
.section--espresso :focus-visible, .section--rust :focus-visible, .footer :focus-visible, .lightbox :focus-visible { outline-color: var(--sand); }
::selection { background: var(--sand); color: var(--ink); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); }
.skip:focus { top: 12px; }

.section { padding-block: var(--space); }
.section--paper { background: var(--paper); }
.section--espresso { background: var(--espresso); color: var(--paper); }
.section--rust { background: var(--rust); color: var(--paper); }

.title { font-size: clamp(2.5rem, 5.6vw, 5rem); font-weight: 700; letter-spacing: -.025em; }

/* ---------- Nút và liên kết ---------- */
.arrow { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease); }
a:hover > .arrow { transform: translate(3px, -3px); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 30px; border: 2px solid var(--rust); border-radius: 3px; background: var(--rust); color: var(--paper); font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn--line { background: transparent; color: var(--rust); }
.btn--line:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }

.textlink { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--rust); font-weight: 700; font-size: 1.125rem; background: linear-gradient(var(--sand), var(--sand)) 0 calc(100% - 5px) / 0 3px no-repeat; transition: background-size .35s var(--ease); }
.textlink:hover { background-size: 100% 3px; }
.textlink .arrow { width: 1.35em; height: 1.35em; }
.textlink--light { color: var(--sand); }

.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.iconbtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.iconbtn:hover { background: var(--sand-soft); border-radius: 4px; }

/* ---------- Đầu trang ---------- */
.header { position: sticky; top: 0; z-index: 30; background: var(--white); border-top: 6px solid var(--rust); transition: box-shadow .3s; }
.header.is-stuck { box-shadow: 0 8px 24px rgba(46, 27, 16, .08); }
.header__row { display: flex; align-items: center; gap: 24px; height: calc(var(--header) - 6px); }
.logo { flex: none; }
.logo img { width: 117px; height: auto; }
.nav { display: flex; gap: clamp(20px, 3vw, 48px); margin-left: auto; }
.nav a { position: relative; padding-block: 10px; color: var(--ink); font-weight: 700; font-size: .9375rem; text-transform: uppercase; }
.nav a::after { content: ''; position: absolute; left: calc(50% - 3px); bottom: 0; width: 6px; height: 6px; background: var(--sand); transform: scale(0); transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scale(1); }
.nav a[aria-current] { color: var(--rust); }
.header__tools { display: flex; align-items: center; gap: 4px; margin-left: clamp(0px, 2vw, 32px); }

.lang { display: inline-flex; gap: 2px; font-size: .8125rem; font-weight: 700; }
.lang a { display: grid; place-items: center; min-width: 36px; height: 32px; border-radius: 3px; color: var(--muted); }
.lang a:hover { background: var(--sand-soft); color: var(--espresso); }
.lang a[aria-current] { background: var(--sand-soft); color: var(--espresso); }
.lang--header { margin-right: 8px; }

.search { position: absolute; inset: 100% 0 auto; background: var(--paper); border-bottom: 1px solid var(--sand); }
.search__row { display: flex; gap: 12px; padding-block: 20px; }
.search input { flex: 1; min-width: 0; padding: 0 4px; border: 0; border-bottom: 2px solid var(--rust); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--display); font-size: clamp(1.125rem, 2.4vw, 2rem); }

/* ---------- Menu trượt ---------- */
.drawer { width: min(480px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--white); color: var(--muted); }
.drawer::backdrop { background: rgba(46, 27, 16, .65); }
.drawer[open] { animation: slide-in .45s var(--ease); }
.drawer__panel { display: flex; flex-direction: column; gap: 40px; min-height: 100%; padding: 24px clamp(24px, 6vw, 56px) 40px; border-top: 6px solid var(--rust); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__nav { display: flex; flex-direction: column; margin-block: auto; }
.drawer__nav a { display: flex; align-items: center; gap: 16px; padding-block: 8px; font-family: var(--display); font-size: clamp(2.25rem, 6vh, 3.25rem); font-weight: 700; color: var(--ink); line-height: 1.25; }
.drawer__nav a::before { content: ''; width: 0; height: 14px; background: var(--sand); transition: width .25s var(--ease); margin-right: -16px; }
.drawer__nav a:hover::before, .drawer__nav a[aria-current]::before { width: 14px; margin-right: 0; }
.drawer__nav a[aria-current] { color: var(--rust); }
.drawer__foot { display: grid; justify-items: start; gap: 4px; font-size: .9375rem; }
.drawer__foot a { color: var(--ink); }
.drawer__foot p { margin-top: 16px; font-size: .8125rem; }
@keyframes slide-in { from { transform: translateX(100%); } }
body:has(.drawer[open]) { overflow: hidden; }

main { position: relative; z-index: 1; display: block; background: var(--white); }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: min(calc(100vh - var(--header)), 880px); min-height: min(calc(100svh - var(--header)), 880px); padding-block: clamp(48px, 7vh, 96px); overflow: hidden; }
.hero__inner { position: relative; }
/* Cỡ chữ co theo cả bề ngang lẫn chiều cao, để nút bên dưới luôn nằm trong màn hình đầu. */
.hero__title { font-size: clamp(2.9rem, min(11.4vw, calc((100vh - var(--header) - 280px) / var(--lines, 3))), 11.5rem);font-weight: 700; line-height: .98; letter-spacing: -.035em; }
.hero__title:lang(vi), :lang(vi) .hero__title { line-height: 1.12; letter-spacing: -.03em; }
.hero__line { display: block; }
.pixelword { display: inline-block; font-style: normal; color: var(--rust); }
.is-pixel .pixelword { color: transparent; }
.pixelcanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(40px, 7vh, 80px); padding-top: 28px; border-top: 1px solid var(--sand); }
.hero__lead { max-width: 30ch; font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.55; color: var(--ink); }
.hero__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* ---------- Giới thiệu ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.about .title { max-width: 9ch; }
.about__text { margin-bottom: 32px; font-family: var(--display); font-size: clamp(1.5rem, 2.7vw, 2.5rem); font-weight: 500; line-height: 1.45; color: var(--muted); }

/* ---------- Dịch vụ: thương hiệu rẽ ba nhánh ---------- */
.services__label { color: var(--sand); font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; }
.services__umbrella { margin-top: 8px; font-family: var(--display); font-size: clamp(3.5rem, 12vw, 11rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; color: var(--paper); }
.tree { --gap: clamp(24px, 4vw, 64px); position: relative; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--gap); margin-block: 8px 48px; padding-top: 72px; }
.tree::before { content: ''; position: absolute; left: 6px; top: 32px; width: calc((100% - (var(--cols, 3) - 1) * var(--gap)) / var(--cols, 3) * (var(--cols, 3) - 1) + (var(--cols, 3) - 1) * var(--gap)); height: 2px; background: var(--sand); transform-origin: left; }
.tree::after { content: ''; position: absolute; left: 6px; top: 0; width: 2px; height: 32px; background: var(--sand); }
.tree__branch { position: relative; }
.tree__branch::before { content: ''; position: absolute; left: 6px; top: -40px; width: 2px; height: 28px; background: var(--sand); }
.tree__branch::after { content: ''; position: absolute; left: 0; top: -22px; width: 14px; height: 14px; background: var(--sand); }
.tree__branch h3 { margin-bottom: 20px; color: var(--paper); font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 600; }
.tree__branch li { padding-block: 13px; border-top: 1px solid rgba(250, 246, 240, .18); font-size: 1.0625rem; }
.js .tree::before { transform: scaleX(0); transition: transform 1.1s .2s var(--ease); }
.js .tree.is-in::before { transform: scaleX(1); }

/* ---------- Dự án ---------- */
.sectionhead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--sand); }
.work__more { margin-top: 56px; text-align: center; }

/* ---------- Khung dự án khoét góc: trang chủ, Dự án, Dịch vụ, Tìm kiếm ---------- */
/* Nhịp 8 khung: một khung lớn + hai khung nhỏ, rồi 5|7, 7|5, và một khung ngang khép lại. */
.mosaic { --gap: clamp(12px, 1.4vw, 22px); --r: 18px; container-type: inline-size; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.mosaic > li { grid-column: span 4; height: 26cqw; min-width: 0; }
.mosaic > li:nth-child(8n+1) { grid-column: span 8; grid-row: span 2; height: calc(52cqw + var(--gap)); }
.mosaic > li:nth-child(8n+4), .mosaic > li:nth-child(8n+7) { grid-column: span 5; height: 34cqw; }
.mosaic > li:nth-child(8n+5), .mosaic > li:nth-child(8n+6) { grid-column: span 7; height: 34cqw; }
.mosaic > li:nth-child(8n) { grid-column: span 12; height: 52cqw; }
/* Số dự án lẻ nhịp thì khung cuối tự giãn cho kín hàng. */
.mosaic > li:nth-child(8n+1):last-child { grid-column: span 12; grid-row: auto; height: 48cqw; }
.mosaic > li:nth-child(8n+2):last-child { grid-row: span 2; height: calc(52cqw + var(--gap)); }
.mosaic > li:nth-child(8n+4):last-child, .mosaic > li:nth-child(8n+6):last-child { grid-column: span 12; height: 44cqw; }

.tile a { position: relative; display: block; height: 100%; border-radius: var(--r) 0 var(--r) var(--r); isolation: isolate; }
.tile a:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
/* Chỉ khung ảnh bị cắt góc; mảng khoét được chờm ra ngoài 2px để không lộ viền mảnh. */
.tile__media { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r) 0 var(--r) var(--r); background: var(--paper); }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic > li:nth-child(8n+1) img { object-position: 30% 50%; }
.mosaic > li:nth-child(8n) img { object-position: 50% 45%; }
.tile a:hover img, .tile a:focus-visible img { transform: scale(1.06); }

/* Tên và danh mục nằm trên cùng, trong ảnh, trên nền trắng riêng nên ảnh màu gì cũng đọc rõ. */
.tile__label { position: absolute; z-index: 1; left: 14px; top: 14px; max-width: calc(100% - 104px); padding: 10px 16px 11px; border-radius: 10px; background: rgba(255, 255, 255, .95); box-shadow: 0 6px 22px rgba(46, 27, 16, .16); }
.tile__title { display: block; font-family: var(--display); font-size: clamp(1.0625rem, 1.6vw, 1.5rem); font-weight: 700; line-height: 1.25; color: var(--espresso); transition: color .25s; }
.mosaic > li:nth-child(8n+1) .tile__label { left: 20px; top: 20px; padding: 14px 22px 16px; }
.mosaic > li:nth-child(8n+1) .tile__title { font-size: clamp(1.25rem, 2.4vw, 2.25rem); letter-spacing: -.02em; }
.tile__cats { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.6; }

/* Góc trên phải khoét cho nút; mép cong ngược được vẽ bằng ::before và ::after. */
.tile__go { position: absolute; z-index: 1; background: var(--white); }
.tile__go::before, .tile__go::after { content: ''; position: absolute; width: var(--r); height: var(--r); pointer-events: none; }
.tile__go { top: -2px; right: -2px; padding: 2px 2px 10px 10px; border-bottom-left-radius: var(--r); }
.tile__go::before, .tile__go::after { background: radial-gradient(circle at 0 100%, transparent calc(var(--r) - .6px), var(--white) var(--r)); background-repeat: no-repeat; background-size: var(--r) var(--r); }
.tile__go::before { right: calc(100% - .5px); top: 0; height: calc(var(--r) + 2px); background-position: left bottom; }
.tile__go::after { right: 0; top: calc(100% - .5px); width: calc(var(--r) + 2px); background-position: left top; }
/* Bình thường cát nhạt; rê vào dự án hoặc nút thì đậm lên. */
.tile__btn { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--sand-soft); color: var(--espresso); font-size: 1.5rem; transition: background-color .3s, color .3s; }
.tile a:hover .tile__btn, .tile a:focus-visible .tile__btn { background: var(--sand); color: var(--ink); }
.tile a:hover .tile__btn .arrow, .tile a:focus-visible .tile__btn .arrow { transform: translate(3px, -3px); }
/* Hai ô vuông bật ra khỏi nút, nhắc lại điểm ảnh trong logo. */
.tile__go i { position: absolute; z-index: 1; border-radius: 2px; background: var(--sand); transform: translate(10px, -10px) scale(0); transition: transform .45s var(--ease); }
.tile__go i:nth-of-type(1) { left: -8px; bottom: -8px; width: 12px; height: 12px; }
.tile__go i:nth-of-type(2) { left: -24px; bottom: -22px; width: 7px; height: 7px; }
.tile a:hover .tile__go i, .tile a:focus-visible .tile__go i { transform: none; }
.tile a:hover .tile__go i:nth-of-type(2), .tile a:focus-visible .tile__go i:nth-of-type(2) { transition-delay: .08s; }

.tile__facts { position: absolute; left: 14px; bottom: 14px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 28px); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.mosaic > li:nth-child(8n+1) .tile__facts { left: 20px; bottom: 20px; }
.tile__facts span { padding: 4px 12px; border-radius: 6px; background: var(--paper); box-shadow: 0 4px 14px rgba(46, 27, 16, .18); color: var(--espresso); font-size: .8125rem; font-weight: 700; line-height: 1.7; }
.tile a:hover .tile__facts, .tile a:focus-visible .tile__facts { opacity: 1; transform: none; }
@media (hover: none) {
    .tile__facts { opacity: 1; transform: none; }
}
.js .mosaic > li:nth-child(even) { transition-delay: .1s; }

/* Đang lọc hoặc xem kết quả tìm kiếm: chia đều hai cột, bỏ nhịp khung lớn nhỏ. */
.mosaic.mosaic.is-filtered > li:nth-child(n):nth-child(n) { grid-column: span 6; grid-row: auto; height: 38cqw; }
.mosaic.mosaic.is-filtered > li:nth-child(n) img { object-position: 50% 50%; }
.mosaic.mosaic.is-filtered > li:nth-child(n) .tile__label { left: 14px; top: 14px; padding: 10px 16px 11px; }
.mosaic.mosaic.is-filtered > li:nth-child(n) .tile__title { font-size: clamp(1.0625rem, 1.6vw, 1.5rem); letter-spacing: 0; }
.mosaic.mosaic.is-filtered > li:nth-child(n) .tile__facts { left: 14px; bottom: 14px; }

@media (max-width: 900px) {
    .mosaic.mosaic > li:nth-child(n) { grid-column: span 6; grid-row: auto; height: 40cqw; }
    .mosaic.mosaic > li:nth-child(8n+1), .mosaic.mosaic > li:nth-child(8n) { grid-column: 1 / -1; height: 64cqw; }
    .mosaic.mosaic > li:nth-child(8n+2):last-child, .mosaic.mosaic > li:nth-child(8n+4):last-child, .mosaic.mosaic > li:nth-child(8n+6):last-child { grid-column: 1 / -1; height: 60cqw; }
    .tile__btn { width: 46px; height: 46px; font-size: 1.25rem; }
    .tile__label { max-width: calc(100% - 90px); }
}

@media (max-width: 560px) {
    .mosaic { --r: 14px; row-gap: 16px; }
    .mosaic > li .tile__label.tile__label { left: 10px; top: 10px; max-width: calc(100% - 82px); padding: 8px 12px 9px; }
    .mosaic > li .tile__facts.tile__facts { left: 10px; bottom: 10px; }
    .mosaic.mosaic > li:nth-child(n):nth-child(n) { grid-column: 1 / -1; height: 80cqw; }
    .mosaic.mosaic.is-filtered > li:nth-child(n):nth-child(n) { grid-column: 1 / -1; height: 80cqw; }
    .mosaic.mosaic.is-filtered > li:nth-child(n) .tile__label { left: 10px; top: 10px; padding: 8px 12px 9px; }
    .mosaic.mosaic.is-filtered > li:nth-child(n) .tile__facts { left: 10px; bottom: 10px; }
}

/* ---------- Quy trình ---------- */
.steps { --p: 1; --step-gap: clamp(16px, 2.4vw, 40px); --tile: 60px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--step-gap); margin-top: 40px; padding-block: 24px; }
.step { position: relative; outline: none; }
/* Đường nối từ số này sang số kế tiếp, tô dần theo cuộn. */
.step:not(:last-child)::before, .step:not(:last-child)::after { content: ''; position: absolute; left: var(--tile); right: calc(-1 * var(--step-gap)); top: calc(var(--tile) / 2 - 1px); height: 2px; }
.step:not(:last-child)::before { background: rgba(224, 168, 90, .4); }
.step:not(:last-child)::after { background: var(--sand); transform: scaleX(clamp(0, calc(var(--p) * var(--last) - var(--i)), 1)); transform-origin: left; }
.step__no { position: relative; z-index: 1; display: grid; place-items: center; width: var(--tile); height: var(--tile); margin-bottom: 28px; border: 2px solid var(--sand); border-radius: 4px; background: var(--sand); color: var(--ink); font-family: var(--display); font-size: 1.375rem; font-weight: 700; transition: background-color .3s, border-color .3s, color .3s, box-shadow .35s, transform .35s var(--ease); }
.js .step:not(.is-on) .step__no { border-color: var(--sand); background: var(--paper); color: var(--rust); }
.step:hover .step__no, .step:focus-visible .step__no,
.js .step:hover .step__no, .js .step:focus-visible .step__no { border-color: var(--sand); background: var(--sand); color: var(--ink); transform: translateY(-4px) scale(1.08); animation: glow 1.5s ease-in-out infinite; }
@media (hover: none) {
    .js .step:focus .step__no { border-color: var(--sand); background: var(--sand); color: var(--ink); animation: glow 1.5s ease-in-out infinite; }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(224, 168, 90, .28), 0 0 18px 4px rgba(224, 168, 90, .55); }
    50% { box-shadow: 0 0 0 8px rgba(224, 168, 90, .18), 0 0 36px 12px rgba(224, 168, 90, .75); }
}
.step h3 { margin-bottom: 12px; font-size: clamp(1.25rem, 2vw, 2rem); font-weight: 700; overflow-wrap: anywhere; }
.step p { color: var(--ink); font-size: .9375rem; }

/* ---------- Khách hàng ---------- */
.clients__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; padding-bottom: 32px; }
.clients__head p { max-width: 38ch; font-size: clamp(1.125rem, 1.7vw, 1.5rem); }
.clientgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.client { position: relative; display: grid; place-items: center; min-height: clamp(112px, 13vw, 200px); padding: 20px; border-radius: 6px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(224, 168, 90, .45), 0 0 0 0 rgba(224, 168, 90, 0); text-align: center; transition: box-shadow .45s ease; }
.client span { font-family: var(--display); font-size: clamp(1.125rem, 2.1vw, 2rem); font-weight: 700; line-height: 1.25; color: var(--espresso); text-wrap: balance; }
.client img { max-width: 70%; max-height: 72px; width: auto; }
/* Chỉ khi rê chuột: viền sáng nhẹ, quầng mờ. */
.client:hover { box-shadow: inset 0 0 0 1px rgba(224, 168, 90, 1), 0 0 18px 2px rgba(224, 168, 90, .32); }
@media (max-width: 1024px) { .clientgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .clientgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Lời mời ---------- */
.cta__kicker { font-size: clamp(1.125rem, 1.7vw, 1.5rem); }
.cta__title { display: inline-block; margin-block: 8px 48px; color: var(--paper); font-size: clamp(3.5rem, 12vw, 11rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; transition: color .25s; }
.cta__title:hover { color: var(--sand); }
.cta__title .arrow { display: inline-block; width: .68em; height: .68em; margin-left: .12em; vertical-align: baseline; stroke-width: 1.4; }
.phone { display: flex; width: fit-content; align-items: center; gap: 20px; }
.phone__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 3px; background: var(--paper); color: var(--rust); }
.phone__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.phone small { display: block; font-size: .875rem; }
.phone strong { display: block; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.25; }

/* ---------- Chân trang ---------- */
.footer { background: var(--espresso); color: var(--paper); padding-block: clamp(48px, 6vw, 80px) 28px; }
/* Logo ở góc trái, thông tin xếp bên phải. */
.footer__main { display: grid; grid-template-columns: minmax(0, clamp(180px, 22vw, 310px)) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(36px, 4vw, 56px); }
.footer__brand { display: block; }
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); }
.footer h2 { margin-bottom: 10px; font-family: var(--body); font-size: .875rem; font-weight: 700; color: var(--sand); }
.footer a:hover { color: var(--sand); text-decoration: underline; text-underline-offset: 4px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; max-width: 300px; }
.footer__nav li a { font-weight: 700; }
.footer__logo { width: 100%; height: auto; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 20px; border-top: 1px solid rgba(250, 246, 240, .18); font-size: .875rem; }
.socials { display: flex; flex-wrap: wrap; gap: 16px; }

@media (min-width: 1500px) {
    .footer__grid { grid-template-columns: 1.4fr 1.2fr 1.2fr .8fr; }
}
@media (min-width: 1100px) and (min-height: 640px) {
    .footer { position: sticky; bottom: 0; z-index: 0; }
}

/* ---------- Trang thông báo ---------- */
.message { display: flex; align-items: center; min-height: 64vh; padding-block: var(--space); }
.message p { max-width: 48ch; margin-block: 20px 32px; font-size: 1.125rem; }

/* ---------- Đầu trang con ---------- */
.section--tight { padding-block: clamp(40px, 6vw, 88px); }
.pagehead { padding-top: clamp(56px, 9vw, 128px); }
.pagehead--before-block { padding-bottom: clamp(40px, 6vw, 80px); }
.pagehead__title { max-width: 14ch; font-size: clamp(3rem, 8.4vw, 8rem); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.pagehead__title--long { max-width: 17ch; font-size: clamp(2.5rem, 6.6vw, 6.25rem); line-height: 1.14; }
.backlink { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; color: var(--rust); font-weight: 700; }
.backlink:hover { text-decoration: underline var(--sand) 3px; text-underline-offset: 6px; }
.results__title sup, .filters sup { margin-left: 2px; font-family: var(--body); font-size: .6875em; font-weight: 700; color: var(--rust); }

/* ---------- Dự án: bộ lọc ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.filters a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 20px; border: 1px solid var(--sand); border-radius: 3px; color: var(--ink); font-weight: 600; transition: background-color .25s, border-color .25s, color .25s; }
.filters a:hover { border-color: var(--sand); background: var(--sand-soft); color: var(--espresso); }
.filters a[aria-current], .filters a[aria-current]:hover { border-color: var(--rust); background: var(--rust); color: var(--paper); }
.filters a[aria-current] sup { color: var(--paper); }
.works__empty { font-size: 1.125rem; }

/* ---------- Chi tiết dự án ---------- */
.project .pagehead { padding-bottom: clamp(32px, 4vw, 56px); }
.project .pagehead__title { max-width: none; }
.facts { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr .6fr; gap: 24px clamp(20px, 3vw, 48px); margin-top: clamp(28px, 4vw, 56px); }
.facts div { padding-top: 16px; border-top: 2px solid var(--sand); }
.facts dt { font-size: .875rem; font-weight: 700; color: var(--rust); }
.facts dd { color: var(--ink); font-size: 1.125rem; line-height: 1.5; }
.cover { display: block; overflow: hidden; border-radius: 4px; background: var(--paper); cursor: zoom-in; }
.cover img { width: 100%; height: clamp(260px, 58vw, 820px); object-fit: cover; }
.story { margin-top: var(--space); }
.cover + .story, .project > .story { margin-top: clamp(48px, 7vw, 104px); }
.story__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.story__headline { font-size: clamp(1.625rem, 2.9vw, 2.75rem); font-weight: 600; line-height: 1.35; text-wrap: pretty; }
.story__body { max-width: 68ch; color: var(--ink); font-size: 1.0625rem; }
.story__body p + p { margin-top: 1.2em; }
.notes__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 6vw, 96px); padding-block: 32px; border-top: 1px solid var(--sand); }
.notes__row .title { font-size: clamp(2rem, 3.6vw, 3rem); }
.notes__row p { max-width: 68ch; color: var(--ink); }
.gallery { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.4vw, 22px); }
.gallery::after { content: ''; flex: 4 1 0; }
.gallery__item { display: block; flex: var(--r) 1 calc(var(--r) * 340px); overflow: hidden; border-radius: 4px; background: var(--paper); cursor: zoom-in; aspect-ratio: var(--r); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.035); }

.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(30, 17, 10, .96); color: var(--paper); touch-action: pan-y pinch-zoom; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { display: grid; place-items: center; width: 100%; height: 100%; padding: 72px clamp(12px, 6vw, 96px); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 144px); max-height: calc(100dvh - 144px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 3px; background: rgba(250, 246, 240, .12); color: var(--paper); cursor: pointer; }
.lightbox__btn:hover { background: var(--sand); color: var(--ink); }
.lightbox__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: calc(50% - 26px); }
.lightbox__next { right: 16px; top: calc(50% - 26px); }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: .875rem; }
body:has(.lightbox[open]) { overflow: hidden; }

.nextup { padding-block: clamp(48px, 6vw, 88px); }
.nextup__link { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.nextup small { display: block; font-size: 1.125rem; color: var(--rust); }
.nextup strong { display: block; font-family: var(--display); font-size: clamp(2.25rem, 5.6vw, 5rem); line-height: 1.15; letter-spacing: -.025em; color: var(--espresso); }
.nextup strong .arrow { display: inline-block; width: .7em; height: .7em; }
.nextup__link:hover strong .arrow { transform: translate(4px, -4px); }
.nextup img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }

/* ---------- Dịch vụ ---------- */
.section--espresso .offer__row { border-top-color: rgba(224, 168, 90, .55); }
.section--espresso .offer__row:first-child { border-top: 0; padding-top: 0; }
.section--espresso .offer__row:last-child { padding-bottom: 0; }
.section--espresso .offer__row h2 { color: var(--paper); }
.section--espresso .offer__row li { border-bottom-color: rgba(250, 246, 240, .18); color: var(--paper); }
.offer__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 96px); padding-block: clamp(32px, 4.4vw, 64px); border-top: 2px solid var(--sand); }
.offer__row h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); font-weight: 700; letter-spacing: -.025em; }
.offer__row ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; align-content: start; }
.offer__row li { display: flex; align-items: center; gap: 14px; padding-block: 14px; border-bottom: 1px solid rgba(224, 168, 90, .35); color: var(--ink); font-size: 1.125rem; }
.offer__row li::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--sand); transition: background-color .25s, transform .25s var(--ease); }
.offer__row li:hover::before { transform: scale(1.7); }

.slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * clamp(12px, 1.4vw, 22px)) / 3); gap: clamp(12px, 1.4vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
/* Trong slider mọi khung bằng nhau; chừa mép để viền tiêu điểm và góc khoét không bị cắt. */
.slider { --r: 16px; padding: 6px; margin: -6px; scroll-padding-inline: 6px; }
.slider > .tile { min-width: 0; aspect-ratio: 5 / 4; scroll-snap-align: start; }
.js .slider [data-reveal] { opacity: 1; transform: none; }
.slider__controls { display: flex; gap: 8px; }
.slider__btn { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 2px solid var(--rust); border-radius: 3px; background: transparent; color: var(--rust); cursor: pointer; }
.slider__btn:hover:not(:disabled) { border-color: var(--sand); background: var(--sand); color: var(--ink); }
.slider__btn:disabled { opacity: .35; cursor: default; }
.slider__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Liên hệ ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.contact__info dl > div { padding-block: 18px; border-top: 1px solid var(--sand); }
.contact__info dt { font-size: .875rem; font-weight: 700; color: var(--rust); }
.contact__info dd { color: var(--ink); font-size: 1.1875rem; overflow-wrap: anywhere; }
.contact__info dd a { color: var(--rust); font-weight: 700; }
.contact__info dd a:hover { text-decoration: underline var(--sand) 3px; text-underline-offset: 5px; }
.contact__info h2 { margin-block: 40px 12px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.contact__info .contact__hours > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 12px; }
.contact__hours dt { font-size: 1rem; font-weight: 400; color: var(--ink); }
.contact__hours dd { font-size: 1rem; }
.contact__panel { padding: clamp(24px, 4vw, 56px); border-radius: 6px; background: var(--paper); }
.contact__panel > h2 { margin-bottom: 28px; font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 600; line-height: 1.3; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field--message, .form__foot { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 700; font-size: .9375rem; }
.field label span { color: var(--rust); }
.field input, .field textarea { display: block; width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 3px; background: var(--white); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px rgba(224, 168, 90, .45); }
.field.is-bad input, .field.is-bad textarea { border-color: #a4231a; }
.field__error { margin-top: 6px; color: #8e1d15; font-size: .875rem; line-height: 1.5; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form__foot p { font-size: .875rem; }
.btn:disabled { opacity: .65; cursor: wait; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice--bad { margin-bottom: 24px; padding: 14px 18px; border-left: 4px solid #a4231a; background: var(--white); color: #8e1d15; font-weight: 600; }
.notice--ok h2 { margin-bottom: 12px; font-size: clamp(2rem, 3.6vw, 3rem); }
.notice--ok p { max-width: 48ch; margin-bottom: 28px; color: var(--ink); font-size: 1.125rem; }

/* ---------- Tìm kiếm ---------- */
.searchpage { display: flex; gap: 12px; max-width: 760px; margin-top: 32px; }
.searchpage input { flex: 1; min-width: 0; min-height: 52px; padding: 0 4px; border: 0; border-bottom: 2px solid var(--rust); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--display); font-size: clamp(1.125rem, 2.2vw, 1.75rem); }
.results__note { font-size: 1.125rem; }
.results__title { margin-bottom: 24px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.mosaic + .results__title { margin-top: clamp(48px, 6vw, 80px); }
.results__services a { display: flex; align-items: center; gap: 20px; min-height: 64px; padding-block: 12px; border-top: 1px solid var(--sand); color: var(--ink); font-size: 1.125rem; }
.results__services small { margin-left: auto; color: var(--muted); font-size: .875rem; }
.results__services a:hover { background: var(--sand-soft); }

/* ---------- Hiện dần khi cuộn ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Màn hình nhỏ ---------- */
/* Màn hẹp: quy trình vẫn nằm ngang, vuốt sang để xem tiếp. */
@media (max-width: 900px) {
    .steps { --step-gap: 24px; grid-auto-columns: minmax(220px, 40%); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
    .step { scroll-snap-align: start; }
}

@media (max-width: 860px) {
    :root { --header: 74px; }
    .nav, .lang--header { display: none; }
    .header__tools { margin-left: auto; }
    .logo img { width: 94px; }
    .about__grid, .clients__head { grid-template-columns: minmax(0, 1fr); }
    .tree { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 40px 0 0 34px; }
    .tree::before { left: 6px; top: 0; bottom: 8px; width: 2px; height: auto; }
    .tree::after { display: none; }
    .js .tree::before { transform: none; }
    .tree__branch::before { left: -28px; top: 22px; width: 20px; height: 2px; }
    .tree__branch::after { left: -34px; top: 16px; }
    .story__grid, .notes__row, .offer__row, .contact, .nextup__link { grid-template-columns: minmax(0, 1fr); }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .slider { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; }
}

@media (max-width: 760px) {
    .footer__main { grid-template-columns: minmax(0, 1fr); }
    .footer__brand { width: min(50%, 220px); }
}

@media (max-width: 560px) {
    .footer__grid { grid-template-columns: minmax(0, 1fr); }
    .hero__title { font-size: clamp(2.5rem, 13.2vw, 4.5rem); }
    .pixelword { display: block; width: fit-content; font-size: 2.1em; line-height: 1; }
    .hero__actions .btn { width: 100%; }
    .search__row { flex-direction: column; }
    .search input { min-height: 44px; }
    .searchpage { flex-direction: column; }
    .searchpage input { flex: none; }
    .filters { gap: 8px; }
    .filters a { padding-inline: 14px; font-size: .9375rem; }
    .gallery__item { flex-basis: 100%; }
    .gallery::after { display: none; }
    .offer__row ul, .form { grid-template-columns: minmax(0, 1fr); }
    .slider { grid-auto-columns: 84%; }
    .slider > .tile { aspect-ratio: 1 / 1; }
    .slider .tile__label { left: 10px; top: 10px; max-width: calc(100% - 82px); padding: 8px 12px 9px; }
    .slider .tile__facts { left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    @view-transition { navigation: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .js .tree::before { transform: none; }
    .js .step:hover .step__no, .js .step:focus-visible .step__no { box-shadow: 0 0 0 5px rgba(224, 168, 90, .3), 0 0 24px 6px rgba(224, 168, 90, .65); }
}
