/* "Web thật" – option 3 "Một nét liền". Nền xanh lá phẳng, chữ đậm màu tối; khối tối cho card và form.
   Canvas WebGL (#web-gl) nằm cố định giữa nền và nội dung, chỉ vẽ đường kẻ ở hero, nét vẽ liền và vòng xoay ảnh dự án.
   Màu theo mệnh Dương liễu mộc: xanh lá, xanh nước, đen xanh; tránh trắng tinh, xám bạc. */
/* phông tiêu đề Big Shoulders (đậm 900), tự host trong theme; file do người dùng cung cấp, đủ dấu tiếng Việt */
@font-face { font-family: "Big Shoulders"; font-style: normal; font-weight: 900; font-display: swap; src: url(../fonts/big-shoulders-900.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/plus-jakarta-sans-normal-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/plus-jakarta-sans-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
    --nen: #b4dc74;
    --muc: #071410;
    --muc-nhat: #24402c;
    --sang: #e9f5c8;
    --rung: #1f5c3a;
    --ho: #0f4a52;
    --nuoc: #8fd6dc;
    --giay: #f8fbee;
    --td: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
    --chu: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --co-td: clamp(64px, 11vw, 190px);
    --le: clamp(18px, 4vw, 64px);
    --ra: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Lenis (cuộn mượt) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body.w3-body { margin: 0; background: var(--nen); color: var(--muc); font: 500 clamp(1rem, .95rem + .25vw, 1.1875rem)/1.6 var(--chu); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--muc); color: var(--nen); }
:focus-visible { outline: 3px solid var(--muc); outline-offset: 4px; }
.w3-an { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.w3-skip { position: absolute; left: -9999px; }
.w3-skip:focus { left: var(--le); top: 12px; z-index: 60; background: var(--muc); color: var(--nen); padding: 10px 16px; }
#web-gl { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; display: none; }
.web-js #web-gl { display: block; }
main, .w3-chan { position: relative; }
.w3-p { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-content: center; align-items: center; min-height: 100vh; min-height: 100svh; padding: 110px var(--le) 80px; }
.w3-p > * { position: relative; z-index: 2; }
.w3-td, .w3-hero-chu, .w3-so dt { font-family: var(--td); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.01em; }
.w3-td { font-size: var(--co-td); }
.w3-tu { white-space: nowrap; }
.w3-kt { will-change: transform, opacity; }
.w3-lon { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }

/* trên phần nền tối (dự án) thì đầu trang đổi sang chữ sáng */
.w3-head.toi { color: var(--sang); }
.w3-head.toi .w3-btn { background: var(--nen); color: var(--muc); }
.w3-head { position: absolute; left: 0; top: 0; z-index: 50; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); width: 100%; padding: 16px var(--le); transition: transform .45s var(--ra); }
.web-js .w3-head { position: fixed; }
.web-js .w3-head.an { transform: translateY(-110%); }
.w3-logo { font: 900 1.5rem/1 var(--td); text-transform: uppercase; }
.w3-nav { display: flex; gap: clamp(16px, 2vw, 32px); margin-left: auto; font-size: 1rem; font-weight: 700; }
.w3-nav a { transition: opacity .25s ease; }
.w3-nav a { position: relative; }
.w3-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: currentColor; scale: 0 1; transform-origin: 0 50%; transition: scale .4s var(--ra); }
.w3-nav a:hover::after { scale: 1 1; }
/* nút chuyển ngôn ngữ (chưa bấm được) */
.w3-nn { display: flex; padding: 3px; border: 1.5px solid currentColor; border-radius: 999px; }
.w3-nn a, .w3-nn span { display: grid; place-items: center; min-width: 38px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: inherit; font-family: inherit; font-size: .8125rem; font-weight: 700; line-height: 1; letter-spacing: .04em; }
.w3-nn a:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.w3-nn .chon { background: var(--muc); color: var(--nen); }
.w3-head.toi .w3-nn .chon { background: var(--nen); color: var(--muc); }
.w3-logo { display: inline-block; }
.w3-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--muc); color: var(--nen); font-size: .9375rem; font-weight: 700; cursor: pointer; transition: transform .25s var(--ra), background .25s ease; }
.w3-btn:hover { transform: translateY(-2px); background: var(--rung); }
.w3-btn:active { transform: translateY(0) scale(.97); }
.w3-btn-sang { background: var(--nen); color: var(--muc); }
.w3-btn-sang:hover { background: var(--sang); }

/* 1. Hero: trường đường kẻ (WebGL) ở trên, dòng chào ở dưới */
.w3-hero { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; row-gap: clamp(16px, 3vh, 32px); padding-bottom: clamp(20px, 4vh, 44px); height: 100vh; height: 100svh; }
.w3-hero-luoi { grid-column: 1 / -1; grid-row: 1; align-self: stretch; }
.w3-hero-chu { grid-column: 1 / -1; grid-row: 2; font-size: clamp(44px, 9.55vw, 168px); white-space: nowrap; }
.w3-hero-chu span { display: inline-block; }
/* chỉ dẫn cuộn xuống ở màn đầu: viên chữ nền trùng màu trang (che đường kẻ phía sau), mũi tên nhún; cuộn đi thì mờ dần (web-3.js) */
.w3-cuon { grid-column: 1 / -1; grid-row: 1; align-self: end; justify-self: end; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--nen); font-size: .875rem; font-weight: 700; }
.w3-cuon svg { animation: w3-nhun 1.6s ease-in-out infinite; }
@keyframes w3-nhun { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .w3-cuon svg { animation: none; } }

/* 2. Mình là ai */
.w3-ai-anh { grid-column: 2 / span 4; justify-self: center; width: min(100%, 400px, 52vh); }
/* ảnh xoá nền chỉ có nửa người: đặt trong khung vòm màu nước để đáy và mép vai bị cắt nằm khuất theo khung */
.w3-ai-anh { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 28px 28px; background: var(--nuoc); }
.w3-ai-anh img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.w3-ai-chu { grid-column: 7 / span 6; }
/* các bước trượt vào từ phải: cắt phần ló ra để không tạo thanh cuộn ngang khi chưa hiện */
.w3-qt-ds { overflow-x: clip; }
.w3-ai-chu .w3-lon { margin-top: clamp(16px, 3vh, 32px); max-width: 16em; }
.w3-ai-chu > p:not(.w3-lon) { margin-top: clamp(14px, 2.4vh, 24px); max-width: 32em; color: var(--muc-nhat); }

/* 3. Con số: nét vẽ gạch dưới từng số */
.w3-so-ds { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(16px, 4vw, 72px); margin: 0; }
.w3-so dt { width: fit-content; font-size: clamp(120px, 26vw, 460px); line-height: .82; font-variant-numeric: tabular-nums; }
.w3-so-ds > div { width: fit-content; }
.w3-so dt sup { display: inline-block; margin-left: .08em; font-size: .4em; line-height: 1; vertical-align: top; } /* dấu + nhỏ, đặt như số mũ */
.w3-so dd { margin-top: 10px; font-size: clamp(1.125rem, .9rem + 1vw, 1.75rem); font-weight: 700; }

/* Kỹ năng: các logo là những hạt tròn trôi bất quy tắc trong sân, va nhau thì dạt ra, chuột tới gần thì né (web-3.js: kyNang). Không JS: xếp lưới. */
/* kỹ năng: logo rải trên một mặt cầu tự xoay (kyNang trong web-3.js); không có JS thì là một hàng logo kèm tên */
.w3-kn { row-gap: clamp(12px, 2.4vh, 28px); align-items: center; min-height: 0; padding-block: clamp(70px, 12vh, 130px) 24px; }
.w3-so { min-height: 0; padding-block: clamp(130px, 22vh, 220px) clamp(48px, 8vh, 90px); }
.w3-kn + .w3-dv { min-height: 0; padding-top: clamp(64px, 9vh, 96px); }
.w3-kn-chu { grid-column: 1 / -1; }
.w3-kn-ten { max-width: 30em; margin-top: 18px; font-weight: 700; line-height: 1.7; }
.w3-kn-san { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 28px 36px; }
.w3-kn-hat { display: grid; justify-items: center; gap: 8px; color: var(--muc); font-size: .9375rem; font-weight: 700; line-height: 1; text-align: center; }
.w3-kn-hat svg { width: clamp(44px, 4.6vw, 72px); height: auto; aspect-ratio: 1; fill: currentColor; }
.w3-kn-hat .w3-kn-anh { width: clamp(44px, 4.6vw, 72px); max-width: none; height: auto; aspect-ratio: 1; object-fit: contain; } /* icon tải lên trong admin */
.web-js .w3-kn-hat .w3-kn-chi-ten { position: static; translate: none; opacity: 1; } /* kỹ năng không có logo: chỉ hiện tên */
.web-js .w3-kn-ten { display: block; }
.web-js .w3-kn-san { display: block; position: relative; height: clamp(430px, 77vh, 770px); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.web-js .w3-kn-san.keo { cursor: grabbing; }
.web-js .w3-kn-san li { position: absolute; left: 50%; top: 50%; width: 0; height: 0; will-change: transform, opacity; }
.web-js .w3-kn-hat { position: absolute; left: 0; top: 0; translate: -50% -50%; gap: 0; padding: 14px; }
.web-js .w3-kn-hat span { position: absolute; left: 50%; top: 100%; translate: -50% -6px; padding: 6px 12px; border-radius: 999px; background: var(--muc); color: var(--nen); white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.web-js .w3-kn-san li:hover .w3-kn-hat span { opacity: 1; }

/* 4. Dịch vụ: năm card lệch nhịp, mỗi card một màu; nét vẽ luồn trên dưới các card */
.w3-dv { row-gap: clamp(8px, 1.6vh, 18px); }
.w3-dv .w3-td { grid-column: 1 / -1; }
.w3-dv-ds { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 26px 0; }
.w3-dv-the { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: clamp(260px, 38vh, 380px); padding: clamp(18px, 1.8vw, 28px); border-radius: 24px; }
.w3-dv-the:nth-child(even) { margin-top: 26px; margin-bottom: -26px; }
.w3-dv-the { position: relative; }
.w3-dv-the h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.w3-dv-the h3 { overflow-wrap: anywhere; font: 900 clamp(1.75rem, 1rem + 2vw, 3rem)/1 var(--td); text-transform: uppercase; }
.w3-dv-the p { font-size: 1.0625rem; line-height: 1.5; }
/* rê chuột: dùng translate / rotate riêng, vì transform đã do GSAP điều khiển theo cuộn */
.w3-dv-the { transition: translate .5s var(--ra), rotate .5s var(--ra); }
@media (hover: hover) { .w3-dv-the:hover { translate: 0 -12px; rotate: -1.2deg; } .w3-dv-the:nth-child(even):hover { rotate: 1.2deg; } }
.w3-dv-la { background: var(--muc); color: var(--nen); }
.w3-dv-rung { background: var(--rung); color: var(--sang); }
.w3-dv-nuoc { background: var(--nuoc); color: var(--muc); }
.w3-dv-ho { background: var(--ho); color: var(--sang); }
.w3-dv-non { background: var(--sang); color: var(--muc); }

/* 5. Quy trình: nét vẽ chạy dọc bên trái danh sách, thắt nút ở mỗi bước */
.w3-qt-chu { grid-column: 1 / span 5; align-self: start; }
.w3-qt-chu p { margin-top: 14px; max-width: 22em; color: var(--muc-nhat); }
.w3-qt-ds { grid-column: 7 / span 6; padding-left: clamp(36px, 4vw, 64px); }
.w3-qt-ds { counter-reset: buoc; }
.w3-qt-ds li { counter-increment: buoc; display: grid; grid-template-columns: clamp(58px, 6.4vw, 104px) minmax(0, 1fr); column-gap: 10px; align-items: start; padding: clamp(10px, 1.8vh, 20px) 0; }
.w3-qt-ds li::before { content: counter(buoc, decimal-leading-zero); grid-row: 1 / span 2; font: 900 clamp(3rem, 2rem + 3.2vw, 5.25rem)/.86 var(--td); color: var(--rung); font-variant-numeric: tabular-nums; }
.w3-qt-ds li > * { grid-column: 2; }
.w3-qt-ds h3 { font: 900 clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem)/1.05 var(--td); text-transform: uppercase; }
.w3-qt-ds p { max-width: 30em; color: var(--muc-nhat); }

/* 6. Dự án: vòng xoay 3D (WebGL) trong sân */
/* phần duy nhất có nền tối: ảnh website nổi hơn, và là điểm chuyển giữa trang; nét vẽ đổi sang màu lá khi đi qua (uToi trong web-3.js) */
.w3-da { background: var(--muc); color: var(--sang); }
.w3-da ::selection { background: var(--nen); color: var(--muc); }
.w3-da :focus-visible { outline-color: var(--nen); }
.w3-da { grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; row-gap: 14px; height: 100vh; height: 100svh; min-height: 620px; padding-bottom: 22px; }
.w3-da-dau { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; }
.w3-da-goi { margin-bottom: .5em; font-weight: 700; }
.w3-da-san { grid-column: 1 / -1; align-self: stretch; margin-inline: calc(var(--le) * -1); cursor: grab; touch-action: pan-y; }
.w3-da-san.keo { cursor: grabbing; }
.w3-da-san.tro { cursor: pointer; }
.w3-da-the { position: absolute !important; left: 50%; top: 56%; z-index: 6 !important; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: center; width: min(820px, 100% - var(--le) * 2); padding: 14px; border-radius: 24px; background: var(--sang); color: var(--muc); transform: translate(-50%, -50%); }
.w3-da-the[hidden] { display: none; }
.w3-da-the-anh { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; background: var(--rung); }
.w3-da-the-ten { font: 900 clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem)/1 var(--td); text-transform: uppercase; padding-right: 44px; }
.w3-da-the-loai { margin: 6px 0 18px; opacity: .8; }
.w3-da-dong { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--muc); color: var(--sang); cursor: pointer; }
.w3-da-ds { grid-column: 1 / -1; justify-self: center; display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--nen); color: var(--muc); font-size: 1rem; font-weight: 700; text-align: center; text-decoration: none; }
.w3-da-ds:focus-visible { outline: 3px solid var(--sang); outline-offset: 4px; }
html:not(.web-js) .w3-da { height: auto; min-height: 0; }
html:not(.web-js) .w3-da-san, html:not(.web-js) .w3-da-goi, html:not(.web-js) .w3-hero-luoi { display: none; }

/* 7. Liên hệ: nét vẽ kết thúc bằng một vòng quanh form */
.w3-lh-chu { grid-column: 1 / span 6; }
.w3-lh-chu .w3-lon { margin-top: clamp(16px, 3vh, 32px); }
.w3-lh-kenh { margin-top: clamp(24px, 4vh, 44px); }
.w3-lh-kenh li { padding: 5px 0; }
.w3-lh-kenh span { display: inline-block; width: 9.5em; color: var(--muc-nhat); }
.w3-lh-kenh a { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.w3-lh-form { grid-column: 8 / span 5; display: grid; gap: 16px; padding: clamp(20px, 2.4vw, 32px); border-radius: 24px; background: var(--muc); color: var(--sang); }
.w3-lh-form label { display: grid; gap: 8px; font-size: 1rem; font-weight: 700; }
.w3-lh-form input, .w3-lh-form textarea { width: 100%; padding: 13px 16px; border: 0; border-radius: 14px; background: #12261d; color: var(--sang); font-size: 1rem; resize: vertical; }
.w3-lh-form input:focus-visible, .w3-lh-form textarea:focus-visible { outline: 2px solid var(--nen); outline-offset: 0; }
.w3-lh-form .w3-btn { justify-self: start; background: var(--nen); color: var(--muc); }
/* form Contact Form 7 (chọn trong admin): khung ngoài là .w3-lh-form, bên trong là markup của CF7 */
.w3-lh-cf7 .wpcf7, .w3-lh-cf7 form { display: grid; gap: 16px; }
.w3-lh-cf7 p { display: grid; gap: 8px; }
.w3-lh-cf7 .form-wrap { display: grid; gap: 16px; }
.w3-lh-cf7 .form-group { display: grid; gap: 8px; }
.w3-lh-cf7 .form-label { display: block; font-size: 1rem; font-weight: 700; }
/* nút gửi theo quy ước form của theme: .btn bọc ô submit (phủ kín, trong suốt) + chữ + mũi tên */
.w3-lh-cf7 .btn { position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--nen); color: var(--muc); font-size: .9375rem; font-weight: 700; transition: background .25s ease; }
.w3-lh-cf7 .btn:hover { background: var(--sang); }
.w3-lh-cf7 .btn input[type="submit"] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border-radius: inherit; background: none; color: transparent; font-size: 0; opacity: 1; }
.w3-lh-cf7 .btn:has(input:disabled) { opacity: .5; }
.w3-lh-cf7 .btn .icon { display: grid; }
.w3-lh-cf7 .btn .icon svg { width: 18px; height: 18px; }
.w3-lh-cf7 .btn .icon path { stroke: currentColor; stroke-width: 2; }
.w3-lh-cf7 .required { color: #ffb9a8; }
.w3-lh-cf7 .form-note { font-size: .875rem; opacity: .7; }
.w3-lh-cf7 textarea { height: 7.2em; }
.w3-lh-cf7 ::placeholder { color: var(--sang); opacity: .45; }
.w3-lh-cf7 a { text-decoration: underline; }
.w3-lh-cf7 .hidden-fields-container, .w3-lh-cf7 fieldset.hidden-fields-container { display: none; }
.w3-lh-cf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.w3-lh-cf7 .wpcf7-form-control-wrap { display: block; }
.w3-lh-cf7 input[type="checkbox"], .w3-lh-cf7 input[type="radio"] { width: 18px; height: 18px; padding: 0; accent-color: var(--nen); }
.w3-lh-cf7 .wpcf7-list-item { margin: 0; }
.w3-lh-cf7 .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; font-weight: 500; }
.w3-lh-cf7 input[type="submit"], .w3-lh-cf7 button[type="submit"] { justify-self: start; width: auto; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--nen); color: var(--muc); font-size: .9375rem; font-weight: 700; cursor: pointer; }
.w3-lh-cf7 input[type="submit"]:disabled, .w3-lh-cf7 button[type="submit"]:disabled { opacity: .5; cursor: default; }
.w3-lh-cf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; color: #ffb9a8; font-size: .875rem; font-weight: 500; }
.w3-lh-cf7 .wpcf7-response-output { margin: 0; padding: 0; border: 0; font-size: .9375rem; }
.w3-lh-cf7 .wpcf7-response-output:empty, .w3-lh-cf7 form.init .wpcf7-response-output { display: none; }
.w3-lh-cf7 .wpcf7-spinner { display: none; }
.w3-lh-cf7 form.submitting input[type="submit"], .w3-lh-cf7 form.submitting button[type="submit"] { opacity: .6; }

.w3-chan { z-index: 3; display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 22px var(--le); background: var(--muc); color: var(--sang); font-size: .875rem; }
.w3-chan > span { margin-right: auto; }
.w3-chan-ck { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.w3-chan-ck:hover { text-decoration: underline; text-underline-offset: 3px; }
/* bốn bé mèo nằm ngủ trên mép trên thanh chân trang (ảnh đã tách nền); thở nhẹ, chữ z bay lên */
.w3-chan-meo { position: absolute; right: var(--le); bottom: 100%; display: flex; align-items: flex-end; gap: clamp(2px, .8vw, 12px); pointer-events: none; }
.w3-chan-meo span { position: relative; display: block; width: clamp(74px, 11vw, 168px); --ha: 1.5%; translate: 0 var(--ha); pointer-events: auto; } /* translate: hạ từng bé xuống để bàn chân và bụng chạm mép thanh; phần đuôi thấp hơn chân thì nằm đè lên thanh */
.w3-chan-meo .w3-meo-shi { width: clamp(66px, 9.8vw, 150px); --ha: 2.5%; }
.w3-chan-meo .w3-meo-mi { width: clamp(64px, 9.4vw, 144px); --ha: 10%; }
.w3-chan-meo .w3-meo-bi { width: clamp(58px, 8.6vw, 132px); --ha: 9.5%; }
/* dải màu thanh nằm sau thân mèo, lấp khe hở giữa bụng và mép thanh (bụng trong ảnh cao hơn bàn chân một chút) */
.w3-chan-meo span::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: calc(var(--ha) - 1px); height: 8%; z-index: -1; background: var(--muc); }
.w3-chan-meo img { display: block; width: 100%; height: auto; transform-origin: 50% 100%; animation: w3-tho 3.6s ease-in-out infinite alternate; }
.w3-chan-meo span:nth-child(even) img { scale: -1 1; } /* hai bé quay đầu sang phải cho hàng mèo tự nhiên hơn */
.w3-chan-meo span:nth-child(2) img { animation-delay: -1.1s; }
.w3-chan-meo span:nth-child(3) img { animation-delay: -2.3s; }
.w3-chan-meo span:nth-child(4) img { animation-delay: -.6s; }
.w3-chan-meo span::after { content: "z"; position: absolute; left: 22%; top: -4%; font: 900 clamp(.875rem, 1.3vw, 1.25rem)/1 var(--td); color: var(--muc); opacity: 0; animation: w3-ngu 3.6s ease-in infinite; }
.w3-chan-meo span:nth-child(even)::after { left: auto; right: 22%; }
.w3-chan-meo span:nth-child(2)::after { animation-delay: -1.1s; }
.w3-chan-meo span:nth-child(3)::after { animation-delay: -2.3s; }
.w3-chan-meo span:nth-child(4)::after { animation-delay: -.6s; }
@keyframes w3-tho { from { transform: scale(1, 1); } to { transform: scale(1.015, 1.045); } }
@keyframes w3-ngu { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(10px, -26px) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .w3-chan-meo img, .w3-chan-meo span::after { animation: none; } }

/* ----- máy tính ----- */
/* form báo giá nhiều bước: nút trong phần Liên hệ; có JS thì khung form nằm trong lớp phủ kín màn hình (.w3-bg-lop do web-3.js tạo), không có JS thì thẻ details mở khung ngay tại chỗ */
/* dải "Bạn đã có ý tưởng?" ngay trên phần Liên hệ: nền xanh rừng, tiêu đề lớn, một nút mở form báo giá */
.w3-yt { position: relative; z-index: 2; display: grid; justify-items: start; gap: clamp(26px, 4.6vh, 48px); padding: clamp(64px, 10vh, 112px) var(--le); background: var(--rung); color: var(--sang); }
.w3-yt-td { max-width: 100%; font: 900 clamp(2.5rem, 1rem + 5.4vw, 6.25rem)/1.12 var(--td); letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.w3-yt-td > span { display: block; }
.w3-yt-td > span + span { color: var(--nen); }
.w3-yt .w3-bg > summary { min-height: 64px; padding: 0 34px; background: var(--nen); color: var(--muc); font-size: 1.125rem; }
.w3-yt .w3-bg > summary:hover { background: var(--sang); }
.w3-yt .w3-bg > summary svg { transition: translate .35s var(--ra); }
.w3-yt .w3-bg > summary:hover svg { translate: 5px 0; }
.w3-yt .w3-bg > summary:focus-visible { outline: 3px solid var(--sang); outline-offset: 4px; }
.w3-yt .w3-bg[open] .w3-bg-khung { width: min(100%, 720px); }
.w3-yt-lk { font-size: 1.0625rem; color: color-mix(in srgb, var(--sang) 78%, transparent); }
.w3-yt-lk a { color: var(--nen); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.w3-yt-lk a:hover { color: var(--sang); }
.w3-yt-lk a:focus-visible { outline: 3px solid var(--sang); outline-offset: 4px; }
.w3-bg > summary { display: inline-flex; gap: 10px; list-style: none; cursor: pointer; }
.w3-bg > summary::-webkit-details-marker { display: none; }
.w3-bg-khung { position: relative; margin-top: 20px; padding: clamp(20px, 2.4vw, 32px); border-radius: 24px; background: var(--muc); color: var(--sang); }
.w3-bg .msf-progress, .w3-bg .msf-prev, .w3-bg .msf-next { display: none; }
.w3-bg-mo { overflow: hidden; }
.w3-bg-lop { position: fixed; inset: 0; z-index: 80; display: grid; overflow-y: auto; overscroll-behavior: contain; background: var(--muc); color: var(--sang); }
.w3-bg-lop[hidden], .w3-bg-form [hidden], .w3-bg-khung > [hidden] { display: none !important; }
.w3-bg-lop .w3-bg-khung { display: grid; align-content: center; width: 100%; max-width: 1040px; min-height: 100%; margin: 0 auto; padding: clamp(88px, 13vh, 130px) var(--le) clamp(28px, 6vh, 56px); border-radius: 0; background: none; }
.w3-bg-dong { position: absolute; right: var(--le); top: 16px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1.5px solid color-mix(in srgb, var(--sang) 40%, transparent); border-radius: 50%; background: none; color: inherit; cursor: pointer; transition: background .25s ease, color .25s ease, rotate .5s var(--ra); }
.w3-bg-dong:hover { background: var(--nen); color: var(--muc); rotate: 90deg; }
.w3-bg-dong:focus-visible, .w3-bg-form :focus-visible, .w3-bg-xong:focus-visible { outline: 2px solid var(--nen); outline-offset: 3px; }
.w3-bg-form .msf { display: grid; gap: clamp(20px, 3.4vh, 34px); }
.w3-bg-form .msf-step { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.w3-bg-form .msf-title { padding: 0; color: var(--nen); font: 900 clamp(1.75rem, 1.2rem + 2.4vw, 3rem)/1.1 var(--td); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.w3-bg-form .msf-title:focus { outline: none; }
.w3-bg-lop .msf-title { margin-bottom: clamp(6px, 1.6vh, 18px); font-size: clamp(2.25rem, 1.2rem + 5.2vw, 5.5rem); line-height: 1.1; }
.w3-bg-lop .msf-progress { position: absolute; left: var(--le); right: calc(var(--le) + 66px); top: 16px; display: flex; align-items: center; gap: 18px; min-height: 46px; }
.w3-bg-form .msf-bar { flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: color-mix(in srgb, var(--sang) 18%, transparent); }
.w3-bg-form .msf-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--nen); transition: width .7s var(--ra); }
.w3-bg-form .msf-count { font-size: .875rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.w3-bg-form .msf-count b { color: var(--nen); font: 900 1.5rem/1 var(--td); }
.w3-bg-form input[type="text"], .w3-bg-form input[type="tel"], .w3-bg-form input[type="email"], .w3-bg-form input[type="url"], .w3-bg-form textarea, .w3-bg-form select { width: 100%; padding: 14px 18px; border: 0; border-radius: 14px; background: #12261d; color: var(--sang); font-size: 1rem; resize: vertical; }
.w3-bg-form select { appearance: none; padding-right: 44px; background: #12261d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23e9f5c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center; cursor: pointer; }
.w3-bg-form input[type="file"] { width: 100%; padding: 22px 18px; border: 1.5px dashed color-mix(in srgb, var(--sang) 40%, transparent); border-radius: 14px; font-size: .9375rem; cursor: pointer; }
.w3-bg-form input[type="file"]::file-selector-button { margin-right: 14px; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--nen); color: var(--muc); font: inherit; font-weight: 700; cursor: pointer; }
.w3-bg-form .form-file-label { font-weight: 700; }
.w3-bg-form .wpcf7-checkbox, .w3-bg-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 10px; }
.w3-bg-form .wpcf7-checkbox label, .w3-bg-form .wpcf7-radio label { position: relative; align-items: center; min-height: 48px; padding: 0 20px; border: 1.5px solid color-mix(in srgb, var(--sang) 35%, transparent); border-radius: 999px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease, translate .35s var(--ra); }
.w3-bg-form .wpcf7-checkbox input, .w3-bg-form .wpcf7-radio input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.w3-bg-form .wpcf7-checkbox label:has(input:checked), .w3-bg-form .wpcf7-radio label:has(input:checked) { border-color: var(--nen); background: var(--nen); color: var(--muc); }
.w3-bg-form .wpcf7-checkbox label:has(input:focus-visible), .w3-bg-form .wpcf7-radio label:has(input:focus-visible) { outline: 2px solid var(--nen); outline-offset: 3px; }
.w3-bg-form [aria-invalid="true"]:not(span) { box-shadow: inset 0 0 0 2px #ffb9a8; }
.w3-bg-loi { display: block; margin-top: 8px; color: #ffb9a8; font-size: .875rem; font-weight: 500; }
.w3-bg-form .msf-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.w3-bg-form .msf-nav .btn { border: 1.5px solid var(--nen); cursor: pointer; font-family: inherit; }
.w3-bg-form .msf-nav .btn-outline { border-color: color-mix(in srgb, var(--sang) 40%, transparent); background: none; color: var(--sang); }
.w3-bg-form .msf-nav .btn-outline:hover { background: color-mix(in srgb, var(--sang) 12%, transparent); }
.w3-bg-lop .msf-nav { margin-top: clamp(8px, 2vh, 20px); }
.w3-bg-lop .msf-next, .w3-bg-lop .msf-submit { margin-left: auto; }
.w3-bg-khung.xong .msf { display: none; }
.w3-bg-khung.xong .wpcf7-response-output { max-width: 18ch; color: var(--nen); font: 900 clamp(2rem, 1.2rem + 4.4vw, 4.75rem)/1 var(--td); text-transform: uppercase; text-wrap: balance; }
.w3-bg-xong { justify-self: start; margin-top: clamp(20px, 4vh, 40px); }
@media (hover: hover) { .w3-bg-form .wpcf7-checkbox label:hover, .w3-bg-form .wpcf7-radio label:hover { translate: 0 -2px; border-color: var(--nen); } }
@media (min-width: 700px) {
    .w3-bg-lop .form-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .w3-bg-lop .form-wrap > .form-group:not(.group-half) { grid-column: 1 / -1; }
}
/* trang văn bản (Chính sách bảo mật): tiêu đề lớn trên nền xanh, nội dung nằm trong một tấm giấy sáng cho dễ đọc */
.w3-van-trang { padding: clamp(120px, 18vh, 190px) var(--le) clamp(150px, 20vh, 230px); }
.w3-van-khung { max-width: 56rem; margin-inline: auto; }
.w3-van-td { font: 900 clamp(48px, 8.4vw, 124px)/1.16 var(--td); letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.w3-van { margin-top: clamp(24px, 4vh, 44px); padding: clamp(24px, 5vw, 72px); border-radius: clamp(20px, 2.4vw, 32px); background: var(--giay); font-size: clamp(1rem, .97rem + .14vw, 1.0938rem); line-height: 1.7; }
.w3-van > * + * { margin-top: 1em; }
.w3-van h2 { margin-top: 2.2em; padding-top: 1.1em; border-top: 1.5px solid color-mix(in srgb, var(--muc) 18%, transparent); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); font-weight: 800; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.w3-van h3 { margin-top: 1.5em; font-size: 1.0625em; font-weight: 800; }
.w3-van ul, .w3-van ol { padding-left: 1.3em; }
.w3-van ul { list-style: disc; }
.w3-van ol { list-style: decimal; }
.w3-van li + li { margin-top: .45em; }
.w3-van li::marker { color: var(--rung); }
.w3-van a { color: var(--rung); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.w3-van a:hover { color: var(--muc); }
.w3-van em { color: var(--muc-nhat); }
.w3-chan a:hover { text-decoration: underline; text-underline-offset: 3px; }
.w3-logo + .w3-nn { margin-left: auto; }
.w3-logo { white-space: nowrap; }
@media (min-width: 992px) {
    /* kỹ năng: tiêu đề bên trái, quả cầu bên phải */
    .w3-kn-chu { grid-column: 1 / span 5; }
    .w3-kn-san { grid-column: 6 / -1; }
    /* hero: trường đường kẻ phủ cả màn hình, các đường uốn quanh dòng chào (uChu trong web-3.js) */
    .w3-hero-luoi { grid-row: 1 / -1; }
    .w3-cuon { grid-row: 1 / -1; justify-self: center; }
    .w3-hero-chu { grid-row: 1 / -1; align-self: center; justify-self: center; font-size: clamp(44px, 8vw, 150px); text-align: center; } /* dòng chào nằm giữa trường đường kẻ */
    /* con số: lớn gần hết màn hình */
    .w3-so-ds { grid-template-columns: repeat(var(--so-cot, 4), auto); justify-content: space-between; align-items: end; gap: 16px; }
    .w3-so dt { font-size: min(17vw, 64vh); }
    .w3-so dd { margin-top: 14px; font-size: clamp(1rem, 1.7vw, 1.5rem); white-space: nowrap; }
    .w3-lh-chu .w3-lon { font-size: clamp(1.25rem, 2.25vw, 2.375rem); white-space: nowrap; }
    /* dịch vụ: card cao */
    .w3-dv-the { min-height: clamp(320px, 44vh, 480px); }
    /* quy trình: tiêu đề đứng yên trong lúc danh sách chạy */
    .w3-qt { align-items: start; }
    .w3-qt-chu { position: sticky; top: 110px; }
    .w3-qt-ds { grid-column: 6 / -1; }
    /* dự án: sân vòng xoay cao gần hết màn hình, phần cao theo nội dung */
    .w3-da { height: auto; grid-template-rows: auto auto auto; padding-bottom: 40px; }
    .w3-da-dau { grid-row: 1; }
    .w3-da-san { grid-row: 2; height: 104vh; min-height: 520px; }
    .w3-da-ds { grid-row: 3; }
    .w3-da-the { position: relative !important; left: auto; top: auto; grid-column: 1 / -1; grid-row: 2; justify-self: center; align-self: center; transform: none; }
}
@media (max-width: 991px) {
    .w3-nav { display: none; }
    
    .w3-nn { margin-left: auto; }
    .w3-head { gap: 10px; }
    .w3-p { row-gap: 28px; padding-top: 90px; }
    .w3-ai-anh, .w3-ai-chu, .w3-qt-chu, .w3-qt-ds, .w3-lh-chu, .w3-lh-form { grid-column: 1 / -1; }
    .w3-ai-anh { width: min(60%, 280px, 34vh); }
    .w3-hero-chu { font-size: 17vw; white-space: normal; }
    .w3-hero-chu span { display: block; white-space: nowrap; }
    .w3-so { padding-top: 72px; }
    .w3-so-ds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
    .w3-so dt { font-size: 24vw; }
    .w3-kn { padding-top: 48px; }
    .web-js .w3-kn-san { height: min(88vw, 520px); }
    .w3-lh-chu .w3-lon { text-wrap: balance; }
    .w3-dv-ds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .w3-dv-the { min-height: 0; }
    .w3-dv-the:nth-child(even) { margin-top: 0; margin-bottom: 0; }
    .w3-dv-the:last-child { grid-column: 1 / -1; }
    .w3-da-the { grid-template-columns: minmax(0, 1fr); width: min(420px, 100% - var(--le) * 2); }
}
@media (min-width: 700px) and (max-width: 991px) {
    /* tablet: tiêu đề Kỹ năng và quả cầu nằm cạnh nhau trong một màn hình */
    .w3-kn-chu { grid-column: 1 / span 6; }
    .w3-kn-san { grid-column: 7 / -1; }
    .web-js .w3-kn-san { height: 46vw; }
}
@media (max-width: 600px) {
    :root { --co-td: 19vw; }
    .w3-logo + .w3-nn + .w3-btn { display: none; } /* trang văn bản: tên ở góc trái đã là link về trang chủ */
    .w3-dv-ds { grid-template-columns: minmax(0, 1fr); }
    .w3-so dd { font-size: 1rem; }
    .w3-lh-kenh span { display: block; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
@media (min-width: 1200px) {
    /* quy trình: mỗi dòng mô tả nằm trên một dòng */
    .w3-qt-ds p { max-width: none; font-size: min(1.1875rem, 1.3vw); }
    :lang(vi) .w3-qt-ds p { white-space: nowrap; } /* câu tiếng Việt mặc định vừa một dòng; ngôn ngữ khác dài hơn nên cho xuống dòng */
}
/* tương tác chuột (chuot trong web-3.js) */
.w3-tro { position: fixed; left: 0; top: 0; z-index: 90; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid var(--muc); border-radius: 50%; color: var(--nen); pointer-events: none; opacity: 0; transition: width .35s var(--ra), height .35s var(--ra), margin .35s var(--ra), background-color .3s, border-color .3s, opacity .3s, scale .2s; }
.w3-tro.hien { opacity: 1; }
.w3-tro span { font-size: .8125rem; font-weight: 700; opacity: 0; transition: opacity .2s; }
.w3-tro.lon { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: color-mix(in srgb, var(--muc) 14%, transparent); }
.w3-tro.chu { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--muc); }
.w3-tro.chu span { opacity: 1; }
.w3-tro.sang { border-color: var(--nen); }
.w3-tro.sang.lon { background: color-mix(in srgb, var(--nen) 18%, transparent); }
.w3-tro.sang.chu { background: var(--nen); color: var(--muc); }
.w3-tro.nhan { scale: .78; }
.w3-no { position: fixed; left: 0; top: 0; z-index: 89; width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 2px solid var(--muc); border-radius: 50%; pointer-events: none; }
.w3-no.sang { border-color: var(--nen); }
@media (hover: hover) {
    .w3-so dt { transition: translate .6s cubic-bezier(.34, 1.8, .64, 1); }
    .w3-so-ds > div:hover dt { translate: 0 -8px; } /* rê chuột: số nảy nhẹ lên */
    .w3-dv-the { position: relative; isolation: isolate; overflow: hidden; }
    .w3-dv-the::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .24), transparent); opacity: 0; transition: opacity .35s; }
    .w3-dv-the:hover::after { opacity: 1; }
    .w3-qt-ds li::before, .w3-qt-ds h3, .w3-qt-ds p { transition: translate .5s var(--ra), color .3s; }
    .w3-qt-ds li:hover::before { color: var(--muc); }
    .w3-qt-ds li:hover h3, .w3-qt-ds li:hover p { translate: 12px 0; }
    .web-js .w3-kn-hat svg, .web-js .w3-kn-hat .w3-kn-anh { transition: scale .35s var(--ra); }
    .web-js .w3-kn-san li:hover .w3-kn-hat svg, .web-js .w3-kn-san li:hover .w3-kn-hat .w3-kn-anh { scale: 1.2; }
    .w3-lh-kenh a { transition: color .25s; }
    .w3-lh-kenh a:hover { color: var(--rung); }
}
/* chạy trong màn hình thiết bị của phòng 3D: ẩn thanh cuộn (vẫn cuộn được) */
html.nhung { scrollbar-width: none; }
html.nhung::-webkit-scrollbar { display: none; }
html:has(body.w3-nhung) { scrollbar-width: none; }
html:has(body.w3-nhung)::-webkit-scrollbar { display: none; }
