@font-face{font-family:Lato;src:url('assets/fonts/lato-regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Lato;src:url('assets/fonts/lato-bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
:root{font-family:Lato,Arial,sans-serif;font-size:16px}
button,input,textarea,select{font-family:inherit}
em{font-family:inherit;font-style:normal;font-weight:700}
@media screen{
 body{font-size:16px;line-height:1.7}
 h1,h2,h3,h4{font-weight:700;line-height:1.25;text-wrap:balance}
 h1,.hero h1{font-size:clamp(40px,4.6vw,64px);line-height:1.12;letter-spacing:-1.8px}
 h2{font-size:clamp(34px,3.4vw,46px);letter-spacing:-1px}
 .brand{font-size:19px}.brand small{font-size:13px;line-height:1.4}
 .tabs button{font-size:16px;font-weight:700;padding:16px 12px}.tabs button span{font-size:12px}
 .eyebrow,.hero .eyebrow,.story-card .eyebrow,.case-heading .eyebrow,.sectiontop p{font-size:12px;line-height:1.6;letter-spacing:1.3px}
 .intro{font-size:20px;line-height:1.7}.journey{font-size:16px;line-height:1.75}
 .primary,.quiet,.quiet.small,.story-card .story-action{font-size:15px;line-height:1.5}
 .primary{padding:15px 20px}.actions{flex-wrap:wrap;gap:16px 24px}
 .traits span,.outline-tag{font-size:13px;line-height:1.5}
 .portrait-label,.portrait figcaption>span{font-size:12px;line-height:1.5}
 .portrait strong{font-size:28px;line-height:1.2}
 .proof-strip article>span{font-size:14px;line-height:1.6}.proof-strip strong{font-size:34px;line-height:1.2}
 .page-heading>p{font-size:16px;line-height:1.7;max-width:360px}
 .story-card h3{font-size:26px;line-height:1.3}.story-card p:not(.eyebrow){font-size:16px;line-height:1.75}
 .story-prose p{font-size:18px;line-height:1.8}.story-prose h3{font-size:28px;line-height:1.3}
 .filters button{font-size:14px;padding:11px 14px;line-height:1.5}
 .project-toolbar label,.project-toolbar p{font-size:14px}.project-toolbar input{font-size:16px}
 .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .project-body h3{font-size:25px;line-height:1.3}.project-body p{font-size:16px;line-height:1.75}
 .project-body .project-category,.diagram-label{font-size:12px}.project-foot{font-size:14px;flex-wrap:wrap}
 .stack span,.case-heading .stack span{font-size:13px;line-height:1.5}
 .reader-topline>span,.reader-topline .quiet,.reader-end,.reader-end .quiet{font-size:14px}
 .case-heading h2{font-size:clamp(34px,4.3vw,54px);line-height:1.18;letter-spacing:-1px;overflow-wrap:normal}
 .case-lead{font-size:20px;line-height:1.7}
 .case-narrative p,.collection-grid p{font-size:17px;line-height:1.8}
 .case-narrative h3,.collection-grid h3{font-size:26px;line-height:1.3}
 .case-section>.muted,.dashboard-intro{font-size:16px;line-height:1.7}
 .case-gallery figcaption,.case-demo figcaption,.image-zoom>span,.source-notes,.document-note,.document-copy,.demo-duration,.dashboard-format,.dashboard-pages button{font-size:14px;line-height:1.6}
 .document-card>summary{font-size:16px}.document-kind{font-size:12px}
 .cv-aside h3{font-size:27px}.cv-aside p:not(.eyebrow),.cv-aside .cv-study{font-size:16px;line-height:1.8}
 .cv-timeline h3{font-size:26px;line-height:1.3}.cv-timeline p,.cv-timeline li{font-size:17px;line-height:1.75}
 .cv-timeline small,.cv-timeline .date,.cv-timeline .employer{font-size:14px;line-height:1.6}
 .cv-layout{grid-template-columns:310px minmax(0,1fr);gap:42px}
 .image-dialog-toolbar>span,.image-dialog-toolbar .quiet,.image-dialog-toolbar .primary{font-size:14px}
 footer{font-size:14px;line-height:1.6}
 #credentials .academic-card>h3{font-size:28px;font-weight:700}
 #credentials .academic-card>h3 .degree-qualifier{font-size:20px;font-weight:400}
 #credentials .academic-program{font-size:17px;line-height:1.7}
 #credentials .academic-awards>*{font-size:14px;text-wrap:balance}
 #credentials .academic-metrics strong{font-weight:700}
 #credentials .learning-copy h4{font-weight:700}
}
@media screen and (max-width:900px){
 .hero{grid-template-columns:1fr;gap:32px}.hero-copy{max-width:680px}.portrait{max-width:600px;aspect-ratio:1.4}
 .intro,.journey{max-width:60ch}.cv-layout{grid-template-columns:250px minmax(0,1fr);gap:28px}
 .story-grid{grid-template-columns:1fr 1fr}.story-image{height:230px}
 .proof-strip article{gap:14px;padding-left:18px}
}
@media screen and (max-width:700px){
 html{scroll-padding-top:125px}.panel{scroll-margin-top:120px}
 .tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px}
 .tabs button{font-size:14px;padding:12px 4px;min-height:44px;line-height:1.3}
 .tabs button span,.tab-marker{display:none}
 .tabs button[aria-selected=true]{background:var(--ink);color:white;box-shadow:0 3px 8px #20342b20}
 #tab-credentials{grid-column:1/-1;font-size:15px;padding:12px;min-height:44px}
 .brand{font-size:17px}.brand small{font-size:12px;max-width:160px}.socials{gap:6px}
 .socials a{width:32px;height:32px}.shell{padding:0 20px}
 .hero h1{font-size:42px}.hero .eyebrow{font-size:12px}.intro{font-size:19px}
 .portrait figcaption>span,.portrait-label{font-size:11px}
 .proof-strip{grid-template-columns:1fr;gap:0;padding:0}
 .proof-strip article,.proof-strip article:first-child{display:grid;grid-template-columns:90px minmax(0,1fr);gap:20px;border-left:0;padding:20px 0}
 .proof-strip article+article{border-top:1px solid var(--line)}.proof-strip article>span{font-size:15px;margin:0}
 .proof-strip strong{font-size:32px}.sectiontop{gap:16px;align-items:flex-start}
 .sectiontop p{font-size:12px}.sectiontop .small{font-size:14px}
 .project-grid,.story-grid{grid-template-columns:1fr}.project-art{height:220px}
 .cv-layout{display:flex;flex-direction:column-reverse;gap:28px}.cv-aside{position:static}
 .case-lead{font-size:18px}.case-heading h2{font-size:34px}
 .reader-topline,.reader-end{flex-wrap:wrap}.reader-topline .quiet{white-space:normal}
 .image-dialog-toolbar{flex-wrap:wrap;gap:10px}.image-dialog-toolbar>div{gap:15px}
 .document-card>summary{align-items:flex-start}.document-kind{min-width:38px}
 footer{flex-wrap:wrap}.company-strip{gap:24px}
}

/* Experience: scope, delivery and value remain visible without disclosure panels. */
.story-source{display:block;width:fit-content;font-size:14px;line-height:1.6;color:var(--accent);text-decoration:underline;text-underline-offset:4px;margin-top:12px}
.story-references a{display:block;width:fit-content;font-size:16px;line-height:1.65;margin:12px 0;color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.story-engagement{font-size:15px;color:var(--accent);margin-top:20px}
.story-engagement small{display:block;font-size:13px;color:var(--muted);margin-top:7px}
.story-discussion{background:var(--soft);padding:24px;border-radius:12px}
.story-discussion small{display:block;font-size:13px;line-height:1.6;color:var(--muted);margin-top:14px}
@media screen{
 .story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px}
 .story-card .story-card-engagement{font-size:14px;color:var(--accent);margin-top:14px}
 .story-card-engagement span{color:var(--muted);font-size:12px}
 .story-image{height:260px}
 .story-card .story-action{margin-bottom:0}
}
@media(max-width:700px){.story-grid{grid-template-columns:1fr}.story-image{height:230px}.story-discussion{padding:20px}}
.cv-role h4{font-size:17px;line-height:1.4;color:var(--ink);margin:26px 0 12px;font-weight:700}
.cv-role strong{color:var(--ink);font-weight:700}
@media screen{
 .cv-role .cv-scope{margin-top:16px;color:var(--ink)}
 .cv-role .cv-progression{font-size:14px;line-height:1.8;margin:14px 0;color:var(--accent);padding-left:14px;border-left:2px solid #a8c3ad}
 .cv-role h4{padding-top:22px;border-top:1px solid var(--line)}
 .cv-role .cv-stack{font-size:14px;line-height:1.8;margin-top:22px;color:var(--muted)}
 .cv-role .cv-impact-note{font-size:14px;line-height:1.65;margin-top:12px;color:var(--muted)}
 .cv-role .cv-recognition{font-size:15px;background:var(--soft);border-radius:8px;padding:14px 16px;margin-top:20px}
 .cv-role li{padding-bottom:13px}
 .cv-timeline article{padding-bottom:38px}
 .cv-timeline .date{line-height:1.8;white-space:nowrap}
}
@media print{
 #cv .page-heading{display:none}
 .cv-layout{display:block}
 .cv-aside{display:block;border:0;border-bottom:1px solid #ccc;padding:0 0 12px;margin-bottom:16px}
 .cv-aside>.eyebrow,.cv-aside>h3{display:none}
 .cv-aside p:not(.eyebrow){display:inline-block;vertical-align:top;width:48%;margin:0;font-size:10px;line-height:1.5}
 .cv-aside .cv-study{border:0;padding:0}
 .cv-timeline article{break-inside:auto;padding:14px 0}
 .cv-role h4{font-size:12px;margin:14px 0 6px;break-after:avoid}
 .cv-role h3,.cv-role .employer,.cv-role .cv-scope,.cv-timeline .date{break-after:avoid}
 .cv-role li{break-inside:avoid}
 .cv-role .cv-stack,.cv-role .cv-impact-note,.cv-role .cv-recognition{font-size:9px;margin-top:7px}
 .cv-role .cv-progression{font-size:9px;margin:5px 0}
}

/* Keep both Khoa and the AI Center sign visible in the story thumbnail. */
[data-story-card="transition"] .story-image img{object-fit:contain;background:#e7e9e3}

/* A compact portrait balances the introduction without dominating it. */
.hero .portrait{width:100%;max-width:320px;aspect-ratio:1;border-radius:50%;justify-self:center}
.hero .portrait::after{display:none}
@media(max-width:900px){.hero .portrait{max-width:280px}}

/* A name-led, editorial header inspired by the supplied reference. */
header .brand{min-width:0;letter-spacing:0}
header .brand-name{display:block;font-family:Georgia,'Times New Roman',serif;font-size:clamp(30px,3.1vw,44px);font-weight:700;line-height:1.15;letter-spacing:-.8px;color:#202c38}
header .brand small{font-family:Lato,Arial,sans-serif;font-size:15px;line-height:1.5;font-weight:400;margin-top:8px;max-width:none;color:#687582}
header .socials{flex-shrink:0}
@media(max-width:600px){header{gap:14px}header .brand small{font-size:12px;margin-top:6px}}

/* Clear, separated navigation with a moving active state. */
@media screen{
 .tabs{background:#fff;border-color:#d5ddd2;box-shadow:0 3px 12px #20342b08}
 .tabs button{font-size:17px;font-weight:700;min-height:56px;transition:color .2s,background .2s}
 .tabs button+button::before{content:'';position:absolute;left:-3px;top:26%;height:48%;width:1px;background:#d9e0d6}
 .tabs button[aria-selected=true]::before,.tabs button[aria-selected=true]+button::before{opacity:0}
 .tabs button:not([aria-selected=true]):hover{background:#eaf0e5;color:#28523d}
 .tabs button[aria-selected=true]{color:#fff}
 .cv-pdf-actions{display:flex;align-items:center;gap:14px 20px;flex-wrap:wrap;justify-content:flex-end}
 .cv-pdf-actions .primary{white-space:nowrap}
}
@media screen and (max-width:700px){
 .tabs button{font-size:15px;min-height:48px;padding:12px 5px}
 .tabs #tab-credentials{border-top:1px solid #d9e0d6;margin-top:2px}
 .tabs #tab-credentials::before{display:none}
 .cv-pdf-actions{justify-content:flex-start;margin-top:20px}
}
@media print{.cv-pdf-actions{display:none!important}}

header .brand .brand-headline{font-size:18px;font-weight:700;color:var(--accent);margin-top:10px}
header .brand .brand-details{font-size:14px;font-weight:400;color:#687582;margin-top:4px;line-height:1.6}
@media(max-width:600px){
 .shell>header{display:block;position:relative}
 header .brand{display:block}
 header .brand-name{padding-right:120px}
 header .socials{position:absolute;right:0;top:24px}
 header .brand .brand-headline{font-size:16px;margin-top:12px}
 header .brand .brand-details{font-size:13px;max-width:44ch;text-wrap:balance}
}

/* Wide architecture and chart, paired phone screenshots for the email demo. */
/* Research workflow overview followed by the three Telegram steps. */
.case-gallery:has(img[src*="projects/research-radar/"]){grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.case-gallery:has(img[src*="projects/research-radar/"]) figure:first-child{grid-column:1/-1}
@media(max-width:700px){
 .case-gallery:has(img[src*="projects/research-radar/"]){grid-template-columns:minmax(0,1fr)}
}

.case-gallery:has(img[src*="projects/finance-brain/"]){grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.case-gallery:has(img[src*="projects/finance-brain/"]) figure:first-child,
.case-gallery:has(img[src*="projects/finance-brain/"]) figure:last-child{grid-column:1/-1}
@media(max-width:600px){
 .case-gallery:has(img[src*="projects/finance-brain/"]){grid-template-columns:minmax(0,1fr)}
}
/* Shared contact entry point, available from every portfolio tab. */
.shell>header{gap:24px}
.header-connect{display:flex;flex-direction:column;align-items:flex-end;gap:14px;flex-shrink:0}
.contact-trigger{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid #c5d5c9;border-radius:999px;padding:11px 17px;background:#edf3ed;color:#285b44;font:700 15px/1.3 Lato,Arial,sans-serif;white-space:nowrap;transition:background .18s,transform .18s}
.contact-trigger svg{width:20px;height:20px}.contact-trigger:hover{background:#dfece0;transform:translateY(-1px)}
#contact-dialog{inset:0;margin:auto;width:min(520px,calc(100vw - 32px));height:fit-content;max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:22px;background:var(--paper);padding:0;box-shadow:0 28px 90px #12251c40;overflow:auto}
#contact-dialog[open]{animation:appear .2s ease}
#contact-dialog::backdrop{background:#13281f75;backdrop-filter:blur(6px)}
.contact-top{display:flex;align-items:center;justify-content:space-between;padding:20px 28px 0;gap:16px}
.contact-top>span{font:700 11px/1.5 Lato,Arial,sans-serif;letter-spacing:1.8px;color:var(--accent)}
.contact-close{display:grid;place-items:center;min-width:40px;min-height:40px;border-radius:50%;background:#e9eee8;color:var(--ink);font-size:26px}
.contact-body{padding:14px 28px 20px}
#contact-title{font:700 clamp(28px,4vw,36px)/1.16 Lato,Arial,sans-serif;letter-spacing:-1px;margin:0 0 16px}
#contact-description{font-size:16px;line-height:1.65;color:var(--muted);margin:0 0 22px}
.contact-number{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:20px 0 16px;flex-wrap:wrap}
.contact-number>a{font-size:24px;font-weight:700;letter-spacing:.2px}.contact-number button{font-size:13px;min-height:40px}
.contact-call{display:flex;align-items:center;justify-content:space-between;padding:15px 19px;border-radius:10px;background:var(--ink);color:white;font-size:16px;font-weight:700}
.contact-call:hover{background:var(--accent)}
.contact-channel-label{font-size:14px;color:var(--muted);margin:22px 0 12px}
.contact-channels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.contact-channels>a{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px 5px;font-size:14px;font-weight:700;transition:background .18s,border-color .18s}
.contact-channels>a>span:last-child{display:none}.contact-channels>a:hover{background:#f0f5ef;border-color:#9eb8a5}
.channel-icon{width:28px;height:28px;display:grid;place-items:center;font-size:19px;font-weight:800;line-height:1}.whatsapp{color:#15854c}.zalo{color:#0068ff}.telegram{color:#168ec2;padding:3px}
.contact-status{font-size:13px;color:var(--accent);min-height:20px;margin:14px 0 0}
@media(max-width:600px){
 .shell>header .brand-name{padding-right:0}
 .header-connect{flex-direction:row-reverse;justify-content:space-between;align-items:center;margin-top:18px;gap:12px}
 .shell>header .header-connect .socials{position:static}
 .contact-trigger{font-size:14px;padding:10px 14px;min-height:44px}
 .contact-top{padding:16px 20px 0}.contact-body{padding:12px 20px 18px}.contact-number>a{font-size:22px}
}
@media print{#contact-dialog{display:none!important}}
