:root{color-scheme:light;--bg:#ffffff;--paper:#fdfdfd;--ink:#1a1c1f;--text:#37393b;--muted:#6b6c6e;--line:#e5e5e5;--accent:#58595b;--soft:#f5f5f5;--portrait:#f0efed;--tag:#f5f5f5}
.language-switch{font-size:11px;letter-spacing:1px;white-space:nowrap}.language-switch:hover{text-decoration:underline}html[lang=en] h1{font-family:Georgia,serif;font-weight:400;font-size:80px}html[lang=en] h1 .english-name{font-family:'IBM Plex Sans Thai',Arial,sans-serif}html[lang=en] .section-english{display:none}
@media(max-width:760px){.topbar .language-switch{margin-left:auto}.topbar .theme-button{margin-left:0}html[lang=en] h1{font-size:65px}}
@media print{html[lang=en] h1{font-size:34pt}}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:32px}body{margin:0;background:var(--bg);color:var(--text);font-family:'IBM Plex Sans Thai','Leelawadee UI',Tahoma,sans-serif;font-size:16px;line-height:1.8}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}button,a{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:5px}button svg{flex-shrink:0}h1,h2,h3,p{margin:0}button{color:inherit}section{scroll-margin-top:30px}.topbar,main{max-width:1120px;margin:auto}.topbar{height:100px;display:flex;align-items:center;gap:32px;border-bottom:1px solid var(--line)}.identity{display:flex;align-items:center;gap:15px;font-size:11px;font-weight:600;letter-spacing:2px;color:var(--ink)}.monogram{font-family:Georgia,serif;font-size:32px;letter-spacing:-3px}.monogram span{color:#9b9387;padding-left:3px}.topbar nav{display:flex;gap:30px;margin-left:auto;font-size:14px}.topbar nav a:hover,.text-link:hover{color:var(--accent);text-decoration:underline;text-underline-offset:5px}.theme-button{border:1px solid var(--line);background:transparent;border-radius:50%;width:40px;height:40px;display:grid;place-items:center}.draft{display:flex;gap:16px;align-items:center;font-size:12px;color:var(--muted);padding:22px 0}.draft-label{font-size:9px;letter-spacing:1.6px;white-space:nowrap;background:var(--soft);color:var(--accent);padding:4px 9px;font-weight:600}.hero{display:grid;grid-template-columns:1fr 300px;gap:85px;align-items:center;padding:28px 0 70px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;color:var(--accent);display:flex;align-items:center;gap:12px}.line{height:1px;width:28px;background:var(--accent)}h1{font-size:70px;line-height:1.22;font-weight:500;letter-spacing:-2.5px;color:var(--ink);margin:26px 0 23px}h1>span:not(.english-name){display:block}.english-name{display:block;font-size:13px;letter-spacing:4px;line-height:1.8;margin-top:17px;font-weight:400;color:var(--muted)}.intro{font-size:20px;color:var(--ink);line-height:1.7;max-width:550px}.hero-description{font-size:14px;color:var(--muted);max-width:490px;margin-top:12px}.hero-actions{display:flex;gap:30px;align-items:center;margin-top:27px}.button{border:1px solid var(--accent);display:inline-flex;align-items:center;gap:12px;padding:12px 21px;font-size:14px;font-weight:500;border-radius:3px}.primary{background:var(--accent);color:#fbfaf7}.primary:hover{filter:brightness(1.12)}.text-link{font-size:14px}.text-link span{margin-left:14px}.print-hint{font-size:11px;color:var(--muted);margin-top:12px}.portrait-card{align-self:center;transform:rotate(2deg)}.portrait{background:var(--portrait);height:320px;position:relative;display:grid;place-items:center;overflow:hidden;border-radius:140px 140px 5px 5px}.portrait svg{width:235px;stroke:#a39b8f;stroke-width:1.2;margin-top:32px}.portrait-orbit{stroke-dasharray:3 6;stroke-width:.6}.portrait-corner{position:absolute;top:28px;left:0;right:0;text-align:center;letter-spacing:2px;font-size:9px;color:var(--accent)}.portrait-caption{position:absolute;bottom:14px;font-size:12px;letter-spacing:.5px;color:var(--ink);background:var(--portrait);padding:0 12px}.portrait-footer{display:flex;justify-content:space-between;align-items:center;padding-top:16px;font-size:11px;color:var(--muted)}.portrait-footer>span:last-child{font-size:24px;color:var(--accent)}.resume-grid{display:grid;grid-template-columns:290px 1fr;border-top:1px solid var(--line);padding:50px 0 60px;gap:64px}.sidebar{padding-right:35px;border-right:1px solid var(--line)}.sidebar section+section{margin-top:40px;padding-top:32px;border-top:1px solid var(--line)}h2{font-size:22px;color:var(--ink);font-weight:500;line-height:1.6}.sidebar h2{margin-top:8px;margin-bottom:22px;font-size:20px}.contact-list{margin:0}.contact-list div{margin-bottom:15px}.contact-list dt{font-size:11px;color:var(--muted);margin-bottom:2px}.contact-list dd{margin:0;font-size:13px;overflow-wrap:anywhere}.small-note{font-size:11px;color:var(--muted);margin-top:20px;line-height:1.9}.minor-heading{font-size:12px;font-weight:500;color:var(--muted);margin:20px 0 10px}.tags{display:flex;gap:7px;flex-wrap:wrap}.tags span{font-size:12px;padding:4px 9px;background:var(--tag);border:1px solid var(--line);border-radius:3px}.language-row{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-top:12px}.language-row strong{font-weight:500}.language-row>span{color:var(--muted)}.main-column>section+section{margin-top:37px}.section-heading{display:flex;gap:14px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:23px}.section-number{font-size:11px;color:var(--accent);font-family:Georgia,serif;font-style:italic}.section-english{margin-left:auto;font-size:8px;letter-spacing:1.6px;color:var(--muted);text-align:right}.about>p{font-size:14px}.about .sample-label{font-size:10px;color:var(--muted);margin-bottom:6px}.about-note{display:flex;align-items:flex-start;gap:17px;background:var(--soft);padding:17px 21px;margin-top:22px;border-left:2px solid var(--accent)}.about-note>span{font-size:23px;color:var(--accent)}.about-note p{font-size:13px;color:var(--ink)}.about-note p span{font-size:11px;color:var(--muted)}.timeline-item{position:relative;padding:0 0 25px 24px;border-left:1px solid var(--line);margin-left:4px}.timeline-item:last-child{padding-bottom:0}.timeline-item:before{content:'';position:absolute;width:7px;height:7px;left:-4px;top:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--bg)}.entry-meta{font-size:11px;color:var(--muted);display:flex;gap:14px;align-items:center;margin-bottom:6px}.entry-tag{color:var(--accent);background:var(--soft);font-size:9px;line-height:1.8;padding:1px 7px;border-radius:2px}h3{font-size:16px;color:var(--ink);font-weight:500}.organization{font-size:12px;color:var(--muted);margin-top:3px}.timeline-item ul{padding-left:18px;margin:12px 0 0;font-size:13px;line-height:2}.timeline-item li::marker{color:var(--muted)}.highlight{display:flex;gap:18px}.highlight>span{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);font-size:22px;flex-shrink:0;color:var(--accent)}.highlight p{font-size:13px;margin-top:7px;color:var(--muted)}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px 0 40px}.footer-name{font-size:18px;font-weight:500;color:var(--ink)}.footer-name span{display:block;font-size:8px;letter-spacing:2px;font-weight:400;color:var(--muted);margin-top:4px}footer p{font-size:11px;color:var(--muted)}footer p span{font-size:10px}footer>a{font-size:11px;color:var(--muted)}.skip{position:absolute;top:10px;left:10px;transform:translateY(-200%);background:var(--paper);padding:10px;z-index:2}.skip:focus{transform:translateY(0)}
html[data-theme=dark]{color-scheme:dark;--bg:#181818;--paper:#232323;--ink:#f5f5f5;--text:#e1e1e1;--muted:#a6a6a6;--line:#383838;--accent:#d4d4d4;--soft:#242424;--portrait:#292929;--tag:#252525}html[data-theme=dark] .primary{background:#d4d4d4;color:#181818}html[data-theme=dark] .portrait svg{stroke:#bdbdbd}
@media(prefers-color-scheme:dark){html:not([data-theme]){color-scheme:dark;--bg:#181818;--paper:#232323;--ink:#f5f5f5;--text:#e1e1e1;--muted:#a6a6a6;--line:#383838;--accent:#d4d4d4;--soft:#242424;--portrait:#292929;--tag:#252525}html:not([data-theme]) .primary{background:#d4d4d4;color:#181818}}
@media(max-width:1200px){.topbar,main{margin-left:40px;margin-right:40px}.hero{gap:45px}.resume-grid{gap:40px;grid-template-columns:250px 1fr}.sidebar{padding-right:28px}}
@media(max-width:760px){.topbar,main{margin-left:22px;margin-right:22px}.topbar{height:78px;gap:14px}.identity{gap:10px;font-size:8px;letter-spacing:1.2px}.monogram{font-size:27px}.topbar nav{display:none}.theme-button{margin-left:auto;width:36px;height:36px}.draft{gap:10px;align-items:flex-start;font-size:10px;padding:20px 0}.draft-label{font-size:7px;margin-top:2px}.hero{grid-template-columns:1fr;gap:32px;padding:22px 0 38px}.hero-copy .eyebrow{font-size:8px;letter-spacing:1.6px}h1{font-size:55px;margin-top:22px}.english-name{font-size:10px;letter-spacing:3px}.intro{font-size:18px}.hero-description{font-size:13px}.hero-actions{gap:22px}.button{padding:11px 16px;font-size:13px}.text-link{font-size:12px}.text-link span{margin-left:4px}.portrait-card{width:220px;justify-self:center;margin-top:4px}.portrait{height:240px}.portrait svg{width:180px}.portrait-corner{top:20px;font-size:8px}.portrait-caption{font-size:10px}.portrait-footer{font-size:9px;padding-top:8px}.resume-grid{grid-template-columns:1fr;gap:34px;padding:34px 0}.sidebar{border-right:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:25px}.sidebar section+section{margin:0;padding:0;border:0}.sidebar section:last-child{grid-column:1/-1;border-top:1px solid var(--line);padding-top:24px}.sidebar .eyebrow{font-size:8px;letter-spacing:1.4px}.sidebar h2{font-size:17px;margin-bottom:17px}.contact-list dd{font-size:12px}.tags span{font-size:11px}.language-row{max-width:320px}.small-note{font-size:10px}.main-column{border-top:1px solid var(--line);padding-top:28px}.section-heading{gap:10px}.section-heading h2{font-size:20px}.section-english{font-size:7px;letter-spacing:.7px}.about-note{padding:14px;gap:10px}footer{flex-wrap:wrap;padding-bottom:25px}.footer-name{font-size:16px}footer p{font-size:10px}footer>a{margin-left:auto}}
@media(max-width:370px){.sidebar{grid-template-columns:1fr}.sidebar section:last-child{grid-column:auto}.section-english{display:none}.hero-actions{gap:15px}h1{font-size:48px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@page{size:A4;margin:12mm}
@media print{html,html[data-theme=dark],html:not([data-theme]){color-scheme:light;--bg:#ffffff;--paper:#ffffff;--ink:#1a1c1f;--text:#37393b;--muted:#6b6c6e;--line:#e5e5e5;--accent:#58595b;--soft:#f5f5f5;--portrait:#f0efed;--tag:#f5f5f5}body{font-size:10pt;background:#ffffff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.topbar,.hero-actions,.print-hint,.skip,footer>a{display:none}main{max-width:none;margin:0}.draft{padding:0 0 12px;font-size:7pt}.draft-label{font-size:6pt}.hero{grid-template-columns:1fr 145px;gap:25px;padding:6px 0 20px}.hero-copy .eyebrow{font-size:7pt}h1{font-size:32pt;margin:12px 0;line-height:1.15}.english-name{font-size:8pt;letter-spacing:2px;margin-top:8px}.intro{font-size:11pt}.hero-description{font-size:9pt;margin-top:6px}.portrait-card{width:auto}.portrait{height:172px}.portrait svg{width:130px;margin-top:18px}.portrait-corner{font-size:5pt;top:17px}.portrait-caption{font-size:6pt;bottom:8px}.portrait-footer{font-size:6pt;padding-top:6px}.portrait-footer>span:last-child{font-size:14pt}.resume-grid{grid-template-columns:175px 1fr;gap:25px;padding:22px 0}.sidebar{display:block;padding-right:18px;border-right:1px solid var(--line)}.sidebar section+section,.sidebar section:last-child{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.sidebar h2{font-size:12pt;margin:5px 0 12px}.sidebar .eyebrow,.eyebrow{font-size:6pt;letter-spacing:1px}.contact-list div{margin-bottom:9px}.contact-list dt,.small-note{font-size:6.5pt}.contact-list dd,.tags span,.language-row{font-size:7.5pt}.minor-heading{font-size:7.5pt;margin:12px 0 7px}.tags{gap:4px}.tags span{padding:2px 5px}.small-note{margin-top:10px}.main-column{padding:0;border:0}.main-column>section+section{margin-top:21px}.section-heading{gap:9px;padding-bottom:8px;margin-bottom:12px}.section-heading h2{font-size:13pt}.section-number{font-size:7pt}.section-english{display:block;font-size:5pt;letter-spacing:.6px}.about>p{font-size:8.5pt}.about .sample-label{font-size:6pt}.about-note{padding:9px 12px;gap:10px;margin-top:12px}.about-note p{font-size:8pt}.about-note p span{font-size:7pt}h3{font-size:10pt}.entry-meta,.organization{font-size:7pt}.entry-tag{font-size:6pt}.timeline-item{padding-left:15px;padding-bottom:16px}.timeline-item ul{font-size:8pt;line-height:1.8;margin-top:6px}.highlight{gap:10px}.highlight>span{width:26px;height:26px;font-size:17px}.highlight p{font-size:8pt}.timeline-item,.education-entry,.highlight,.about-note{break-inside:avoid}.section-heading{break-after:avoid}footer{padding:15px 0 0}.footer-name{font-size:10pt}.footer-name span{font-size:5pt}footer p,footer p span{font-size:6pt}}

/* Explicit theme and language controls, including narrow mobile headers. */
.preferences{display:flex;align-items:center;gap:14px;margin-left:auto}
.theme-picker,.topbar .language-picker{display:flex;align-items:center;gap:3px;margin:0;padding:3px;border:1px solid var(--line);border-radius:7px}
.theme-choice,.language-picker a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:5px 11px;border:0;border-radius:4px;background:transparent;color:var(--muted);font-size:12px;white-space:nowrap}
.theme-choice[aria-pressed=true],.language-picker a[aria-current=page]{background:var(--accent);color:var(--bg)}
.theme-choice:hover,.language-picker a:hover{box-shadow:inset 0 0 0 1px var(--accent);text-decoration:none!important}
.theme-choice span{font-size:17px;line-height:1}
@media(max-width:1000px){.topbar{gap:18px}.topbar>nav{gap:16px}.preferences{gap:8px}}
@media(max-width:760px){.topbar{height:auto;min-height:78px;padding:17px 0;flex-wrap:wrap;row-gap:12px}.topbar .identity{margin-right:auto}.preferences{flex-wrap:wrap;gap:8px}.topbar .language-picker{display:flex}.theme-choice,.language-picker a{min-height:34px;padding:4px 9px;font-size:11px}}
@media(max-width:430px){.preferences{width:100%;justify-content:space-between}.topbar .identity>span:last-child{font-size:9px}}
@media print{.preferences{display:none}}
.portrait{padding:0}.portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 28%;border-radius:inherit;filter:saturate(.72)}.availability{font-size:12px;color:var(--muted);margin-top:9px}.availability::before{content:'•';color:var(--accent);padding-right:8px}
@media print{.availability{font-size:8pt;margin-top:5px}.portrait img{filter:grayscale(.25)}}

/* Resume document list */
.documents{margin:0 0 56px;padding:26px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}.documents .section-heading{margin-bottom:12px}.documents-intro{font-size:13px;color:var(--muted);margin-bottom:18px}.document-card{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text)}.file-badge{width:43px;height:48px;display:grid;place-items:center;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:11px;font-weight:600;background:var(--soft)}.document-info{min-width:0}.document-info h3{font-size:15px}.document-info p{font-size:12px;color:var(--muted);margin-top:2px}.document-status{margin-left:auto;font-size:11px;color:var(--muted);white-space:nowrap}.document-card:focus-visible{outline:3px solid var(--accent);outline-offset:3px}@media(max-width:760px){.documents{padding:18px;margin-bottom:35px}.document-card{gap:11px;padding:12px}.document-info h3{font-size:13px}.document-info p,.document-status{font-size:10px}}

/* Tighter resume rhythm: keep the full history while reducing repeated spacing. */
@media not print{
.hero{padding:12px 0 28px;gap:48px}h1{font-size:56px;margin:17px 0 12px}.english-name{margin-top:9px}.intro{font-size:18px}.availability{margin-top:6px;font-size:11px}.portrait{height:250px}.portrait-card{width:240px}.resume-grid{padding:28px 0 36px;gap:40px}.sidebar section+section{margin-top:24px;padding-top:20px}.sidebar h2{margin-bottom:14px}.main-column>section+section{margin-top:23px}.section-heading{padding-bottom:9px;margin-bottom:13px}.timeline-item{padding-bottom:13px}.timeline-item ul{margin-top:5px;line-height:1.7}.timeline-item h3{font-size:15px}.timeline-item .organization{line-height:1.6}.about>p{font-size:13px;line-height:1.75}.documents{margin-bottom:28px;padding:20px}.documents-intro{margin-bottom:10px}.document-card{padding:12px}.credentials{display:grid;grid-template-columns:1fr 1fr;gap:24px}.education-training .section-heading{margin-bottom:14px}.education-entry,.course-entry{min-width:0}.education-entry h3,.course-entry h3{font-size:14px;line-height:1.6}.education-entry .entry-meta{margin-top:6px}.internship-summary .entry-meta{gap:9px}
}
@media(max-width:760px){.hero{padding:10px 0 24px;gap:22px}.portrait-card{width:190px}.portrait{height:215px}.resume-grid{padding:24px 0 30px;gap:24px}.sidebar section+section{margin-top:20px;padding-top:15px}.main-column>section+section{margin-top:19px}.section-heading{margin-bottom:11px}.credentials{gap:14px}.education-entry h3,.course-entry h3{font-size:12px}.documents{padding:15px;margin-bottom:24px}}
@media(max-width:420px){.credentials{grid-template-columns:1fr;gap:13px}.course-entry{padding-top:11px;border-top:1px solid var(--line)}}
@media print{.hero{padding:4px 0 14px;gap:18px}h1{font-size:30pt;margin:8px 0}.portrait-card{width:130px}.portrait{height:150px}.resume-grid{padding:12px 0 18px;gap:18px}.sidebar section+section{margin-top:13px;padding-top:11px}.main-column>section+section{margin-top:12px}.section-heading{padding-bottom:5px;margin-bottom:8px}.timeline-item{padding-bottom:7px}.timeline-item ul{font-size:7.5pt;line-height:1.5}.credentials{gap:12px}.education-entry h3,.course-entry h3{font-size:9pt}.documents{padding:10px;margin-bottom:12px}}
.role-period{margin-top:9px;padding-left:11px;border-left:1px solid var(--line)}.role-period+.role-period{margin-top:7px}.role-period .entry-meta{font-size:10px;margin-bottom:2px}.role-period p{font-size:12px;line-height:1.65;color:var(--text)}
@media(max-width:760px){.role-period{margin-top:8px}.role-period p{font-size:11px}}
@media print{.role-period{margin-top:4px}.role-period p{font-size:7.5pt}}

/* Borderless résumé portrait */
.portrait-card{width:240px;transform:none}
.portrait{height:320px;background:transparent;border-radius:0;overflow:hidden}
.portrait img{object-position:center center;border-radius:0;filter:none}
.portrait-footer{padding-top:9px;font-size:10px}
.portrait-footer>span:last-child{display:none}
@media(max-width:760px){.portrait-card{width:190px}.portrait{height:253px}}
@media print{.portrait-card{width:130px}.portrait{height:173px}.portrait img{filter:none}}.portrait{overflow:visible}
.portrait img{object-fit:contain;object-position:center bottom}.portrait img{-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 80%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 80%,transparent 100%)}
/* Personal projects */
.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.project-card{display:flex;min-width:0;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.project-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.project-heading h3{font-size:15px}
.project-heading a{font-size:11px;color:var(--accent);white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.project-card p{font-size:12px;line-height:1.7}
.project-meta{margin-top:auto;padding-top:4px;font-size:10px;color:var(--muted)}
@media(max-width:760px){.project-grid{grid-template-columns:1fr}}
@media print{.project-grid{grid-template-columns:1fr 1fr;gap:7pt}.project-card{padding:8pt}.project-heading h3{font-size:9pt}.project-heading a,.project-card p,.project-meta{font-size:7pt}}.resume-grid>.documents{grid-column:1 / -1;width:100%}

/* Keep the PDF action directly after the language switch in the header. */
.topbar-actions{display:flex;align-items:center;flex-shrink:0}
.topbar-actions .button{height:36px;min-height:36px;padding:5px 11px;gap:7px;font-size:12px;line-height:1.2;white-space:nowrap}
.topbar-actions .button svg{width:15px;height:15px}
@media(max-width:1050px){.topbar{height:auto;min-height:100px;flex-wrap:wrap;padding:12px 0;row-gap:8px}.topbar>nav{order:3;width:100%;justify-content:center;margin-left:0}}
@media(max-width:760px){.topbar{min-height:78px;padding:17px 0}.topbar-actions{margin-left:auto}}
@media(max-width:430px){.preferences{width:100%;justify-content:flex-start}.topbar-actions{margin-left:auto}}
.sidebar .documents{margin:24px 0 0;padding:20px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
.sidebar .documents .eyebrow{margin-bottom:4px}
.sidebar .documents h2{margin:0 0 12px;font-size:20px}
.sidebar .documents .documents-intro{font-size:11px;margin-bottom:12px}
.sidebar .document-card{flex-wrap:wrap;gap:10px;padding:10px;background:var(--paper)}
.sidebar .file-badge{width:36px;height:40px}
.sidebar .document-info{flex:1 1 110px}
.sidebar .document-info h3{font-size:12px}
.sidebar .document-info p{font-size:10px}
.sidebar .document-status{flex-basis:100%;text-align:right;font-size:10px}

/* Expandable implementation notes for the Khrai portfolio entry. */
.project-details{margin-top:2px;font-size:11px;color:var(--muted)}
.project-details summary{color:var(--accent);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.project-details ul{margin:8px 0 0;padding-left:17px;line-height:1.65}
.project-details li+li{margin-top:4px}
.project-details strong{color:var(--text);font-weight:600}
@media print{.project-details>summary{display:none}.project-details:not([open])>ul{display:block}.project-details ul{font-size:7pt;line-height:1.4;margin-top:4pt}.project-details li+li{margin-top:2pt}}
/* Unified readable type scale for the full resume. */
@media not print{
  body{font-size:16px;line-height:1.8}
  .draft{font-size:14px}
  .draft-label{font-size:11px}
  .eyebrow{font-size:11px}
  .hero-description{font-size:16px;line-height:1.8}
  .english-name{font-size:14px}
  .portrait-corner{font-size:11px}
  .portrait-caption{font-size:13px}
  .portrait-footer{font-size:12px}
  .sidebar h2{font-size:21px}
  .contact-list dt{font-size:13px}
  .contact-list dd{font-size:15px;line-height:1.7}
  .small-note{font-size:13px}
  .minor-heading{font-size:14px}
  .tags span{font-size:13px}
  .language-row{font-size:14px}
  .section-heading h2{font-size:24px}
  .section-number{font-size:13px}
  .section-english{font-size:10px}
  .about>p{font-size:16px;line-height:1.9}
  .about-note p{font-size:15px;line-height:1.8}
  .about-note p span{font-size:13px}
  .timeline-item h3{font-size:19px;line-height:1.55}
  .timeline-item .organization{font-size:16px;line-height:1.75;color:var(--text)}
  .timeline-item .company-english{font-size:15px}
  .timeline-item ul{font-size:16px;line-height:1.9}
  .entry-meta{font-size:14px;line-height:1.6}
  .entry-tag{font-size:12px}
  .role-period .entry-meta{font-size:13px}
  .role-period p{font-size:15px;line-height:1.85}
  .education-entry h3,.course-entry h3,.project-heading h3{font-size:18px;line-height:1.6}
  .project-card p{font-size:15px;line-height:1.8}
  .project-meta{font-size:13px}
  .project-details{font-size:14px;line-height:1.75}
  .documents-intro{font-size:15px}
  .document-info h3{font-size:16px}
  .document-info p{font-size:14px}
  .document-status{font-size:13px}
  .footer-name{font-size:19px}
  .footer-name span{font-size:10px}
  footer p{font-size:13px}
  footer p span,footer>a{font-size:12px}
}
@media(max-width:760px){
  .identity{font-size:10px}
  .draft{font-size:13px}
  .draft-label{font-size:10px}
  .hero-copy .eyebrow,.sidebar .eyebrow{font-size:9px}
  .hero-description{font-size:15px}
  .portrait-corner{font-size:9px}
  .portrait-caption{font-size:11px}
  .portrait-footer{font-size:10px}
  .sidebar h2{font-size:19px}
  .contact-list dt,.small-note{font-size:12px}
  .contact-list dd{font-size:15px}
  .minor-heading{font-size:14px}
  .tags span{font-size:12px}
  .language-row{font-size:13px}
  .section-heading h2{font-size:22px}
  .section-number{font-size:12px}
  .section-english{font-size:9px}
  .about>p{font-size:15px;line-height:1.85}
  .about-note p{font-size:14px}
  .timeline-item h3{font-size:18px}
  .timeline-item .organization{font-size:15px;line-height:1.7}
  .timeline-item .company-english{font-size:14px}
  .timeline-item ul{font-size:15px;line-height:1.8}
  .entry-meta{font-size:13px}
  .entry-tag{font-size:11px}
  .role-period .entry-meta{font-size:12px}
  .role-period p{font-size:14px}
  .education-entry h3,.course-entry h3,.project-heading h3{font-size:17px}
  .project-card p{font-size:14px}
  .project-meta{font-size:12px}
  .project-details{font-size:13px}
  .documents-intro{font-size:14px}
  .document-info h3{font-size:15px}
  .document-info p{font-size:13px}
  .document-status{font-size:12px}
  .footer-name{font-size:17px}
  footer p{font-size:12px}
}
/* LUUNA chat: compact, accessible, and themed with the resume. */
.luuna-widget{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));z-index:30;display:flex;flex-direction:column;align-items:flex-end;gap:8px;pointer-events:none;font-size:14px;line-height:1.55}
.luuna-greeting{pointer-events:auto;position:absolute;right:calc(100% - 52px);bottom:calc(100% + 12px);width:max-content;max-width:min(290px,calc(100vw - 32px));padding:12px 15px;border:1px solid var(--line);border-radius:16px 16px 4px 16px;background:var(--paper);color:var(--text);box-shadow:0 8px 26px rgba(0,0,0,.13);font:inherit;text-align:left;cursor:pointer;animation:luuna-greet-in .35s ease-out both}
.luuna-greeting:hover{border-color:var(--accent)}
.luuna-greeting[hidden]{display:none}
@keyframes luuna-greet-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.luuna-launcher{pointer-events:auto;display:block;border:0;background:transparent;padding:0;color:var(--text);cursor:pointer}
.luuna-launcher img{display:block;width:104px;height:104px;object-fit:contain;filter:drop-shadow(0 4px 10px rgba(0,0,0,.14));transition:opacity .4s ease}
.luuna-chat-panel{pointer-events:auto;position:absolute;right:calc(100% - 52px);bottom:calc(100% + 12px);width:min(370px,calc(100vw - 28px));height:min(560px,72dvh);min-height:360px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--text);box-shadow:0 12px 40px rgba(0,0,0,.18)}
.luuna-chat-panel[hidden]{display:none}
.luuna-chat-header{display:flex;align-items:center;gap:11px;padding:12px 14px;border-bottom:1px solid var(--line);background:var(--soft)}
.luuna-chat-header img{width:46px;height:46px;object-fit:contain}
.luuna-chat-header div{display:flex;flex-direction:column;min-width:0}
.luuna-chat-header strong{font-size:15px;color:var(--ink);line-height:1.4}
.luuna-chat-header span{font-size:12px;color:var(--muted)}
.luuna-close{margin-left:auto;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:24px;line-height:1;cursor:pointer}
.luuna-close:hover{background:var(--line);color:var(--ink)}
.luuna-messages{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:16px 14px;scroll-behavior:smooth}
.luuna-message{max-width:88%;padding:10px 12px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}
.luuna-message.bot{align-self:flex-start;background:var(--soft);color:var(--text);border-bottom-left-radius:4px}
.luuna-message.user{align-self:flex-end;background:var(--accent);color:var(--bg);border-bottom-right-radius:4px}
.luuna-suggestions{display:flex;flex-wrap:wrap;gap:7px;padding:0 14px 10px}
.luuna-suggestion{padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--text);font:inherit;font-size:12px;cursor:pointer}
.luuna-suggestion:hover{border-color:var(--accent);background:var(--soft)}
.luuna-chat-form{display:flex;align-items:center;gap:8px;padding:11px 12px;border-top:1px solid var(--line)}
.luuna-chat-form input{min-width:0;flex:1;padding:10px 12px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--text);font:inherit;font-size:14px;outline:none}
.luuna-chat-form input:focus{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent)}
.luuna-chat-form input::placeholder{color:var(--muted)}
.luuna-chat-form button{width:40px;height:40px;border:0;border-radius:50%;background:var(--accent);color:var(--bg);font:inherit;font-size:22px;line-height:1;cursor:pointer}
.luuna-chat-form button:hover{filter:brightness(1.12)}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.luuna-widget{right:max(10px,env(safe-area-inset-right));bottom:max(6px,env(safe-area-inset-bottom))}.luuna-greeting{right:calc(100% - 39px);max-width:min(270px,calc(100vw - (100% - 39px) - 24px));font-size:13px}.luuna-launcher img{width:78px;height:78px}.luuna-chat-panel{right:calc(100% - 39px);width:min(370px,calc(100vw - (100% - 39px) - 24px));height:min(560px,74dvh);min-height:340px}}
@media(max-height:500px){.luuna-chat-panel{height:calc(100dvh - 108px);min-height:240px}}
@media(prefers-reduced-motion:reduce){.luuna-greeting{animation:none}.luuna-launcher img,.luuna-messages{transition:none;scroll-behavior:auto}}
@media print{.luuna-widget{display:none}}
.language-row:last-child{display:block}
.language-row:last-child strong{display:block;margin-bottom:3px}
.language-row:last-child>span{display:block;line-height:1.7}
