/* Product-led portfolio. Local font, one light theme, progressive enhancement. */
@font-face { font-family: Geist; src: url('/static/fonts/geist-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root { color-scheme: light; --paper: #fcfcfa; --ink: #171d27; --muted: #626a78; --line: #dedfe0; --blue: #2359d6; --panel: #f0f1ef; --font: Geist,-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Noto Sans CJK SC',sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
button,input { font: inherit; color: inherit; }
button { cursor: pointer; }
button,a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img,video { display: block; max-width: 100%; height: auto; }
figure,p,ul,ol,dl,h1,h2,h3,h4 { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 2px; }
::selection { background: #dce7ff; }
.container { width: min(1248px,calc(100% - 112px)); margin-inline: auto; }
.container--narrow { max-width: 940px; }
.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; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-150%); padding: 12px 20px; background: var(--ink); color: white; z-index: 100; }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 20px; font-weight: 640; letter-spacing: -.7px; }
.brand__mark { display: none; }
.brand__name:after { content: '.'; color: var(--blue); }
.nav__list,.footer-links { display: flex; align-items: center; list-style: none; padding: 0; gap: 34px; }
.nav__link { text-decoration: none; display: block; padding: 10px 0; font-size: 14px; color: var(--muted); position: relative; }
.nav__link:hover,.nav__link[aria-current] { color: var(--ink); }
.nav__link[aria-current]:after { content: ''; height: 2px; position: absolute; bottom: 2px; left: 0; right: 0; background: var(--blue); }
.nav__lang { padding-left: 24px; margin-left: -10px; border-left: 1px solid var(--line); }
.lang-switch { display: inline-flex; align-items: center; font-size: 13px; white-space: nowrap; }
.lang-switch__item { padding: 10px 0; color: var(--muted); text-decoration: none; }
.lang-switch__item + .lang-switch__item:before { content: '/'; margin: 0 8px; color: var(--line); }
.lang-switch__item.is-current { color: var(--ink); font-weight: 550; }
a.lang-switch__item:hover { color: var(--blue); }
.site-main { min-height: 65vh; }
.eyebrow { font-size: 12px; font-weight: 550; letter-spacing: .045em; line-height: 1.5; }
.eyebrow span { font-weight: 400; color: var(--muted); }
.hero { padding: 66px 0 76px; }
.hero__eyebrow { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.hero__name { max-width: 950px; font-size: clamp(44px,6.9vw,94px); font-weight: 520; line-height: 1.035; letter-spacing: -.066em; text-wrap: balance; }
.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 44px; margin-top: 34px; }
.hero__intro { max-width: 535px; color: var(--muted); font-size: 17px; }
.hero__intro p + p { margin-top: 15px; }
.hero__links,.link-row { padding: 0; list-style: none; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero__links { flex-shrink: 0; gap: 8px; flex-direction: column; align-items: flex-start; }
.hero--photo { display: grid; grid-template-columns: minmax(0,1fr) clamp(230px,25vw,320px); grid-template-rows: auto auto 1fr; grid-template-areas: 'eyebrow eyebrow' 'name photo' 'bottom photo'; column-gap: 64px; }
.hero--photo .hero__eyebrow { grid-area: eyebrow; }
.hero--photo .hero__name { grid-area: name; }
.hero--photo .hero__bottom { grid-area: bottom; display: block; }
.hero--photo .contact-row { margin-top: 28px; }
.hero__photo { grid-area: photo; align-self: center; width: 100%; -webkit-mask-image: linear-gradient(#000 78%,transparent); mask-image: linear-gradient(#000 78%,transparent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 13px 20px; font-size: 13px; font-weight: 550; line-height: 1.4; text-decoration: none; border-radius: 4px; border: 1px solid transparent; min-height: 46px; transition: background .18s,color .18s; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #1648bc; }
.btn--ghost { padding-inline: 0; }
.btn--ghost:hover { color: var(--blue); }
.section { padding: 0 0 88px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 24px 0 30px; }
.section__title { font-size: 23px; font-weight: 500; letter-spacing: -.8px; }
.section__link { font-size: 13px; color: var(--muted); text-decoration: none; }
.section__link:after { content: ' ↗'; margin-left: 12px; color: var(--blue); }
.project-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 52px 32px; }
/* Home page: the four links people actually came for, next to the intro. */
.contact-row { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.contact-icon { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 16px; font-size: 13px; font-weight: 500; text-decoration: none; border: 1px solid var(--line); border-radius: 4px; background: white; transition: border-color .18s,color .18s; }
.contact-icon:hover { border-color: var(--ink); color: var(--blue); }
.contact-icon__mark { flex-shrink: 0; color: var(--muted); }
.contact-icon:hover .contact-icon__mark { color: var(--blue); }
/* Home page: selected work as a list. The grid belongs to /projects/. */
.work-list { list-style: none; padding: 0; margin: 0; counter-reset: work; }
.work-list__item { position: relative; display: grid; grid-template-columns: 46px minmax(0,1fr) 300px; align-items: center; gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); }
.work-list__item:last-child { border-bottom: 1px solid var(--line); }
.work-list__index { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; align-self: start; padding-top: 4px; }
.work-list__body { min-width: 0; }
.work-list__body .eyebrow { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.work-list__title { font-size: 31px; letter-spacing: -1.2px; font-weight: 530; line-height: 1.15; }
.work-list__title a { text-decoration: none; }
.work-list__item:hover .work-list__title a { color: var(--blue); }
.work-list__summary { margin: 11px 0 14px; color: var(--muted); font-size: 14px; max-width: 62ch; }
.work-list__thumb { display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 1.6; text-decoration: none; background: var(--panel); border: 1px solid #e8e9e7; border-radius: 5px; }
.work-list__thumb .project-card__img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .4s cubic-bezier(.2,.65,.3,1); }
.work-list__item:hover .work-list__thumb .project-card__img { transform: scale(1.03); }
.work-list__thumb .project-identity { padding: 22px; }
.work-list__thumb .project-identity__title { font-size: 30px; }
.work-list__thumb .project-identity__line { font-size: 13px; }
.work-list__thumb .project-identity__platform { display: none; }
.work-list__arrow { position: absolute; top: 30px; right: 0; font-size: 15px; color: var(--muted); opacity: 0; transition: opacity .18s; }
.work-list__item:hover .work-list__arrow { opacity: 1; }
.project-card { min-width: 0; position: relative; }
.project-card__media { display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 1.5; text-decoration: none; background: var(--panel); border: 1px solid #e8e9e7; border-radius: 6px; }
.project-card__img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s cubic-bezier(.2,.65,.3,1); }
.project-card__media:hover .project-card__img { transform: scale(1.02); }
.project-card__body { position: relative; padding: 22px 38px 0 0; }
.project-card__body .eyebrow { color: var(--muted); font-size: 11px; margin-bottom: 9px; }
.project-card__title { font-size: 29px; letter-spacing: -1.2px; font-weight: 530; line-height: 1.15; }
.project-card__link { text-decoration: none; }
.project-card__link:hover { color: var(--blue); }
.project-card__summary { margin: 12px 0 15px; color: var(--muted); font-size: 14px; max-width: 57ch; }
.project-card__arrow { position: absolute; right: 4px; top: 45px; color: var(--blue); font-size: 24px; }
.tag-list,.skill-group__items { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 6px; }
.tag { font-size: 11px; line-height: 1.4; padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; color: #5a626f; }
.project-card__meta { font-size: 12px; color: var(--muted); margin-top: 10px; }
.project-identity { height: 100%; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px 10%; color: #24425c; }
.project-identity__category { font-size: 10px; letter-spacing: .05em; border-bottom: 1px solid currentColor; padding-bottom: 8px; }
.project-identity__title { font-size: clamp(34px,4vw,64px); font-weight: 520; letter-spacing: -.06em; line-height: 1.03; margin: 25px 0 14px; max-width: 10ch; }
.project-identity__line { font-size: 15px; line-height: 1.5; max-width: 30ch; }
.project-identity__platform { font-size: 10px; margin-top: auto; padding-top: 30px; opacity: .7; }
.visual-agent-hub { background: #e9eef5; padding: 28px; }
.visual-agent-hub .project-card__img { height: auto; border-radius: 3px; box-shadow: 0 8px 30px #192a3510; }
.visual-ai4news { background: #f1f0e9; }
.visual-ai4news .project-identity { color: #46524c; }
.visual-model-serving-gateway { background: #e9edf0; }
.visual-multi-llm-workspace { background: #efedf3; }
.visual-ai-community { background: #eef0ed; padding: 30px; }
.visual-ai-community .project-card__img { box-shadow: 0 8px 30px #192a3510; object-fit: contain; height: auto; }
.visual-magpie { background: #edf0f8; padding: 24px; }
.visual-magpie .project-card__img { object-fit: contain; }
.now-list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; }
.now-list__item { font-size: 14px; color: var(--muted); }
.now-list__label { display: block; color: var(--ink); font-size: 16px; font-weight: 520; margin-bottom: 10px; }
.contact-section { padding: 60px 0 82px; border-top: 1px solid var(--line); }
.contact-section h2 { font-size: clamp(30px,4.5vw,62px); letter-spacing: -.055em; font-weight: 500; line-height: 1.1; margin: 18px 0; }
.contact-section>p:not(.eyebrow) { font-size: 15px; color: var(--muted); max-width: 520px; }
.contact-link { display: inline-flex; align-items: center; gap: 36px; margin-top: 30px; font-size: clamp(17px,2.2vw,27px); letter-spacing: -.03em; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.contact-link span { color: var(--blue); }
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; }
.footer-links { gap: 26px; }
.footer-links__link { font-size: 12px; text-decoration: none; }
.footer-links__link:hover { color: var(--blue); }
.footer-note { font-size: 11px; color: var(--muted); }
.page-header { padding: 68px 0 42px; }
.page-header .eyebrow { margin-bottom: 22px; color: var(--muted); }
.page-header__title { font-size: clamp(46px,6.4vw,86px); line-height: 1; letter-spacing: -.06em; font-weight: 500; }
.page-header__lede { max-width: 660px; margin-top: 25px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.page-header--photo { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; }
.page-header__photo { flex-shrink: 0; width: 148px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.page-projects .project-grid { padding-bottom: 90px; }
.filter-bar { padding: 0 0 36px; }
.project-search { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 500; max-width: 420px; margin-bottom: 20px; }
.project-search input { width: 100%; font-size: 14px; border: 1px solid var(--line); border-radius: 4px; background: white; padding: 12px 14px; min-height: 46px; }
.filter-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-chip { font-size: 11px; border: 1px solid var(--line); border-radius: 3px; padding: 7px 11px; background: transparent; min-height: 34px; }
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: white; }
.empty-state { padding: 0 0 100px; color: var(--muted); }
.back-link { display: inline-block; font-size: 12px; text-decoration: none; color: var(--muted); margin-top: 30px; }
.project-hero { padding: 35px 0 42px; max-width: 900px; }
.project-hero--split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: 20px 58px; align-items: center; max-width: none; }
.project-hero--split .project-hero__title { font-size: clamp(38px,4.3vw,60px); }
.project-hero--split .project-hero__headline { font-size: clamp(19px,1.9vw,26px); margin-top: 16px; }
.project-hero--split .project-hero__summary { font-size: 16px; max-width: 46ch; }
.hero-video { margin: 0; }
.hero-video__frame { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); background: #0e1520; }
.hero-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video__trigger { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; width: 100%; padding: 0; border: 0; color: white; background: rgb(9 15 25 / .3); transition: background .2s; }
.hero-video__trigger:hover { background: rgb(9 15 25 / .46); }
.hero-video__play { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgb(255 255 255 / .95); box-shadow: 0 6px 24px rgb(0 0 0 / .3); transition: transform .2s; }
.hero-video__play:after { content: ''; margin-left: 5px; border-left: 17px solid #171d27; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.hero-video__trigger:hover .hero-video__play { transform: scale(1.06); }
.hero-video__cta { font-size: 13px; font-weight: 550; letter-spacing: .02em; text-shadow: 0 1px 8px rgb(0 0 0 / .55); }
.hero-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-video__caption { margin-top: 13px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.project-hero__title { font-size: clamp(42px,6.6vw,84px); line-height: 1.04; letter-spacing: -.06em; font-weight: 520; margin-top: 18px; }
.project-hero__headline { font-size: clamp(23px,3vw,36px); font-weight: 420; letter-spacing: -.04em; margin-top: 22px; line-height: 1.3; }
.project-hero__summary { font-size: 17px; max-width: 690px; color: var(--muted); margin-top: 17px; }
.project-hero .link-row { margin-top: 22px; }
.project-stage { aspect-ratio: 2; display: flex; justify-content: center; align-items: center; overflow: hidden; border-radius: 6px; border: 1px solid #e8e9e7; }
.project-stage .project-identity { padding: 44px 8%; }
.project-stage .project-identity__title { font-size: clamp(50px,8vw,110px); max-width: 15ch; }
.project-stage .project-identity__line { font-size: 24px; max-width: 45ch; }
.project-stage.visual-magpie { padding: 32px; }
.project-stage.visual-ai-community { padding: 45px; }
.project-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 46px; margin: 34px 0 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.project-meta__row { min-width: 0; }
.project-meta__label { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.project-meta__value { margin: 0; font-size: 13px; line-height: 1.6; }
.case-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 64px; padding-top: 56px; }
.case-toc { position: sticky; top: 36px; }
.case-toc .eyebrow { margin-bottom: 18px; color: var(--muted); font-size: 10px; }
.case-toc ol { padding: 0; list-style: none; }
.case-toc a { display: block; font-size: 12px; color: var(--muted); padding: 7px 0 7px 13px; text-decoration: none; border-left: 1px solid var(--line); line-height: 1.6; }
.case-toc a:hover,.case-toc a.is-current { color: var(--blue); border-left-color: var(--blue); }
.case-content { min-width: 0; padding-bottom: 36px; }
.case-section { padding-bottom: 52px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.case-section h2,.prose h2 { font-size: 30px; letter-spacing: -1.1px; line-height: 1.25; font-weight: 510; }
.section-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.feature-list { list-style: none; padding: 0; margin-top: 27px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.feature-list h3 { font-size: 16px; font-weight: 520; letter-spacing: -.3px; margin-bottom: 8px; }
.feature-list p { font-size: 14px; line-height: 1.75; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 26px; }
.gallery__item { min-width: 0; }
.gallery__item>a { position: relative; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.gallery__item img { width: 100%; }
.gallery__expand { position: absolute; bottom: 12px; right: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 0 8px; font-size: 20px; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.7; }
.gallery--ios { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.gallery--ios .gallery__item>a { border-radius: 20px; }
.stack-list { margin-top: 28px; }
.stack-list>div { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 18px 0; border-top: 1px solid var(--line); }
.stack-list dt { font-size: 12px; color: var(--muted); }
.stack-list dd { font-size: 14px; margin: 0; }
.resource-list { padding: 0; list-style: none; margin-top: 30px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.resource-list .eyebrow { font-size: 10px; color: var(--muted); }
.resource-list h3 { font-size: 18px; font-weight: 500; margin: 8px 0; }
.resource-list p { font-size: 13px; color: var(--muted); }
.resource-list__meta { font-size: 11px; letter-spacing: .04em; margin-top: 8px; opacity: .8; }
.project-video { margin-top: 26px; }
.project-video h3 { font-size: 17px; margin-bottom: 18px; font-weight: 500; }
.project-video video { max-height: 600px; width: 100%; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
/* The running application, framed on the page and loaded with it. No play
   button: the point is that you are already inside the product. */
.live-frame { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: white; }
.live-frame--hero { margin-top: 8px; }
.live-frame__bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.live-frame__dot { width: 7px; height: 7px; border-radius: 50%; background: #17a672; box-shadow: 0 0 0 3px rgb(23 166 114 / .18); flex-shrink: 0; }
.live-frame__label { font-size: 12px; color: var(--muted); min-width: 0; }
.live-frame__open { margin-left: auto; font-size: 12px; white-space: nowrap; color: var(--blue); text-decoration: none; }
.live-frame__open:hover { text-decoration: underline; }
.live-frame__view { display: block; width: 100%; height: 680px; border: 0; background: white; }
.live-frame--hero .live-frame__view { height: min(78vh,820px); min-height: 560px; }
/* Named screens inside the same running application. */
.destination-list { list-style: none; padding: 0; margin-top: 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 16px; }
.destination-list__link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 14px 16px; font-size: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 4px; background: white; transition: border-color .18s,color .18s; }
.destination-list__link:hover { border-color: var(--ink); color: var(--blue); }
/* Sibling projects that share a codebase or a deployment. */
.related-list { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 22px; }
.related-list__link { font-size: 19px; font-weight: 520; letter-spacing: -.4px; text-decoration: none; }
.related-list__link:hover { color: var(--blue); }
.related-list p { margin-top: 7px; font-size: 14px; color: var(--muted); max-width: 66ch; }
/* Under a screenshot: the same screen in the running application. */
.gallery__jump { display: block; margin-top: 7px; font-size: 12px; color: var(--blue); text-decoration: none; }
.gallery__jump:hover { text-decoration: underline; }
.embed-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; margin-top: 24px; overflow: hidden; }
.embed-panel__intro { padding: 24px; }
.embed-panel__intro p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.embed-panel__intro p:last-child { margin: 16px 0 0; }
.embed-panel iframe { display: block; width: 100%; height: 620px; border: 0; background: white; }
.embed-panel__fallback { padding: 0 24px 20px; font-size: 12px; color: var(--muted); }
#case-demo>p { margin: 20px 0; color: var(--muted); }
.lightbox { border: 0; border-radius: 8px; padding: 20px 26px; max-width: calc(100vw - 40px); max-height: calc(100dvh - 40px); width: 1200px; background: var(--paper); color: var(--ink); }
.lightbox::backdrop { background: rgb(15 22 36 / .7); }
.lightbox__toolbar,.lightbox__controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lightbox__toolbar { margin-bottom: 18px; font-size: 12px; }
.lightbox button { border: 1px solid var(--line); border-radius: 4px; background: transparent; font-size: 12px; padding: 8px 14px; min-height: 40px; }
.lightbox figure img { max-height: calc(100dvh - 250px); width: 100%; object-fit: contain; }
.lightbox__controls { margin-top: 18px; }
.has-dialog { overflow: hidden; }
/* Document reader: a full-height panel that slides over from the right so a
   capstone PDF can be read without leaving the case study. */
.reader { margin: 0 0 0 auto; width: min(1180px,100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--paper); color: var(--ink); overflow: hidden; }
.reader[open] { display: flex; flex-direction: column; animation: reader-in .3s cubic-bezier(.2,.75,.3,1) both; }
.reader::backdrop { background: rgb(15 22 36 / .55); }
.reader[open]::backdrop { animation: reader-fade .3s both; }
@keyframes reader-in { from { transform: translateX(3.5%); opacity: 0; } }
@keyframes reader-fade { from { opacity: 0; } }
.reader__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.reader__heading { min-width: 0; }
.reader__head .eyebrow { font-size: 10px; color: var(--muted); }
.reader__title { font-size: 21px; font-weight: 530; letter-spacing: -.5px; line-height: 1.3; margin-top: 4px; }
.reader__note { font-size: 13px; color: var(--muted); margin-top: 7px; max-width: 74ch; }
.reader__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.reader__action,.reader__close { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 9px 14px; font-size: 12px; text-decoration: none; white-space: nowrap; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 4px; }
.reader__action:hover,.reader__close:hover { color: var(--ink); border-color: var(--ink); }
.reader__tabs { border-bottom: 1px solid var(--line); overflow-x: auto; overscroll-behavior-x: contain; }
.reader__tabs ul { display: flex; list-style: none; gap: 2px; margin: 0; padding: 0 26px; }
.reader__tab { display: grid; gap: 2px; min-height: 54px; padding: 11px 14px; text-align: left; white-space: nowrap; background: transparent; border: 0; border-bottom: 2px solid transparent; }
.reader__tab-title { font-size: 13px; color: var(--muted); }
.reader__tab-kind { font-size: 10px; letter-spacing: .04em; color: var(--muted); opacity: .7; }
.reader__tab:hover .reader__tab-title { color: var(--ink); }
.reader__tab.is-current { border-bottom-color: var(--blue); }
.reader__tab.is-current .reader__tab-title { color: var(--ink); font-weight: 550; }
.reader__frame { position: relative; flex: 1; min-height: 0; background: var(--panel); }
.reader__viewer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: white; }
.reader--peek { width: min(960px,100vw); }
.reader--peek .reader__head { align-items: center; }
.reader__action--primary,.reader__action--primary:hover { color: white; background: var(--blue); border-color: var(--blue); }
.reader__action--primary:hover { background: #1648bc; border-color: #1648bc; }
.reader__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 34px 10px; }
.peek .project-hero { padding: 30px 0 34px; max-width: none; }
.peek .project-hero--split { grid-template-columns: 1fr; gap: 26px; }
.peek .project-hero__text>:first-child { margin-top: 0; }
.peek .project-hero__headline { font-size: 27px; }
.peek .case-layout { display: block; padding-top: 40px; }
.peek .live-frame .live-frame__view { height: 540px; min-height: 0; }
.peek .case-section:last-child { border-bottom: 0; margin-bottom: 0; }
.reader__fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; padding: 40px; margin: 0 auto; max-width: 48ch; text-align: center; font-size: 13px; color: var(--muted); }
.prose { font-size: 16px; line-height: 1.85; }
.prose>p { margin-bottom: 22px; max-width: 72ch; }
.prose h2 { margin: 50px 0 22px; scroll-margin-top: 36px; }
.prose>h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; font-weight: 520; margin: 32px 0 16px; letter-spacing: -.5px; }
.prose h4 { font-size: 17px; font-weight: 600; margin: 24px 0 12px; }
.prose ul,.prose ol { padding-left: 23px; margin: 18px 0 26px; }
.prose li { padding-left: 4px; margin-bottom: 9px; }
.prose a { color: var(--blue); }
.prose blockquote { border-left: 2px solid var(--blue); margin: 24px 0; padding: 5px 24px; color: var(--muted); }
.prose code { font-family: 'SFMono-Regular',Consolas,monospace; font-size: .83em; background: var(--panel); padding: 2px 5px; border-radius: 3px; }
.prose pre { padding: 22px; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; line-height: 1.7; }
.prose pre code { padding: 0; background: none; }
.prose img { border: 1px solid var(--line); border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 35px 0; }
.table-wrap { overflow: auto; margin: 24px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th,.prose td { border-bottom: 1px solid var(--line); padding: 13px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel); font-weight: 500; }
.case-writing { margin-bottom: 50px; }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding: 40px 0 60px; }
.project-nav__link { text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.project-nav__link[rel=next] { text-align: right; align-items: flex-end; grid-column: 2; }
.project-nav__dir { font-size: 11px; color: var(--muted); }
.project-nav__title { font-size: 22px; letter-spacing: -.6px; line-height: 1.3; }
.project-nav__link:hover { color: var(--blue); }
.page-about .prose { max-width: 710px; margin-left: auto; padding: 0 0 80px; }
.page-about .page-header { border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.resume { padding: 52px 0 70px; }
.resume__section { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 45px; }
.resume__section:first-child { margin-top: 0; }
.resume__section-title { font-size: 25px; letter-spacing: -.9px; font-weight: 500; margin-bottom: 30px; }
.entry { margin-bottom: 38px; }
.entry__head { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; }
.entry__role { font-size: 18px; font-weight: 550; line-height: 1.5; letter-spacing: -.4px; }
.entry__org { grid-column: 1; font-size: 15px; }
.entry__dates { grid-column: 2; grid-row: 1; font-size: 12px; color: var(--muted); padding-top: 4px; }
.entry__location { grid-column: 2; grid-row: 2; font-size: 12px; color: var(--muted); text-align: right; }
.entry__bullets { padding-left: 19px; margin: 18px 0; font-size: 14px; color: #46505e; }
.entry__bullets li { margin-bottom: 8px; }
.entry>p { font-size: 14px; color: var(--muted); margin: 14px 0; }
/* An experience entry that produced published work gets a right-hand rail:
   a disclosure listing those projects, one click from the write-up. */
.entry--with-projects { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 0 36px; align-items: start; }
.entry--with-projects .entry__head { grid-column: 1 / -1; }
.entry--with-projects .entry__body { grid-column: 1; min-width: 0; }
.entry--with-projects .entry-projects { grid-column: 2; margin-top: 18px; position: sticky; top: 24px; }
.entry-projects { border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.entry-projects__summary { display: flex; align-items: center; gap: 10px; padding: 13px 15px; font-size: 13px; font-weight: 520; cursor: pointer; list-style: none; }
.entry-projects__summary::-webkit-details-marker { display: none; }
.entry-projects__summary::after { content: '+'; margin-left: auto; font-size: 15px; line-height: 1; color: var(--muted); }
.entry-projects[open] .entry-projects__summary::after { content: '–'; }
.entry-projects__summary:hover { color: var(--blue); }
.entry-projects__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--panel); color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.entry-projects__list { list-style: none; margin: 0; padding: 0 6px 6px; border-top: 1px solid var(--line); }
.entry-projects__link { display: block; padding: 11px 9px; border-radius: 4px; text-decoration: none; }
.entry-projects__link:hover { background: var(--panel); }
.entry-projects__name { display: block; font-size: 13px; font-weight: 520; line-height: 1.4; }
.entry-projects__link:hover .entry-projects__name { color: var(--blue); }
.entry-projects__note { display: block; margin-top: 4px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.skills { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.skill-group__name { font-size: 14px; font-weight: 550; margin-bottom: 12px; }
.page-404 .link-row { padding-bottom: 80px; }
/* Chinese edition. The display sizes and negative tracking are tuned for Latin;
   CJK glyphs are full-width and need room. */
html[lang^=zh] body { line-height: 1.75; }
html[lang^=zh] :is(h1,h2,h3,h4,.project-hero__headline,.project-identity__title,.project-identity__line,.project-nav__title) { letter-spacing: -.01em; }
html[lang^=zh] .hero__name { font-size: clamp(38px,5.4vw,74px); line-height: 1.16; font-weight: 600; }
html[lang^=zh] .page-header__title { font-size: clamp(42px,5.4vw,72px); line-height: 1.1; }
html[lang^=zh] .project-hero__title { font-size: clamp(38px,5.4vw,68px); line-height: 1.15; }
html[lang^=zh] .eyebrow { letter-spacing: .02em; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 56px; background: #edf2fc; font-size: 13px; border-bottom: 1px solid var(--line); }
.banner__dismiss { font-size: 12px; padding: 8px; background: transparent; border: 0; text-decoration: underline; }
.is-banner-dismissed .banner { display: none; }
.request-form { display: grid; gap: 22px; max-width: 600px; padding-bottom: 96px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 13px; font-weight: 550; }
.field__label span { color: var(--muted); font-weight: 400; }
.field input,.field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; background: white; padding: 12px 14px; min-height: 46px; }
.field textarea { min-height: 150px; line-height: 1.6; resize: vertical; }
.field input:focus-visible,.field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.request-form__actions .btn { cursor: pointer; }
.form-note { padding: 14px 16px; border-left: 3px solid var(--blue); background: var(--panel); font-size: 14px; line-height: 1.6; }
.form-note a { color: var(--blue); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-fine { font-size: 13px; color: var(--muted); }
@media(max-width:1000px) {
 .container { width: calc(100% - 64px); }
 .entry--with-projects { grid-template-columns: minmax(0,1fr) 220px; gap: 0 26px; }
 .hero__name { font-size: clamp(52px,8vw,80px); }
 .hero__bottom { align-items: flex-start; gap: 24px; }
 .hero--photo { column-gap: 40px; }
 .hero__intro { font-size: 15px; }
 .case-layout { grid-template-columns: 160px minmax(0,1fr); gap: 32px; }
 .case-toc a { font-size: 11px; }
 .gallery--ios { gap: 12px; }
 .project-stage .project-identity__line { font-size: 20px; }
 .visual-ai-community { padding: 20px; }
 .hero__eyebrow span { font-size: 11px; }
 .work-list__item { grid-template-columns: 34px minmax(0,1fr) 220px; gap: 22px; }
 .work-list__title { font-size: 26px; }
 .live-frame__view { height: 560px; }
 .live-frame--hero .live-frame__view { height: min(70vh,640px); min-height: 460px; }
}
@media(max-width:700px) {
 html { scroll-padding-top: 24px; }
 .container { width: calc(100% - 40px); }
 .site-header__inner { height: 74px; gap: 15px; }
 .brand { font-size: 19px; }
 .nav__list { gap: 18px; }
 .nav__lang { padding-left: 14px; margin-left: -4px; }
 .lang-switch { font-size: 12px; }
 .lang-switch__item + .lang-switch__item:before { margin: 0 5px; }
 html[lang^=zh] .hero__name { font-size: clamp(36px,9.4vw,56px); }
 html[lang^=zh] .page-header__title,html[lang^=zh] .project-hero__title { font-size: 40px; }
 .nav__link { font-size: 12px; }
 .hero { padding: 35px 0 50px; }
 .hero__eyebrow { display: block; margin-bottom: 24px; font-size: 11px; }
 .hero__eyebrow span { display: block; margin-top: 5px; }
 .hero__name { font-size: clamp(44px,10vw,65px); letter-spacing: -.065em; }
 .hero__bottom { display: block; margin-top: 24px; }
 .hero--photo { grid-template-columns: minmax(0,1fr); grid-template-rows: none; grid-template-areas: 'eyebrow' 'name' 'photo' 'bottom'; }
 .hero__photo { width: min(100%,240px); margin-top: 26px; }
 .page-header--photo { gap: 20px; }
 .page-header__photo { width: 92px; }
 .hero__intro { font-size: 15px; }
 .hero__links { flex-direction: row; align-items: center; margin-top: 24px; gap: 18px; }
 .btn { font-size: 12px; padding: 12px 16px; gap: 14px; }
 .btn--ghost { padding-inline: 0; }
 .section { padding-bottom: 48px; }
 .section__head { padding: 18px 0 22px; }
 .section__title { font-size: 21px; }
 .section__link { font-size: 12px; }
 .project-grid { grid-template-columns: 1fr; gap: 38px; }
 .project-card__media { aspect-ratio: 1.5; }
 .project-card__body { padding-top: 18px; }
 .project-card__title { font-size: 26px; }
 .project-card__summary { font-size: 14px; }
 .project-identity { padding: 28px 9%; }
 .project-identity__title { font-size: 48px; }
 .project-identity__platform { padding-top: 18px; }
 .project-card__arrow { top: 40px; }
 .visual-magpie { padding: 18px; }
 .contact-row { margin-top: 26px; gap: 6px; }
 .contact-icon { min-height: 42px; padding: 10px 13px; font-size: 12px; gap: 8px; }
 .work-list__item { grid-template-columns: 1fr; gap: 16px; padding: 26px 0; }
 .work-list__index { display: none; }
 .work-list__title { font-size: 25px; }
 .work-list__thumb { grid-row: 1; aspect-ratio: 1.7; }
 .work-list__arrow { display: none; }
 .live-frame__view { height: 460px; }
 .live-frame--hero .live-frame__view { height: 62vh; min-height: 380px; }
 .live-frame__bar { padding: 9px 12px; gap: 9px; }
 .live-frame__label { font-size: 11px; }
 .live-frame__open { font-size: 11px; }
 .destination-list { grid-template-columns: 1fr; }
 .now-list { grid-template-columns: 1fr; gap: 24px; }
 .now-list__label { margin-bottom: 4px; }
 .contact-section { padding: 38px 0 50px; }
 .contact-section h2 { font-size: 36px; }
 .contact-link { margin-top: 24px; gap: 20px; }
 .site-footer__inner { align-items: flex-start; flex-direction: column; gap: 18px; padding-block: 25px; }
 .page-header { padding: 42px 0 30px; }
 .page-header__lede { font-size: 16px; margin-top: 20px; }
 .project-search { max-width: none; }
 .filter-chips { gap: 6px; }
 .filter-chip { min-height: 38px; }
 .page-projects .project-grid { padding-bottom: 50px; }
 .back-link { margin-top: 22px; }
 .project-hero { padding: 24px 0 30px; }
 .project-hero__title { font-size: 48px; }
 .project-hero__headline { font-size: 26px; }
 .project-hero__summary { font-size: 15px; }
 .project-stage { aspect-ratio: 1.35; }
 .project-stage.visual-ai-community { padding: 12px; aspect-ratio: 1.7; }
 .project-stage.visual-magpie { padding: 18px; aspect-ratio: 1.3; }
 .project-stage .project-identity { padding: 26px; }
 .project-stage .project-identity__title { font-size: 52px; }
 .project-stage .project-identity__line { font-size: 17px; }
 .project-stage .project-identity__platform { display: none; }
 .project-meta { gap: 16px 28px; margin-top: 24px; padding-bottom: 22px; }
 .project-hero--split { grid-template-columns: 1fr; gap: 26px; }
 .hero-video__play { width: 52px; height: 52px; }
 .hero-video__play:after { border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }
 .case-layout { display: block; padding-top: 25px; }
 .case-toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 32px; }
 .case-toc .eyebrow { margin-bottom: 10px; }
 .case-toc ol { display: flex; flex-wrap: wrap; gap: 4px 15px; }
 .case-toc a { border: 0; padding: 5px 0; font-size: 12px; text-decoration: underline; }
 .case-section { padding-bottom: 32px; margin-bottom: 32px; }
 .case-section h2,.prose h2 { font-size: 26px; }
 .feature-list { gap: 22px; grid-template-columns: 1fr; }
 .gallery { gap: 24px; }
 .gallery--ios { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px; }
 .gallery--ios .gallery__item>a { border-radius: 14px; }
 .stack-list>div { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
 .resource-list { grid-template-columns: 1fr; gap: 26px; }
 .prose { font-size: 15px; }
 .prose h2 { margin-top: 36px; }
 .case-writing { margin-bottom: 32px; }
 .project-nav { padding: 26px 0 40px; gap: 25px; }
 .project-nav__title { font-size: 18px; }
 .lightbox { max-width: calc(100vw - 20px); padding: 14px; }
 .lightbox figure img { max-height: calc(100dvh - 240px); }
 .embed-panel iframe { height: 520px; }
 .embed-panel__intro { padding: 20px; }
 .reader { width: 100vw; border-left: 0; }
 .reader__head { flex-direction: column; gap: 14px; padding: 16px 18px 14px; }
 .reader__title { font-size: 18px; }
 .reader__note { display: none; }
 .reader__actions { width: 100%; }
 .reader__action,.reader__close { flex: 1; justify-content: center; padding: 9px 10px; }
 .reader__tabs ul { padding: 0 18px; }
 .reader--peek .reader__head { align-items: stretch; }
 .reader__body { padding: 0 20px 10px; }
 .peek .live-frame .live-frame__view { height: 440px; }
 .page-about .page-header { margin-bottom: 30px; }
 .page-about .prose { padding-bottom: 45px; }
 .resume { padding-top: 35px; }
 .entry__head { display: block; }
 .entry__dates { margin-top: 6px; }
 .entry__location { text-align: left; }
 .entry--with-projects { display: block; }
 .entry--with-projects .entry-projects { position: static; margin-top: 4px; }
 .skills { grid-template-columns: 1fr; }
 .banner { padding: 12px 20px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *,*:before,*:after { animation: none!important; transition: none!important; } }
@media print {
 body { background: white; font-size: 11pt; }
 .site-header,.site-footer,.banner,.skip-link,.filter-bar,.case-aside,.back-link,.project-nav,.lightbox,.reader,.link-row { display: none!important; }
 .container { width: 100%; max-width: none; }
 .page-header { padding: 0 0 20px; }
 .page-header__title { font-size: 32pt; }
 .page-header__lede { font-size: 11pt; }
 .page-header__photo { width: 90pt; }
 .resume { padding: 0; }
 .resume__section { margin-top: 25px; padding-top: 15px; }
 .entry { break-inside: avoid; }
 .entry__bullets { font-size: 10pt; }
 .entry--with-projects { display: block; }
 .entry-projects { border: 0; }
 .entry-projects__summary::after,.entry-projects__count { display: none; }
 .case-layout { display: block; }
 .project-stage { max-height: 250px; }
 .project-grid { display: block; }
 .project-card { break-inside: avoid; margin-bottom: 25px; }
 .project-card__media { max-height: 230px; }
 .tag { font-size: 9pt; }
 .prose { font-size: 11pt; }
 .embed-panel,.live-frame { display: none!important; }
 .work-list__item { break-inside: avoid; display: block; }
}
