@font-face{font-family:Reading Mono;src:url('assets/portfolio/JetBrainsMono-variable.ttf') format('truetype');font-weight:100 800;font-display:swap}
/* Quiet, text-first reading column inspired by the existing Stanley study. */
.portfolio-body{width:min(620px,calc(100% - 48px));max-width:620px;font-family:Reading Mono,Menlo,monospace;color:#414b58;font-size:13px;line-height:1.85}
.portfolio-body h2,.portfolio-body h3{font:400 15px/1.6 Reading Mono,Menlo,monospace;letter-spacing:0;color:#303b49;margin:0}
.portfolio-body p{font-size:13px;line-height:1.85;color:#505b69;margin:0 0 20px}
.portfolio-body a{border-bottom:1px solid #bac4cf;text-decoration:none}.portfolio-body a:hover{color:#2e5269;border-color:#2e5269;text-decoration:none}
.portfolio-body .bio-section{display:block;padding:96px 0 64px}
.reading-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:25px}
.reading-heading>span{font-size:10px;color:#626e7b}
.bio-note{margin:0 0 20px}.bio-note summary{display:list-item;list-style:none;cursor:pointer;width:fit-content;font-size:13px;padding:0}
.bio-note summary::-webkit-details-marker{display:none}.bio-note summary:hover{background:#edf1f5}
.bio-note[open] summary{color:#697482;font-size:11px;margin-bottom:14px}.bio-note small{font-size:10px;color:#626e7b;display:block;margin-top:-8px;margin-bottom:24px}
.portfolio-body .bio-links{font-size:11px;gap:22px;margin-top:28px}.portfolio-body .bio-links a{padding:0}
.portfolio-body .work-section{padding-top:36px;border-top:1px solid #dce2e8}
.portfolio-body .work-instruction{font-size:11px;color:#626e7b;margin-bottom:28px}
.project-entry{position:relative;padding:23px 0;border-top:1px solid #dce2e8;scroll-margin-top:115px}
.project-detail summary{display:flex;align-items:baseline;gap:16px;list-style:none;cursor:pointer;color:#354757;font-size:13px}
.project-detail summary::-webkit-details-marker{display:none}.project-detail summary:hover .project-name{text-decoration:underline;text-underline-offset:4px}
.project-name{flex:1}.project-year,.project-mark{font-size:11px;color:#626e7b}.project-mark{width:10px;text-align:center}.project-detail[open] .project-mark{font-size:0}.project-detail[open] .project-mark:after{content:'−';font-size:13px}
.portfolio-body .entry-summary{font-size:12px;line-height:1.8;margin:10px 30px 0 0}.portfolio-body .entry-stage{font-size:10px;color:#626e7b;margin:7px 0 0}
.project-entry:has(.project-detail[open])>.entry-summary,.project-entry:has(.project-detail[open])>.entry-stage{display:none}
.project-expanded{padding-top:22px}.portfolio-body .project-expanded p{font-size:12px;line-height:1.85;margin-bottom:18px}.project-expanded strong{font-weight:500;color:#354757}
.portfolio-body .project-scope{border-left:1px solid #afbdcb;padding-left:14px;font-size:11px}
.project-artifacts{margin:28px 0}.project-artifacts:empty{display:none}.project-artifacts figure{margin:0 0 22px}.project-artifacts a{display:block;background:#f0f3f6;padding:12px;border:1px solid #dce2e8;cursor:zoom-in}.project-artifacts img{display:block;width:100%;height:auto;max-height:430px;object-fit:contain}.project-artifacts figcaption{font-size:10px;line-height:1.7;color:#626e7b;margin-top:9px}.project-artifacts.phones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.project-sources{display:flex;gap:14px 22px;flex-wrap:wrap;font-size:11px;margin:24px 0 8px}
.portfolio-body .contact-section{margin-top:48px;padding:36px 0 56px}.portfolio-body .contact-section h2{margin-bottom:20px}.portfolio-body .contact-section p{font-size:12px}.portfolio-body .contact-links{font-size:11px;gap:14px 22px}.portfolio-body .contact-links a{padding:0}.portfolio-body .portfolio-footer{font-size:10px;padding:22px 0 45px}.portfolio-footer a{border:0}
.portfolio-body summary:focus-visible{outline:2px solid #5274c5;outline-offset:5px}
@media(max-width:600px){.portfolio-body{width:calc(100% - 40px)}.portfolio-body .bio-section{padding:65px 0 44px}.reading-heading{display:block}.reading-heading>span{display:block;margin-top:8px}.project-detail summary{gap:10px}.project-name{font-size:12px}.portfolio-body p{font-size:12px}.bio-note summary{font-size:12px}.project-artifacts.phones{gap:8px}.project-artifacts a{padding:6px}.portfolio-body .portfolio-footer{font-size:9px;gap:10px}}
/* Public founder page: the introduction carries the story, projects stay secondary. */
.portfolio-page .stage:has(.sfday){grid-template-rows:auto auto;gap:14px}
.portfolio-page .sfday .intro{pointer-events:auto}.sfday .intro a:hover{text-decoration:underline;text-underline-offset:4px}
.portfolio-body .bio-section{padding:76px 0 42px}
.portfolio-body .founder-lead{font-size:15px;line-height:1.8;color:#354757}
.confetti-link{display:inline-block;font-size:12px;margin:2px 0 27px}
.founder-signals{list-style:none;margin:0;padding:0;font-size:12px;line-height:1.85;color:#505b69}
.founder-signals li{margin:0 0 12px}.founder-signals strong{font-weight:500;color:#354757}
.portfolio-body .work-section{padding-top:30px}.portfolio-body .work-section .reading-heading{margin-bottom:8px}
.portfolio-body .entry-stage{display:none}.project-entry{padding:19px 0}
.portfolio-body .portfolio-footer{margin-top:40px;align-items:center;scroll-margin-top:110px}
.founder-socials{display:flex;gap:22px;font-size:11px}.portfolio-body .founder-socials a{border-bottom:1px solid #bac4cf}
@media(max-width:600px){.portfolio-body .bio-section{padding-top:52px}.portfolio-body .founder-lead{font-size:14px}.founder-signals{font-size:11px}.founder-socials{gap:16px}}
/* A generous scenic opening with a small white mat, without navigation chrome. */
.portfolio-page .stage:has(.sfday){display:block;padding:clamp(30px,6.5vw,94px);min-height:0}
.portfolio-page .sfday{height:calc(100svh - clamp(60px,13vw,188px));min-height:540px;max-height:none}
.scene-caption{position:absolute;left:30px;bottom:28px;z-index:2;color:#f1e5ca;filter:drop-shadow(0 2px 3px #07111c);pointer-events:none}
.scene-caption .sf-clock{display:block;animation:clock-blink 3s steps(1,end) infinite}
.scene-caption svg{display:block;max-width:100%;overflow:visible}
.scene-pause{position:absolute;right:24px;bottom:20px;z-index:2;color:#f1e5ca;background:#101b2940;border:0;border-radius:3px;padding:10px;min-width:38px;min-height:38px;font-size:13px}
.scene-pause:hover{background:#101b2980}
@keyframes clock-blink{0%,75%{opacity:1}76%,100%{opacity:.45}}
.sfday[data-motion-paused=true] .sf-clock{animation:none}
@media(max-width:600px){.portfolio-page .sfday{min-height:480px}.scene-caption{left:20px;bottom:27px}.scene-caption svg{height:10px;width:auto;max-width:calc(100vw - 112px)}.scene-pause{right:12px;bottom:13px}.portfolio-page .sfday .copy{width:78%}}
@media(prefers-reduced-motion:reduce){.scene-caption .sf-clock{animation:none}}
/* Smooth in-page navigation, while honoring reduced-motion preferences. */
html:has(body.portfolio-page){scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html:has(body.portfolio-page){scroll-behavior:auto}}

/* Land the introduction at the top, fully past the scenic cover. */
.portfolio-body section#about{scroll-margin-top:0}
/* A compact index: titles go straight to the original work. */
.link-index{scroll-margin-top:24px}
.portfolio-body .link-group{margin:0 0 32px;scroll-margin-top:24px}
.portfolio-body .link-group h2{font-size:12px;color:#626e7b;margin:0 0 12px}
.direct-links{list-style:none;margin:0;padding:0}
.direct-links li{border-top:1px solid #e0e5eb}
.portfolio-body .direct-links a{display:flex;justify-content:space-between;align-items:baseline;gap:24px;padding:13px 0;border:0;font-size:12px;line-height:1.7;color:#354757}
.portfolio-body .direct-links a:hover>span:first-child{text-decoration:underline;text-underline-offset:4px}
.link-meta{font-size:10px;color:#626e7b;text-align:right;flex-shrink:0}
.link-meta>span{margin-left:7px}
.portfolio-body .bio-section{padding-bottom:32px}
@media(max-width:600px){.portfolio-body .direct-links a{font-size:11px;gap:12px}.link-meta{font-size:9px;max-width:110px;flex-shrink:1;min-width:80px}.link-meta>span{margin-left:3px}}
/* Full linked titles with a consistent, quiet date column. */
.portfolio-body .direct-links a{display:grid;grid-template-columns:minmax(0,1fr) 88px;align-items:baseline;gap:22px}
.direct-links .link-title{min-width:0;overflow-wrap:break-word}
.direct-links .link-meta{min-width:0;max-width:none;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:600px){.portfolio-body .direct-links a{grid-template-columns:minmax(0,1fr) 64px;gap:16px}.direct-links .link-meta{font-size:9px;min-width:0}}
/* Consistent reading scale; the name is the only larger text. */
.portfolio-body{--reading-size:13px}
.portfolio-body p,.portfolio-body .founder-lead,.portfolio-body .confetti-link,.portfolio-body .link-group h2,.portfolio-body .direct-links a,.portfolio-body .direct-links .link-meta,.portfolio-body .portfolio-footer,.portfolio-body .founder-socials{font-size:var(--reading-size)}
.portfolio-body #bio-title{font-size:15px}
@media(max-width:600px){.portfolio-body{--reading-size:12px}.portfolio-body #bio-title{font-size:14px}.portfolio-body .direct-links a{grid-template-columns:minmax(0,1fr) 80px}}
.writing-awards summary{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:22px;padding:13px 0;list-style:none;cursor:pointer;font-size:var(--reading-size);color:#354757;line-height:1.7}
.writing-awards summary::-webkit-details-marker{display:none}
.writing-awards summary:hover>span:first-child{text-decoration:underline;text-underline-offset:4px}
.writing-toggle{margin-left:8px}.writing-awards[open] .writing-toggle{font-size:0}.writing-awards[open] .writing-toggle:after{content:'−';font-size:var(--reading-size)}
.writing-awards-list{list-style:none;padding:0 0 12px 16px;margin:0;border-left:1px solid #dce2e8}
.direct-links .writing-awards-list li{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:22px;border:0;padding:10px 0;font-size:var(--reading-size);line-height:1.7;color:#505b69}
.writing-awards summary:focus-visible{outline:2px solid #5274c5;outline-offset:4px}
@media(max-width:600px){.writing-awards summary,.direct-links .writing-awards-list li{grid-template-columns:minmax(0,1fr) 80px;gap:16px}}

.portfolio-body .plain-index-row{display:grid;grid-template-columns:minmax(0,1fr) 88px;align-items:baseline;gap:22px;padding:13px 0;font-size:var(--reading-size);line-height:1.7;color:#354757}
@media(max-width:600px){.portfolio-body .plain-index-row{grid-template-columns:minmax(0,1fr) 80px;gap:16px}}
