/* ============ THEME (đổi màu ở đây) ============ */
:root {
  --bg: #ffffff;
  --soft: #f5f5f5;
  --text: #303030;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --navy: #131c94;
  --purple: #5e67e6;
  --green: #0bde66;
  --dark: #303030;
  --display: "Antonio", "Oswald", Impact, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  overflow-x: clip;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 140px; }
.center { text-align: center; margin-top: 48px; }

h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.01em;
}
.intro { max-width: 46ch; margin: 16px 0 40px; color: var(--muted); }

.btn-outline {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .02em;
  color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px; padding: 8px 26px;
  background: transparent; cursor: pointer; transition: background .25s, color .25s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.tag { display: inline-block; background: var(--purple); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 999px; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 22px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.nav-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 20px; font-size: 14px; }
.nav-links a { color: var(--text); opacity: .75; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { background: var(--dark); color: #fff; font-size: 14px; padding: 8px 22px; border-radius: 999px; transition: background .2s; }
.nav-cta:hover { background: #000; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; padding-top: 110px; padding-bottom: 60px;
  display: grid; grid-template-columns: 1fr minmax(260px, 340px) 1fr; align-items: center; gap: 24px;
}
.hero-word {
  font-family: var(--display); font-weight: 700; line-height: .9;
  font-size: clamp(64px, 9vw, 128px); letter-spacing: -0.01em;
}
.hero-left { text-align: right; position: relative; padding-bottom: 120px; }
.hero-left .status { position: absolute; right: 0; bottom: calc(100% + 4px); white-space: nowrap; }
.hero-name { font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); line-height: 1; margin-bottom: 6px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(11,222,102,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(11,222,102,0); } }
.hero-photo { position: relative; }
.hero-photo > img { width: 100%; aspect-ratio: 340 / 500; object-fit: cover; border-radius: var(--radius); animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.hero-right p { max-width: 24ch; margin-top: 16px; text-align: right; color: var(--text); }
.hero-right { display: flex; flex-direction: column; align-items: flex-start; }
.hero-right p { text-align: left; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.96); } }

/* Waving "Xin Chào" badge */
.hello {
  position: absolute; left: -36px; bottom: -36px; width: 112px; height: 112px;
  border-radius: 50%; background: var(--navy); display: grid; place-items: center;
}
.hello svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.hello text { font-family: var(--display); font-size: 10.5px; letter-spacing: 1.4px; fill: #fff; }
.wave { font-size: 34px; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wave { 0%,60%,100% { transform: rotate(0); } 10%,30% { transform: rotate(16deg); } 20%,40% { transform: rotate(-8deg); } }

/* ============ SERVICES ============ */
.services, .about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display); font-size: 24px; letter-spacing: .01em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); transition: transform .3s; margin-right: 6px; }
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion ul { list-style: none; padding: 0 0 18px; display: grid; gap: 6px; color: var(--muted); }
.accordion li::before { content: "→ "; color: var(--purple); }

.tilt-photo img { width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.12); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tilt-right img { transform: rotate(6deg); }
.tilt-left img { transform: rotate(-5deg); }
.tilt-photo:hover img { transform: rotate(0); }

/* ============ ABOUT ============ */
.about-text { margin: 20px 0 32px; max-width: 52ch; }
.about-text p + p { margin-top: 14px; }
.stats { display: flex; gap: 40px; margin-bottom: 28px; }
.stats strong { display: block; font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--purple); }
.stats span { font-weight: 600; font-size: 14px; }
.contact-mini { display: flex; gap: 48px; margin-bottom: 28px; font-size: 15px; }
.contact-mini b, .footer-grid b { display: block; font-weight: 600; }

/* ============ PROJECTS (sticky stack) ============ */
.stack { display: grid; gap: 40px; }
.card {
  position: sticky; top: 90px; display: block; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 16 / 9; background: #111;
  box-shadow: 0 -10px 40px rgba(0,0,0,.12);
}
.card:nth-child(2) { top: 110px; }
.card:nth-child(3) { top: 130px; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover img { transform: scale(1.04); }
.card-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: #fff; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.15) 60%, rgba(0,0,0,.05));
  padding: 24px;
}
.card h3 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 72px); line-height: 1.05; margin: 10px 0 4px; }
.card p { font-size: 15px; opacity: .9; }

/* ============ REVIEWS ============ */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.col { display: grid; gap: 20px; }
.review { background: var(--soft); border-radius: 20px; padding: 28px; }
.stars { color: var(--navy); letter-spacing: 3px; font-size: 18px; margin-bottom: 12px; }
.review blockquote { font-size: 14px; line-height: 1.65; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.review figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review figcaption b { display: block; font-size: 14px; }
.review figcaption span { font-size: 13px; color: var(--muted); }
.metric { border-radius: 20px; padding: 28px; color: #fff; min-height: 300px; display: flex; flex-direction: column; }
.metric p { font-size: 14px; }
.metric .who { margin-top: 12px; }
.metric strong { margin-top: auto; padding-top: 32px; font-family: var(--display); font-weight: 700; font-size: 72px; line-height: 1; }
.metric span { font-size: 13px; opacity: .85; }
.metric-dark { background: var(--dark); }
.metric-purple { background: var(--purple); }

/* ============ BLOGS ============ */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.post-img { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 11; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.post:hover .post-img img { transform: scale(1.05); }
.post-meta { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.post h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; }
.post p { color: var(--muted); font-size: 15px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; padding-bottom: 140px; }
.contact-photo { position: relative; max-width: 300px; margin-left: auto; }
.contact-photo > img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--purple); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--soft);
  border: 1.5px solid transparent; border-radius: 16px; padding: 12px 18px; outline: none; resize: vertical;
}
.form input { border-radius: 999px; }
.form input:focus, .form textarea:focus { border-color: var(--purple); background: #fff; }
.form button { justify-self: start; }

/* ============ FOOTER ============ */
.footer { background: #000; color: #fff; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 15px; }
.footer-grid a { opacity: .75; } .footer-grid a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: 56px; flex-wrap: wrap; font-size: 13px; opacity: .8; }
.footer-big { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 12vw, 160px); line-height: .85; opacity: 1; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hello svg, .wave, .dot, .hero-photo > img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 8px; min-height: auto; padding-top: 96px; }
  .tilt-photo { padding: 0 20px; }
  .hero-left, .hero-right { text-align: center; align-items: center; }
  .hero-left { padding-bottom: 0; }
  .hero-left .status { position: static; }
  .hero-right p { text-align: center; }
  .hero-photo { max-width: 300px; margin: 16px auto; }
  .hero-word { font-size: clamp(64px, 18vw, 110px); }
  .services, .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .about .tilt-photo { order: -1; }
  .review-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-photo { margin: 0 auto; }
  .section { padding-top: 100px; }
  .card { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav { gap: 12px; width: calc(100% - 24px); justify-content: space-between; }
  .nav-links { gap: 12px; font-size: 13px; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
  .stats { gap: 24px; }
  .stats strong { font-size: 44px; }
  .contact-mini { flex-direction: column; gap: 12px; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hello { width: 92px; height: 92px; left: -20px; bottom: -24px; }
  .card { aspect-ratio: 3 / 4; }
}

/* =====================================================
   SUBPAGES (About, Projects, Blogs, case studies)
   ===================================================== */
.nav-links a.active { opacity: 1; font-weight: 600; }
.page-top { padding-top: 140px; }
.page-top:last-child { padding-bottom: 140px; }
.page-title { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 9vw, 112px); line-height: .95; }
.narrow { max-width: 1048px; }
.tag-outline { background: transparent; color: var(--purple); border: 1px solid var(--purple); }
.back { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.back:hover { color: var(--text); }

/* Case study hero */
.cs-hero { padding-top: 140px; }
.cs-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 8vw, 96px); line-height: 1; margin: 16px 0 10px; }
.cs-hero h1.post-title { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; }
.cs-sub { font-size: 18px; color: var(--muted); max-width: 60ch; }
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.cs-facts dt { font-size: 14px; }
.cs-facts dd { color: var(--purple); font-weight: 600; font-size: 15px; margin-top: 2px; }
.cs-hero .post-meta { margin-top: 18px; }
.cs-cover { margin-top: 56px; }
.cs-cover img { width: 100%; border-radius: var(--radius); }
.cs-cover.narrow img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Long-form content */
.prose { padding-top: 24px; font-size: 16px; }
.prose > p { margin: 14px 0; color: #444; }
.prose .cs-label { font-family: var(--display); font-size: 26px; text-transform: uppercase; color: var(--text); margin: 96px 0 8px; }
.prose .statement { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; margin: 0 0 20px; }
.prose h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 28px; line-height: 1.15; margin: 44px 0 10px; }
.prose h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 21px; margin: 32px 0 6px; }
.prose ul { margin: 12px 0 12px 22px; display: grid; gap: 4px; color: #444; }
.blog-prose .statement { margin-top: 56px; font-size: clamp(30px, 4vw, 44px); }
.blog-prose h3 { font-size: 32px; margin-top: 56px; }

.gallery { display: grid; gap: 14px; margin: 40px 0; }
.gallery.g2 { grid-template-columns: 1fr 1fr; }
.gallery.g3 { grid-template-columns: repeat(3, 1fr); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; background: var(--soft); }
.gallery.g1 img { height: auto; }
.gallery figcaption { grid-column: 1 / -1; text-align: center; font-size: 13px; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.table-wrap th { background: var(--soft); text-align: left; font-weight: 500; padding: 12px 14px; vertical-align: top; }
.table-wrap td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; color: #444; }
.table-wrap td + td, .table-wrap th + th { border-left: 1px solid var(--line); }
.table-wrap td p + p { margin-top: 8px; }
.table-wrap td ul { margin: 4px 0 0 18px; }

.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 28px 0; }
.cs-stats div { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.cs-stats div + div { border-left: 1px solid var(--line); }
.cs-stats strong { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(36px, 5vw, 56px); line-height: 1; background: var(--soft); margin: -18px -18px 0; padding: 18px; }
.cs-stats span { font-size: 14px; color: var(--muted); }

.more { padding-top: 120px; padding-bottom: 120px; }
.more h2 { margin-bottom: 32px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.more-card h3, .post h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; margin-top: 16px; }
.more-card p { color: var(--muted); font-size: 15px; }
.more-card .post-img { aspect-ratio: 16 / 10; }
.more-card:hover .post-img img { transform: scale(1.05); }

/* Blog list */
.featured-post { margin-bottom: 56px; }
.post-wide { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.post-wide .post-img { grid-row: span 4; }
.post-wide .post-meta { margin-top: 0; }
.post-wide h3 { font-size: 36px; }
.blog-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.blog-grid-3 .post h3 { font-size: 22px; }

/* About */
.about-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.about-name { color: var(--purple); font-size: 36px; margin-top: 8px; }
.lead { font-size: 20px; max-width: 32ch; margin: 18px 0 28px; }
.about-hero .hero-photo { max-width: 360px; margin-left: auto; }
.about-hero .hero-photo > img { aspect-ratio: 3 / 4; }
.timeline { list-style: none; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 1.2fr 1.2fr auto; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline .role { font-family: var(--display); font-size: 26px; text-transform: uppercase; }
.timeline .org { color: var(--muted); }
.timeline .when { color: var(--purple); font-weight: 600; }
.timeline .when { order: 3; }
.about-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.about-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; }
.about-gallery img:nth-child(2) { transform: translateY(40px); }
.steps { display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: 90px 1fr 280px; gap: 24px; align-items: center; background: var(--soft); border-radius: 20px; padding: 28px; }
.step-num { font-family: var(--display); font-weight: 700; font-size: 48px; color: var(--purple); line-height: 1; }
.step h3 { font-family: var(--display); font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.step p { color: #444; font-size: 15px; }
.step img { width: 100%; border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; }
.step:not(:has(img)) { grid-template-columns: 90px 1fr; }

@media (max-width: 900px) {
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .about-hero, .post-wide { grid-template-columns: 1fr; }
  .about-hero .hero-photo { margin: 0 auto; }
  .blog-grid-3, .more-grid { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .timeline .when { order: 0; }
  .step { grid-template-columns: 1fr; }
  .step:not(:has(img)) { grid-template-columns: 1fr; }
  .about-gallery img:nth-child(2) { transform: none; }
  .page-top, .cs-hero { padding-top: 110px; }
}
@media (max-width: 560px) {
  .blog-grid-3, .more-grid, .gallery.g2, .gallery.g3 { grid-template-columns: 1fr; }
  .cs-stats { grid-template-columns: 1fr; }
  .cs-stats div + div { border-left: 0; border-top: 1px solid var(--line); }
  .about-gallery { grid-template-columns: 1fr 1fr; }
  .prose .cs-label { margin-top: 64px; }
}

/* ============ PASSWORD LOCK ============ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lock { min-height: 100vh; display: grid; place-items: center; padding-top: 120px; padding-bottom: 120px; }
main[data-locked] .lock-card { opacity: 0; }
main.lock-ready .lock-card { opacity: 1; transition: opacity .3s; }
.lock-card { width: 100%; max-width: 440px; text-align: center; }
.lock-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); font-size: 26px; margin-bottom: 20px; }
.lock-card h1 { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 8vw, 72px); line-height: 1; }
.lock-card > p { color: var(--muted); margin: 12px 0 28px; }
.lock-form { display: flex; gap: 10px; }
.lock-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--text); background: var(--soft);
  border: 1.5px solid transparent; border-radius: 999px; padding: 12px 20px; outline: none;
}
.lock-form input:focus { border-color: var(--purple); background: #fff; }
.lock-form button:disabled { opacity: .6; cursor: wait; }
.lock-card .lock-error { color: #d92d20; margin: 14px 0 0; font-size: 14px; }
.lock-card .lock-alt { font-size: 14px; margin-top: 28px; }
.lock-alt a { color: var(--navy); text-decoration: underline; }
@media (max-width: 420px) { .lock-form { flex-direction: column; } }
.img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0; align-items: start; }
.img-row img { width: 100%; border-radius: 16px; background: var(--soft); }
.img-row figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 560px) { .img-row { grid-template-columns: 1fr; } }
/* CMS image slots: full-width hero image + rows of two (Framer: 1000px / 488px, ~5:3) */
.img-full, .img-row { margin: 40px 0 0; }
.img-full + .img-row { margin-top: 24px; }
.img-full img { width: 100%; border-radius: 16px; background: var(--soft); }
.img-row { gap: 24px; }
.img-row img { aspect-ratio: 488 / 294; object-fit: cover; }
.img-full figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose .img-row:last-child, .prose .img-full:last-child { margin-bottom: 40px; }

/* ============ DESIGN PROCESS BENTO (matches Framer /about) ============ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: minmax(398px, auto) minmax(380px, auto) minmax(398px, auto); gap: 20px; }
.bento-card { border-radius: 20px; padding: 40px; display: flex; flex-direction: column; color: #fff; }
.bento-card.dark { background: var(--dark); }
.bento-card.purple { background: var(--purple); }
.bento-card.light { background: var(--soft); color: var(--text); }
.bento-card.span2 { grid-column: span 2; }
.bento-card .step-num { font-family: var(--display); font-weight: 700; font-size: 60px; line-height: 1; color: inherit; }
.bento-card h3 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.1; text-transform: uppercase; margin: 12px 0 10px; }
.bento-card p { font-size: 14px; line-height: 1.5; opacity: .92; }
.bento-card.light p { color: #444; opacity: 1; }
.bento-img { border-radius: 20px; overflow: hidden; background: var(--soft); }
.bento-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: minmax(300px, auto); }
  .bento-card.span2 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-card.span2 { grid-column: auto; }
  .bento-card { padding: 28px; }
  .bento-img { aspect-ratio: 4 / 3; }
}
#process.wrap { max-width: 1168px; }
.bento-card { overflow: hidden; }

/* ============ LANGUAGE SWITCH ============ */
.lang-switch { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; font-size: 12px; font-weight: 600; }
.lang-switch a { padding: 5px 10px; border-radius: 999px; color: var(--muted); line-height: 1; transition: background .2s, color .2s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
@media (max-width: 560px) {
  .nav { gap: 8px; padding-left: 4px; }
  .nav-avatar img { width: 30px; height: 30px; }
  .nav-links { gap: 10px; font-size: 12.5px; }
  .lang-switch a { padding: 5px 7px; }
  .nav-cta { padding: 7px 11px; font-size: 12.5px; }
}
@media (max-width: 400px) { .nav-avatar { display: none; } }

/* Vietnamese: Barlow Semi Condensed SemiBold (600) for headings (Antonio has no Vietnamese diacritics).
   Only the 600 weight is loaded -> every heading uses 600, never synthesize bold. */
html[lang="vi"] { --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif; font-synthesis: none; }
html[lang="vi"] :is(h1, h2, h3, h4, .hero-word, .hero-name, .page-title, .statement, .step-num, .stats strong, .metric strong, .cs-stats strong, .footer-big, .btn-outline, .accordion summary, .timeline .role, .cs-label, .bento-card h3, .post h3, .more-card h3, .card h3) { font-weight: 600; }
html[lang="vi"] .hero-word { font-size: clamp(52px, 7.4vw, 104px); }
/* Vietnamese diacritics need more room between heading lines */
html[lang="vi"] .page-title, html[lang="vi"] .hero-word { line-height: 1.12; }
html[lang="vi"] h2, html[lang="vi"] .cs-hero h1, html[lang="vi"] .statement, html[lang="vi"] .card h3 { line-height: 1.18; }
html[lang="vi"] .post h3, html[lang="vi"] .more-card h3, html[lang="vi"] .prose h3, html[lang="vi"] .prose h4, html[lang="vi"] .timeline .role, html[lang="vi"] .bento-card h3, html[lang="vi"] .lock-card h1 { line-height: 1.25; }

/* ============ HERO ALIGNMENT: LEAD and DESIGNER share one grid row (bottom-aligned) ============ */
@media (min-width: 901px) {
  .hero { grid-template-rows: 1fr auto 1fr; align-items: stretch; row-gap: 0; }
  .hero-photo { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .hero-left { grid-column: 1; grid-row: 2; align-self: end; padding-bottom: 0; }
  .hero-right { display: contents; }
  .hero-right .hero-word { grid-column: 3; grid-row: 2; align-self: end; }
  .hero-right p { grid-column: 3; grid-row: 3; align-self: start; margin-top: 16px; }
  .hero-word { line-height: .9; }
  html[lang="vi"] .hero-word { line-height: .9; }
}

/* Vietnamese heading tracking (Figma −3% = −0.03em). Change --vi-tracking to adjust. */
html[lang="vi"] { --vi-tracking: -0.03em; }
html[lang="vi"] :is(h1, h2, h3, h4, .hero-word, .hero-name, .page-title, .statement, .step-num, .stats strong, .metric strong, .cs-stats strong, .footer-big, .btn-outline, .accordion summary, .timeline .role, .cs-label, .bento-card h3, .post h3, .more-card h3, .card h3) { letter-spacing: var(--vi-tracking); }
