/* Mobile layouts come from separate Figma designs; desktop markup (.desk) is hidden. */
.m{display:none}
@media(max-width:900px){
.desk{display:none!important}
.m{display:flex;flex-direction:column;gap:36px;max-width:430px;margin:0 auto;padding:20px 24px 30px}
.m.mcase{gap:32px}
.m h1,.m h2,.m h3,.m p{margin:0}
.m .e11{font-weight:700;font-size:11px;color:var(--blue);white-space:pre}
.mh{background:#fff;border-radius:8px;padding:6px 12px;display:flex;align-items:center;justify-content:space-between}
.mbrand{display:flex;align-items:center;gap:10px}
.mmark{background:var(--blue);color:#fff;font-weight:700;font-size:21px;padding:8px 12px;border-radius:10px}
.mlabel{display:flex;flex-direction:column;gap:2px}.mlabel b{font-size:14px}.mlabel span{font-weight:500;font-size:10px;color:#64748b}
.mbtn{background:#fff;border:1px solid #d0d7de;border-radius:8px;padding:10px;display:flex;cursor:pointer}
.mcase .mbtn{padding:11px}
.mbtn img[hidden],.mmenu[hidden]{display:none}
.mmenu{display:flex;flex-direction:column;gap:12px}
.mm-intro{display:flex;flex-direction:column;gap:5px}.mm-intro .t{font-weight:600;font-size:18px}
.mm-panel{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:9px 12px 12px}
.mm-panel a{display:flex;align-items:center;gap:16px;padding:14px 12px;border-radius:8px}
.mm-panel b{font-size:12px;color:var(--blue)}.mm-panel span{flex:1;font-weight:600;font-size:16px}
.mhero{display:flex;flex-direction:column;gap:21px;align-items:flex-start}
.mhero .tag{font-weight:600}
.mprofile{width:100%;background:#fff;border-radius:16px;box-shadow:0 8px 22px rgba(15,23,42,.08);padding:16px 17px;display:flex;align-items:center;gap:17px}
.mprofile div{display:flex;flex-direction:column;gap:6px}.mprofile b{font-size:19px}.mprofile span{font-weight:500;font-size:13px;color:var(--muted)}.mprofile em{font-style:normal;font-weight:700;font-size:10px;color:var(--blue)}
.mhero h1{font-weight:600;font-size:44px}
.mhero p{font-size:16px;color:var(--muted)}
.mhero p.tag{font-size:11px;color:var(--blue)}
.mhero .btn{padding:13px 19px;box-shadow:0 8px 18px rgba(37,99,235,.15)}
.mnote{background:#93c5fd;border-radius:22px;box-shadow:0 8px 22px rgba(15,23,42,.08);padding:28px 24px;display:flex;flex-direction:column;gap:15px}
.mnote h2{font-weight:600;font-size:26px}.mnote p:last-child{font-size:15px;color:var(--muted)}
.msec{display:flex;flex-direction:column;gap:16px}
.msec h2{font-weight:600;font-size:30px}
.msec .p15{font-size:15px;color:var(--muted)}
.mtiles{display:flex;flex-direction:column;gap:12px}
.mtile{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px 20px 22px;display:flex;flex-direction:column;gap:10px}
.mtile b{font-size:12px;color:var(--blue);white-space:pre}.mtile strong{font-weight:600;font-size:19px}.mtile p{font-size:14px;color:var(--muted)}
.works{gap:19px}
.mwork{background:var(--tint);border-radius:20px;box-shadow:0 8px 22px rgba(15,23,42,.08);padding:24px;display:flex;flex-direction:column;gap:16px}
.mwork.alt{background:#f1f5f9}
.mwork h3{font-weight:600;font-size:24px}.mwork .d{font-size:14px;color:var(--muted)}
.mwork span{display:flex;align-items:center;gap:8px;font-weight:600;font-size:12px;color:var(--blue)}
.career{gap:18px}.career .line{font-weight:600;font-size:16px}
.mfoot{font-size:12px;color:var(--muted)}
/* mobile case study */
.mhero2{display:flex;flex-direction:column;gap:19px}
.mhero2 h1{font-weight:600;font-size:35px}
.cat{font-weight:700;font-size:12px;color:var(--blue)}
.mhero2 .d{font-size:16px;color:var(--muted)}
.mfacts{display:flex;flex-direction:column;gap:15px}
.mfacts strong{font-weight:600;font-size:19px}.mfacts span{font-size:13px;color:var(--muted);white-space:pre-wrap}.mfacts b{font-weight:600;font-size:14px;color:var(--blue)}
.mcontrib{display:flex;flex-direction:column;gap:22px}
.mcontrib h2{font-weight:600;font-size:29px}
.mcontrib div{display:flex;flex-direction:column;gap:10px}.mcontrib b{font-size:13px;color:var(--blue)}.mcontrib p{font-size:16px}
.mflow,.mtech{display:flex;flex-direction:column;gap:14px}
.mtech{gap:17px}
.mflow h2,.mtech h2{font-weight:600;font-size:27px}
.mflow .sub{font-size:13px;color:var(--muted)}
.mstep{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:16px;font-weight:600;font-size:16px;white-space:pre-wrap}
.mstep.alt{background:var(--tint)}
.mcard{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px 17px;display:flex;flex-direction:column;gap:14px}
.mcard strong{font-weight:600;font-size:17px}.mcard p{font-size:14px;color:var(--muted)}
.mscope{background:var(--tint);border-radius:12px;padding:22px 20px;display:flex;flex-direction:column;gap:15px}
.mscope h2{font-weight:600;font-size:24px}.mscope p:last-child{font-size:14px;color:var(--muted)}
.mnext{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:22px 20px;display:flex;flex-direction:column;gap:11px}
.mnext strong{font-weight:600;font-size:20px}.mnext span{font-weight:600;font-size:14px;color:var(--blue);white-space:pre}
}
@media(max-width:900px){.m .skillset .skill-card{padding:20px}.m .skillset .skill-card h3{margin:0 0 12px}.m .skillset{gap:12px}.m .skillset h2{margin-bottom:4px}}
@media(max-width:900px){.mprofile .mtel{font-weight:600;font-size:12px;color:var(--muted)}}
@media(max-width:900px){.m .certs{gap:12px}.m .certs h2{margin-bottom:4px}.m .certs .cert-card{padding:20px}}
@media(max-width:900px){.mm-panel a.active{background:var(--tint)}.mm-panel a.active span{color:var(--blue)}}
/* ---- mobile balance ---- */
@media(max-width:900px){
.m .btn{white-space:nowrap}
.mhero .btn{align-self:stretch;justify-content:center}
.mhero .btn+.btn{margin-top:-9px}
.mwork span{flex-wrap:nowrap}
}
/* ---- mobile dropdown menu: fixed under the sticky header, dims the page, closes on outside tap / Esc ---- */
@media(max-width:900px){
html.menu-open{overflow:hidden}
.mm-backdrop{position:fixed;inset:0;z-index:99;background:rgba(15,23,42,.4)}
.mm-backdrop[hidden]{display:none}
.mmenu{position:fixed;z-index:101;left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-width:398px;max-height:calc(100vh - 110px);overflow-y:auto;background:#fff;border-radius:16px;padding:18px 14px 12px;gap:6px;box-shadow:0 24px 60px rgba(15,23,42,.3)}
.mmenu .mm-intro{padding:0 8px 8px}
.mmenu .mm-panel{border:0;border-radius:0;padding:0}
.mm-panel a{padding:15px 10px}
.mm-panel a+a{border-top:1px solid #eef2f7}
.mm-panel a:active{background:var(--tint)}
.mright{flex:none}
.mh{gap:8px}
.mbrand{min-width:0}
}
/* compact header so brand + language + back + menu always fit on one row (360px+ screens) */
@media(max-width:900px){
.mmark{padding:6px 10px;font-size:18px;border-radius:9px}
.mbrand{gap:8px}
.mlabel b{white-space:nowrap;font-size:13px}
.mlabel span{white-space:nowrap;font-size:9px}
.mright{gap:6px}
.mbtn,.mcase .mbtn{padding:9px;border-radius:8px}
.mright .lang{padding:7px 9px}
}
@media(max-width:340px){.mlabel span{display:none}}
/* mobile: header flush with the top edge */
@media(max-width:900px){.m{padding-top:0}.mh{border-radius:0 0 12px 12px}}
/* ---- mobile: header is FIXED (reliable on every phone browser, unlike sticky) with room reserved for it ---- */
@media(max-width:900px){
.mh{position:fixed;top:var(--hieu-top,0px);left:0;right:0;margin:0 auto;width:calc(100% - 48px);max-width:382px;z-index:100;transform:translateZ(0)}
.m{padding-top:82px}
.mm-backdrop{top:0}
}
