.work-index-page .project-archive, .experience-link { margin-inline: var(--gutter); }
.portfolio-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:1rem; padding-block:clamp(1.25rem,3.5vw,3.2rem) 1.5rem; }
.portfolio-heading h1 { margin:0; font:500 clamp(2.65rem,5.2vw,5rem)/1.08 var(--sans); letter-spacing:-.06em; }
.portfolio-heading em { font:italic 400 1.08em/1 'Instrument Serif',Georgia,serif; color:var(--accent); }
.portfolio-heading .archive-filters { display:flex; align-items:center; flex-wrap:wrap; gap:.2rem; }
.portfolio-heading [hidden], .portfolio-grid [hidden] { display:none; }
.archive-filters button { border:0; background:transparent; padding:.55rem .8rem; min-height:44px; color:var(--muted); font:500 .9rem/1.35 var(--sans); border-radius:2rem; }
.archive-filters button[aria-pressed=true] { color:var(--bg); background:var(--ink); }
.archive-filters button:hover:not([aria-pressed=true]) { color:var(--ink); background:var(--surface); }
.portfolio-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(2.4rem,5vw,4.75rem) clamp(1.3rem,3vw,3rem); }
.portfolio-project { min-width:0; }
.portfolio-project h2 { font-size:clamp(1.5rem,2.45vw,2.5rem); letter-spacing:-.045em; line-height:1.15; margin:.95rem 0 .45rem; font-weight:550; overflow-wrap:anywhere; }
.portfolio-project h2 a:hover { color:var(--accent); }
.portfolio-project p { max-width:54ch; font:400 1rem/1.55 var(--sans); text-wrap:pretty; }
.portfolio-project .project-role { color:var(--muted); margin-top:.35rem; }
.project-links { display:flex; align-items:center; flex-wrap:wrap; gap:1.15rem; margin-top:.65rem; }
.project-links a { display:inline-flex; align-items:center; min-height:44px; font-size:.9375rem; font-weight:500; }
.project-links a:first-child { padding:.45rem 1.05rem; border:1px solid var(--line); border-radius:2rem; }
.project-links a:first-child:hover { background:var(--ink); color:var(--bg); }
.project-links a:last-child,.experience-link a { text-decoration:underline; text-underline-offset:.25em; }
.experience-link { border-top:1px solid var(--line); margin-top:3rem; padding-block:1.25rem; }
.project-art { position:relative; overflow:hidden; isolation:isolate; aspect-ratio:2 / 1; border-radius:.45rem; container-type:inline-size; }
.project-art pre,.project-art code { font-family:var(--mono); text-align:left; }
.art-aside { background:linear-gradient(138deg,#f0c6ac,#dfaa91 58%,#b97962); }
.phone-pair { position:absolute; inset:0; transform:rotate(-8deg); }
.phone-pair img { position:absolute; width:29%; height:auto; border:3px solid #342d2b; border-radius:3.2cqw; box-shadow:.5cqw 2cqw 3cqw #55342650; }
.phone-pair img:first-child { left:18%; top:12%; }
.phone-pair img:last-child { left:51%; bottom:7%; }
.art-react-virtualized-diff { background:linear-gradient(125deg,#cbd4ec,#a6b6da); }
.diff-papers { position:absolute; inset:0; transform:rotate(-5deg); }
.diff-papers>div,.profile-pages>div,.session-window { box-shadow:0 2cqw 3.2cqw #18294332; border-radius:1.15cqw; }
.diff-papers>div { position:absolute; width:64%; padding:2cqw 3cqw; background:#f8f8ff; color:#26334b; }
.diff-papers>div:first-child { top:13%; left:7%; }
.diff-papers>div:last-child { bottom:10%; right:7%; background:#23314f; color:#f3f6fa; }
.diff-papers code,.profile-pages code { display:block; font-size:2.3cqw; padding-bottom:1cqw; border-bottom:1px solid #8690a966; }
.diff-papers pre,.profile-pages pre,.session-window pre { margin:1.25cqw 0 0; font:400 2.45cqw/1.55 var(--mono); }
.diff-papers>div:first-child span { color:#933b49; }.diff-papers>div:last-child span { color:#b5ecc5; }
.art-dsh-hub { background:linear-gradient(130deg,#dbe0bd,#acbc94); }
.profile-pages { position:absolute; inset:0; transform:rotate(-8deg); }
.profile-pages>div { position:absolute; width:43%; height:72%; background:#f5f4dc; border:1px solid #909d78; padding:2cqw; color:#344634; }
.profile-pages>div:nth-child(1){ top:8%; left:18%; background:#6e826e; color:white; }
.profile-pages>div:nth-child(2){ top:18%; left:28%; background:#bfcc9d; }
.profile-pages>div:nth-child(3){ top:28%; left:38%; }
.art-dscode { background:linear-gradient(130deg,#d9bfd1,#af93ad); }
.session-window { position:absolute; inset:14% 12%; transform:rotate(-4deg); background:#332b3c; color:#f4ecf1; padding:2.3cqw 3cqw; }
.session-window>div { display:flex; gap:.7cqw; padding-bottom:2cqw; border-bottom:1px solid #ffffff30; }
.session-window i { width:1.15cqw; aspect-ratio:1; border-radius:50%; background:#c9aabf; }
.session-window pre { font-size:3cqw; line-height:1.7; }.session-window pre b,.session-window pre>span { color:#c6dca5; }
.terminal-caret { display:inline-block; width:1.7cqw; height:2.8cqw; background:#c6dca5; }
@media(max-width:680px) {
  .portfolio-grid { grid-template-columns:1fr; }
  .portfolio-heading { gap:.65rem; padding-bottom:1rem; }
  .portfolio-heading .archive-filters { width:100%; }
  .archive-filters button { padding-inline:.7rem; }
  .project-art { aspect-ratio:1.85; }
}
.portfolio-heading + .archive-count { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
