/* AM Sans: font riêng của AMX (SIL OFL 1.1, xem fonts/OFL.txt). Bản variable, một file phủ mọi độ đậm 300-900. size-adjust phóng glyph vì AM Sans hẹp, nhỏ hơn Google Sans cùng cỡ (đổi con số này để chỉnh cỡ chữ cả theme). */
@font-face { font-family: "AM Sans"; src: url("../fonts/AMSans-VF.woff2?v=2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; size-adjust: 115%; }
@font-face { font-family: "AM Sans"; src: url("../fonts/AMSans-Italic-VF.woff2?v=2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; size-adjust: 115%; }

:root {
  --amx-font: "AM Sans", ui-sans-serif, system-ui, sans-serif;
  --amx-brand: #4326c4;
  --amx-ink: #221b35;
  --amx-muted: #6f6679;
  --amx-canvas: #f8f3ea;
  --amx-shadow: 0 1px 3px rgba(31, 24, 50, .07), 0 12px 28px -24px rgba(31, 24, 50, .5);
  --amx-shadow-lift: 0 2px 6px rgba(31, 24, 50, .06), 0 24px 40px -26px rgba(31, 24, 50, .5);
  --amx-ease: cubic-bezier(.22, 1, .36, 1);
  --amx-ease-expo: cubic-bezier(.16, 1, .3, 1);
  --amx-ease-spring: cubic-bezier(.34, 1.45, .64, 1);
}

html { scroll-padding-top: 80px; }
.amx-theme { background: var(--amx-canvas); color: var(--amx-ink); font-size: 16px; }
.amx-theme * { letter-spacing: 0 !important; }
.amx-theme .font-mono, .amx-theme time, .amx-theme .price-display { font-family: var(--amx-font) !important; font-variant-numeric: tabular-nums; }
.amx-theme .max-w-7xl { max-width: 1380px; }
.amx-theme > nav { background: #f8f3ea; box-shadow: 0 1px 3px rgba(31, 24, 50, .08); }
.amx-theme > nav > div > div > a img { max-width: 168px; height: 34px; object-fit: contain; }
.amx-theme > nav .static-dropdown > div:first-child { padding-block: 22px; }
.amx-theme > nav a:focus-visible, .amx-theme button:focus-visible, .amx-theme #amx-content a:focus-visible { outline: 2px solid var(--amx-brand); outline-offset: 3px; }
.amx-theme > nav .static-dropdown > div:nth-child(2) { border: 0; border-radius: 8px; box-shadow: 0 12px 36px rgba(31, 24, 50, .14); }
.amx-theme > nav .static-dropdown > div:nth-child(2) > div:first-child { padding: 24px; gap: 24px; }
.amx-theme > nav .static-dropdown ul { gap: 8px; }
/* Tiêu đề và menu in hoa: chỉ đổi cách hiển thị, nội dung nhập trong CMS giữ nguyên */
.amx-theme :is(h1, h2, h3, h4, h5, h6) { text-transform: uppercase; }
.amx-theme > nav :is(a, button), .amx-theme footer :is(ul, .border-t) a:not([href^="mailto:"], [href^="tel:"]) { text-transform: uppercase; }

#amx-content { min-height: 46vh; outline: none; }
#amx-content > section { padding-block: 52px; }
#amx-content > section:first-child:not(.amx-home-hero) { padding-top: 112px; padding-bottom: 52px; }
#amx-content > section.bg-white, #amx-content > section.bg-gray-50, #amx-content > section.bg-primary-light,
#amx-content > section.bg-grid { background: var(--amx-canvas) !important; }
#amx-content .bg-grid { background-image: none !important; }
#amx-content .blur-3xl, #amx-content [class*="blur-["] { display: none !important; }
#amx-content .backdrop-blur, #amx-content [class*="backdrop-blur-"] { backdrop-filter: none !important; }
#amx-content [class*="bg-gradient-to-"] { background-image: none !important; }
#amx-content [class*="bg-gradient-to-"]:not(.bg-clip-text) { background-color: var(--amx-canvas) !important; }
#amx-content .absolute.inset-0[class*="bg-gradient-to-"] { background-color: rgba(31, 24, 50, .78) !important; }
#amx-content .absolute.inset-0[class*="from-white"] { background-color: #fff !important; }
#amx-content [class*="from-primary"]:not(.bg-clip-text), #amx-content [class*="bg-gradient-to-"].text-white,
#amx-content :is(a, button)[class*="bg-gradient-to-"] { background-color: var(--amx-brand) !important; }
#amx-content .bg-clip-text.text-transparent { color: var(--amx-brand) !important; -webkit-text-fill-color: var(--amx-brand) !important; }
#amx-content :is(.bg-black, .bg-gray-950, .bg-gray-900, [class*="bg-[#0"]) .bg-clip-text.text-transparent { color: #d4cbf5 !important; -webkit-text-fill-color: #d4cbf5 !important; }
#amx-content :is(.rounded-2xl, .rounded-3xl, [class*="rounded-["]) { border-radius: 8px !important; }
#amx-content :is(.shadow-sm, .shadow-md, .shadow-lg, .shadow-xl, .shadow-2xl, .shadow-card) { box-shadow: var(--amx-shadow) !important; }
#amx-content :is(.border-gray-100, .border-gray-200) { border-color: transparent; }
#amx-content :is(input, select, textarea) { border: 1px solid #d9cfc0 !important; border-radius: 6px !important; background: #fff; color: var(--amx-ink); }
#amx-content :is(input, select, textarea):focus { border-color: #776e80 !important; box-shadow: none !important; outline: 2px solid rgba(119, 110, 128, .18); }
#amx-content :is(button, a)[class*="rounded-full"]:not(.amx-toc-link) { border-radius: 6px !important; }
#amx-content h1 { font-size: 32px !important; line-height: 1.2 !important; font-weight: 700 !important; }
#amx-content h2 { font-size: 22px !important; line-height: 1.3 !important; font-weight: 700 !important; }
#amx-content h3 { font-size: 16px !important; line-height: 1.35 !important; font-weight: 700 !important; }
#amx-content p { line-height: 1.65; }
/* Mô tả: AM Sans hẹp nên đoạn mô tả cần cỡ lớn hơn Google Sans cũ */
#amx-content :is(p, li, dd).text-sm { font-size: 16px; line-height: 1.65; }
#amx-content p.text-xs { font-size: 14px; }
#amx-content p[class*="text-[13px]"] { font-size: 15px; }
#amx-content p[class*="text-[12px]"], #amx-content p[class*="text-[11px]"] { font-size: 14px; }
/* Nội dung dùng 450 thay vì font-medium 500 cho nhẹ mắt (AM Sans là variable nên có độ đậm lẻ) */
body.amx-theme.font-medium, #amx-content .font-medium { font-weight: 450; }
#amx-content [class*="tracking-"] { letter-spacing: 0 !important; }
#amx-content :is(.hover\:shadow-xl:hover, .hover\:shadow-md:hover) { box-shadow: 0 8px 24px -16px rgba(31, 24, 50, .35) !important; }
#amx-content :is(a, button).bg-primary, #amx-content :is(a, button).bg-gray-900 { box-shadow: 0 5px 12px -6px rgba(31, 24, 50, .65); }
#amx-content :is(a, button).bg-white { box-shadow: var(--amx-shadow); }
#amx-content :is(a, button):hover { text-decoration: none; }
#amx-content table { border-radius: 8px; }
#amx-content table th { background: #f1e9dc; }
#amx-content table td, #amx-content table th { padding: 14px 18px; }
#amx-content :is(#strategy, #social, #performance, #email, #seo, #website, #infra, #mission, #team) { scroll-margin-top: 80px; }
#amx-content .amx-service-list > div { row-gap: 52px; }
#amx-content .amx-service-list [id] { scroll-margin-top: 80px; }
#amx-content .amx-service-list [class*="min-h-[400px]"] { min-height: 280px; padding: 24px; background: #fff; box-shadow: var(--amx-shadow); border-radius: 8px; }
#amx-content .amx-service-list [class*="min-h-[400px]"] img { max-height: 200px; filter: none; }
#amx-content .amx-service-list h2 { margin-bottom: 14px; }
#amx-content .amx-service-list ul { margin-bottom: 22px; }
#amx-content .amx-service-list ul li { gap: 10px; }
#amx-content .amx-service-process > div > div:first-child { margin-bottom: 22px; }
#amx-content .amx-service-process [class*="text-6xl"] { font-size: 26px; font-family: var(--amx-font); color: #d9cfc0; }
#amx-content .amx-pricing-plans .grid { align-items: stretch; gap: 16px; }
#amx-content .amx-pricing-plans .grid > div { border: 0; border-radius: 8px !important; padding: 24px; transform: none; box-shadow: var(--amx-shadow) !important; }
#amx-content .amx-pricing-plans .grid > div:nth-child(2) { background: var(--amx-brand); }
#amx-content .amx-pricing-plans .grid > div:nth-child(2) > div:first-child { background: #221b35; box-shadow: none; border-radius: 4px; }
#amx-content .amx-pricing-plans .grid > div .price-display { font-size: 30px; }
#amx-content .amx-pricing-plans .grid > div a { border: 0; border-radius: 6px; }
#amx-content .amx-pricing-comparison > div > div:first-child, #amx-content .amx-pricing-faq > div > div:first-child { margin-bottom: 24px; }
#amx-content .amx-pricing-comparison th, #amx-content .amx-pricing-comparison td { padding: 14px 18px; }
#amx-content .amx-pricing-faq #faq-accordion > div { border: 0; box-shadow: var(--amx-shadow); border-radius: 8px; }
#amx-content .amx-pricing-faq .faq-button { padding: 16px 20px; background: #fff; }
#amx-content .amx-pricing-faq .faq-content > div { padding: 0 20px 18px; border: 0; font-size: 15px; }
#amx-content .amx-contact-body > div { gap: 24px; }
#amx-content .amx-contact-body [class*="rounded-[2rem]"] { border: 0; }
#amx-content .amx-contact-body form { gap: 14px; }
#amx-content .amx-contact-body form :is(input, select) { min-height: 40px; padding: 9px 12px; }
#amx-content .amx-contact-body form textarea { padding: 10px 12px; }
#amx-content [id^="platform-"] { scroll-margin-top: 80px; }
#amx-content #open-roles { scroll-margin-top: 80px; }
#amx-content > section.relative.z-10[class~="-mt-10"] { margin-top: 0; padding-block: 18px 28px; }
#amx-content > section.relative.z-10[class~="-mt-10"] > div > .grid { padding: 0; background: transparent; box-shadow: none !important; border: 0; }
#amx-content > section.relative.z-10[class~="-mt-10"] > div > .grid > div { background: #fff !important; border-radius: 8px; box-shadow: var(--amx-shadow); padding: 16px; min-width: 0; }
#amx-content > section.relative.z-10[class~="-mt-10"] [class*="text-3xl"] { font-family: var(--amx-font); font-size: 20px; line-height: 1.2; }
#amx-content > section.relative.z-10[class~="-mt-10"] [class*="text-xs"] { font-size: 10px; line-height: 1.4; }
#amx-content:has(> section.relative.z-10[class~="-mt-10"]) > section .grid > div.bg-gray-50,
#amx-content:has(> section.relative.z-10[class~="-mt-10"]) > section .grid > div.bg-white { border: 0; box-shadow: var(--amx-shadow); }
#amx-content:has(> section.relative.z-10[class~="-mt-10"]) > section .grid > div.bg-gray-50 { background: #fff; }
#amx-content:has(> section.relative.z-10[class~="-mt-10"]) > section .grid > div[class*="bg-white/5"] { border: 0; background: rgba(255, 255, 255, .08); }
#amx-content:has(> section.relative.z-10[class~="-mt-10"]) > section .grid > div.hover\:-translate-y-1:hover { transform: translateY(-2px); }

.amx-career-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 32px; }
.amx-career-intro img { width: 100%; max-height: 360px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.amx-career-count, .amx-career-meta { font-family: var(--amx-font); font-size: 13px; color: var(--amx-muted); }
.amx-career-meta span:has(svg) { display: inline-flex; align-items: center; gap: 5px; }
.amx-career-meta svg { width: 14px; height: 14px; }
.amx-career-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; background: #fff; border-radius: 8px; box-shadow: var(--amx-shadow); transition: translate .6s var(--amx-ease), box-shadow .6s var(--amx-ease); }
.amx-career-row:hover { translate: 0 -3px; box-shadow: var(--amx-shadow-lift); }
.amx-career-tag { display: inline-flex; padding: 4px 8px; border-radius: 4px; background: #f0ecfb; color: var(--amx-brand); font: 700 10px var(--amx-font); text-transform: uppercase; }
.amx-career-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 36px; padding: 8px 13px; border-radius: 6px; background: #221b35; color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 5px 12px -6px rgba(31, 24, 50, .65); transition: translate .5s var(--amx-ease), scale .2s var(--amx-ease), background-color .25s; }
.amx-career-action:hover { color: #fff; background: #463e52; translate: 0 -2px; }
.amx-career-empty { padding: 32px; background: #fff; border-radius: 8px; box-shadow: var(--amx-shadow); }
.amx-career-notice { padding: 12px 16px; margin-bottom: 16px; border-radius: 6px; font-size: 14px; }
.amx-career-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); align-items: start; gap: 40px; }
.amx-career-copy { color: #5a5166; line-height: 1.65; overflow-wrap: anywhere; }
.amx-career-copy :is(ul, ol) { padding-left: 20px; margin-block: 12px; list-style: revert; }
.amx-career-copy p + p { margin-top: 12px; }
.amx-career-form { display: grid; gap: 14px; padding: 24px; background: #fff; border-radius: 8px; box-shadow: var(--amx-shadow); }
.amx-career-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: #463e52; }
.amx-career-form :is(input, textarea) { width: 100%; min-width: 0; padding: 8px 10px; font-size: 15px; }
.amx-career-form input[type="file"] { overflow: hidden; }
.amx-career-form .amx-career-action { justify-self: start; border: 0; }

.amx-theme footer { background: #221b35; padding-top: 52px; }
.amx-theme footer h4 { font-size: 12px; letter-spacing: 0; }
.amx-theme footer a { text-decoration: none; }
.amx-theme footer a:hover { color: #fff; }
.amx-theme #contactModal, .amx-theme #contactModalContent { border-radius: 8px; }
.amx-theme #contactModal input, .amx-theme #contactModal select, .amx-theme #contactModal textarea { border-radius: 6px; }
.amx-theme #amx-contact-dock { right: 16px; bottom: 16px; gap: 8px; }
.amx-theme #amx-contact-dock > :is(a, button) { width: 40px; height: 40px; border-radius: 8px; box-shadow: var(--amx-shadow); }
.amx-theme #amx-contact-dock [class*="animate-ring"], .amx-theme #amx-contact-dock [class*="animate-soft-ping"] { animation: none; }
.amx-theme #amx-contact-dock [class*="animate-soft-ping"] { display: none; }

.amx-home-hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; color: #fff; background: #221b35; padding: 104px 0 64px !important; }
.amx-home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.amx-home-hero::after { content: ''; position: absolute; inset: 0; background: rgba(27, 21, 40, .78); }
.amx-home-hero > .amx-container { position: relative; z-index: 1; width: 100%; }
.amx-home-hero .amx-eyebrow { color: #d4cbf5; }
#amx-content .amx-home-hero h1 { font-size: 48px !important; color: #fff; }
.amx-home-hero p { max-width: 660px; color: #e8dfcf; }
.amx-home-hero .amx-hero-actions a:first-child { background: var(--amx-brand); color: #fff; }
.amx-home-hero .amx-hero-actions a:last-child { background: #fff; color: var(--amx-ink); }
.amx-home-hero .amx-hero-actions a { box-shadow: var(--amx-shadow); }
.amx-projects-hero { position: relative; display: flex; align-items: center; min-height: 510px; overflow: hidden; background: #221b35; color: #fff; padding: 112px 0 52px !important; }
.amx-projects-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.amx-projects-hero::after { content: ''; position: absolute; inset: 0; background: rgba(27, 21, 40, .48); }
.amx-projects-hero > .amx-container { position: relative; z-index: 1; }
.amx-projects-intro { max-width: 580px; }
.amx-projects-intro .amx-eyebrow { color: #d4cbf5; }
#amx-content .amx-projects-hero h1 { max-width: 570px; color: #fff; font-size: 42px !important; line-height: 1.13 !important; }
.amx-projects-intro p { max-width: 500px; margin-top: 18px; color: #f1e9dc; font-size: 16px; line-height: 1.55 !important; }
.amx-projects-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.amx-projects-actions a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: 700; transition: translate .5s var(--amx-ease), scale .2s var(--amx-ease), background-color .25s, box-shadow .5s var(--amx-ease); }
.amx-projects-actions a:hover { translate: 0 -2px; box-shadow: 0 14px 26px -16px rgba(0, 0, 0, .55); }
.amx-projects-primary { background: var(--amx-brand); color: #fff; }
.amx-projects-primary:hover { background: #3820a6; color: #fff; }
.amx-projects-secondary { background: #fff; color: var(--amx-ink); }
.amx-projects-secondary:hover { background: #f1e9dc; color: var(--amx-ink); }
.amx-project-detail-hero { position: relative; display: flex; align-items: center; min-height: 530px; overflow: hidden; background: #221b35; color: #fff; padding: 112px 0 52px; }
.amx-project-detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.amx-project-detail-hero::after { content: ''; position: absolute; inset: 0; background: rgba(27, 21, 40, .62); }
.amx-project-detail-hero > .amx-container { position: relative; z-index: 1; }
.amx-project-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #d4cbf5; font: 700 11px/1.4 var(--amx-font); text-transform: uppercase; }
.amx-project-breadcrumb a { color: #d4cbf5; }
.amx-project-breadcrumb a:hover { color: #fff; }
.amx-project-breadcrumb span { color: #fff; }
.amx-project-detail-intro { max-width: 720px; margin-top: 26px; }
#amx-content .amx-project-detail-hero h1 { color: #fff; font-size: 40px !important; line-height: 1.15 !important; overflow-wrap: anywhere; }
.amx-project-detail-excerpt { max-width: 610px; margin-top: 18px; color: #f1e9dc; font-size: 16px; line-height: 1.55 !important; }
.amx-project-detail-meta { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 25px; }
.amx-project-detail-meta div { display: grid; gap: 4px; min-width: 0; }
.amx-project-detail-meta span { color: #d9cfc0; font: 700 10px/1.3 var(--amx-font); text-transform: uppercase; }
.amx-project-detail-meta strong { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.amx-project-detail-action { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; margin-top: 28px; padding: 10px 16px; border-radius: 6px; background: var(--amx-brand); color: #fff; font-size: 13px; font-weight: 700; transition: translate .5s var(--amx-ease), scale .2s var(--amx-ease), background-color .25s; }
.amx-project-detail-action:hover { background: #3820a6; color: #fff; translate: 0 -2px; }
.amx-project-detail-visual { aspect-ratio: 16 / 9; max-height: 360px; overflow: hidden; border-radius: 8px; background: #efe7d8; }
.amx-project-detail-visual img { width: 100%; height: 100%; object-fit: contain; }
#amx-content #case-story { scroll-margin-top: 0; }
@media (min-width: 1024px) {
  .amx-project-detail-body { align-items: start; }
  .amx-project-detail-body--with-image > .amx-project-detail-visual { grid-column: 2; grid-row: 1; }
  .amx-project-detail-body--with-image > aside { grid-column: 1; grid-row: 1 / span 2; }
  .amx-project-detail-body--with-image > div:last-child { grid-column: 2; grid-row: 2; }
  .amx-project-detail-body--no-image > aside { grid-column: 1; grid-row: 1; }
  .amx-project-detail-body--no-image > div:last-child { grid-column: 2; grid-row: 1; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .amx-project-overview-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .amx-project-overview-details > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }
  .amx-project-overview-details > a { grid-column: 1 / -1; justify-self: start; width: auto; }
}
.amx-container { width: 100%; max-width: 1380px; margin-inline: auto; padding-inline: 16px; }
.amx-section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.amx-eyebrow { display: block; margin-bottom: 10px; color: var(--amx-brand); font: 700 11px/1.2 var(--amx-font); text-transform: uppercase; }
.amx-section-heading p { max-width: 590px; color: var(--amx-muted); }
.amx-link { display: inline-flex; align-items: center; gap: 8px; color: var(--amx-brand); font-weight: 700; font-size: 13px; white-space: nowrap; }
.amx-link:hover { color: #3820a6; }
.amx-home-service { display: grid; grid-template-columns: 56px minmax(0, 1fr) 20px; align-items: start; gap: 16px; min-height: 140px; padding: 22px; background: #fff; border-radius: 8px; box-shadow: var(--amx-shadow); transition: translate .6s var(--amx-ease), box-shadow .6s var(--amx-ease); }
.amx-home-service:hover { translate: 0 -4px; box-shadow: var(--amx-shadow-lift); }
.amx-home-service img { width: 56px; height: 56px; object-fit: contain; transition: rotate .7s var(--amx-ease-spring), scale .7s var(--amx-ease-spring); }
.amx-home-service:hover img { rotate: -7deg; scale: 1.1; }
.amx-home-service p { color: var(--amx-muted); font-size: 15px; }
.amx-home-service > svg { width: 18px; color: var(--amx-brand); }
.amx-process-item { padding: 22px; background: #fff; border-radius: 8px; box-shadow: var(--amx-shadow); transition: translate .6s var(--amx-ease), box-shadow .6s var(--amx-ease); }
.amx-process-item:hover { translate: 0 -4px; box-shadow: var(--amx-shadow-lift); }
.amx-process-item > :is(span, svg) { display: inline-block; transition: translate .6s var(--amx-ease-spring), rotate .6s var(--amx-ease-spring); }
.amx-process-item:hover > span { translate: 4px 0; }
.amx-process-item:hover > svg { rotate: -8deg; }
.amx-process-item span { color: var(--amx-brand); font: 700 17px var(--amx-font); }
.amx-process-item p { margin-top: 8px; color: var(--amx-muted); font-size: 15px; }
.amx-story-image { width: 100%; height: 100%; min-height: 270px; object-fit: cover; border-radius: 8px; }
.amx-cta { background: var(--amx-brand); color: #fff; }
.amx-cta h2, .amx-cta p { color: #fff; }
.amx-cta p { opacity: .84; }
.amx-cta a { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--amx-brand); border-radius: 6px; padding: 10px 16px; font-size: 13px; font-weight: 700; transition: translate .5s var(--amx-ease), scale .2s var(--amx-ease), box-shadow .5s var(--amx-ease); }
.amx-cta a:hover { translate: 0 -2px; box-shadow: 0 14px 28px -14px rgba(22, 15, 51, .6); }
.amx-post { display: block; overflow: hidden; background: #fff; border-radius: 8px; box-shadow: var(--amx-shadow); transition: translate .6s var(--amx-ease), box-shadow .6s var(--amx-ease); }
.amx-post:hover { translate: 0 -4px; box-shadow: var(--amx-shadow-lift); }
.amx-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.amx-post-media { display: block; overflow: hidden; }
.amx-post-media img { transition: scale 1.1s var(--amx-ease); }
.amx-post:hover .amx-post-media img { scale: 1.06; }
.amx-post > div { padding: 18px; }
.amx-post time { color: var(--amx-muted); font-size: 13px; }
.amx-about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.amx-about-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.amx-about-points > div { padding: 24px; background: #fff; border-radius: 8px; box-shadow: var(--amx-shadow); transition: translate .6s var(--amx-ease), box-shadow .6s var(--amx-ease); }
.amx-about-points > div:hover { translate: 0 -4px; box-shadow: var(--amx-shadow-lift); }
.amx-about-points svg { width: 24px; height: 24px; color: var(--amx-brand); margin-bottom: 16px; transition: rotate .6s var(--amx-ease-spring), scale .6s var(--amx-ease-spring); }
.amx-about-points > div:hover svg { rotate: -8deg; scale: 1.12; }

@media (min-width: 640px) { .amx-container { padding-inline: 24px; } }
@media (min-width: 1024px) { .amx-container { padding-inline: 32px; } }
@media (max-width: 767px) {
  #amx-content > section { padding-block: 38px; }
  #amx-content > section:first-child:not(.amx-home-hero) { padding-top: 92px; padding-bottom: 38px; }
  #amx-content h1 { font-size: 28px !important; }
  #amx-content h2 { font-size: 20px !important; }
  .amx-home-hero { min-height: 500px; padding-top: 94px !important; }
  #amx-content .amx-home-hero h1 { font-size: 38px !important; }
  .amx-home-hero > img { object-position: 60% center; }
  .amx-home-hero::after { background: rgba(27, 21, 40, .84); }
  .amx-projects-hero { min-height: 490px; padding: 100px 0 44px !important; }
  .amx-projects-hero > img { object-position: 20% center; }
  .amx-projects-hero::after { background: rgba(27, 21, 40, .65); }
  #amx-content .amx-projects-hero h1 { font-size: 32px !important; }
  .amx-projects-intro p { font-size: 15px; }
  .amx-project-detail-hero { min-height: 520px; padding: 96px 0 40px; }
  .amx-project-detail-hero > img { object-position: 20% center; }
  .amx-project-detail-hero::after { background: rgba(27, 21, 40, .72); }
  #amx-content .amx-project-detail-hero h1 { font-size: 30px !important; }
  .amx-project-detail-excerpt { font-size: 15px; }
  .amx-project-detail-visual { aspect-ratio: 4 / 3; max-height: none; }
  .amx-about-intro, .amx-about-points { grid-template-columns: 1fr; }
  .amx-home-service { min-height: auto; }
  #amx-content > section.relative.z-10[class~="-mt-10"] > div > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .amx-career-intro, .amx-career-detail { grid-template-columns: 1fr; }
  .amx-career-intro img { max-height: 260px; }
  .amx-career-row { flex-direction: column; align-items: stretch; padding: 18px; }
  .amx-career-row .amx-career-action { align-self: flex-start; }
  .amx-theme #amx-contact-dock { flex-direction: row; right: 12px; bottom: 12px; }
}

/* Chuyển động. Phần lớn chỉ chạy khi <html> có .amx-motion (script đầu layout gắn, bỏ qua khi máy chọn giảm chuyển động). */
@property --amx-rv-x { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --amx-rv-y { syntax: "<length>"; inherits: false; initial-value: 28px; }
@property --amx-rv-s { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --amx-rv-dur { syntax: "<time>"; inherits: false; initial-value: 1s; }
@property --amx-delay { syntax: "<time>"; inherits: false; initial-value: 0s; }

/* Class transition của Tailwind mặc định 150ms ease nên cảm giác giật: kéo dài, đổi easing, thêm translate/scale/rotate rời */
.amx-theme :is(.transition, .transition-all, .transition-colors, .transition-transform, .transition-opacity) { transition-timing-function: var(--amx-ease); }
.amx-theme .transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, translate, scale, rotate; }
.amx-theme :is(.transition, .transition-all, .transition-colors, .transition-transform, .transition-opacity):not([class*="duration-"]) { transition-duration: .3s; }

/* Thanh điều hướng: kính mờ khi đã cuộn, ẩn khi cuộn xuống sâu và hiện lại khi cuộn lên (navigation.js gắn class) */
.amx-theme > nav { transition: translate .55s var(--amx-ease), background-color .3s, box-shadow .3s; }
.amx-theme > nav.amx-nav-scrolled { background: rgba(248, 243, 234, .9); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 rgba(31, 24, 50, .06), 0 12px 30px -20px rgba(31, 24, 50, .4); }
.amx-theme > nav.amx-nav-hidden:not(:focus-within) { translate: 0 -100%; }
.amx-nav-link { position: relative; }
.amx-nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: currentColor; scale: 0 1; transform-origin: right center; transition: scale .5s var(--amx-ease); }
.amx-nav-link:hover::after, .amx-nav-link.is-active::after, .amx-theme > nav .static-dropdown:is(:hover, :focus-within) .amx-nav-link::after { scale: 1 1; transform-origin: left center; }
.amx-theme > nav .static-dropdown > div:first-child > svg { transition: rotate .45s var(--amx-ease), color .25s; }
.amx-theme > nav .static-dropdown:is(:hover, :focus-within) > div:first-child > svg { rotate: 180deg; }
.amx-theme > nav .static-dropdown > div:nth-child(2) { scale: .985; transition: opacity .35s var(--amx-ease), transform .55s var(--amx-ease), scale .55s var(--amx-ease), visibility .35s; }
.amx-theme > nav .static-dropdown:is(:hover, :focus-within) > div:nth-child(2) { scale: 1; }
.amx-theme > nav .static-dropdown:focus-within > div:nth-child(2) { opacity: 1; visibility: visible; --tw-translate-y: 0px; }
.amx-motion .amx-theme > nav .static-dropdown > div:nth-child(2) > .grid > div { opacity: 0; translate: 0 10px; transition: opacity .3s var(--amx-ease), translate .6s var(--amx-ease); }
.amx-motion .amx-theme > nav .static-dropdown:is(:hover, :focus-within) > div:nth-child(2) > .grid > div { opacity: 1; translate: none; }
.amx-motion .amx-theme > nav .static-dropdown:is(:hover, :focus-within) > div:nth-child(2) > .grid > div:nth-child(2) { transition-delay: .05s; }
.amx-motion .amx-theme > nav .static-dropdown:is(:hover, :focus-within) > div:nth-child(2) > .grid > div:nth-child(3) { transition-delay: .1s; }
.amx-theme > nav .static-dropdown.group li a { transition: color .25s, translate .45s var(--amx-ease); }
.amx-theme > nav .static-dropdown.group li a:hover { translate: 3px 0; }
.amx-theme > nav .static-dropdown.group li a > span { background-color: #d9cfc0; transition: background-color .25s, scale .45s var(--amx-ease-spring); }
.amx-theme > nav .static-dropdown.group li a:hover > span { background-color: var(--amx-brand); scale: 1.6; }

/* Nút menu mobile: ba vạch gập thành dấu X; menu mở bằng màn kéo xuống, từng mục trồi lần lượt */
.amx-burger { position: relative; }
.amx-burger > span { position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; border-radius: 2px; background: currentColor; transition: translate .45s var(--amx-ease), rotate .45s var(--amx-ease), scale .3s var(--amx-ease), opacity .2s; }
.amx-burger > span:nth-child(1) { translate: 0 -6px; }
.amx-burger > span:nth-child(3) { translate: 0 6px; }
.amx-burger.is-open > span:nth-child(1) { translate: 0 0; rotate: 45deg; }
.amx-burger.is-open > span:nth-child(2) { opacity: 0; scale: .2 1; }
.amx-burger.is-open > span:nth-child(3) { translate: 0 0; rotate: -45deg; }
.amx-sub-toggle svg { transition: rotate .45s var(--amx-ease); }
.amx-sub-toggle[aria-expanded="true"] svg { rotate: 180deg; }
.amx-menu-enter { transition: opacity .3s var(--amx-ease), clip-path .6s var(--amx-ease-expo); }
.amx-menu-leave { transition: opacity .2s ease, clip-path .3s var(--amx-ease); }
.amx-menu-from { opacity: 0; clip-path: inset(0 0 100% 0); }
.amx-menu-to { opacity: 1; clip-path: inset(0 0 0 0); }
.amx-motion [data-amx-stagger] > * { animation: amx-drop-in .55s var(--amx-ease-expo) calc(var(--amx-i, 0) * 30ms + 60ms) both; }

/* Hero có ảnh nền: ảnh lùi về từ zoom, sau đó "thở" rất chậm; navigation.js thêm parallax bằng translate */
.amx-motion :is(.amx-home-hero, .amx-projects-hero, .amx-project-detail-hero) > img { animation: amx-hero-in 2.6s var(--amx-ease-expo) both, amx-hero-breathe 24s 2.6s ease-in-out infinite alternate; }

/* Lộ dần. Danh sách ẩn sẵn phải khớp INTRO và REVEAL trong js/navigation.js: CSS ẩn trước khi vẽ để không nháy,
   JS gắn .amx-in (chạy hiệu ứng) rồi .amx-done. JS không chạy được thì amx-safety tự hiện lại sau 1,8s. */
@media screen {
  .amx-motion :is(#amx-content > :first-child :has(> h1) > *, #amx-content > :first-child:has(> h1) > *,
    #amx-content [data-aos], #amx-content [data-aos] ~ a, .amx-section-heading > div > *, .amx-section-heading > .amx-link, .amx-home-service, .amx-process-item,
    .amx-about-intro > *, .amx-about-points > div, .amx-post, .amx-cta > .amx-container > *, .amx-career-intro > *, .amx-career-row,
    .amx-career-detail > *, .amx-theme > footer .grid > div):not(.amx-in, .amx-done) { opacity: 0; }
  .amx-motion:not(.amx-reveal-ready) :is(#amx-content > :first-child :has(> h1) > *, #amx-content > :first-child:has(> h1) > *,
    #amx-content [data-aos], #amx-content [data-aos] ~ a, .amx-section-heading > div > *, .amx-section-heading > .amx-link, .amx-home-service, .amx-process-item,
    .amx-about-intro > *, .amx-about-points > div, .amx-post, .amx-cta > .amx-container > *, .amx-career-intro > *, .amx-career-row,
    .amx-career-detail > *, .amx-theme > footer .grid > div) { animation: amx-safety 0s 1.8s forwards; }
}
.amx-motion .amx-in { animation: amx-reveal var(--amx-rv-dur, 1s) var(--amx-ease-expo) var(--amx-delay, 0s) both; }
.amx-motion :is(#amx-content > :first-child :has(> h1) > *, #amx-content > :first-child:has(> h1) > *) { --amx-rv-y: 22px; }
.amx-motion :is(.amx-home-service, .amx-process-item, .amx-post, .amx-about-points > div, .amx-career-row) { --amx-rv-y: 40px; --amx-rv-s: .96; }
.amx-motion [data-aos="fade-left"] { --amx-rv-x: 48px; --amx-rv-y: 0px; }
.amx-motion [data-aos="fade-right"] { --amx-rv-x: -48px; --amx-rv-y: 0px; }
.amx-motion [data-aos="fade-down"] { --amx-rv-y: -20px; }
.amx-motion [data-aos="zoom-in"] { --amx-rv-y: 0px; --amx-rv-s: .94; }
.amx-motion :is(.amx-about-intro, .amx-career-intro) > img.amx-in { animation-name: amx-unveil; --amx-rv-dur: 1.4s; }
/* Tiêu đề trang: từng chữ trồi lên khỏi một khe (navigation.js tách chữ); padding chừa chỗ cho dấu tiếng Việt in hoa */
.amx-word { display: inline-block; max-width: 100%; vertical-align: top; overflow: hidden; padding: .24em .08em .12em; margin: -.24em -.08em -.12em; }
.amx-word > span { display: inline-block; transform-origin: 0 100%; }
.amx-motion .amx-word > span { animation: amx-word 1.1s var(--amx-ease-expo) var(--amx-delay, 0s) both; }
.amx-count { font-variant-numeric: tabular-nums; }

/* Mũi tên trong link nhích theo hướng của nó; nút lún nhẹ khi bấm */
.amx-theme a > svg:is(.lucide-arrow-right, .lucide-arrow-up-right, .lucide-arrow-down):not([class*="translate"]) { transition: translate .45s var(--amx-ease); }
@media (hover: hover) {
  .amx-theme a:hover > svg.lucide-arrow-right:not([class*="translate"]) { translate: 4px 0; }
  .amx-theme a:hover > svg.lucide-arrow-up-right:not([class*="translate"]) { translate: 3px -3px; }
  .amx-theme a:hover > svg.lucide-arrow-down:not([class*="translate"]) { translate: 0 3px; }
}
.amx-theme :is(.amx-hero-actions a, .amx-cta a, .amx-projects-actions a, .amx-project-detail-action, .amx-career-action, #amx-content a.bg-primary, #amx-content button.bg-primary, nav a.bg-primary):active { scale: .97; }
.amx-theme footer ul a { display: inline-block; }
.amx-theme footer ul a:hover { translate: 3px 0; }

/* Nút liên hệ nổi bật lên sau khi trang ổn định; nhãn trượt ra khi rê chuột */
.amx-motion #amx-contact-dock > * { animation: amx-dock-in .8s var(--amx-ease-spring) 1s both; }
.amx-motion #amx-contact-dock > :nth-child(2) { animation-delay: 1.08s; }
.amx-motion #amx-contact-dock > :nth-child(3) { animation-delay: 1.16s; }
#amx-contact-dock .group > span.right-full { translate: 8px 0; }
#amx-contact-dock .group:hover > span.right-full { translate: 0 0; }
.amx-theme #contactModalContent { transition: opacity .35s var(--amx-ease), transform .6s var(--amx-ease-spring); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* Chuyển trang trong theme (navigation.js dùng View Transitions): menu và nút nổi đứng yên, nội dung mờ dần rồi hiện trang mới */
  .amx-theme > nav { view-transition-name: amx-nav; }
  .amx-theme #amx-contact-dock { view-transition-name: amx-dock; }
  ::view-transition-old(root) { animation: amx-page-out .24s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: amx-page-in .45s var(--amx-ease) .04s both; }
  #amx-content .amx-service-list [class*="min-h-[400px]"] img { animation: amx-float 7s ease-in-out infinite alternate; }
  #amx-content .amx-service-list > div > div:nth-child(even) [class*="min-h-[400px]"] img { animation-delay: -3.5s; }
}

@keyframes amx-reveal { from { opacity: 0; translate: var(--amx-rv-x, 0px) var(--amx-rv-y, 28px); scale: var(--amx-rv-s, 1); } }
@keyframes amx-unveil { from { opacity: 0; clip-path: inset(12% 9% 12% 9% round 8px); scale: 1.06; } to { clip-path: inset(0 0 0 0 round 8px); } }
@keyframes amx-word { from { translate: 0 120%; rotate: 5deg; } }
@keyframes amx-safety { to { opacity: 1; } }
@keyframes amx-drop-in { from { opacity: 0; translate: 0 -8px; } }
@keyframes amx-hero-in { from { opacity: .3; scale: 1.16; } }
@keyframes amx-hero-breathe { to { scale: 1.06; } }
@keyframes amx-dock-in { from { opacity: 0; translate: 0 18px; scale: .5; } }
@keyframes amx-page-out { to { opacity: 0; translate: 0 -12px; } }
@keyframes amx-page-in { from { opacity: 0; } }
@keyframes amx-float { from { translate: 0 -7px; } to { translate: 0 7px; } }

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