.portfolio-filters{display:flex;flex-wrap:wrap;gap:.6rem;margin:0 0 3rem}.portfolio-filters a{border:1px solid #17181766;padding:.7rem 1rem;font-size:.7rem;font-weight:700}.portfolio-filters a[aria-current=page],.portfolio-filters a:hover{background:#171817;color:#f5f4ee}.artwork-back{padding-top:2rem;padding-bottom:4rem}.artwork-back .text-link{margin-top:0}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3rem 1.5rem}.gallery-grid figure{margin:0}.gallery-image{display:block;aspect-ratio:4/3;overflow:hidden;background:#d6d3ca}.gallery-image img{width:100%;height:100%;object-fit:cover}.gallery-grid figcaption{margin-top:.75rem;font-size:.75rem;line-height:1.5}.gallery-dialog{width:min(96vw,1500px);max-width:none;max-height:96vh;border:0;padding:1rem;background:#e8e6df;color:#171817}.gallery-dialog::backdrop{background:#171817e8}.gallery-dialog-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem}.gallery-dialog button{border:0;background:transparent;color:inherit;cursor:pointer;min-width:44px;min-height:44px}.gallery-dialog-content{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;min-height:40vh}.gallery-dialog-content img{display:block;max-width:100%;max-height:74vh;width:auto;height:auto;object-fit:contain;margin:auto}.gallery-dialog p{margin:.5rem 44px;min-height:1em;font-size:.8rem;line-height:1.5}@media(max-width:700px){.gallery-grid{grid-template-columns:1fr;gap:2rem}.gallery-dialog{width:100%;max-height:100%;height:100%;padding:.5rem}.gallery-dialog-content{grid-template-columns:36px minmax(0,1fr) 36px}.gallery-dialog button{min-width:36px}.gallery-dialog p{margin:.5rem 36px}}

/* Portfolio navigation and image-led overview */
.portfolio-page{padding:4.5rem 7% 7rem}
.portfolio-page-detail{padding-bottom:0}
.portfolio-page-heading{display:flex;align-items:baseline;gap:2rem;margin-bottom:2rem}
.portfolio-page-heading .eyebrow{margin:0}
.portfolio-page-heading h1{font-weight:500;font-size:clamp(2.5rem,6vw,6rem);line-height:1;letter-spacing:-.065em;margin:0}
.portfolio-nav{display:flex;flex-wrap:wrap;align-items:baseline;gap:.55rem 1.4rem;margin:0 0 3.5rem;font-size:.74rem;line-height:1.5}
.portfolio-nav a{display:inline-block;padding:.25rem 0;border-bottom:1px solid transparent}
.portfolio-nav a:hover,.portfolio-nav a[aria-current=page]{border-color:currentColor}
.portfolio-nav a[aria-current=page]{font-weight:700}
.focus-nav-tree,.focus-nav-tree ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;align-items:baseline}
.focus-nav-tree li{display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem .75rem}
.focus-nav-tree ul{border-left:1px solid #17181755;padding-left:.75rem;gap:.4rem .8rem}
.portfolio-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4rem 1.5rem;align-items:start}
.portfolio-tile a{display:block}
.portfolio-tile-image img{display:block;width:100%;height:auto}
.portfolio-tile-image .placeholder-art{min-height:200px}
.portfolio-tile-title{margin-top:1rem;text-align:center}
.portfolio-tile-title h2{font-size:clamp(1.2rem,2vw,1.65rem);font-weight:500;margin:0}
.portfolio-description{max-width:42rem;line-height:1.6}
.portfolio-detail-navigation{padding:2rem 7% 0}
.portfolio-detail-navigation .portfolio-nav{margin-bottom:0}

/* Images keep their intrinsic proportions in every gallery and portfolio card. */
.gallery-grid{display:block;columns:3;column-gap:1.5rem}
.gallery-grid figure{display:inline-block;width:100%;margin:0 0 1.5rem;break-inside:avoid}
.gallery-image{aspect-ratio:auto;overflow:visible;background:transparent}
.gallery-image img{display:block;width:100%;height:auto;object-fit:initial}
.project-image{aspect-ratio:auto;overflow:visible;background:transparent}
.project-image img{display:block;width:100%;height:auto;object-fit:initial}
@media(max-width:700px){
    .portfolio-page{padding:3rem 6% 5rem}
    .portfolio-page-detail{padding-bottom:0}
    .portfolio-page-heading{display:block;margin-bottom:1.5rem}
    .portfolio-page-heading .eyebrow{margin-bottom:1rem}
    .portfolio-nav{gap:.4rem 1rem;margin-bottom:2.5rem}
    .focus-nav-tree,.focus-nav-tree ul{gap:.35rem 1rem}
    .portfolio-tiles{grid-template-columns:1fr;gap:3rem}
    .gallery-grid{columns:1;column-gap:.7rem}
    .gallery-grid figure{margin-bottom:.7rem}
    .portfolio-detail-navigation{padding:2rem 6% 0}
}
.portfolio-motion-control{display:flex;justify-content:flex-end;margin:-2rem 0 1.5rem}
.portfolio-motion-control[hidden]{display:none}
.portfolio-motion-control button{border:0;border-bottom:1px solid #17181766;background:transparent;padding:.3rem 0;font-size:.68rem;color:inherit;cursor:pointer}
.portfolio-motion-control button:disabled{opacity:.6;cursor:default}

/* Overview thumbnails have a stable frame; each photograph remains uncropped. */
.portfolio-tile-image{position:relative;aspect-ratio:4/3;background:transparent;overflow:hidden}
.portfolio-tile-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.portfolio-tile-image.is-layered img{opacity:0;transition:opacity .7s ease-in-out}
.portfolio-tile-image.is-layered img.is-visible{opacity:1}
.portfolio-tile-image.motion-paused img{transition:none}
.portfolio-tile-image .placeholder-art{min-height:0;height:100%}
@media(prefers-reduced-motion:reduce){.portfolio-tile-image.is-layered img{transition:none}}

/* Compact portfolio headings and keyboard-accessible focus dropdowns. */
.portfolio-overview-title{font-size:.68rem;font-weight:700;letter-spacing:.14em;line-height:1.5;margin:0 0 2rem}
.focus-nav-tree>li{position:relative;gap:0 .25rem}
.focus-nav-tree a.focus-nav-ancestor{font-weight:700}
.focus-nav-dropdown{position:relative}
.focus-nav-dropdown summary{cursor:pointer;list-style:none;display:grid;place-items:center;width:1.7rem;min-height:1.7rem;border:1px solid transparent;border-radius:2px;font-size:1rem;line-height:1}
.focus-nav-dropdown summary::-webkit-details-marker{display:none}
.focus-nav-dropdown summary:hover,.focus-nav-dropdown[open]>summary{border-color:#17181755}
.focus-nav-dropdown summary:focus-visible{outline:3px solid #7c4937;outline-offset:3px}
.focus-nav-tree .focus-nav-dropdown>ul{position:absolute;z-index:8;top:100%;left:0;display:block;min-width:12rem;padding:.5rem .75rem;background:#e8e6df;border:1px solid #17181755;box-shadow:0 .5rem 1rem #1718171a}
.focus-nav-tree .focus-nav-dropdown>ul>li{display:flex;align-items:baseline;gap:0 .25rem;padding:.12rem 0}
.focus-nav-tree .focus-nav-dropdown .focus-nav-dropdown>ul{position:static;min-width:0;margin:.25rem 0 .25rem .4rem;padding:.25rem .5rem;border:0;border-left:1px solid #17181755;box-shadow:none}
@media(max-width:700px){
    .portfolio-overview-title{margin-bottom:1.4rem}
    .focus-nav-tree .focus-nav-dropdown>ul{position:static;min-width:10rem;max-width:calc(100vw - 3rem)}
}

/* Compact portfolio controls and integrated navigation menus. */
.portfolio-page:not(.portfolio-page-detail){padding-top:3rem}
.portfolio-overview-title{font-size:1.05rem;letter-spacing:.1em;margin-bottom:1rem}
.portfolio-toolbar{display:flex;align-items:baseline;justify-content:space-between;gap:1rem 2rem;flex-wrap:wrap;margin-bottom:2rem}
.portfolio-toolbar .portfolio-nav{margin:0}
.portfolio-toolbar .portfolio-motion-control{margin:0 0 0 auto;white-space:nowrap}
.portfolio-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:3rem 1.5rem}
.focus-child-tiles{padding-bottom:3rem}
.focus-nav-dropdown summary{display:inline-flex;align-items:center;gap:.4rem;width:auto;min-height:0;padding:.25rem 0;border:0;border-bottom:1px solid transparent;border-radius:0;font:inherit;line-height:1.5}
.focus-nav-dropdown summary svg{display:block;flex:none;transition:transform .2s}
.focus-nav-dropdown[open]>summary svg{transform:rotate(180deg)}
.focus-nav-dropdown summary:hover,.focus-nav-dropdown[open]>summary{border-color:currentColor}
.focus-nav-dropdown summary.focus-nav-ancestor{font-weight:700}
.focus-nav-tree .focus-nav-dropdown>ul{left:0}
@media(max-width:900px){.portfolio-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-grid{columns:2}}
@media(max-width:700px){.gallery-grid{columns:1}.portfolio-page:not(.portfolio-page-detail){padding-top:2rem}.portfolio-tiles{grid-template-columns:1fr}.portfolio-toolbar{gap:.8rem}.portfolio-toolbar .portfolio-motion-control{margin-left:0}.focus-child-tiles{padding-bottom:2rem}}

/* Keep the portfolio header and navigation consistent across views. */
.portfolio-tile-title h2{font-size:1.05rem}
.portfolio-page-detail{padding-top:3rem}
.portfolio-gallery-inline{padding-top:0;border-top:0}
@media(max-width:700px){.portfolio-page-detail{padding-top:2rem}}

/* Work disciplines and software project stories. */
.work-sections{display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;margin:0 0 1.8rem;font-size:.74rem;line-height:1.5}
.work-sections a{padding:.25rem 0;border-bottom:1px solid transparent}
.work-sections a:hover,.work-sections a[aria-current=page]{border-color:currentColor}
.work-sections a[aria-current=page]{font-weight:700}
.software-intro{max-width:58rem;padding:3.5rem 0 2.5rem}
.software-intro h2{font-size:clamp(2.4rem,5vw,5.4rem);line-height:1;letter-spacing:-.06em;font-weight:500;margin:1rem 0 1.5rem}
.software-intro>p:last-child{font-size:clamp(1rem,1.3vw,1.2rem);line-height:1.6;max-width:38rem}
.software-index{display:flex;flex-wrap:wrap;gap:.6rem 1.3rem;padding:1.4rem 0 3rem;font-size:.78rem}
.software-index a{border-bottom:1px solid var(--line);padding:.25rem 0}.software-index a:hover{border-color:currentColor}
.software-project{border-top:1px solid var(--strong-line);padding:2rem 0 5rem;scroll-margin-top:2rem}
.software-heading{display:grid;grid-template-columns:minmax(10rem,1fr) 3fr;gap:1.5rem;align-items:baseline;margin-bottom:2rem}
.software-heading span{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em}
.software-heading h2{font-size:clamp(2rem,4vw,3.8rem);line-height:1.05;letter-spacing:-.05em;font-weight:500;margin:0}
.software-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:3rem}
.software-copy{font-size:.9rem;line-height:1.65}.software-copy h3{font-size:1.2rem;line-height:1.3;font-weight:600;margin:0 0 1.2rem}.software-copy p{margin:0 0 1rem}
.software-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem 1rem;align-content:start}.software-gallery figure{margin:0;min-width:0}.software-gallery figure:first-child{grid-column:1/-1}.software-gallery img{display:block;width:100%;height:auto;background:var(--surface)}.software-gallery a{display:block}.software-gallery a:hover{opacity:.85}.software-gallery figcaption{margin-top:.45rem;font-size:.68rem;line-height:1.4;color:var(--muted)}
@media(max-width:800px){.software-intro{padding-top:2rem}.software-heading,.software-body{grid-template-columns:1fr;gap:1rem}.software-heading{margin-bottom:1.5rem}.software-project{padding-bottom:3.5rem}.software-gallery{margin-top:1rem}}
@media(max-width:480px){.software-gallery{grid-template-columns:1fr}.software-gallery figure:first-child{grid-column:auto}}
