@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');
:root{--bg:#10110f;--surface:#171916;--line:#30332b;--text:#f3f4ec;--muted:#a2a69b;--accent:#d0ff71;--display:'Sora',sans-serif;--body:'DM Sans',sans-serif;--page-width:1240px;--gutter:clamp(20px,5vw,72px)}
/* Five complete palettes, shared by the page and its 3D lighting. */
:root{color-scheme:dark;--accent-ink:#171c0f;--accent-hover:#e2ffac;--accent-line:#738d40;--on-accent:#14190e;--on-accent-muted:#45532b;--contact-button-bg:#15190f;--contact-button-hover:#303b1f;--control-bg:#10110fe8;--field-line:#636859;--tag-line:#3d4337;--tag-text:#c6cdbd}
:root[data-theme=violet]{--bg:#111018;--surface:#1c1927;--line:#383142;--text:#f3effc;--muted:#b1a9bf;--accent:#c5acff;--accent-ink:#231639;--accent-hover:#ddccff;--accent-line:#78619e;--on-accent:#231639;--on-accent-muted:#4d356e;--contact-button-bg:#231639;--contact-button-hover:#392650;--control-bg:#111018e8;--field-line:#756486;--tag-line:#493e57;--tag-text:#cfc1e1}
:root[data-theme=cyan]{--bg:#0b1419;--surface:#13232b;--line:#2a414c;--text:#eef9fb;--muted:#a0b9c2;--accent:#70e0ee;--accent-ink:#08282f;--accent-hover:#a6f0f8;--accent-line:#37848f;--on-accent:#08282f;--on-accent-muted:#20515a;--contact-button-bg:#08282f;--contact-button-hover:#12424a;--control-bg:#0b1419e8;--field-line:#537783;--tag-line:#355361;--tag-text:#bad7df}
:root[data-theme=ember]{--bg:#19110e;--surface:#2b1c16;--line:#4b3327;--text:#fbf3eb;--muted:#c2ada0;--accent:#ffbd88;--accent-ink:#361b0c;--accent-hover:#ffd3b0;--accent-line:#a6663a;--on-accent:#361b0c;--on-accent-muted:#6a371c;--contact-button-bg:#361b0c;--contact-button-hover:#572c15;--control-bg:#19110ee8;--field-line:#86624d;--tag-line:#644432;--tag-text:#dfc5b3}
:root[data-theme=light]{color-scheme:light;--bg:#f8fafc;--surface:#ffffff;--line:#cbd5e1;--text:#182235;--muted:#526176;--accent:#214acb;--accent-ink:#ffffff;--accent-hover:#183bad;--accent-line:#aebff4;--on-accent:#ffffff;--on-accent-muted:#e1e9ff;--contact-button-bg:#ffffff;--contact-button-hover:#e2eafe;--control-bg:#f8fafce8;--field-line:#94a3b8;--tag-line:#b8c5d6;--tag-text:#43536a}

:root{--display:'Space Grotesk',sans-serif;--body:'Manrope',sans-serif;--page-width:1280px;--gutter:clamp(20px,5vw,72px)}
:root[data-theme=light]{--bg:#e9edf3;--surface:#f7f9fc;--line:#bac4d3;--text:#14243c;--muted:#4c5c74;--accent:#244ee2;--accent-hover:#193bc1;--control-bg:#e9edf3f2}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:1rem/1.7 var(--body)}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}button,summary,a{-webkit-tap-highlight-color:transparent}::selection{background:var(--accent);color:var(--accent-ink)}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:5px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--display);font-weight:500}svg.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:fixed;top:-100px;inset-inline-start:20px;padding:12px;background:var(--accent);color:var(--accent-ink);z-index:100}.skip:focus{top:10px}
.header{max-width:var(--page-width);margin:auto;padding:24px var(--gutter);display:flex;align-items:center;gap:28px;position:relative;z-index:20}.brand{display:flex;align-items:center;gap:10px;font:600 1.25rem var(--display);letter-spacing:-.04em;direction:ltr;unicode-bidi:isolate}.brand-icon{background:var(--text);color:var(--bg);width:36px;height:36px;display:grid;place-items:center;border-radius:50%;font-size:1.6rem}.brand-slash{display:none}.header nav{margin-inline-start:auto}.content-tabs{display:flex;gap:6px}.content-tabs button{display:flex;align-items:center;gap:9px;min-height:46px;padding:10px 14px;border:0;border-radius:24px;color:var(--muted);background:transparent;font-size:.875rem;font-weight:600}.content-tabs button[aria-selected=true]{background:var(--text);color:var(--bg)}.content-tabs button:hover:not([aria-selected=true]){background:var(--surface);color:var(--text)}.content-tabs .icon{width:19px;height:19px}
main{max-width:var(--page-width);margin:auto}[hidden]{display:none!important}[role=tabpanel]{min-height:calc(100svh - 190px)}.section{padding:60px var(--gutter) 80px}.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);grid-template-areas:'copy visual' 'footer footer';gap:20px 10px;padding:24px var(--gutter) 32px;align-items:center}.hero-top{grid-area:meta;display:flex;justify-content:space-between;gap:16px;font-size:.875rem;color:var(--muted)}.hero-top>span{display:flex;gap:9px;align-items:center}.hero-copy{grid-area:copy;position:relative;z-index:2;padding:40px 0}.hero-copy h1{font-size:clamp(3.3rem,6vw,5.5rem);line-height:1.05;letter-spacing:-.065em;margin-bottom:32px}.hero-copy p{font-size:1.0625rem;max-width:35ch;color:var(--muted);margin-bottom:30px}.dimension,.period{color:inherit}.button{display:inline-flex;align-items:center;gap:18px;min-height:52px;padding:14px 23px;border-radius:28px;font-size:.875rem;font-weight:600}.primary{background:var(--accent);color:var(--accent-ink)}.primary:hover{background:var(--accent-hover)}.hero-visual{grid-area:visual;min-width:0;position:relative;align-self:stretch;display:flex;flex-direction:column;justify-content:center}.scene{position:relative;width:100%;height:460px;touch-action:pan-y}.scene canvas{width:100%;height:100%;display:block}.scene-fallback{position:absolute;inset:0;display:grid;place-items:center;font:500 6rem var(--display);color:var(--accent);opacity:.4}.scene.ready .scene-fallback{display:none}.scene-controls{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.scene-controls button{display:flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:22px;min-height:44px;font-size:.875rem}.scene-controls button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.scene-controls .icon{width:18px;height:18px}.hero-bottom{grid-area:footer;padding-top:24px;color:var(--muted);font-size:.875rem}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:48px}.section-heading h2,.blog-heading h1{font-size:clamp(2.3rem,4.5vw,4rem);line-height:1.12;letter-spacing:-.055em;margin:0;max-width:18ch}.text-link{display:flex;align-items:center;gap:12px;font-size:.875rem;color:var(--accent)}.text-link>span:last-child{display:none}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 48px}.project{display:grid;grid-template-columns:64px minmax(0,1fr);column-gap:20px;padding:34px 0;border-top:1px solid var(--line);min-width:0}.project-top{grid-column:2;display:flex;flex-wrap:wrap;gap:10px 20px;align-items:center;font-size:.875rem;color:var(--muted);margin-bottom:10px}.project-top>span:last-child{display:flex;gap:6px;align-items:center}.project-top .icon{width:15px;height:15px}.project-wordmark{grid-column:1;grid-row:1/3;background:var(--surface);color:var(--accent);border-radius:18px;width:64px;height:64px;display:grid;place-items:center}.project-wordmark .icon{width:28px;height:28px}.project-body{grid-column:2;min-width:0}.project h3{font-size:1.5rem;letter-spacing:-.03em;margin:0 0 14px;overflow-wrap:anywhere}.project p{color:var(--muted);font-size:1rem;max-width:48ch;margin-bottom:24px}.project-footer{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.tag{font-size:.875rem;color:var(--muted);padding:3px 9px;background:var(--surface);border-radius:5px}.repo-label{display:flex;align-items:center;gap:8px;color:var(--accent);font-size:.875rem;width:100%;margin-top:12px}.project:hover h3{color:var(--accent)}.source-note{font-size:.875rem;color:var(--muted);margin:32px 0 0}
.blog-heading{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:end;margin-bottom:56px}.blog-heading p{max-width:45ch;margin:0;color:var(--muted)}.article-grid{display:flex;flex-direction:column;gap:0}.article-preview{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px 24px;align-items:start;padding:32px 0;border-top:1px solid var(--line)}.article-symbol{grid-column:1;grid-row:1/5;width:64px;height:64px;display:grid;place-items:center;color:var(--accent);background:var(--surface);border-radius:50%}.article-symbol .icon{width:27px;height:27px}.article-category{grid-column:2;font-size:.875rem;color:var(--muted)}.article-preview h2{grid-column:2;font-size:clamp(1.5rem,2.5vw,2.2rem);line-height:1.3;letter-spacing:-.035em;margin:0;max-width:30ch}.article-preview p{grid-column:2;max-width:52ch;color:var(--muted);margin:0}.article-read{grid-column:3;grid-row:2;display:flex;gap:9px;align-items:center;font-size:.875rem;color:var(--accent)}.article-preview:hover h2{color:var(--accent)}.article-reader{max-width:720px;margin:auto}.reader-back{display:inline-flex;align-items:center;gap:10px;color:var(--muted);font-size:.875rem;margin-bottom:40px;padding:8px 0}.article-reader>.article-category{display:block;margin-bottom:18px}.article-reader h1{font-size:clamp(2.2rem,4.5vw,3.7rem);line-height:1.16;letter-spacing:-.05em;margin-bottom:32px}.article-lead{font-size:1.25rem;line-height:1.7;margin-bottom:32px}.article-prose{max-width:65ch;color:var(--muted);font-size:1.0625rem;line-height:1.9}.article-source{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;background:var(--surface);padding:24px;border-radius:12px;margin-top:48px;font-size:.875rem}.article-source>span{color:var(--muted)}.article-source a{display:flex;gap:10px;align-items:center;color:var(--accent);direction:ltr}
.about{display:grid;grid-template-columns:1fr 2fr;gap:64px}.about-label{display:flex;flex-direction:column;align-items:flex-start;gap:14px;font-size:.875rem;color:var(--muted)}.identity-handle{direction:ltr;font-size:1.125rem;color:var(--text)}.about-label>.icon{width:64px;height:64px;padding:16px;background:var(--surface);color:var(--accent);border-radius:50%}.about h2{font-size:clamp(2rem,4vw,3.6rem);letter-spacing:-.05em;line-height:1.2;margin-bottom:28px}.about-content>p{max-width:60ch;color:var(--muted)}.about-content .about-intro{font-size:1.3rem;color:var(--text);line-height:1.65}.practice-list{display:flex;flex-direction:column;margin-top:40px}.practice-list>div{display:grid;grid-template-columns:32px minmax(0,1fr);gap:3px 16px;padding:20px 0;border-top:1px solid var(--line)}.practice-list .icon{grid-row:1/3;color:var(--accent)}.practice-list h3{margin:0;font-size:1.125rem}.practice-list>div>span{grid-column:2;color:var(--muted);font-size:.875rem}.contact{padding:0 var(--gutter) 64px}.contact-main{display:flex;justify-content:space-between;align-items:center;gap:40px;background:var(--text);color:var(--bg);padding:40px;border-radius:16px}.contact h2{font-size:clamp(2rem,3vw,3rem);letter-spacing:-.04em;line-height:1.2;margin:0}.contact h2 em{font-style:normal}.contact p{max-width:32ch;margin-bottom:22px}.contact .button{background:var(--bg);color:var(--text)}footer{max-width:var(--page-width);margin:auto;padding:28px var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:.875rem}footer .brand{color:var(--text)}footer>a:last-child{display:flex;align-items:center;gap:9px}
.preference-controls{display:flex;gap:8px;align-items:center;flex-shrink:0}.preference-menu{position:relative}.preference-trigger{list-style:none;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 10px;border:1px solid var(--line);border-radius:12px;color:var(--text);background:var(--surface);cursor:pointer;font-size:.8125rem;line-height:1.2;user-select:none}.preference-trigger::-webkit-details-marker{display:none}.preference-trigger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.preference-trigger .dropdown-caret{width:12px;height:12px;transition:transform .2s}.preference-menu[open] .dropdown-caret{transform:rotate(180deg)}.preference-menu[open] .preference-trigger,.preference-trigger:hover{border-color:var(--accent)}.preference-panel{position:absolute;inset-inline-end:0;top:calc(100% + 12px);width:230px;max-width:calc(100vw - 32px);max-height:min(500px,70svh);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:10px;box-shadow:0 16px 48px #0004;z-index:50}.preference-panel fieldset{border:0;padding:0;margin:0;min-width:0}.preference-panel legend{font-size:.75rem;color:var(--muted);padding:6px 10px 12px;width:100%}.preference-choice{position:relative;display:flex;align-items:center;gap:12px;min-height:44px;padding:10px;border-radius:8px;cursor:pointer;font-size:.875rem;line-height:1.4;color:var(--text)}.preference-choice:hover,.preference-choice:focus-within{background:color-mix(in srgb,var(--accent) 9%,var(--surface))}.preference-choice:focus-within{outline:2px solid var(--accent);outline-offset:-2px}.choice-radio{position:absolute;width:1px;height:1px;margin:0;opacity:0}.choice-check{margin-inline-start:auto;width:17px;height:17px;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:0;flex-shrink:0}.choice-radio:checked~.choice-check{opacity:1}.theme-swatches{display:flex;direction:ltr;flex-shrink:0}.theme-swatches i{width:14px;height:20px;border:1px solid #ffffff35}.theme-swatches i:first-child{border-radius:5px 0 0 5px}.theme-swatches i:last-child{border-radius:0 5px 5px 0}.preference-choice>span[lang]{unicode-bidi:isolate}.language-panel{width:200px}#language-code{min-width:20px;direction:ltr;letter-spacing:.5px}

.preference-trigger{border:0;border-radius:50px;background:var(--surface);min-height:44px;font-size:.875rem}.preference-panel{border-radius:18px;padding:12px;box-shadow:0 20px 60px #0002}.preference-panel legend{font-size:.875rem}.preference-choice{min-height:48px;border-radius:10px}.theme-swatches i{width:16px;height:24px}
:lang(ar) h1,:lang(hi) h1,:lang(zh) h1,:lang(ja) h1,:lang(ko) h1,:lang(ar) h2,:lang(hi) h2,:lang(zh) h2,:lang(ja) h2,:lang(ko) h2{letter-spacing:0;line-height:1.4}
@media(max-width:1180px){.header{flex-wrap:wrap;gap:20px}.header nav{order:3;flex-basis:100%;margin:0}.content-tabs{justify-content:center}.preference-controls{margin-inline-start:auto}.hero-copy h1{font-size:clamp(3rem,6vw,4.2rem)}.scene{height:390px}.project-grid{gap:0 28px}.project{grid-template-columns:48px 1fr;gap:14px}.project-wordmark{width:48px;height:48px;border-radius:12px}.about{gap:32px}.article-preview{grid-template-columns:56px 1fr}.article-read{grid-column:2;grid-row:auto}.article-symbol{width:56px;height:56px}}
@media(max-width:700px){.header{padding:20px var(--gutter);gap:20px}.content-tabs{justify-content:space-between;gap:2px}.content-tabs button{flex:1;flex-direction:column;gap:6px;padding:10px 5px;font-size:.875rem;border-radius:14px;min-width:0;word-break:normal;overflow-wrap:anywhere}.hero{grid-template-columns:1fr;grid-template-areas:'copy' 'visual' 'footer';gap:20px;padding-top:12px}.hero-top{flex-wrap:wrap}.hero-copy{padding:16px 0 0}.hero-copy h1{font-size:clamp(3rem,11vw,4.3rem);letter-spacing:-.06em;margin-bottom:24px}.hero-copy p{max-width:40ch}.hero-visual{margin:0 -12px}.scene{height:330px}.hero-bottom{padding-top:12px}.section{padding:40px var(--gutter) 56px}.section-heading{display:block;margin-bottom:32px}.section-heading h2{margin-bottom:20px}.project-grid{grid-template-columns:1fr}.project{padding:28px 0}.blog-heading{display:block;margin-bottom:32px}.blog-heading h1{margin-bottom:22px}.article-preview{column-gap:16px;padding:28px 0}.article-symbol{width:48px;height:48px}.article-preview h2{font-size:1.5rem}.article-reader h1{font-size:2.3rem}.article-lead{font-size:1.125rem}.about{display:block}.about-label{margin-bottom:28px;flex-direction:row;align-items:center;flex-wrap:wrap}.about-label>.icon{width:48px;height:48px;padding:12px}.contact{padding-bottom:32px}.contact-main{display:block;padding:28px}.contact-main>div{margin-top:24px}footer{flex-wrap:wrap}footer>span{order:3;flex-basis:100%}footer>a:last-child{margin-inline-start:auto}#theme-menu .preference-panel{inset-inline-end:-80px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

/* The avatar supplies the visual identity; pointer motion responds only to interaction. */
.portrait-stage{perspective:1000px;align-items:center;justify-content:center;min-height:440px}.profile-portrait{width:100%;max-width:520px;height:auto;object-fit:contain;transform-origin:center;transition:transform .16s ease-out;filter:drop-shadow(0 22px 24px #0002)}
.contributions{padding-top:8px}.contribution-heading{display:flex;gap:32px;align-items:end;justify-content:space-between;margin-bottom:32px}.contribution-heading h2{font-size:clamp(1.8rem,3vw,2.6rem);line-height:1.2;letter-spacing:-.04em;margin:0}.contribution-heading p{max-width:50ch;color:var(--muted);margin:0}.contribution-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.contribution{padding:24px;background:var(--surface);border-radius:14px;min-width:0}.contribution h3{font-size:1.25rem;overflow-wrap:anywhere;margin:0 0 8px}.contribution-repo>span{color:var(--muted);font-size:.875rem}.contribution p{margin:20px 0;color:var(--muted)}.contribution-link{display:flex;align-items:center;gap:10px;color:var(--accent);font-size:.875rem;flex-wrap:wrap}.contribution-link>span:last-child{margin-inline-start:auto;font-size:.875rem}.contribution a:hover{text-decoration:underline;text-underline-offset:4px}
.about{grid-template-columns:minmax(240px,.85fr) minmax(0,1.5fr);align-items:start;gap:48px}.about-label{padding:24px;background:var(--surface);border-radius:20px;gap:12px}.about-label>.icon{display:none}.about-avatar{width:100%;max-width:300px;height:auto;align-self:center;border-radius:14px}.about-label>span{font-size:1rem}.about-label .identity-handle{font-size:1.3rem}.article-prose h2{font-size:1.45rem;color:var(--text);margin:36px 0 16px;letter-spacing:-.025em}
@media(max-width:800px){.contribution-grid{grid-template-columns:1fr}.contribution-heading{display:block}.contribution-heading p{margin-top:18px}.about{grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);gap:24px}}
@media(max-width:700px){.portrait-stage{min-height:0}.profile-portrait{max-width:360px}.about{display:block}.about-label{display:grid;grid-template-columns:100px 1fr;align-items:center;padding:20px;margin-bottom:32px;gap:8px 20px}.about-avatar{grid-row:1/3;width:100px}.about-label>span{grid-column:2}.contributions{padding-top:0}}

/* Landing: expressive type and a live fluid field, followed by quiet project links. */
.hero{gap:20px 40px;padding-top:36px}.hero-copy h1{font-size:clamp(3.6rem,6.4vw,5.9rem);max-width:12ch}.hero-top .eyebrow .icon{display:none}.hero-copy p{max-width:38ch}.fluid-stage{align-self:center;min-width:0}.fluid-surface{position:relative;aspect-ratio:1;max-height:510px;width:100%;overflow:hidden;border-radius:24px;background:transparent}#fluid{display:block;width:100%;height:100%;touch-action:pan-y;filter:blur(1px)}.fluid-caption{display:flex;justify-content:space-between;gap:16px;margin:12px 0;font-size:.875rem;color:var(--muted)}.fluid-caption>span:first-child{color:var(--text)}.fluid-controls{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.fluid-controls button{display:flex;align-items:center;gap:8px;font-size:.875rem;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--text)}.fluid-controls .icon{width:18px;height:18px}.fluid-controls button:hover{border-color:var(--accent)}.hero-bottom{display:none}.landing-work{padding:28px var(--gutter) 48px}.landing-work h2{font-size:1rem;font-family:var(--body);font-weight:500;color:var(--muted);margin:0 0 18px}.landing-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.landing-links a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;border-top:1px solid var(--line);font-size:1.125rem;min-width:0}.landing-links a>span:first-child{overflow-wrap:anywhere}.landing-links a:hover{color:var(--accent)}.merge-record{display:flex;justify-content:space-between;gap:12px;font-size:.875rem;color:var(--muted);margin-bottom:18px}.merge-record>span{color:var(--accent)}
@media(max-width:1180px){.hero-copy h1{font-size:clamp(3.2rem,6.3vw,4.8rem)}}
@media(max-width:700px){.hero{gap:24px;padding-top:12px}.hero-copy h1{font-size:clamp(3rem,11vw,4.3rem)}.fluid-stage{margin:0}.fluid-surface{max-width:380px;margin:auto}.fluid-caption{flex-direction:column;align-items:center;gap:4px}.landing-work{padding-top:16px}.landing-links{grid-template-columns:1fr;gap:0}.landing-links a{font-size:1rem;padding:16px 0}}
.fluid-surface{aspect-ratio:auto;height:540px;max-height:none;background:transparent;overflow:hidden;border-radius:20px}#fluid{filter:none;cursor:grab;width:100%;height:100%}#fluid:active{cursor:grabbing}.vortex-fallback{display:none;padding:24px;color:var(--muted);text-align:center}.vortex-unavailable .vortex-fallback{display:block}.vortex-unavailable canvas{display:none}.fluid-caption{justify-content:center;flex-wrap:wrap;text-align:center}.fluid-caption>span:first-child{font-weight:600}.fluid-stage{width:100%}@media(max-width:700px){.fluid-surface{height:420px;max-width:none}.fluid-caption{flex-direction:column}}

/* A project browser and GitHub observatory replace repeated portfolio sections. */
.project-explorer,.github-observatory,.commit-section,.visual-loading{margin:32px var(--gutter) 72px}.visual-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:26px}.visual-heading h2{font-size:clamp(1.9rem,3vw,2.7rem);line-height:1.2;letter-spacing:-.045em;margin:0}.visual-heading>a{color:var(--accent);font-size:.875rem}.visual-heading p{font-size:.875rem;color:var(--muted);max-width:40ch;margin:0}#technology-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.technology-badge{border:1px solid var(--line);border-radius:20px;padding:4px 10px;color:var(--muted);font-size:.875rem}.explorer-search{display:flex;align-items:center;gap:16px;margin-bottom:20px}.explorer-search label{font-size:.875rem;color:var(--muted)}.explorer-search input,.explorer-search select{min-height:44px;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:9px 12px;min-width:0}.explorer-search input{flex:1}.explorer-search select{width:35%;max-width:320px}.explorer-search input:focus-visible,.explorer-search select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.browser-window{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface)}.browser-toolbar{min-height:52px;padding:12px 20px;display:flex;align-items:center;gap:18px;color:var(--muted);font-size:.875rem;border-bottom:1px solid var(--line)}.window-dots{display:flex;gap:6px;flex-shrink:0}.window-dots i{width:9px;height:9px;background:var(--line);border-radius:50%}#project-name{color:var(--text);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#project-origin{font-size:.875rem}#preview-kind{margin-inline-start:auto;flex-shrink:0}#project-frame{border:0;width:100%;height:470px;display:block;background:#14243c}.carousel-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;flex-wrap:wrap}.carousel-pagination{display:flex;align-items:center;gap:18px}.carousel-controls button{display:flex;align-items:center;justify-content:center;border:1px solid var(--line);min-height:44px;min-width:44px;padding:9px 14px;border-radius:22px;background:var(--surface);color:var(--text);font-size:.875rem}.carousel-controls button:disabled{opacity:.4;cursor:default}.carousel-controls button[aria-pressed=true]{background:var(--text);color:var(--bg)}.preview-modes{display:flex;gap:8px}.carousel-controls>a{color:var(--accent);font-size:.875rem}#project-counter{font-size:.875rem;direction:ltr}.iframe-hint,.snapshot-date{color:var(--muted);font-size:.875rem;margin:16px 0 0}.github-observatory{padding-top:20px}#github-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-bottom:36px}.github-stat{border-top:1px solid var(--line);padding-top:16px;display:flex;flex-direction:column;gap:4px}.github-stat strong{font:500 clamp(1.8rem,3vw,3rem) var(--display);letter-spacing:-.04em}.github-stat>span{font-size:.875rem;color:var(--muted)}.github-chart-layout{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(200px,1fr);gap:32px}.activity-chart,.language-chart{background:var(--surface);border-radius:16px;padding:28px;min-width:0}.chart-heading{margin-bottom:26px}.chart-heading h3,.language-chart h3{font-size:1.125rem;margin:0 0 12px}.chart-heading>span{font-size:.875rem;color:var(--muted)}.heatmap-scroll{overflow:auto;padding:4px;margin:-4px}#heatmap{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,11px);grid-auto-columns:11px;gap:4px;width:max-content;direction:ltr}.heat-day{width:11px;height:11px;padding:0;border:0;border-radius:2px;cursor:pointer;background:var(--line)}.heat-day:focus-visible{outline:2px solid var(--text);outline-offset:1px}[data-level="1"]{background:color-mix(in srgb,var(--accent) 25%,var(--line))}[data-level="2"]{background:color-mix(in srgb,var(--accent) 50%,var(--line))}[data-level="3"]{background:color-mix(in srgb,var(--accent) 75%,var(--line))}[data-level="4"]{background:var(--accent)}.heat-legend{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin:18px 0 24px;font-size:.875rem;color:var(--muted)}.heat-legend i{width:10px;height:10px;border-radius:2px}.heat-legend i[data-level="0"]{background:var(--line)}#monthly-bars{display:flex;gap:8px;height:150px;align-items:stretch;direction:ltr}.month-col{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px}.month-bar{width:100%;max-width:30px;border-radius:4px 4px 0 0;background:color-mix(in srgb,var(--accent) 75%,var(--surface));min-height:4px}.month-label{font-size:.75rem;color:var(--muted);white-space:nowrap}#language-donut{display:block;width:170px;margin:0 auto 12px}.language-row{display:flex;align-items:center;gap:10px;font-size:.875rem;padding:4px 0}.language-row i{height:9px;width:9px;border-radius:50%;flex-shrink:0}.language-row>span:last-child{margin-inline-start:auto;color:var(--muted)}.language-chart>p{font-size:.875rem;color:var(--muted);margin:20px 0 0}.commit-row{display:block;padding:20px 0;border-top:1px solid var(--line)}.commit-message{font-size:1rem;line-height:1.6;margin-bottom:9px;overflow-wrap:anywhere}.commit-row:hover .commit-message{color:var(--accent)}.commit-meta{display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:.875rem;color:var(--muted)}.commit-meta code{background:var(--surface);padding:3px 7px;border-radius:5px;direction:ltr}.commit-meta time{margin-inline-start:auto}.visual-loading button{background:var(--accent);color:var(--accent-ink);padding:10px 20px;border:0;border-radius:20px}
@media(max-width:1100px){.github-chart-layout{grid-template-columns:1fr}.language-chart{display:grid;grid-template-columns:180px 1fr;gap:12px 28px}.language-chart h3,.language-chart>p{grid-column:1/-1}.language-chart>p{margin-top:8px}#technology-badges{max-width:40%}}
@media(max-width:700px){.project-explorer,.github-observatory,.commit-section{margin-top:24px;margin-bottom:48px}.visual-heading{display:block}.visual-heading h2{margin-bottom:18px}#technology-badges{max-width:none;justify-content:flex-start}.explorer-search{flex-wrap:wrap;gap:10px}.explorer-search label{width:100%}.explorer-search input{width:100%;flex-basis:100%}.explorer-search select{width:100%;max-width:none}.browser-toolbar{padding:12px;gap:10px}.window-dots{display:none}#project-origin{display:none}#preview-kind{font-size:.75rem}#project-frame{height:420px}.carousel-controls{gap:16px}.preview-modes{order:3;flex-basis:100%}.preview-modes button{flex:1}#github-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.activity-chart,.language-chart{padding:22px}.language-chart{grid-template-columns:140px minmax(0,1fr);gap:8px 16px}#language-donut{width:140px}#monthly-bars{gap:5px}.month-label{font-size:.75rem;writing-mode:vertical-rl;height:36px}.commit-meta{gap:10px}.commit-meta time{margin-inline-start:0}.commit-meta>span{flex-basis:100%}.visual-heading p{max-width:none}}
/* Explorer composition: metadata beside a bounded preview, with project tiles below. */
.explorer-layout{display:grid;grid-template-columns:minmax(230px,.72fr) minmax(0,2fr);gap:24px;align-items:start}.explorer-sidebar{min-width:0;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:18px}.explorer-sidebar .explorer-search{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-bottom:28px}.explorer-sidebar .explorer-search input,.explorer-sidebar .explorer-search select{width:100%;max-width:none;flex:none}.explorer-sidebar .explorer-search label{font-size:.875rem}.explorer-sidebar .explorer-search label.sr-only{position:static;clip:auto;overflow:visible;width:auto;height:auto;margin:12px 0 0;white-space:normal}.project-summary h3{font:500 1rem var(--display);margin:0 0 14px}.project-summary p{font-size:.9375rem;color:var(--muted);line-height:1.8;overflow-wrap:anywhere;margin-bottom:18px}#project-meta{display:flex;flex-wrap:wrap;gap:8px}.project-meta-chip{border:1px solid var(--line);font-size:.8125rem;padding:4px 9px;border-radius:14px;color:var(--muted)}.explorer-main{min-width:0}.browser-toolbar{padding:12px 16px;gap:10px}#project-frame{height:460px}.carousel-controls{gap:14px}.preview-modes button{padding:9px 12px}.iframe-hint{line-height:1.6}#project-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}.project-tile{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:12px;padding:12px;display:grid;grid-template-columns:32px minmax(0,1fr);gap:4px 10px;text-align:start;min-width:0;min-height:68px}.project-tile[aria-pressed=true]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}.tile-letter{grid-row:1/3;display:grid;place-items:center;background:var(--bg);color:var(--accent);border-radius:8px;font:500 1rem var(--display);height:32px;direction:ltr}.tile-name{font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tile-language{grid-column:2;color:var(--muted);font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Period controls stay visible and totals correspond to the selected dates. */
.activity-filters{display:flex;align-items:end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:0 0 28px}.year-filter{display:flex;flex-direction:column;gap:8px}.activity-filters label{font-size:.875rem;color:var(--muted)}.activity-filters input,.activity-filters select,.activity-filters button{font:inherit;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);padding:9px 12px;min-width:0}.activity-filters input:focus-visible,.activity-filters select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.activity-filters button{background:var(--text);color:var(--bg);font-size:.875rem}#date-range-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}#range-error{flex-basis:100%;margin:0;color:var(--text);font-size:.875rem}#monthly-bars{overflow-x:auto}.month-col{min-width:28px}
/* Profile, biography and skills are separate responsive grid regions. */
#panel-about .about{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.5fr);grid-template-areas:'profile biography' 'skills skills';gap:36px 48px;padding-top:48px;padding-bottom:48px;align-items:center}.about-label{grid-area:profile;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;gap:12px;width:100%;min-width:0;max-width:none;margin:0;border-radius:20px;align-self:stretch}.about-avatar{width:100%;height:auto;max-width:220px;max-height:260px;object-fit:contain;grid-row:auto;align-self:center}.about-label>span{grid-column:auto;max-width:100%;overflow-wrap:anywhere}.about-label .identity-handle{font-size:1.125rem}.about-content{grid-area:biography;min-width:0}.about h2{font-size:clamp(2rem,3.8vw,3.4rem);line-height:1.2;overflow-wrap:anywhere;margin-bottom:24px}.about-content .about-intro{font-size:clamp(1.125rem,1.8vw,1.35rem);line-height:1.7;margin:0 0 20px}.about-content>p{max-width:60ch;line-height:1.8;margin-bottom:0}.about>.practice-list{grid-area:skills;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0}.about>.practice-list>div{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:22px;align-content:start;gap:6px 14px;min-width:0}.practice-list h3,.practice-list>div>span{overflow-wrap:anywhere}.contact-main{min-width:0}.contact-main>div{min-width:0}.contact h2{line-height:1.25}
@media(max-width:1100px){.explorer-layout{grid-template-columns:minmax(220px,.8fr) minmax(0,1.6fr)}.explorer-sidebar{padding:20px}.preview-modes{order:3;flex-basis:100%}.preview-modes button{flex:1}#project-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-filters{align-items:start}#date-range-form{flex:1;justify-content:flex-end}#panel-about .about{gap:28px}.about>.practice-list{gap:14px}.about>.practice-list>div{padding:18px;grid-template-columns:1fr}.about>.practice-list .icon{grid-row:auto}.about>.practice-list>div>span{grid-column:1}}
@media(max-width:800px){.explorer-layout{grid-template-columns:1fr}.explorer-sidebar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.explorer-sidebar .explorer-search{margin:0}.project-summary p{margin-bottom:12px}.activity-filters{display:block}.year-filter{margin-bottom:18px;width:max-content;max-width:100%}#date-range-form{justify-content:flex-start}.about>.practice-list{grid-template-columns:1fr}.about>.practice-list>div{grid-template-columns:32px minmax(0,1fr);gap:4px 14px}.about>.practice-list .icon{grid-row:1/3}.about>.practice-list>div>span{grid-column:2}#panel-about .about{grid-template-columns:minmax(160px,.65fr) minmax(0,1.4fr);gap:28px}.about-label{padding:18px}.about-avatar{max-width:170px}}
@media(max-width:560px){.explorer-sidebar{grid-template-columns:1fr;gap:24px}#project-frame{height:380px}#project-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.browser-toolbar{flex-wrap:wrap}#preview-kind{margin-inline-start:0;flex-basis:100%}.carousel-controls{gap:14px}.activity-filters #date-range-form{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}#date-range-form label:nth-of-type(1){grid-column:1;grid-row:1}#range-start{grid-column:1;grid-row:2;width:100%}#date-range-form label:nth-of-type(2){grid-column:2;grid-row:1}#range-end{grid-column:2;grid-row:2;width:100%}#date-range-form button{grid-column:1/-1;margin-top:8px}#panel-about .about{grid-template-columns:1fr;grid-template-areas:'profile' 'biography' 'skills';gap:28px;padding-top:28px;padding-bottom:32px}.about-label{display:grid;grid-template-columns:88px minmax(0,1fr);justify-content:start;align-items:center;gap:8px 18px;text-align:start;padding:20px}.about-avatar{grid-row:1/3;max-width:none;width:88px;max-height:110px}.about-label>span{grid-column:2;justify-self:start}.about-label .identity-handle{font-size:1rem}.about h2{font-size:2rem}.about>.practice-list>div{padding:20px}.contact-main{padding:24px}.contact h2{font-size:2rem}}
/* Compact repository and period pickers share the native disclosure interaction. */
#repository-explorer{margin-top:48px}.explorer-compact-toolbar{display:flex;align-items:center;gap:18px;justify-content:space-between;margin-bottom:18px;min-width:0}.project-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:46px;padding:10px 16px;border:1px solid var(--line);background:var(--surface);border-radius:12px;cursor:pointer;list-style:none;min-width:230px;max-width:100%;font-size:1rem}.project-picker-trigger::-webkit-details-marker,.period-trigger::-webkit-details-marker{display:none}#project-picker-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-picker-trigger>.icon{width:17px;height:17px;flex-shrink:0}.project-picker-panel{position:absolute;top:calc(100% + 10px);inset-inline-start:0;z-index:15;width:min(400px,calc(100vw - 48px));padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 50px #0003}.project-picker-panel input{width:100%;min-height:44px;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-bottom:8px}.project-picker-panel input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}#project-choices{max-height:320px;overflow:auto;overscroll-behavior:contain}.project-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:start;min-height:44px;padding:10px;border:0;background:transparent;color:var(--text);border-radius:8px;font-size:.875rem}.project-choice>span{overflow-wrap:anywhere;min-width:0}.project-choice small{color:var(--muted);font-size:.8125rem;flex-shrink:0}.project-choice:hover,.project-choice[aria-pressed=true]{background:color-mix(in srgb,var(--accent) 10%,var(--surface))}.compact-project-description{color:var(--muted);font-size:.9375rem;line-height:1.7;max-width:75ch;margin:16px 0 0}.explorer-main{width:100%}#project-frame{height:clamp(320px,42vw,500px)}.project-explorer .visual-heading{margin-bottom:20px}.explorer-compact-toolbar #project-meta{justify-content:flex-end}.project-explorer .carousel-controls{gap:16px}.project-explorer .preview-modes{order:initial;flex-basis:auto}.github-observatory>.visual-heading{flex-wrap:wrap;gap:14px 20px}.github-observatory>.visual-heading>h2{margin-inline-end:auto}.github-observatory>.visual-heading>a{order:3}.activity-filters.compact-activity-filter{display:block;margin:0}.period-trigger{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:24px;padding:10px 14px;min-height:44px;font-size:.875rem}.period-trigger>.icon{width:18px;height:18px}.period-trigger>.period-chevron{width:12px;height:12px}.period-panel{position:absolute;inset-inline-end:0;top:calc(100% + 10px);width:min(310px,calc(100vw - 48px));z-index:15;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:12px;box-shadow:0 18px 50px #0003}.period-panel fieldset{margin:0;padding:0;border:0}.period-choice{display:flex;align-items:center;gap:12px;min-height:42px;padding:10px;border-radius:8px;cursor:pointer;font-size:.875rem}.period-choice:hover{background:color-mix(in srgb,var(--accent) 10%,var(--surface))}.period-choice input{accent-color:var(--accent);width:16px;height:16px;margin:0;min-height:0;padding:0}.period-choice:focus-within{outline:2px solid var(--accent);outline-offset:-2px}.period-choice:has(input:checked){color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}#custom-period{border-top:1px solid var(--line);padding-top:10px;margin-top:8px}#custom-period>summary{font-size:.875rem;padding:10px;cursor:pointer}#custom-period #date-range-form{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;padding:8px}.period-panel #date-range-form label:nth-of-type(1){grid-column:1;grid-row:1}.period-panel #range-start{grid-column:1;grid-row:2;width:100%;font-size:.8125rem;padding:8px}.period-panel #date-range-form label:nth-of-type(2){grid-column:2;grid-row:1}.period-panel #range-end{grid-column:2;grid-row:2;width:100%;font-size:.8125rem;padding:8px}.period-panel #date-range-form button{grid-column:1/-1;margin-top:8px}.period-panel #range-error{padding:8px;font-size:.875rem}
@media(max-width:700px){#repository-explorer{margin-top:32px}.explorer-compact-toolbar{align-items:flex-start;flex-wrap:wrap;gap:12px}#project-picker{width:100%}.project-picker-trigger{width:100%;min-width:0}.explorer-compact-toolbar #project-meta{justify-content:flex-start}.project-explorer .preview-modes{order:3;flex-basis:100%}.project-explorer .preview-modes button{flex:1}.github-observatory>.visual-heading{display:flex;align-items:center}.github-observatory>.visual-heading>h2{flex-basis:100%;margin-bottom:0}.period-panel{inset-inline-end:auto;inset-inline-start:0}.github-observatory>.visual-heading>a{margin-inline-start:auto}#period-label{max-width:230px;white-space:normal}#project-frame{height:380px}}
/* A single project control surface. */
#repository-explorer{position:relative}#repository-explorer .explorer-compact-toolbar{position:relative;z-index:3;display:block;margin-bottom:0;width:min(48%,420px)}
#repository-explorer .explorer-main{display:block;margin-top:-46px}#repository-explorer .carousel-controls{display:flex;justify-content:flex-end;align-items:center;gap:8px;min-height:46px;padding:0 0 12px;border:0;background:transparent;margin:0}
#repository-explorer .carousel-controls button,#repository-explorer #project-open{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;background:transparent;color:inherit;border-radius:8px;text-decoration:none}
#repository-explorer .carousel-pagination{gap:2px}#repository-explorer #project-counter{font-size:.8rem;min-width:65px;text-align:center;color:var(--muted)}
#repository-explorer .browser-window{border-radius:14px;overflow:hidden}#repository-explorer #project-frame{display:block;width:100%;height:clamp(320px,58vh,580px);border:0}
#repository-explorer .project-picker-trigger{border:0;background:transparent;padding:6px 0;min-height:34px;font-size:.95rem}#repository-explorer .project-picker-panel{min-width:min(380px,85vw)}
@media(max-width:600px){#repository-explorer .explorer-compact-toolbar{width:100%;margin-bottom:4px}#repository-explorer .explorer-main{margin-top:0}#repository-explorer .carousel-controls{justify-content:flex-start;padding-bottom:10px}#repository-explorer #project-open{margin-inline-start:auto}#repository-explorer .project-picker-panel{width:min(380px,85vw)}}
