:root{color-scheme:dark;--bg:#16161e;--surface:#1a1b26;--ink:#c0caf5;--muted:#a9b1d6;--accent:#7aa2f7;--line:#3b4261;--serif:Georgia,'Times New Roman',serif;--sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}.skip-link{position:absolute;top:-5rem;left:1rem;background:var(--accent);color:#111;padding:.7rem;z-index:10}.skip-link:focus{top:1rem}.site-shell{width:min(100% - 112px,1440px);margin:auto}.site-header{height:112px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:inline-flex;align-items:center;gap:13px}.brand-mark{display:block;width:43px;height:43px;flex:none}.brand-name{font-size:12px;letter-spacing:.16em;font-weight:800}.brand-name i,.footer-brand i{font-style:normal;color:var(--accent)}.brand-name small{display:block;margin-top:5px;font-size:8px;letter-spacing:.18em;color:#a9b1d6;font-weight:600}.navigation{display:flex;gap:39px;align-items:center;font-size:12px;font-weight:650}.navigation>a:not(.nav-action){color:#c0caf5}.navigation a:hover,.text-link:hover{color:var(--accent)}.nav-action{border:1px solid #56658e;padding:14px 18px;border-radius:3px}.nav-action span{color:var(--accent);margin-left:20px}.hero{padding:66px 0 0;display:grid;grid-template-columns:1.04fr .96fr;column-gap:48px}.hero-content{padding:24px 0 42px;align-self:center}.eyebrow{display:flex;align-items:center;gap:10px;margin:0;color:#a9b1d6;font-size:10px;font-weight:750;letter-spacing:.18em}.eyebrow-line{display:inline-block;width:26px;height:2px;background:var(--accent)}h1,h2,h3,p{margin:0}h1{font-size:clamp(58px,6.2vw,103px);line-height:.98;letter-spacing:-.067em;font-weight:650;margin:35px 0 29px}h1 em{font-family:var(--serif);font-weight:400;letter-spacing:-.055em}.period{color:var(--accent)}.hero-intro{max-width:420px;color:var(--muted);font-size:15px;line-height:1.8}.hero-actions{display:flex;align-items:center;gap:28px;margin-top:36px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;padding:17px 19px;border-radius:3px;font-size:12px;font-weight:750}.button-primary{background:var(--accent);color:#16161e}.button-primary:hover{background:#a7c3ff}.text-link{font-size:12px;font-weight:650;color:#c0caf5}.text-link span{color:var(--accent);margin-left:8px}.hero-art{position:relative;min-height:498px;background:#1a1b26;border:1px solid #3b4261;overflow:hidden}.hero-art:before{content:"";position:absolute;inset:0;background:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px);background-size:46px 46px;mask-image:linear-gradient(transparent,#000 16%,#000 84%,transparent)}.art-top,.art-bottom{position:absolute;left:26px;right:26px;display:flex;justify-content:space-between;gap:12px;color:#a9b1d6;font-size:9px;letter-spacing:.16em;font-weight:700}.art-top{top:25px}.art-bottom{bottom:25px}.orb{position:absolute;left:50%;top:50%;border:1px solid #7aa2f736;border-radius:50%;transform:translate(-50%,-50%)}.orb-outer{width:380px;height:380px}.orb-inner{width:270px;height:270px;border-color:#bb9af727}.cat-mark{position:absolute;width:min(62%,300px);left:50%;top:50%;transform:translate(-50%,-48%)}.art-note{position:absolute;top:48%;font-size:9px;line-height:1.7;letter-spacing:.15em;color:#a9b1d6}.art-note-left{left:24px}.art-note-right{right:24px;text-align:right}.hero-index{grid-column:1/-1;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:30px 0;color:#a9b1d6;font-size:9px;letter-spacing:.17em;font-weight:700}.section-block{padding:112px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:38px}.section-heading h2,.about h2{font-size:clamp(46px,5vw,72px);letter-spacing:-.06em;line-height:1.03;font-weight:620;margin-top:21px}.section-heading>p{max-width:255px;color:var(--muted);font-size:13px;line-height:1.7}.project-grid{display:grid;grid-template-columns:1.24fr .76fr;gap:20px}.project{display:flex;flex-direction:column;min-width:0;background:#1a1b26;border:1px solid #3b4261;transition:border-color .2s,transform .2s}.project-featured:hover{border-color:#7aa2f7;transform:translateY(-3px)}.project-top{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;color:#a9b1d6;font-size:9px;letter-spacing:.16em;font-weight:750}.project-arrow{display:grid;place-items:center;width:33px;height:33px;border:1px solid #56658e;border-radius:50%;font-size:15px;color:var(--accent)}.project-visual{min-height:240px;margin:0 24px;background:#7aa2f7;position:relative;overflow:hidden;display:grid;place-items:center}.visual-grid{position:absolute;inset:0;background:linear-gradient(#16161e18 1px,transparent 1px),linear-gradient(90deg,#16161e18 1px,transparent 1px);background-size:32px 32px}.visual-symbol{position:relative;color:#16161e;font-size:clamp(68px,8vw,110px);font-family:var(--serif);font-weight:700;letter-spacing:-.1em}.visual-symbol span{font-family:var(--sans);font-size:.42em;letter-spacing:0;color:#394b70}.visual-corner{position:absolute;right:18px;bottom:16px;color:#394b70;text-align:right;font-size:9px;line-height:1.7;letter-spacing:.13em;font-weight:800}.project-body{padding:28px 24px 30px;display:flex;justify-content:space-between;gap:22px;align-items:end;flex:1}.project-meta{font-size:9px;letter-spacing:.16em;color:#bb9af7;font-weight:750}.project h3{font-size:27px;letter-spacing:-.04em;margin:12px 0}.project-body p:not(.project-meta){max-width:360px;color:var(--muted);font-size:13px;line-height:1.7}.project-cta{font-size:9px;letter-spacing:.14em;font-weight:800;color:var(--accent);white-space:nowrap}.project-cta span{font-size:15px;margin-left:8px}.status-dot{display:inline-flex;align-items:center;gap:7px;color:#c0caf5}.status-dot:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent)}.code-art{height:240px;margin:0 24px;padding:21px;background:#16161e;border:1px solid #3b4261}.code-art-head{display:flex;align-items:center;gap:5px;color:#a9b1d6;font-size:9px;letter-spacing:.14em;margin-bottom:40px}.code-art-head i{width:6px;height:6px;background:#565f89;border-radius:50%}.code-art-head span{margin-left:auto}.code-line{display:flex;gap:15px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;color:#c0caf5;line-height:2.5}.code-line b{color:#565f89;font-weight:400}.code-line em{color:var(--accent);font-style:normal}.code-muted{color:#a9b1d6}.about{border-top:1px solid var(--line);display:grid;grid-template-columns:1fr .75fr;gap:60px}.about-copy{max-width:460px;margin-left:auto;color:#a9b1d6;font-size:15px;line-height:1.8}.about-copy p+p{margin-top:18px}.about-copy .text-link{display:inline-block;margin-top:26px}.about-star{display:block;color:var(--accent);font-size:27px;margin-bottom:23px}.site-footer{border-top:1px solid var(--line);padding:30px 0 38px;display:flex;justify-content:space-between;gap:20px;align-items:center;color:#a9b1d6;font-size:9px;letter-spacing:.14em;font-weight:700}.footer-brand{color:#c0caf5;font-size:11px}
@media(max-width:900px){.site-shell{width:min(100% - 48px,1440px)}.site-header{height:90px}.navigation{gap:20px}.hero{grid-template-columns:1fr 1fr;gap:24px}.hero-art{min-height:390px}.orb-outer{width:300px;height:300px}.orb-inner{width:220px;height:220px}.art-note{display:none}.hero-content{padding:15px 0}.hero h1{font-size:clamp(52px,7vw,75px)}.project-grid{grid-template-columns:1fr 1fr}.project-body{flex-direction:column;align-items:start}.section-block{padding:85px 0}}
@media(max-width:620px){.site-shell{width:calc(100% - 36px)}.site-header{height:76px}.brand-name{font-size:10px}.brand-name small{font-size:7px}.brand-mark{width:38px;height:38px}.navigation{gap:10px}.navigation>a:not(.nav-action):not([href="/blog/"]){display:none}.nav-action{font-size:11px;padding:11px 12px}.nav-action span{margin-left:5px}.hero{display:flex;flex-direction:column;padding-top:38px;gap:25px}.hero-content{padding:0}.hero h1{font-size:clamp(56px,13vw,78px);margin:25px 0 23px}.hero-intro{font-size:14px}.hero-actions{margin-top:26px;gap:20px}.hero-art{min-height:310px}.orb-outer{width:265px;height:265px}.orb-inner{width:188px;height:188px}.cat-mark{width:200px}.art-top,.art-bottom{left:16px;right:16px;font-size:8px}.hero-index{padding:22px 0}.section-block{padding:68px 0}.section-heading{align-items:start;flex-direction:column;gap:16px;margin-bottom:25px}.section-heading h2,.about h2{font-size:48px}.project-grid{grid-template-columns:1fr}.project-visual,.code-art{min-height:190px;height:190px}.project-body{padding-top:24px}.about{grid-template-columns:1fr;gap:30px}.about-copy{margin:0}.site-footer{align-items:start;flex-direction:column;gap:14px}.site-footer>span{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.project{transition:none}}
.writing{border-top:1px solid var(--line)}.post-list{border-top:1px solid var(--line)}.post-row{display:grid;grid-template-columns:150px 1fr auto;gap:24px;align-items:center;padding:26px 0;border-bottom:1px solid var(--line)}.post-row:hover h3,.post-row:focus-visible h3{color:var(--accent)}.post-date{color:#a9b1d6;font-size:10px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.post-row h3{font-size:23px;letter-spacing:-.035em;font-weight:600}.post-row p{margin-top:8px;color:var(--muted);font-size:13px;line-height:1.65}.post-arrow{color:var(--accent);font-size:22px}.post-empty{padding:30px 0;color:var(--muted);font-size:14px;line-height:1.7}.article-wrap{max-width:830px;margin:0 auto;padding:100px 0 120px}.article-wrap .eyebrow{margin-bottom:25px}.article-wrap h1{font-size:clamp(48px,6vw,82px);line-height:1.02;margin:0 0 20px}.article-lede{color:var(--muted);font-size:17px;line-height:1.75}.article-meta{margin:26px 0 38px;color:#bb9af7;font-size:10px;font-weight:750;letter-spacing:.15em;text-transform:uppercase}.article-content{border-top:1px solid var(--line);padding-top:36px;color:#c0caf5;font-size:16px;line-height:1.85}.article-content h2,.article-content h3{color:var(--ink);line-height:1.2;margin:2.3em 0 .7em;letter-spacing:-.035em}.article-content h2{font-size:30px}.article-content h3{font-size:23px}.article-content p,.article-content ul,.article-content ol,.article-content blockquote,.article-content pre,.article-content table{margin:1.2em 0}.article-content a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.article-content blockquote{border-left:2px solid var(--accent);padding-left:20px;color:var(--muted)}.article-content pre{overflow:auto;background:#1a1b26;border:1px solid var(--line);padding:20px}.article-content code{font-family:ui-monospace,monospace;font-size:.9em}.article-content img{max-width:100%;height:auto}.article-content table{border-collapse:collapse;display:block;overflow-x:auto}.article-content th,.article-content td{border:1px solid var(--line);padding:8px 12px}.blog-back{display:inline-block;margin-bottom:36px;color:var(--accent);font-size:12px;font-weight:700}.blog-listing{max-width:950px;margin:0 auto;padding:100px 0 120px}.blog-listing h1{margin:25px 0 18px}.blog-listing .post-list{margin-top:48px}@media(max-width:620px){.post-row{grid-template-columns:1fr auto;gap:10px;padding:22px 0}.post-date{grid-column:1/-1}.post-row h3{font-size:20px}.blog-listing,.article-wrap{padding:60px 0 80px}}

.post-category{display:block;color:#bb9af7;font-size:9px;font-weight:750;letter-spacing:.13em;text-transform:uppercase;margin-bottom:8px}.category-section h2{margin:36px 0 10px;color:#bb9af7;font-size:11px;letter-spacing:.15em;text-transform:uppercase}

.category-section .post-category{display:none}
@media(max-width:420px){.brand{gap:8px}.brand-name{font-size:9px;letter-spacing:.1em}.brand-name small{font-size:6px;letter-spacing:.12em}.navigation{gap:8px}.nav-action{padding:10px 8px;font-size:10px}.nav-action span{margin-left:2px}}

/* Colors follow the workstation Tokyo Night KDE scheme. */
.hero-art{background:linear-gradient(145deg,#1a1b26,#292e42)}.orb-outer{border-color:#7aa2f755}.orb-inner{border-color:#bb9af755}.brand-mark{object-fit:contain}.cat-mark{object-fit:contain;filter:drop-shadow(0 0 30px #7aa2f733)}

/* Articles: room for Vietnamese diacritics in longer titles, and diagrams. */
.article-wrap h1{font-size:clamp(32px,4.4vw,54px);line-height:1.18;letter-spacing:-.035em}.article-content h2{line-height:1.3;letter-spacing:-.02em}.article-content .diagram{max-width:560px;margin:2em auto}.article-content .diagram img{display:block;width:100%;height:auto}.article-content figcaption{margin-top:12px;color:var(--muted);font-size:13px;line-height:1.6;text-align:center}.article-content li+li{margin-top:.35em}.article-content table{font-size:15px;line-height:1.6}.article-content th{text-align:left;background:#1a1b26}

/* Lab homepage: equal hover on both cards, status strip under the projects. */
.project-secondary:hover{border-color:#7aa2f7;transform:translateY(-3px)}.project-featured .code-art{height:auto;min-height:240px}.project-featured .code-art-head{margin-bottom:28px}.lab-stats{display:grid;grid-template-columns:repeat(4,1fr);margin:20px 0 0;border:1px solid var(--line);background:#1a1b26}.lab-stats div{padding:20px 24px}.lab-stats div+div{border-left:1px solid var(--line)}.lab-stats dt{color:#a9b1d6;font-size:9px;font-weight:750;letter-spacing:.15em;text-transform:uppercase}.lab-stats dd{margin:8px 0 0;color:var(--ink);font-size:22px;font-weight:650;letter-spacing:-.03em}.category-section h2{font-size:12px;margin-top:44px}
@media(max-width:900px){.lab-stats{grid-template-columns:1fr 1fr}.lab-stats div:nth-child(3){border-left:0}.lab-stats div:nth-child(n+3){border-top:1px solid var(--line)}}
@media(max-width:620px){.lab-stats dd{font-size:18px}.lab-stats div{padding:16px}.project-featured .code-art{min-height:200px}.code-line{font-size:11px;gap:10px}}

/* Readability: no text below 11px, tighter tracking on uppercase labels, larger body copy on the dark background. */
.eyebrow,.post-date,.article-meta,.category-section h2{font-size:12px;letter-spacing:.11em}
.art-top,.art-bottom,.art-note,.hero-index,.project-top,.visual-corner,.project-meta,.project-cta,.code-art-head,.site-footer,.post-category,.lab-stats dt{font-size:11px;letter-spacing:.1em}
.brand-name small{font-size:9px;letter-spacing:.12em}.footer-brand{font-size:12px}
.navigation,.text-link,.button,.blog-back{font-size:14px}
.hero-intro,.about-copy{font-size:17px}.section-heading>p{font-size:15px;max-width:300px}
.post-row p,.project-body p:not(.project-meta){font-size:15px;line-height:1.65}.post-row h3{font-size:24px}
.article-lede{font-size:18px}.article-content{font-size:17px;line-height:1.8}.article-content table{font-size:16px}.article-content figcaption{font-size:14px}
@media(max-width:620px){.brand-name small{font-size:8px}.nav-action{font-size:12px}.navigation{font-size:13px}.hero-intro,.about-copy{font-size:16px}.post-row h3{font-size:21px}}
@media(max-width:420px){.brand-name small{font-size:7px}.nav-action{font-size:11px}}
@media(max-width:620px){.art-top,.art-bottom{font-size:9px;letter-spacing:.05em}}
