/* Editorial theme for every public and owner-view page. The admin studio keeps site.css.
   Fonts are self-hosted subsets (SIL OFL 1.1, see /static/fonts/). */
@font-face{font-family:"ZR Display";src:url("/static/fonts/display-black.woff?v=20261105-2") format("woff");font-weight:900;font-style:normal;font-display:swap}
@font-face{font-family:"ZR Mono";src:url("/static/fonts/mono-regular.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"ZR Mono";src:url("/static/fonts/mono-medium.woff") format("woff");font-weight:500 700;font-style:normal;font-display:swap}

:root{
  --bg:#F3F5EF;--surface:#FFFFFF;--surface-2:#E9EDE3;--line:#DCE2D3;--line-strong:#C5CDB9;
  --text:#222820;--muted:#5F6A5A;--dim:#B4BDA8;--accent:#3F6F55;--accent-ink:#FFFFFF;
  --accent-soft:#DCE8DE;--accent-deep:#2E5641;--radius:12px;
  --display:"ZR Display","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Noto Sans CJK SC","Source Han Sans SC",sans-serif;
  --sans:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Noto Sans CJK SC","Source Han Sans SC",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"ZR Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  --ease:cubic-bezier(.2,.8,.2,1);--shell:1328px;--gutter:56px;
  /* Names the opening overlay (dynamic-home.css) still reads. */
  --paper:var(--bg);--ink:var(--text);--soft:var(--surface);--serif:var(--sans);
  color-scheme:light;
}

/* Base */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px;-webkit-text-size-adjust:100%}
body.editorial{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.75;-webkit-font-smoothing:antialiased;overflow-x:hidden}
body.editorial:has(dialog[open]){overflow:hidden}
:where(.editorial) :where(button,input,select,textarea){font:inherit;color:inherit}
:where(.editorial) button{cursor:pointer}
:where(.editorial) a{color:inherit;text-decoration:none}
:where(.editorial) img{display:block;max-width:100%}
:where(.editorial) :where(h1,h2,h3,h4,p){margin-top:0}
:where(.editorial) p{overflow-wrap:anywhere}
:where(.editorial) ::selection{background:var(--accent);color:var(--accent-ink)}
:where(.editorial) :focus-visible{outline:2px solid var(--accent);outline-offset:4px}
[hidden]{display:none!important}
.sr-only{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:10px;left:10px;z-index:100;padding:12px 18px;background:var(--accent);color:var(--accent-ink);transform:translateY(-160%)}
.skip-link:focus{transform:none}
.editorial .shell{width:min(calc(100% - 2 * var(--gutter)),var(--shell));margin-inline:auto}
.mono{font-family:var(--mono);font-size:12px;line-height:1.6;letter-spacing:.08em;text-transform:uppercase}
.mono-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-family:var(--mono);font-size:13px;letter-spacing:.04em;color:var(--text);transition:color .2s}
.mono-link:hover{color:var(--accent)}
.btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 22px;font-family:var(--mono);font-size:13px;letter-spacing:.06em;border:1px solid var(--accent);border-radius:8px;color:var(--accent-deep);transition:background .2s,color .2s,border-color .2s}
.btn-solid{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn-solid:hover{background:var(--accent-deep);border-color:var(--accent-deep);color:var(--accent-ink)}
.btn-ghost:hover{background:var(--accent-soft)}
.tags{display:flex;flex-wrap:wrap;gap:8px}
.tag{display:inline-flex;align-items:center;font-family:var(--mono);font-size:11px;letter-spacing:.04em;line-height:1.5;padding:4px 10px;border:1px solid var(--line-strong);border-radius:6px;color:var(--muted);transition:color .2s,border-color .2s}
a.tag:hover{color:var(--accent);border-color:var(--accent)}
.owner-content-state{display:inline-flex;align-items:center;font-family:var(--mono);font-size:11px;letter-spacing:.04em;padding:3px 9px;border:1px solid var(--accent);color:var(--accent);text-transform:none}

/* Header */
.editorial .site-header{position:relative;z-index:20}
.editorial .header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px 32px;min-height:96px}
.editorial .brand{display:inline-flex;align-items:center;gap:12px;font-weight:700;font-size:15px;letter-spacing:.02em;min-height:44px}
.brand-mark{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:var(--accent-ink);border-radius:8px;font-family:var(--mono);font-weight:700;font-size:13px;line-height:1}
.brand-mark i{font-style:normal}
.editorial #site-nav{display:flex;align-items:center;gap:6px 28px;flex-wrap:wrap;font-family:var(--mono);font-size:12px;letter-spacing:.08em}
.editorial #site-nav a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--text);transition:color .2s}
.editorial #site-nav a:hover,.editorial #site-nav a[aria-current="page"]{color:var(--accent)}
.nav-index{color:var(--muted)}
.editorial #site-nav a[aria-current="page"] .nav-index{color:var(--accent)}
.owner-nav-divider{width:1px;height:16px;background:var(--line-strong)}
.editorial .nav-contact{padding-left:16px;border-left:1px solid var(--line-strong)}
.editorial .nav-toggle{display:none;width:44px;height:44px;border:1px solid var(--line-strong);background:none;padding:0;position:relative}
.editorial .nav-toggle span{position:absolute;left:12px;right:12px;height:1px;background:var(--text);transition:transform .25s var(--ease)}
.editorial .nav-toggle span:first-child{top:18px}.editorial .nav-toggle span:last-child{top:25px}
.editorial .nav-toggle[aria-expanded="true"] span:first-child{transform:translateY(3.5px) rotate(45deg)}
.editorial .nav-toggle[aria-expanded="true"] span:last-child{transform:translateY(-3.5px) rotate(-45deg)}
.demo-banner{display:flex;align-items:center;gap:8px;padding:10px 0;font-size:12px;color:var(--muted)}
.status-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}
.owner-view-banner{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;padding:14px 18px;margin-bottom:8px;border:1px solid var(--accent);border-radius:var(--radius);background:var(--surface)}
.owner-view-banner>div{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.owner-view-banner p{margin:0;font-size:13px;color:var(--muted)}
.owner-private-label{font-family:var(--mono);font-size:11px;letter-spacing:.08em;color:var(--accent-ink);background:var(--accent);padding:3px 9px}
.owner-view-banner .text-link{font-family:var(--mono);font-size:12px}
.owner-view-banner .text-link:hover{color:var(--accent)}

/* Profile header (home) */
.profile{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,340px);gap:40px 72px;align-items:center;padding:64px 0 72px;border-bottom:1px solid var(--line);overflow:hidden}
.hero-lines{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.5}
.profile .flow-labels,.profile .flow-nodes{display:none}
.flowline{fill:none;stroke:var(--dim);stroke-width:1;stroke-dasharray:2 9;animation:ed-dash 7s linear infinite}
.flowline.is-hot{stroke:var(--accent);opacity:.55;stroke-dasharray:1 14;stroke-width:2;animation-duration:4s}
.flow-labels text{font-family:var(--mono);font-size:11px;letter-spacing:1.5px;fill:var(--muted)}
.flow-nodes rect{fill:var(--accent)}
@keyframes ed-dash{to{stroke-dashoffset:-220}}
.profile-copy{position:relative;z-index:1;max-width:720px}
.status{display:inline-flex;align-items:center;gap:10px;margin:0;padding:8px 16px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface)}
.pulse{width:8px;height:8px;border-radius:50%;background:var(--accent);animation:ed-pulse 1.8s ease-in-out infinite}
@keyframes ed-pulse{50%{opacity:.35;transform:scale(.7)}}
.profile-name{margin:28px 0 0;font-family:var(--display);font-weight:900;font-size:clamp(56px,7vw,104px);line-height:1;letter-spacing:-.04em}
.profile-headline{margin:16px 0 0;font-size:clamp(18px,1.7vw,22px);font-weight:700;line-height:1.5;color:var(--accent-deep)}
.intro{margin:18px 0 0;max-width:640px;font-size:17px;line-height:1.9;text-wrap:pretty}
.cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.profile-links{display:flex;flex-wrap:wrap;gap:0 20px;margin-top:14px}
.profile-links a{display:inline-flex;align-items:center;min-height:40px;color:var(--muted);text-transform:none;letter-spacing:.04em;transition:color .2s}
.profile-links a:hover{color:var(--accent)}
.profile-photo{position:relative;z-index:1;justify-self:end;width:100%;max-width:340px;margin:0;padding:14px;background:var(--accent-soft);border-radius:calc(var(--radius) + 8px)}
.profile-photo img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:var(--radius)}

/* Figures */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:16px;padding-top:32px}
.stat{padding:24px 26px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.stat .figure-value{font-size:clamp(40px,4vw,56px);color:var(--accent-deep)}
.stat .figure-label{margin-top:12px}
.figure-value{display:flex;align-items:baseline;gap:8px;font-family:var(--display);font-weight:900;font-size:clamp(56px,6vw,88px);line-height:.9;letter-spacing:-.04em}
.figure-value small{font-family:var(--mono);font-size:16px;font-weight:500;letter-spacing:0;color:var(--accent)}
.figure-label{margin:18px 0 0;max-width:300px;font-size:14px;line-height:1.75;color:var(--muted)}

/* Sections */
.section{padding-bottom:24px}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px 32px;flex-wrap:wrap;padding:104px 0 28px;border-bottom:1px solid var(--line)}
.sec-head h2{margin:0;font-family:var(--display);font-weight:900;font-size:clamp(40px,5vw,72px);line-height:1;letter-spacing:-.04em}
.sec-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right;color:var(--muted)}
.sec-side p{margin:0}
.sec-side b{color:var(--accent);font-weight:500}
.empty-state{padding:64px 24px;border:1px dashed var(--line-strong);border-radius:var(--radius);text-align:center;color:var(--muted)}
.empty-state h2,.empty-state h3{margin-bottom:10px;font-size:22px;color:var(--text)}
.empty-state p{margin:0}

/* Capabilities */
.cap-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr));gap:20px;padding-top:36px}
.cap-card{display:flex;flex-direction:column;padding:24px 26px 22px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);transition:border-color .2s}
.cap-card:hover{border-color:var(--line-strong)}
.cap-head{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:26px}
.cap-num{color:var(--accent)}
.cap-level{display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:12px;font-weight:700;line-height:1.6;letter-spacing:.04em}
.cap-level.is-strong{background:var(--accent-soft);color:var(--accent-deep)}
.cap-card h3{margin:12px 0 0;font-size:21px;line-height:1.4;letter-spacing:-.01em}
.cap-card p{margin:10px 0 0;font-size:15px;line-height:1.85;color:var(--muted);text-wrap:pretty}
.cap-stack{margin-top:auto;padding-top:18px}

/* Data architecture (home) */
.arch{list-style:none;margin:0;padding:36px 0 0;display:flex;flex-direction:column;gap:16px}
.arch-row{position:relative;display:grid;grid-template-columns:200px minmax(0,1fr);gap:12px 32px;align-items:center;padding:20px 26px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.arch-row+.arch-row::before{content:"";position:absolute;left:48px;top:-17px;width:1px;height:16px;background:var(--accent)}
.arch-row+.arch-row::after{content:"";position:absolute;left:44px;top:-6px;border-left:4.5px solid transparent;border-right:4.5px solid transparent;border-top:6px solid var(--accent)}
.arch-layer{display:flex;align-items:baseline;gap:12px}
.arch-layer .mono{color:var(--accent)}
.arch-layer b{font-size:18px;line-height:1.4}
.arch-chips{display:flex;flex-wrap:wrap;gap:8px}
.arch-chip{display:inline-flex;align-items:center;min-height:32px;padding:0 14px;border:1px solid var(--line-strong);border-radius:999px;background:var(--bg);font-size:14px;font-weight:500}
.arch-note{margin:10px 0 0;font-size:14px;line-height:1.75;color:var(--muted)}
.arch-caption{margin:16px 0 0;font-size:13px;color:var(--muted)}

/* Outside work teaser (home) */
.outside-teaser{display:flex;align-items:center;gap:12px 28px;flex-wrap:wrap;margin-top:104px;padding:24px 28px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.outside-teaser p{margin:0}
.outside-teaser-label{color:var(--accent)}
.outside-teaser-text{flex:1;min-width:min(260px,100%);color:var(--muted)}

/* Work experience (home) */
.role-list{list-style:none;margin:0;padding:0}
.role{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px 56px;padding:44px 0;border-bottom:1px solid var(--line)}
.role-when{display:flex;flex-direction:column;align-items:flex-start;gap:12px;color:var(--accent)}
.role-now{display:inline-flex;align-items:center;gap:8px;padding:2px 12px;border-radius:999px;background:var(--accent-soft);color:var(--accent-deep);font-size:11px}
.role-now .pulse{width:6px;height:6px}
.role-main{min-width:0;max-width:880px}
.role-org{margin:0 0 6px;font-size:15px;color:var(--muted)}
.role-title{margin:0;font-size:clamp(26px,2.8vw,36px);line-height:1.3;letter-spacing:-.02em}
.role-main .owner-content-state{margin-top:12px}
.role-lead{margin-top:18px;font-size:16px;line-height:1.9;text-wrap:pretty}
.role-lead p{margin:0}
.role-projects{margin-top:26px;padding:4px 24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.role-projects-label{margin:14px 0 0;color:var(--muted)}
.role-projects ul{list-style:none;margin:0;padding:0}
.role-projects li+li{border-top:1px solid var(--line)}
.role-projects a{display:grid;grid-template-columns:minmax(0,1fr) auto 20px;align-items:center;gap:4px 20px;padding:16px 0}
.rp-title .t-head{display:block;font-size:17px;font-weight:700;line-height:1.45;transition:color .2s}
.rp-title .t-tail{display:block;margin-top:2px;font-size:14px;color:var(--muted)}
.rp-period{color:var(--muted);white-space:nowrap}
.rp-arrow{color:var(--accent);transition:transform .25s var(--ease)}
.role-projects a:hover .t-head{color:var(--accent)}
.role-projects a:hover .rp-arrow{transform:translateX(4px)}

/* Personal projects (home) */
.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr));gap:24px;padding-top:40px}
.project-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:border-color .2s,transform .3s var(--ease),box-shadow .3s var(--ease)}
.project-card:hover{border-color:var(--line-strong);transform:translateY(-3px);box-shadow:0 22px 44px -28px rgba(34,40,32,.45)}
.pc-cover{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--surface-2)}
.pc-cover img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.project-card:hover .pc-cover img{transform:scale(1.03)}
.pc-visual{display:flex;flex-direction:column;gap:12px;aspect-ratio:16/9;padding:16px 20px;overflow:hidden;background-color:var(--surface-2);background-image:radial-gradient(var(--line-strong) 1px,transparent 1px);background-size:16px 16px}
.pc-visual-head{display:flex;justify-content:space-between;gap:12px;color:var(--muted)}
.pc-legend{display:inline-flex;align-items:center;gap:6px}
.pc-legend i{width:8px;height:8px;border-radius:50%;background:var(--accent)}
.pc-flow{display:flex;flex-wrap:wrap;align-items:center;align-content:center;gap:8px 6px;flex:1}
.pc-step{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);font-size:13px;font-weight:500;white-space:nowrap}
.pc-step.is-model{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-deep)}
.pc-flow i{font-style:normal;font-size:12px;color:var(--muted)}
.pc-body{display:flex;flex-direction:column;flex:1;padding:24px 26px 14px}
.pc-meta{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;color:var(--muted)}
.pc-num{color:var(--accent)}
.pc-title{margin:14px 0 0}
.pc-title .t-head{display:block;font-size:24px;font-weight:700;line-height:1.3;letter-spacing:-.01em;transition:color .2s}
.pc-title .t-tail{display:block;margin-top:6px;font-size:15px;font-weight:400;line-height:1.6;color:var(--muted)}
.pc-title a:hover .t-head{color:var(--accent)}
.pc-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;margin:16px 0 0;font-size:15px;line-height:1.85;color:var(--muted);text-wrap:pretty}
.pc-tags{margin-top:18px}
.pc-tags .tag{border-color:transparent;background:var(--accent-soft);color:var(--accent-deep)}
.pc-links{display:flex;flex-wrap:wrap;gap:0 22px;margin-top:auto;padding-top:18px}

/* Project type tabs (listing) */
.type-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:24px 0 8px}
.type-tabs a{display:inline-flex;align-items:center;min-height:40px;padding:0 18px;border:1px solid var(--line-strong);border-radius:999px;color:var(--muted);text-transform:none;letter-spacing:.04em;transition:color .2s,border-color .2s,background .2s}
.type-tabs a:hover{color:var(--accent);border-color:var(--accent)}
.type-tabs a[aria-current="page"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}

/* Flow diagram (project detail) */
.flow-block{margin-top:32px}
.flow-title{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px;color:var(--muted)}
.flow{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.stage{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:46px;padding-right:14px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.stage-node{justify-self:center;width:9px;height:9px;border:1.5px solid var(--accent)}
.stage:first-child .stage-node{background:var(--accent)}
.stage-name{padding:10px 0;font-size:14px;font-weight:500;line-height:1.45}
.stage-name i{display:block;font-style:normal;font-family:var(--mono);font-size:10px;letter-spacing:.1em;color:var(--muted)}
.stage-note{font-family:var(--mono);font-size:12px;color:var(--muted);white-space:nowrap}
.stage+.stage::before{content:"";position:absolute;left:19px;top:-15px;width:1px;height:15px;background:var(--line-strong)}
.stage+.stage::after{content:"";position:absolute;left:17px;top:-15px;width:5px;height:5px;background:var(--accent);animation:ed-drop 1.4s linear infinite}
@keyframes ed-drop{from{transform:translateY(0);opacity:0}30%{opacity:1}to{transform:translateY(12px);opacity:0}}

/* Timeline */
.gantt-box{margin-top:48px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow-x:auto}
.gantt{min-width:900px}
.g-row{display:grid;grid-template-columns:320px minmax(0,1fr) 128px;align-items:center;min-height:64px;border-top:1px solid var(--line)}
.g-axis{min-height:44px;border-top:0;color:var(--muted)}
.g-label{padding:12px 24px;line-height:1.4}
.g-label b{display:block;font-size:15px;font-weight:700}
.g-label a:hover b{color:var(--accent)}
.g-label span{display:block;margin-top:3px;font-size:13px;color:var(--muted)}
.g-label em{display:block;margin-top:4px;font-style:normal;font-size:11px;color:var(--muted)}
.g-child .g-label{padding-left:48px}
.g-child .g-label b{font-size:14px;font-weight:500}
.g-track{position:relative;align-self:stretch;min-height:64px;background-image:repeating-linear-gradient(to right,var(--line) 0 1px,transparent 1px var(--year,14.2857%))}
.g-axis .g-track{min-height:44px;background:none}
.g-tick{position:absolute;top:13px;transform:translateX(6px);font-size:11px}
.bar{position:absolute;top:50%;height:20px;transform:translateY(-50%);min-width:6px}
.bar-parent{height:28px;border:1px solid var(--accent);background:color-mix(in srgb,var(--accent) 14%,transparent)}
.bar-child{background:var(--line-strong)}
.bar.is-running{border:1px solid var(--accent);background:repeating-linear-gradient(-45deg,var(--accent) 0 6px,transparent 6px 12px);background-size:17px 17px;animation:ed-stripes 1s linear infinite}
@keyframes ed-stripes{to{background-position:17px 0}}
.g-status{display:flex;align-items:center;gap:8px;padding:0 20px;font-size:11px;color:var(--muted)}
.g-status.is-running{color:var(--accent)}
.dot{width:7px;height:7px;border-radius:50%;background:currentColor}
.g-note{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px 24px;border-top:1px solid var(--line);color:var(--muted)}

/* Tools marquee */
.marquee{margin-top:72px;padding:30px 0;overflow:hidden;border-block:1px solid var(--line)}
.marquee-track{display:flex;gap:40px;width:max-content;animation:ed-marquee 48s linear infinite}
.marquee-track span{font-family:var(--display);font-weight:900;font-size:clamp(32px,3.6vw,52px);letter-spacing:-.03em;color:var(--muted);white-space:nowrap}
.marquee-track em{align-self:center;font-style:normal;font-family:var(--mono);font-size:24px;color:var(--accent)}
.marquee:hover .marquee-track{animation-play-state:paused}
@keyframes ed-marquee{to{transform:translateX(-50%)}}

/* Outside work: films and reading */
.col-head{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding-bottom:10px;border-bottom:1px solid var(--line);color:var(--muted)}
.col-head h2{margin:0;font:inherit;letter-spacing:inherit;color:var(--muted)}
.prose.film-review-gallery{margin-top:24px}
.prose.film-review-gallery>p{margin:0 0 24px;font-size:14px;line-height:1.8;color:var(--muted)}
.prose.film-review-gallery ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:28px}
.prose.film-review-gallery li{display:flex;flex-direction:column;margin:0;padding:0}
.prose.film-review-gallery li>p{margin:0}
.prose.film-review-gallery li>p:has(img){order:-1}
.prose.film-review-gallery li>h2,.prose.film-review-gallery li>h3{order:0;margin:8px 0 0;font-size:26px;font-weight:900;letter-spacing:-.02em;line-height:1.3}
.prose.film-review-gallery li>p:not(:has(img)){order:1}
.prose.film-review-gallery img{width:100%;max-height:none;aspect-ratio:4/5;object-fit:cover;margin:0;filter:saturate(.85);transition:filter .4s}
.prose.film-review-gallery a:has(img){display:block;border:0}
.prose.film-review-gallery li:hover img{filter:none}
.prose.film-review-gallery li>p:has(strong){margin-top:12px;font-family:var(--mono);font-size:12px;letter-spacing:.04em;color:var(--muted)}
.prose.film-review-gallery li>p+p:not(:has(strong)){margin-top:12px}
.prose.film-review-gallery strong{color:var(--accent);font-weight:500}
.prose.film-review-gallery li>p:last-child{margin-top:12px;font-size:17px;line-height:1.75}
.reading-theme-grid{display:flex;flex-direction:column}
.reading-theme{border-bottom:1px solid var(--line)}
.reading-trigger{display:grid;grid-template-columns:44px minmax(0,1fr) 24px;gap:6px 12px;align-items:start;padding:22px 0;cursor:pointer;list-style:none}
.reading-trigger::-webkit-details-marker{display:none}
.reading-number{padding-top:6px;color:var(--muted)}
.reading-theme[open] .reading-number{color:var(--accent)}
.reading-heading h3{margin:0;font-size:22px;line-height:1.35}
.reading-books{display:block;margin-top:4px;font-size:14px;color:var(--muted)}
.reading-toggle{position:relative;width:16px;height:16px;margin-top:8px;transition:transform .3s var(--ease)}
.reading-toggle::before,.reading-toggle::after{content:"";position:absolute;background:var(--muted)}
.reading-toggle::before{left:7px;top:0;width:1.5px;height:16px}
.reading-toggle::after{left:0;top:7px;width:16px;height:1.5px}
.reading-theme[open] .reading-toggle{transform:rotate(45deg)}
.reading-theme[open] .reading-toggle::before,.reading-theme[open] .reading-toggle::after{background:var(--accent)}
.reading-theme-content{padding:0 0 22px 56px}
.reading-theme-content p{margin:0 0 10px;font-size:14px;color:var(--muted)}
.reading-questions{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.reading-questions li{padding-left:16px;border-left:1px solid var(--accent);font-size:15px;line-height:1.7}

/* Owner thoughts */
.thought-list{display:flex;flex-direction:column;margin-top:8px}
.thought-card{padding:28px 0;border-bottom:1px solid var(--line)}
.thought-card-meta{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted)}
.thought-card h3{margin:10px 0 8px;font-size:24px;line-height:1.35}
.thought-card h3 a{display:inline-flex;gap:12px}
.thought-card h3 a:hover{color:var(--accent)}
.thought-card p{margin:0 0 12px;color:var(--muted)}
.career-motion-toolbar{display:flex;justify-content:flex-end;padding:48px 0 0}
body.editorial .career-utility-button{min-height:44px;padding:0 16px;border:1px solid var(--line-strong);border-radius:0;background:none;font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:var(--muted)}
body.editorial .career-utility-button:hover{border-color:var(--accent);color:var(--accent);background:none}

/* Inner pages */
.page-head{padding:72px 0 36px;border-bottom:1px solid var(--line)}
.page-kicker{margin:0 0 18px;color:var(--accent)}
.page-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 40px;flex-wrap:wrap}
.page-title-row h1{margin:0;font-family:var(--display);font-weight:900;font-size:clamp(48px,7vw,104px);line-height:.95;letter-spacing:-.04em}
.page-title-row p{max-width:360px;margin:0 0 8px;color:var(--muted);text-align:right}
.listing-section{padding-bottom:40px}
.filter-bar{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid var(--line)}
.filter-selects{display:flex;gap:16px;flex-wrap:wrap}
.filter-bar select{min-height:44px;max-width:240px;padding:0 32px 0 12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);font-family:var(--mono);font-size:12px;color:var(--text)}
.search-field{display:flex;align-items:center;gap:8px;width:min(340px,100%);border-bottom:1px solid var(--line-strong)}
.search-field input{width:100%;min-width:0;min-height:44px;padding:0;border:0;background:transparent;font-size:14px}
.search-field input::placeholder{color:var(--muted)}
.search-field button{width:44px;height:44px;border:0;background:none;font-size:20px;color:var(--accent)}
.results-meta{display:flex;justify-content:space-between;gap:16px;margin:20px 0 4px;color:var(--muted)}
.results-meta a:hover{color:var(--accent)}
.archive-list{display:flex;flex-direction:column}
.archive-row{display:grid;grid-template-columns:52px minmax(0,1fr) minmax(160px,240px);gap:12px 24px;padding:34px 0;border-bottom:1px solid var(--line)}
.archive-number{padding-top:10px;color:var(--accent)}
.archive-title{margin:0}
.archive-title a .t-head{display:block;font-size:clamp(24px,2.8vw,40px);font-weight:700;line-height:1.18;letter-spacing:-.02em;transition:color .2s}
.archive-title a .t-tail{display:block;margin-top:8px;font-size:16px;font-weight:400;color:var(--muted)}
.archive-title a:hover .t-head{color:var(--accent)}
.archive-summary{max-width:720px;margin:16px 0 0;font-size:15px;line-height:1.85;color:var(--muted)}
.archive-tags{margin-top:16px}
.archive-side{display:flex;flex-direction:column;align-items:flex-end;gap:16px}
.archive-meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px;padding-top:12px;color:var(--muted);text-align:right}
.archive-cover{display:block;width:100%}
.archive-cover .art-cover img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;filter:saturate(.85);transition:filter .3s}
.archive-row:hover .archive-cover img{filter:none}
.pagination{display:flex;justify-content:center;align-items:center;gap:28px;margin-top:40px;font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:var(--muted)}
.pagination a{color:var(--text)}
.pagination a:hover{color:var(--accent)}

/* Project detail */
.detail-page{padding-top:40px;padding-bottom:24px}
.back-link{display:inline-flex;align-items:center;min-height:44px;color:var(--muted)}
.back-link:hover{color:var(--accent)}
.detail-header{max-width:980px;padding:48px 0 40px}
.detail-header h1{margin:0 0 22px;font-size:clamp(34px,4.6vw,64px);font-weight:900;line-height:1.15;letter-spacing:-.03em;text-wrap:balance}
.detail-summary{max-width:780px;margin:0 0 24px;font-size:18px;line-height:1.9;color:var(--muted);text-wrap:pretty}
.detail-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}
.detail-meta time{color:var(--muted)}
.detail-brief{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:40px 56px;align-items:start;padding:36px;margin-bottom:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.detail-brief .flow-block{margin-top:0}
.brief-figure .figure-value{font-size:clamp(72px,8vw,128px);color:var(--accent)}
.detail-brief:not(:has(.figure)){grid-template-columns:minmax(0,1fr)}
.art-cover.detail-cover{margin-bottom:24px}
.art-cover.detail-cover img{width:100%;max-height:560px;object-fit:cover;border-radius:var(--radius);cursor:zoom-in}
.article-layout{display:grid;grid-template-columns:200px minmax(0,760px);gap:64px;justify-content:start;padding-top:48px;border-top:1px solid var(--line)}
.article-layout.without-index{grid-template-columns:minmax(0,760px);justify-content:center}
.article-index{position:sticky;top:24px;align-self:start;display:flex;flex-direction:column;gap:4px;color:var(--muted)}
.article-index>span{margin-bottom:12px;color:var(--accent)}
.article-index a{display:flex;align-items:center;min-height:36px;color:var(--muted);text-transform:none}
.article-index a:hover{color:var(--text)}
.article-body{min-width:0}
.prose{font-size:17px;line-height:1.95;overflow-wrap:anywhere}
.prose h1,.prose h2,.prose h3,.prose h4{margin:1.8em 0 .7em;line-height:1.45;color:var(--text)}
.prose h1{font-size:30px}.prose h2{font-size:26px}.prose h3{font-size:21px}.prose h4{font-size:18px}
.prose p{margin-bottom:1.2em}
.prose ul,.prose ol{margin:0 0 1.2em;padding-left:1.4em}
.prose li{margin:.35em 0;padding-left:.2em}
.prose li::marker{color:var(--accent)}
.prose strong{color:var(--text);font-weight:700}
.prose a{color:var(--accent);border-bottom:1px solid color-mix(in srgb,var(--accent) 45%,transparent)}
.prose a:hover{border-bottom-color:var(--accent)}
.prose img{width:auto;height:auto;max-height:650px;margin:28px auto;cursor:zoom-in}
.prose blockquote{margin:24px 0;padding:12px 22px;border-left:2px solid var(--accent);background:var(--surface);color:var(--muted)}
.prose blockquote p:last-child{margin-bottom:0}
.prose pre{max-width:100%;overflow:auto;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:1.8}
.prose code{font-family:var(--mono);font-size:.86em;padding:.12em .35em;background:var(--surface-2)}
.prose pre code{padding:0;background:none}
.prose table{display:block;max-width:100%;overflow:auto;margin:24px 0;border-collapse:collapse;font-size:14px}
.prose th,.prose td{min-width:100px;padding:10px 14px;border:1px solid var(--line)}
.prose th{background:var(--surface);text-align:left}
.prose hr{margin:40px 0;border:0;border-top:1px solid var(--line)}
.project-section{padding-bottom:28px;margin-bottom:36px;border-bottom:1px solid var(--line);scroll-margin-top:24px}
.project-section:last-child{border-bottom:0}
.project-section-heading{display:flex;align-items:baseline;gap:16px}
.project-section-heading h2{margin:0 0 20px;font-size:28px}
.section-number{color:var(--accent)}
.project-section p:last-child{margin-bottom:0}
.project-links{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.project-links h2{margin-top:0}
.project-links a{display:block;width:fit-content;margin-bottom:10px;font-size:15px}
.article-end{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:48px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted)}
.article-end a{display:inline-flex;align-items:center;min-height:44px;color:var(--text)}
.article-end a:hover{color:var(--accent)}
.thought-cover{width:100%;max-height:480px;object-fit:cover;margin-bottom:24px}
.prose .film-review-gallery{font-size:16px}

/* Experience page */
.experience-timeline .gantt-box{margin-top:40px}
.experience-list{padding-top:32px}
.experience-entry{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px 64px;padding:48px 0;border-bottom:1px solid var(--line)}
.experience-date{display:flex;flex-direction:column;gap:4px;color:var(--accent)}
.experience-organization{margin:0 0 10px;color:var(--muted)}
.experience-content{max-width:780px}
.experience-content h2{margin:0 0 20px;font-size:clamp(26px,3vw,38px);line-height:1.25;letter-spacing:-.02em}
.experience-content .prose{font-size:16px;color:var(--text)}
.experience-work-links{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:24px}
.experience-work-links>.mono{margin-right:6px;color:var(--muted)}

/* About */
.about-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:48px 88px;padding:56px 0 40px}
.about-side{position:sticky;top:24px;align-self:start}
.about-portrait{width:100%;aspect-ratio:4/5;object-fit:cover;margin-bottom:24px;border-radius:var(--radius);box-shadow:16px 16px 0 var(--accent-soft)}
.about-headline{margin:36px 0 16px;color:var(--accent);text-transform:none}
.about-index{display:flex;flex-direction:column;gap:2px;padding-top:16px;border-top:1px solid var(--line)}
.about-index a{display:flex;align-items:center;min-height:40px;color:var(--muted);text-transform:none}
.about-index a:hover{color:var(--accent)}
.about-copy{max-width:780px;min-width:0}
.about-lead{margin:0 0 48px;font-size:clamp(22px,2.2vw,28px);line-height:1.75;text-wrap:pretty}
.about-label{margin:0 0 4px;color:var(--accent)}
.about-practice,.about-skills,.about-outside{padding-top:40px;margin-top:40px;border-top:1px solid var(--line);scroll-margin-top:24px}
.about-reading{scroll-margin-top:24px}
.about-outside .about-reading{margin-top:36px}
.about-outside-note{margin:0 0 8px;color:var(--muted)}
.about-films{margin-top:24px}
.about-practice{margin-top:0}
.about-skill{display:grid;grid-template-columns:220px minmax(0,1fr);gap:8px 24px;padding:20px 0;border-bottom:1px solid var(--line)}
.about-skill h3{margin:0;font-size:17px;line-height:1.5}
.about-skill h3 .cap-level{margin-left:10px;vertical-align:2px}
.about-skill .tags{margin-top:10px}
.about-skill p{margin:0;font-size:15px;color:var(--muted)}
.owner-profile-state{margin-bottom:20px}

/* Error */
.error-page{padding:96px 0 120px}
.error-page h1{margin:0 0 24px;font-family:var(--display);font-weight:900;font-size:clamp(120px,22vw,320px);line-height:.85;letter-spacing:-.05em;color:var(--accent)}
.error-message{max-width:520px;margin-bottom:32px;font-size:18px;color:var(--muted)}

/* Footer and contact */
.editorial .site-footer{margin-top:120px;border-top:1px solid var(--line);background:transparent}
.contact{padding:96px 0 56px}
.contact-kicker{margin:0;color:var(--muted)}
.contact-mail{display:block;width:fit-content;max-width:100%;margin-top:24px;font-family:var(--display);font-weight:900;font-size:clamp(30px,6.4vw,104px);line-height:1.05;letter-spacing:-.04em;overflow-wrap:anywhere;transition:color .2s}
.contact-mail:hover{color:var(--accent)}
.contact-links{display:flex;flex-wrap:wrap;gap:4px 28px;margin-top:28px}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px 24px;flex-wrap:wrap;padding:20px 0 32px;border-top:1px solid var(--line);color:var(--muted)}
.footer-bottom .footer-links{display:flex;flex-wrap:wrap;gap:4px 24px}
.footer-bottom .footer-links a{display:inline-flex;align-items:center;min-height:44px}
.footer-bottom .footer-links a:hover{color:var(--accent)}

/* Image zoom (created by site.js) */
.image-dialog{width:fit-content;max-width:95vw;max-height:94vh;padding:0;border:0;background:transparent;overflow:visible}
.image-dialog::backdrop{background:#F3F5EFF2}
.image-dialog img{max-width:90vw;max-height:85vh;object-fit:contain}
.image-close{position:absolute;top:-52px;right:0;width:44px;height:44px;border:0;background:none;font-size:30px;color:var(--text)}

/* Motion preferences */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body.editorial *,body.editorial *::before,body.editorial *::after{animation:none!important;transition:none!important}
}

/* Responsive */
@media (max-width:1100px){
  .g-row{grid-template-columns:260px minmax(0,1fr) 112px}
  .article-layout{grid-template-columns:minmax(0,1fr);gap:24px}
  .article-index{position:static;flex-direction:row;flex-wrap:wrap;gap:4px 20px}
  .article-index>span{width:100%;margin-bottom:0}
}
@media (max-width:980px){
  .detail-brief{grid-template-columns:minmax(0,1fr)}
  .arch-row{grid-template-columns:150px minmax(0,1fr)}
  .about-layout{grid-template-columns:minmax(0,1fr)}
  .about-side{position:static;max-width:360px}
  .experience-entry{grid-template-columns:minmax(0,1fr);gap:12px}
  .experience-date{flex-direction:row;gap:8px}
  .role{grid-template-columns:minmax(0,1fr);gap:12px}
  .role-when{flex-direction:row;align-items:center;flex-wrap:wrap}
  .gantt{min-width:0}
  .g-row{grid-template-columns:minmax(0,1fr);min-height:0}
  .g-axis .g-label,.g-axis .g-status,.g-status{display:none}
  .g-axis{padding:0 16px}
  .g-label{padding:14px 16px 6px}
  .g-child .g-label{padding-left:28px}
  .g-track{min-height:30px;margin:0 16px 14px}
  .g-axis .g-track{min-height:40px;margin-bottom:0}
  .g-tick{transform:none;font-size:10px}
  .g-note{padding:12px 16px}
}
@media (max-width:760px){
  :root{--gutter:20px}
  .editorial .header-inner{min-height:72px;flex-wrap:wrap}
  .editorial .nav-toggle{display:block}
  .editorial #site-nav{display:none;width:100%;flex-direction:column;align-items:stretch;gap:0;padding:8px 0 16px;border-top:1px solid var(--line)}
  .editorial #site-nav.open{display:flex}
  .editorial #site-nav a{min-height:48px;border-bottom:1px solid var(--line)}
  .editorial .nav-contact{padding-left:0;border-left:0}
  .owner-nav-divider{display:none}
  .hero-lines{grid-row:1/3}
  .flow-labels,.flow-nodes{display:none}
  .profile{grid-template-columns:minmax(0,1fr);gap:24px;padding:28px 0 44px}
  .profile-photo{grid-row:1;justify-self:start;max-width:150px;padding:8px}
  .profile-name{margin-top:18px}
  .intro{font-size:16px}
  .stat{padding:20px}
  .sec-head{padding-top:72px}
  .sec-side{align-items:flex-start;text-align:left}
  .archive-row{grid-template-columns:36px minmax(0,1fr)}
  .archive-side{grid-column:2;align-items:flex-start}
  .archive-meta{align-items:flex-start;text-align:left;padding-top:0}
  .page-head{padding-top:48px}
  .page-title-row p{text-align:left}
  .g-tick:nth-child(even){display:none}
  .detail-brief{padding:22px}
  .reading-theme-content{padding-left:0}
  .about-skill{grid-template-columns:minmax(0,1fr)}
  .role{padding:32px 0}
  .cap-card{padding:20px}
  .arch-row{grid-template-columns:minmax(0,1fr);padding:18px 20px}
  .arch-row+.arch-row::before{left:30px}
  .arch-row+.arch-row::after{left:26px}
  .outside-teaser{margin-top:72px;padding:20px}
  .role-projects{padding:2px 16px}
  .role-projects a{grid-template-columns:minmax(0,1fr) 20px}
  .rp-period{grid-column:1}
  .rp-arrow{grid-column:2;grid-row:1}
  .pc-body{padding:20px 20px 12px}
  .pc-title .t-head{font-size:21px}
  .contact{padding-top:72px}
  .editorial .site-footer{margin-top:72px}
}
