/* The public catalog and each project article share one image-and-caption layout. */
.hero:has(.suit-portrait){background:var(--paper) url('assets/concrete.svg') repeat;background-size:700px 700px}
.hero .character.suit-portrait{height:90%;left:34%;bottom:6%;z-index:4;mix-blend-mode:multiply}
@media(max-width:650px){.hero .character.suit-portrait{height:min(68%,130vw);left:44%;bottom:15%}}
.portfolio-content .portfolio-page{margin-bottom:48px}
.portfolio-content .portfolio-page:last-child{margin-bottom:0}
.fold-region{scroll-margin-top:16px}
.section-fold{border-top:1px solid var(--line)}
.fold-region:last-child>.section-fold{border-bottom:1px solid var(--line)}
.section-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:144px;padding:30px 0;list-style:none;cursor:pointer}
.section-fold>summary::-webkit-details-marker{display:none}
.fold-summary-copy{min-width:0}
.fold-summary-copy h2{font-size:32px;font-weight:650;line-height:1.3;letter-spacing:-.05em;word-break:keep-all}
.fold-summary-copy p{font-size:13px;line-height:1.8;margin-top:12px;color:var(--muted);word-break:keep-all}
.fold-action{display:flex;align-items:center;gap:16px;flex-shrink:0;font-size:11px;color:var(--muted)}
.fold-symbol{font-size:30px;font-weight:350;color:var(--accent);width:28px;line-height:1;text-align:center}
.fold-symbol::after{content:'+'}
.fold-close-label{display:none}
.section-fold>summary:hover h2{color:var(--ink)}
.section-fold[open]>summary .fold-symbol::after{content:'−'}
.section-fold[open]>summary .fold-open-label{display:none}
.section-fold[open]>summary .fold-close-label{display:inline}
.section-fold>summary:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.portfolio-page .section-fold>.section-pad{padding:32px 0 40px;border:0}
.fold-bottom{display:flex;justify-content:flex-end;padding:0 0 32px}
.fold-bottom button{display:flex;justify-content:space-between;align-items:center;gap:30px;min-height:48px;padding:12px 0;background:none;font-size:12px;border-bottom:1px solid var(--line)}
.fold-bottom button span{color:var(--accent);font-size:20px}
@media(max-width:650px){
 .portfolio-content .portfolio-page{margin-bottom:28px}
 .section-fold>summary{min-height:128px;gap:18px;padding:26px 0}
 .fold-summary-copy h2{font-size:25px}
 .fold-summary-copy p{font-size:12px;margin-top:10px}
 .fold-action{gap:8px;font-size:10px;flex-direction:column-reverse}
 .fold-symbol{font-size:28px}
 .portfolio-page .section-fold>.section-pad{padding:24px 0 28px}
 .fold-bottom{padding-bottom:24px}
}
.portfolio-page .work-header{height:305px;min-height:305px;max-height:none;padding:0;margin-bottom:28px}
.portfolio-page .work-title-block{left:22%;width:78%;top:24px;padding:0}
.portfolio-page .work h2{font-size:clamp(56px,6.5vw,96px)}
.portfolio-page .work-margin{top:24px;font-size:8px;letter-spacing:.6px;white-space:nowrap}
.portfolio-page .work-intro br{display:initial}
.work-taxonomy{margin:30px 0 44px}
.work-taxonomy-label{font-size:11px;font-weight:600;margin-bottom:14px}
.work-group-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;border-bottom:1px solid var(--line)}
.work-group-filters button{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:12px;min-width:0;min-height:100px;padding:14px 0 18px;background:none;border-bottom:2px solid transparent;color:#898984;text-align:left}
.work-group-filters strong{font-size:25px;font-weight:450;letter-spacing:-.055em;line-height:1.2;white-space:nowrap}
.work-group-filters button>span{font-size:10px;font-weight:400;line-height:1.5}
.work-group-filters button[aria-pressed=true]{border-color:var(--accent);color:var(--ink)}
.work-group-filters button[aria-pressed=true] strong{font-size:40px;font-weight:750}
.work-group-filters button[aria-pressed=true]>span{color:var(--accent)}
.work-subfilters{display:flex;flex-wrap:wrap;align-items:center;gap:0 22px;min-height:76px;padding:14px 0;border-bottom:1px solid var(--line)}
.work-subfilters>p{font-size:11px;line-height:1.8;color:var(--muted);word-break:keep-all}
.work-subfilters button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:10px 0;background:none;border-bottom:1px solid transparent;font-size:13px;line-height:1.5;color:var(--muted);white-space:nowrap}
.work-subfilters button>span{font-size:10px;opacity:.6}
.work-subfilters button[aria-pressed=true]{color:var(--ink);font-weight:700;border-color:var(--accent)}
.work-subfilters button[aria-pressed=true]>span{color:var(--accent);opacity:1}
/* Native image proportions and inside-card captions follow the Keelson gallery. */
.work-category{margin:0 0 48px;min-width:0;container-type:inline-size}
.portfolio-page .build-gallery{margin:12px 0 64px}
.portfolio-content .app-capability-list{margin:0 0 44px;scroll-margin-top:140px}
.build-history-body{padding:30px 0 8px}
.build-history-body .build-feature{padding-bottom:36px}
.build-history-body .build-extra{margin-bottom:20px}
.prior-case .case-narrative{padding-top:24px}
.ownership-screens{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:100%;min-width:0}
.ownership-screens .ownership-screen{display:block;width:100%;min-width:0;padding:0;background:none;border-radius:24px;overflow:hidden}
.ownership-screen img{display:block;width:100%;height:auto;object-fit:contain}
.ownership-screen:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.ownership-screen-caption{grid-column:1/-1;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;font-size:11px;line-height:1.8;color:var(--muted);margin:0}
.ownership-screen-caption span{color:var(--accent)}
@media(max-width:650px){.ownership-screens{gap:12px}.ownership-screens .ownership-screen{border-radius:16px}}
.speed,.content-automation{scroll-margin-top:100px}
.speed-chart-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:32px 0 16px}
.speed-chart-heading h3{font-size:19px;line-height:1.5;letter-spacing:-.035em;font-weight:600}
.speed-chart-heading>span{font-size:10px;color:var(--muted);white-space:nowrap}
.portfolio-content .speed-list,.portfolio-content .speed-projects{margin:0}
.portfolio-content .project-list .speed-row{grid-template-columns:minmax(0,1fr) 78px 24px}
.portfolio-content .speed-row .project-row-metric{text-align:right}
.speed-track{display:block;width:100%;height:4px;margin:12px 0 0;background:var(--line)}
.speed-track i{display:block;height:100%;background:var(--accent)}
.speed-long-heading{margin-top:38px}
.section-next{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:48px;margin-top:28px;font-size:13px;padding:12px 0}
.section-next span{color:var(--accent);font-size:20px}
.portfolio-page .content-automation .build-heading>p,.portfolio-page .speed .build-heading>p{max-width:660px;font-size:14px;line-height:1.9}
.content-automation{container-type:inline-size}
.content-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.content-metrics strong{display:block;font-size:34px;font-weight:650;line-height:1.3;letter-spacing:-.05em}
.content-metrics span{display:block;font-size:11px;line-height:1.8;color:var(--muted);margin-top:12px;word-break:keep-all}
.content-process{list-style:none;margin:36px 0 56px;padding:0;border-bottom:1px solid var(--line)}
.content-process li{display:grid;grid-template-columns:90px minmax(0,1fr);gap:24px;padding:22px 0;border-top:1px solid var(--line);align-items:baseline}
.content-process strong{font-size:17px;font-weight:600;line-height:1.5}
.content-process p{font-size:13px;line-height:1.9;color:var(--muted);word-break:keep-all}
.content-channel{margin:0 0 48px}
.content-channel header{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 20px;margin-bottom:22px}
.content-channel h3{font-size:25px;font-weight:650;line-height:1.4;letter-spacing:-.04em}
.content-channel header>a{font-size:12px;color:var(--accent);min-height:44px;display:inline-flex;align-items:center}
.content-channel header>p{flex-basis:100%;font-size:13px;line-height:1.9;color:var(--muted);word-break:keep-all;max-width:660px}
.content-posts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start}
.content-posts .image-button{display:block;width:100%;padding:0;background:none;border-radius:16px;overflow:hidden}
.content-posts img{display:block;width:100%;height:auto;object-fit:contain}
.content-posts .image-button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.content-channel-links{display:flex;flex-wrap:wrap;gap:4px 24px;border-top:1px solid var(--line);padding-top:18px}
.content-channel-links a{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:10px 0;font-size:12px}
.content-channel-links span{color:var(--accent)}
@container(max-width:640px){.content-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.content-posts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 .portfolio-content .project-list .speed-row{grid-template-columns:minmax(0,1fr) 66px 20px}
 .speed-chart-heading h3{font-size:17px}.speed-chart-heading{gap:12px}
 .portfolio-page .content-automation .build-heading>p,.portfolio-page .speed .build-heading>p{font-size:13px}
 .content-process li{grid-template-columns:70px minmax(0,1fr);gap:18px}
 .content-process strong{font-size:16px}.content-process p{font-size:12px}
 .content-channel h3{font-size:23px}.content-channel header{gap:4px 14px}
 .content-posts{gap:12px}
}
.build-gallery .work-entry-copy h4{font-size:clamp(19px,1.8vw,26px);line-height:1.25;margin:0}
.build-gallery .work-entry-copy p{margin-bottom:0}
.work-catalog{--catalog-columns:2;position:relative;display:grid;grid-template-columns:repeat(var(--catalog-columns),minmax(0,1fr));gap:18px;align-items:start}
.work-catalog.is-masonry{display:block}
.work-entry{display:block;width:100%;min-width:0;margin:0;align-self:start}
.work-catalog.is-masonry .work-entry{position:absolute;width:var(--card-width);left:var(--card-left);top:var(--card-top)}
.work-entry-link{position:relative;display:block;width:100%;padding:0;text-align:left;background:none;border:0;border-radius:24px;overflow:hidden;isolation:isolate}
.work-entry-photo{display:block;margin:0;min-width:0}
.work-entry-photo img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.work-entry-copy{position:absolute;inset:auto 0 0;padding:22px;color:#f5f5f1;isolation:isolate;pointer-events:none}
.work-entry-copy::before{content:'';position:absolute;inset:-56px 0 0;background:linear-gradient(to bottom,rgba(12,12,14,0),rgba(12,12,14,.84) 32%,rgba(12,12,14,.96));z-index:-1}
.work-entry-category{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;font-size:10px;line-height:1.6;margin:8px 0 0;color:#dddcd5}
.work-entry-copy h4{margin:0;font-size:clamp(19px,1.8vw,26px);font-weight:650;letter-spacing:-.045em;line-height:1.25;word-break:keep-all;overflow-wrap:anywhere}
.work-entry-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px;line-height:1.6;margin:10px 0 0;word-break:keep-all;color:#eee}
.work-entry-open{position:absolute;right:16px;top:16px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.9);color:var(--ink);font-size:19px;pointer-events:none}
.work-entry-link.is-text{display:flex;align-items:flex-end;min-height:270px;padding:28px;background:#deded7}
.is-text .work-entry-copy{position:static;padding:0;color:var(--ink)}
.is-text .work-entry-copy::before{display:none}
.is-text .work-entry-category{color:var(--accent);margin-top:12px}
.is-text .work-entry-summary{color:var(--muted);display:block;margin-top:16px}
.is-text .work-entry-open{background:none;color:var(--accent)}
.work-entry[data-density="small"] .is-photo .work-entry-copy{padding:14px}
.work-entry[data-density="small"] .is-photo .work-entry-category{display:none}
.work-entry[data-density="small"] .is-photo .work-entry-copy h4{font-size:18px}
.work-entry[data-density="small"] .is-photo .work-entry-summary{font-size:12px;line-height:1.5;margin-top:6px}
@media(min-width:761px) and (hover:hover) and (pointer:fine){
 .is-photo .work-entry-copy,.is-photo .work-entry-open{opacity:0;transition:opacity .2s ease}
 .is-photo:is(:hover,:focus-visible,:focus-within) .work-entry-copy,.is-photo:is(:hover,:focus-visible,:focus-within) .work-entry-open{opacity:1}
}
@media(max-width:760px){
 .is-photo .work-entry-category{display:none}
 .is-photo .work-entry-summary{-webkit-line-clamp:1;margin-top:8px}
 .is-photo .work-entry-copy::before{inset:-40px 0 0}
}
@container(min-width:1050px){.work-catalog{--catalog-columns:3}}
@media(prefers-reduced-motion:reduce){.work-entry-copy,.work-entry-open{transition:none!important}}
.story-preview{display:block;width:min(100%,420px);padding:0;margin:28px 0;background:none;text-align:left}
.story-preview img{width:100%;height:auto;object-fit:contain}
.story-preview>span{display:flex;justify-content:space-between;padding:12px 0;font-size:11px;border-bottom:1px solid var(--line)}
.story-preview b{font-weight:400;color:var(--accent)}
.project-article{width:min(100%,1000px);margin:auto;padding:44px 44px 70px}
.project-article .project-head{position:static;min-height:0;padding:0 0 28px}
.project-article .project-head .eyebrow{position:static;writing-mode:horizontal-tb;transform:none;max-height:none;font-size:10px;margin:0 0 22px}
.project-article .project-head h2{font-size:clamp(34px,4vw,60px);line-height:1.2;letter-spacing:-.055em;overflow-wrap:normal;word-break:keep-all}
.project-article .project-desc{font-size:16px;line-height:1.8;max-width:740px;margin-top:22px;word-break:keep-all}
.project-article .project-period,.project-article .project-role{font-size:12px;line-height:1.8;margin:12px 0 0}
.project-meta{margin-top:24px;border-top:1px solid var(--line)}
.project-meta>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:20px;padding:12px 0;font-size:12px;line-height:1.8}
.project-meta dt{font-weight:600}.project-meta dd{margin:0;word-break:keep-all}
.article-cover{margin:0 0 24px}
.article-cover .image-button{width:100%;padding:0;background:none}
.article-cover img{display:block;width:100%;height:auto;max-height:680px;object-fit:contain}
.project-article .gallery-note,.project-article .project-note{margin:0 0 30px;padding:0;background:none;color:var(--muted);font-size:11px;line-height:1.8}
.project-article .case-narrative,.project-article .project-overview,.project-article .project-section{padding:36px 0;background:none}
.project-article .case-narrative>h3,.project-article .case-summary{margin-left:0}
.project-article .case-narrative>h3{font-size:30px;line-height:1.4}
.project-article .case-summary{font-size:15px;line-height:1.9}
.project-article .project-overview p{font-size:15px;line-height:1.9;white-space:pre-line;margin-bottom:22px}
.project-article .project-overview h3{font-size:25px;margin:28px 0 15px}
.project-article .reference-gallery,.project-article .refreshed-gallery{padding:20px 0 0}
.reference-chapter{margin:0 0 58px;padding-top:30px;border-top:1px solid var(--line)}
.reference-chapter header{max-width:720px;margin-bottom:26px}
.app-chapter header{margin:24px 0 0;max-width:720px}
.app-chapter .app-image-caption{font-size:10px;line-height:1.7;color:var(--muted);margin:12px 0 0}
.app-chapter.is-portrait{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr);gap:44px;align-items:center}
.app-chapter.is-portrait .app-chapter-media{width:100%;max-width:320px;justify-self:center}
.app-chapter.is-portrait header{margin:0}
@media(max-width:650px){.app-chapter.is-portrait{grid-template-columns:1fr;gap:26px}.app-chapter.is-portrait .app-chapter-media{max-width:280px}}
.reference-chapter h3{font-size:29px;line-height:1.35;letter-spacing:-.04em;margin:0 0 14px;word-break:keep-all}
.reference-chapter header p{font-size:14px;line-height:1.9;white-space:pre-line;color:var(--muted)}
.reference-images,.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.reference-images.single{grid-template-columns:1fr}
.reference-images .image-button,.gallery-item .image-button{width:100%;padding:0;background:none}
.reference-images img,.gallery-item img,.project-article .evidence-grid img{width:100%;height:auto;max-height:740px;object-fit:contain}
.project-article .evidence-grid:has(>.image-button:only-child){grid-template-columns:1fr}
.gallery-item{margin:0}.gallery-item figcaption{font-size:11px;line-height:1.8;color:var(--muted);padding-top:12px}
.project-article .original-records{margin:28px 0 40px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.original-records>summary{padding:22px 0;font-size:13px;cursor:pointer;list-style:none}.original-records>summary>span{float:right;color:var(--accent)}
.project-article .project-end{padding:30px 0 0}
@media(max-width:900px){.project-article{padding:32px 28px 50px}}
@media(max-width:650px){
 html{scroll-padding-top:100px}
 .portfolio-shell{display:block;padding:0 18px 60px}
 .portfolio-shell>.index-nav{position:sticky;top:0;display:flex;flex-direction:row;align-items:center;gap:22px;padding:14px 18px;margin:0 -18px 38px;width:calc(100% + 36px);background:var(--paper) url('assets/concrete.svg');border-bottom:1px solid var(--line);overflow-x:auto;z-index:10}
 .index-nav a,.index-nav a[aria-current="location"]{flex:0 0 auto;min-height:44px;padding:6px 0;white-space:nowrap;max-width:none;margin:0;font-size:16px;line-height:1.3}
 .index-nav a[aria-current="location"]{font-size:25.6px}
 .portfolio-content{padding:0;width:100%;min-width:0}
 .portfolio-page .work-header{height:260px;min-height:260px;margin-bottom:24px}
 .portfolio-page .work-title-block{left:20%;width:80%;top:20px}.portfolio-page .work h2{font-size:64px}.portfolio-page .work-margin{font-size:7px}
 .work-taxonomy{margin:24px 0 32px}.work-group-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.work-group-filters button{min-height:88px;gap:10px;padding-bottom:14px}.work-group-filters strong{font-size:18px}.work-group-filters button[aria-pressed=true] strong{font-size:28.8px}.work-group-filters button>span{font-size:9px}
 .work-subfilters{gap:0 17px;min-height:90px}.work-subfilters button{font-size:12px}
 .work-category{margin-bottom:36px}.work-catalog{--catalog-columns:1;gap:18px}
 .work-entry-copy{padding:20px}.work-entry-copy h4{font-size:23px}.work-entry-summary{font-size:13px}.work-entry-link.is-text{min-height:250px}
 .project-article{padding:26px 20px 44px}.project-article .project-head h2{font-size:34px}.project-article .project-desc{font-size:15px}
 .article-cover img{max-height:70svh}
 .reference-images,.gallery-grid{grid-template-columns:1fr}.reference-chapter h3{font-size:25px}
 .project-article .evidence-grid{grid-template-columns:1fr}
 .project-article .case-narrative>h3{font-size:25px}.project-article .case-summary{font-size:14px}
 .story-preview{width:100%;max-width:420px}
 .career-entry,.portfolio-page{scroll-margin-top:100px}
}



/* The same open/closed affordance for supplementary record lists. */
.business-records>summary,.commit-records>summary,.original-records>summary{display:flex;align-items:center;gap:20px;min-height:68px;padding:22px 0;font-size:14px;font-weight:500;line-height:1.6;list-style:none}
.business-records>summary .list-summary-note,.commit-records>summary .list-summary-note{margin-left:auto;max-width:none;font-size:11px;font-weight:400;line-height:1.6;text-align:right;color:var(--muted)}
.business-records>summary .list-disclosure,.commit-records>summary .list-disclosure,.original-records>summary .list-disclosure{flex:0 0 24px;margin:0;font-size:22px;font-weight:400;line-height:1;text-align:right;color:var(--accent)}
.original-records>summary .list-disclosure{margin-left:auto}
.list-disclosure::after{content:'+'}
details[open]>summary>.list-disclosure::after{content:'−'}
.business-records>summary:focus-visible,.commit-records>summary:focus-visible,.original-records>summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(max-width:650px){
 .business-records>summary,.commit-records>summary,.original-records>summary{font-size:13px;gap:12px}
 .business-records>summary .list-summary-note,.commit-records>summary .list-summary-note{max-width:80px;font-size:10px}
}
