/* Portfolio additions follow the existing paper, ink and Archivo identity. */
.work-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:2.5rem}
.work-intro h2{font-size:clamp(2.1rem,4.5vw,4rem);max-width:13ch}
.work-intro .lede{max-width:29rem;color:var(--stone);font-size:1rem;line-height:1.6}
.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.75rem}
.project-card{min-width:0;border:1px solid var(--line);background:var(--pure);overflow:hidden}
.project-card:first-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}
.project-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}
.project-card:last-child .project-visual{display:flex;align-items:center;background:#e6e2d8}
.project-visual{position:relative;display:block;width:100%;padding:0;overflow:hidden;text-align:left;background:#e9e7e1;isolation:isolate}
.project-visual img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;object-position:center;transition:transform .45s var(--ease)}
.project-card:first-child .project-visual{display:flex;align-items:center;background:#dedcd5}
.project-visual:hover img{transform:scale(1.025)}
.project-visual:focus-visible{outline:3px solid var(--ink);outline-offset:-5px}
.project-preview-label{position:absolute;bottom:1rem;right:1rem;background:var(--paper);color:var(--ink);padding:.55rem .8rem;font-family:'IBM Plex Mono',monospace;font-size:.68rem;letter-spacing:.03em;border:1px solid var(--line);opacity:0;transform:translateY(5px);transition:opacity .2s,transform .2s}
.project-visual:hover .project-preview-label,.project-visual:focus-visible .project-preview-label{opacity:1;transform:none}
.project-copy{padding:1.8rem;display:flex;flex-direction:column;align-items:flex-start;gap:1rem}
.project-meta{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;font-family:'IBM Plex Mono',monospace;font-size:.75rem;letter-spacing:.04em;text-transform:uppercase;color:var(--stone)}
.project-copy h3{font-size:clamp(1.65rem,2.4vw,2.5rem);line-height:1.05}
.project-summary{font-size:1rem;line-height:1.65;max-width:42ch;color:var(--stone)}
.project-tags{display:flex;flex-wrap:wrap;gap:.45rem;margin:.25rem 0 .5rem}
.project-tags span{font-size:.8125rem;line-height:1.4;padding:.35rem .5rem;border:1px solid var(--line)}
.project-copy .btn{margin-top:auto;min-height:46px;justify-content:center;font-size:.72rem;letter-spacing:.04em}
.work-caption{display:flex;gap:1rem;align-items:flex-start;margin-top:1.5rem;font-size:.8rem;line-height:1.6;color:var(--stone)}
.work-caption::before{content:'';flex-shrink:0;width:.4rem;height:.4rem;background:var(--stone);margin-top:.48rem}
.case-open{overflow:hidden}
.case-dialog{width:min(1100px,calc(100% - 2rem));height:calc(100dvh - 2rem);max-height:960px;max-width:none;margin:auto;padding:0;border:1px solid var(--ink);background:var(--paper);color:var(--ink);overflow:hidden;display:none;box-shadow:0 24px 100px #0005}
.case-dialog[open]{display:flex;flex-direction:column;animation:case-enter .26s var(--ease)}
.case-dialog::backdrop{background:rgb(16 16 16 / .78);backdrop-filter:blur(7px)}
.case-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1.4rem;border-bottom:1px solid var(--line);flex-shrink:0;background:var(--paper)}
.case-toolbar-label{font-family:'IBM Plex Mono',monospace;font-size:.75rem;letter-spacing:.04em;text-transform:uppercase}
.case-close{display:inline-flex;align-items:center;justify-content:center;gap:.65rem;min-width:88px;min-height:44px;padding:.5rem .75rem;border:1px solid var(--line);font-size:.8rem}
.case-close svg{width:17px;height:17px}
.case-close:hover{background:var(--ink);color:var(--paper)}
.case-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;scroll-behavior:auto}
.case-heading{padding:2.25rem 2.25rem 1.5rem}
.case-kicker{font-family:'IBM Plex Mono',monospace;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--stone);margin-bottom:1rem}
.case-title{font-size:clamp(2.6rem,6vw,5rem);line-height:.95;letter-spacing:-.035em;max-width:17ch;outline:none}
.case-deck{font-size:1.125rem;line-height:1.6;max-width:58ch;margin-top:1rem;color:var(--stone)}
.case-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem;margin:0 0 2rem;padding:0 0 1.25rem;border-bottom:1px solid var(--line)}
.case-meta dt{font-family:'IBM Plex Mono',monospace;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--stone);margin-bottom:.35rem}
.case-meta dd{font-size:.875rem;line-height:1.5;margin:0}
.case-hero{margin:0 1.4rem;background:#e4e2dd;border:1px solid var(--line)}
.case-hero img{display:block;width:100%;height:auto;object-fit:contain}
.case-hero figcaption,.case-shot figcaption{font-size:.8rem;line-height:1.6;padding:.9rem 1.2rem;color:var(--stone);border-top:1px solid var(--line);background:var(--paper)}
.case-body{padding:1.75rem 2.25rem 3rem}
.case-overview{margin-bottom:2.5rem}
.case-overview h3{font-size:1.5rem;line-height:1.2;margin-bottom:1.25rem;text-transform:none;letter-spacing:-.02em}
.case-overview>dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
.case-overview>dl dt{font-size:.875rem;font-weight:600;margin-bottom:.5rem}
.case-overview>dl dd{font-size:1rem;line-height:1.65;margin:0;color:#4c4a44}
.case-overview-note{font-size:.875rem;line-height:1.65;color:var(--stone);margin-top:1.25rem}
.project-status{display:inline-block;font-family:'IBM Plex Mono',monospace;font-size:.75rem;line-height:1.5;border:1px solid var(--line);padding:.3rem .5rem;margin:0 0 .75rem;color:var(--stone)}
.case-decisions{margin:2.25rem 0;padding-block:1.75rem;border-block:1px solid var(--line)}
.case-decisions h3{font-size:1.5rem;line-height:1.2;letter-spacing:-.02em;text-transform:none;margin-bottom:1.25rem}
.case-decisions>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
.case-decisions h4{font-size:1rem;line-height:1.45;font-weight:600}
.case-decisions p{font-size:.9375rem;line-height:1.7;color:var(--stone);margin-top:.5rem}
@media(max-width:760px){.case-decisions>div{grid-template-columns:1fr;gap:1.25rem}}
.case-standalone .case-overview>h2,.case-standalone .case-decisions>h2{font-size:1.5rem;line-height:1.2;margin-bottom:1.25rem;text-transform:none;letter-spacing:-.02em}
.case-standalone .case-decisions article h3{font-size:1rem;line-height:1.45;font-weight:600;text-transform:none;letter-spacing:normal;margin:0}
.case-standalone .case-prose h2{font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.12;letter-spacing:-.01em;margin-top:3rem;padding-top:1.8rem;border-top:1px solid var(--line)}
.case-standalone .case-prose h3{font-size:1.05rem;font-weight:700;margin-top:1.6rem;line-height:1.45;border:0;padding:0}
.case-standalone .case-views>h2{font-size:1.8rem;margin-bottom:1.5rem}
.case-actions{display:flex;align-items:center;gap:.75rem 1.25rem;flex-wrap:wrap;margin-top:1.5rem}
.case-actions .btn{font-size:.8125rem;min-height:46px}
.case-text-link{display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;min-height:44px;text-decoration:underline;text-underline-offset:.25em}
.case-text-link svg{width:18px;height:18px}
.case-views{scroll-margin-top:1rem}
.case-prose{font-size:1rem;line-height:1.8;overflow-wrap:anywhere;max-width:78ch;margin-inline:auto}
.case-prose>p{margin-block:1.1rem;color:#4c4a44}
.case-prose>p:first-child{margin-top:0}
.case-prose h3{font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.12;letter-spacing:-.01em;margin-top:3rem;padding-top:1.8rem;border-top:1px solid var(--line)}
.case-prose h4{font-family:'Archivo',sans-serif;font-size:1.05rem;font-weight:700;margin-top:1.6rem;line-height:1.45}
.case-prose ul,.case-prose ol{padding-left:1.3rem;margin-block:1.25rem;list-style:disc}
.case-prose ol{list-style:decimal}
.case-prose li{padding-left:.25rem;margin-block:.65rem;color:#4c4a44}
.case-prose strong{color:var(--ink);font-weight:700}
.case-prose a{text-decoration:underline;text-underline-offset:.2em}
.case-prose a:hover{color:#52594b}
.case-prose code{font-family:'IBM Plex Mono',monospace;font-size:.83em}
.case-table-wrap{overflow-x:auto;margin-block:1.5rem;border:1px solid var(--line)}
.case-prose table{width:100%;border-collapse:collapse;font-size:.84rem;line-height:1.55;font-variant-numeric:tabular-nums}
.case-prose th,.case-prose td{padding:.8rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top;min-width:100px}
.case-prose th{background:var(--ink);color:var(--paper);font-weight:600}
.case-views{margin:3rem 0 2rem;border-top:1px solid var(--line);padding-top:1.8rem}
.case-views h3{font-size:1.8rem;margin-bottom:1.5rem}
.case-shot{margin-block:1.4rem;border:1px solid var(--line);background:#e6e3dc}
.case-shot img{display:block;width:100%;height:auto}
.case-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin-top:2.5rem;border-top:1px solid var(--line);padding-top:1.5rem}
.case-bottom .btn{font-size:.7rem;min-height:46px}
.case-note{font-size:.8rem;color:var(--stone);line-height:1.6;margin-top:1.5rem}
.case-nojs{font-size:1rem;line-height:1.6;border:1px solid var(--line);padding:1rem;margin-block:1rem}
.case-nojs a{text-decoration:underline}
@keyframes case-enter{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}
@media(max-width:760px){.work-intro{align-items:flex-start;flex-direction:column;gap:1.2rem}.project-grid{grid-template-columns:1fr;gap:1.4rem}.project-card:first-child{display:block;grid-column:auto}.project-copy{padding:1.5rem}.project-preview-label{display:none}.case-heading{padding:2.25rem 1.5rem 1.5rem}.case-body{padding:1.5rem}.case-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}.case-deck{font-size:1.05rem}.case-hero{margin-inline:.75rem}.case-toolbar{padding:.6rem 1rem}.case-prose{font-size:.98rem}.case-bottom{align-items:stretch;flex-direction:column}.case-bottom .btn{justify-content:center}}
@media(max-width:480px){.case-dialog{width:100%;height:100dvh;max-height:none;margin:0;border:0}.case-heading{padding-inline:1.25rem}.case-body{padding-inline:1.25rem}.case-toolbar{padding-top:max(.6rem,env(safe-area-inset-top))}.case-body{padding-bottom:max(2rem,env(safe-area-inset-bottom))}.case-toolbar-label{font-size:.62rem}.project-copy .btn{width:100%}}
/* Keep the first project screen useful on a phone. */
@media(max-width:760px){.project-card:last-child{display:block;grid-column:auto}.case-heading{padding:1.5rem 1.25rem 1.25rem}.case-kicker{font-size:.75rem;margin-bottom:.65rem}.case-title{font-size:clamp(2.5rem,8vw,4rem)}.case-deck{font-size:1rem;margin-top:.75rem}.case-meta{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-bottom:1.5rem}.case-overview>dl{grid-template-columns:1fr;gap:1.1rem}.case-overview>dl dt{margin-bottom:.25rem}.case-actions{gap:.5rem}.case-actions .btn{flex:1;justify-content:center;white-space:nowrap}.case-text-link{width:100%;margin-top:.25rem}.case-toolbar-label{font-size:.75rem;letter-spacing:.015em}.case-hero figcaption,.case-shot figcaption{font-size:.875rem;padding:.75rem .9rem}}
@media(max-width:360px){.case-toolbar-label{max-width:16ch;line-height:1.4}.project-meta{gap:.5rem;font-size:.75rem}.case-meta dd{font-size:.8125rem}}
@media(prefers-reduced-motion:reduce){.case-dialog[open]{animation:none}.project-visual img,.project-preview-label{transition:none}.project-visual:hover img{transform:none}}
