/* Số đo lấy theo ảnh tham khảo ở khổ 1080px: lề 16px, 2 cột chia đôi, chữ 16px */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #9a9a9a;
  --line: #e2e2e2;
  --ph: #f0f0ee;
  --accent: #ff4d00;
  --pad: 16px;
  --gap: 16px;
  --h1: clamp(38px, 8.6vw, 124px);
  --h2: clamp(40px, 5.2vw, 76px);
  --space: clamp(120px, 20vw, 280px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

.container { padding-inline: var(--pad); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.label { font-weight: 600; }
.muted { color: var(--muted); }
.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 4px; transition: opacity .2s;
}
.link:hover { opacity: .5; }

/* Phụ đề tiếng Việt */
.vi { color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.45; letter-spacing: 0; }
.vi-label { display: block; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.vi-sub { color: var(--muted); font-size: clamp(15px, 1.5vw, 19px); font-weight: 500; letter-spacing: -0.01em; margin-top: 8px; }
.menu small { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 8px; }

/* Logo */
.logo { font-weight: 700; font-size: 20px; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.logo .dot { color: var(--accent); }

/* Nav: ẩn ở đầu trang, trượt xuống khi cuộn */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding-inline: var(--pad);
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform .5s var(--ease);
}
.nav.show, .nav.open { transform: none; }
.menu-btn { font-weight: 600; }
.menu {
  position: absolute; top: 48px; right: 0; left: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px var(--pad) 24px; background: #fff; border-bottom: 1px solid var(--line);
  font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.15;
  clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease);
}
.nav.open .menu { clip-path: inset(0 0 0 0); }
.menu a:hover { opacity: .5; }

/* Ô ảnh trống */
.ph {
  background: var(--ph); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ph::after { content: attr(data-label); font-size: 13px; color: #b0b0ac; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ph:has(img)::after { display: none; }

/* Hero */
.hero { padding-top: clamp(64px, 9vw, 120px); }
h1 { font-size: var(--h1); font-weight: 600; letter-spacing: -0.058em; line-height: 1.06; }
.hero-title { padding-bottom: clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.hero-row { margin-top: 24px; }
.hero-img { width: 56%; aspect-ratio: 4 / 5; }
.hero-text { max-width: 480px; }
.hero-text .label { margin-bottom: 14px; }
.hero-text p + p { margin-top: 18px; }
.hero-text p + p.vi { margin-top: 6px; }
.hero-text p:not(.label) { line-height: 1.4; }

/* Section header */
.section { padding-top: var(--space); }
h2 { font-size: var(--h2); font-weight: 600; letter-spacing: -0.038em; line-height: 1.05; }
.sec-head {
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; column-gap: var(--gap);
  padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.sec-head .label, .sec-head .link { padding-bottom: 4px; }
.sec-head > :nth-child(n+2) { grid-column: 2; grid-row: 1; }
.sec-head > :nth-child(3) { justify-self: end; text-align: right; }

/* Dự án */
.split.projects { grid-template-columns: repeat(6, 1fr); column-gap: 12px; row-gap: clamp(32px, 3vw, 44px); }
@media (max-width: 1199px) { .split.projects { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 959px) { .split.projects { grid-template-columns: repeat(4, 1fr); } }
.card .ph { aspect-ratio: 4 / 5; }
.card .card-title { font-size: 14px; margin-top: 10px; line-height: 1.3; }
.card .muted { font-size: 13px; line-height: 1.35; margin-top: 2px; }
.card .vi { font-size: 12px; }
.card:hover .ph img { transform: scale(1.03); }
.card .vi { margin-top: 1px; }
.card-title { margin-top: 14px; display: flex; flex-wrap: wrap; column-gap: 8px; align-items: baseline; }
.card-title .go { font-size: 13px; opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); }
a.card:hover .go { opacity: 1; transform: none; }

/* Dịch vụ */
.service { max-width: 380px; margin-bottom: 56px; }
.service h3 { font-size: 16px; font-weight: 600; }
.service .vi-label { margin-bottom: 10px; }
.service p:not([class]) { color: #6b6b6b; }

/* Lời chứng thực */
.testi { align-items: center; }
.testi-img { width: 72%; aspect-ratio: 5 / 7.8; }
.testi-body { max-width: 390px; transition: opacity .35s var(--ease); }
.testi-body.fade { opacity: 0; }
blockquote { font-size: 17px; line-height: 1.38; }
.testi-body .vi { margin: 10px 0 30px; }
.testi-nav { display: flex; gap: 8px; align-items: center; margin-top: 48px; }
.testi-nav .sep { width: 5px; height: 5px; background: var(--muted); }
#prevBtn { color: var(--muted); }

/* FAQ */
.faq { margin-top: -16px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; text-align: left; font-weight: 500;
}
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: var(--fg); transition: transform .35s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: #6b6b6b; max-width: 420px; padding-top: 4px; }
.faq-a p.vi { color: var(--muted); padding: 6px 0 32px; }
.faq-q .vi-label { margin-top: 2px; }
.faq-more { margin-top: 56px; }
.faq-more .link { display: inline-block; margin-top: 6px; }

/* Bài viết */
.posts { row-gap: clamp(56px, 8vw, 90px); align-items: start; }
.post-meta { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.post-meta .sep { width: 4px; height: 4px; background: var(--muted); }
.post .ph { aspect-ratio: 3 / 2; }
.post.tall .ph { aspect-ratio: 3 / 4; }
.post:hover .ph img { transform: scale(1.03); }
.post h3 { font-size: 16px; font-weight: 600; margin-top: 14px; }
.post .vi { margin-top: 2px; }

/* Footer */
.footer { padding-top: var(--space); padding-bottom: 24px; }
.cta {
  display: inline-block; margin-top: 14px;
  font-size: var(--h1); font-weight: 600; letter-spacing: -0.065em; line-height: 1.06;
}
.cta .arrow { display: inline-block; transition: transform .4s var(--ease); }
.cta:hover .arrow { transform: translateX(16px); }
.footer .vi-sub { margin-top: 10px; }
.foot-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(64px, 9vw, 120px); padding-top: 16px; border-top: 1px solid var(--line);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }

/* Hiện dần khi cuộn */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet */
@media (max-width: 1023px) {
  .split.projects { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 767px) {
  .split { grid-template-columns: 1fr; }
  .hero-img, .testi-img { width: 100%; }
  .hero-row { gap: 24px; }
  .sec-head { grid-template-columns: 1fr auto; row-gap: 12px; }
  .sec-head > :first-child { grid-column: 1 / -1; }
  .sec-head > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .sec-head > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .sec-head > span:empty + .label { grid-column: 1; justify-self: start; }
  .testi { gap: 32px; }
  .testi-nav { margin-top: 28px; }
  .service { margin-bottom: 40px; }
  .faq { margin-top: 0; }
  .split.projects { grid-template-columns: repeat(3, 1fr); column-gap: 8px; row-gap: 24px; }
  .card .card-title { font-size: 12.5px; }
  .card .muted { font-size: 11.5px; }
  .card .vi { display: none; }
  .card-title .go { display: none; }
}
