/* Portfolio sections share the existing paper, type, and theme tokens. */
.about-context { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(0, 2fr); gap: 12px 35px; padding: 25px 0 0; margin-top: 30px; border-top: 1px solid var(--rule); }
.about-context h2 { font-size: clamp(23px, 2.1vw, 30px); line-height: 1.1; letter-spacing: -.04em; }
.about-context p { max-width: 76ch; font-size: 13px; line-height: 1.8; }
.about-context > a { grid-column: 2; justify-self: start; }
.case-back { display: inline-block; font-size: 11px; margin: 0 0 20px; text-decoration: underline; text-underline-offset: 4px; }
.case-heading h1:focus { outline: none; }
#projects h1, #resume h1 { font-size: clamp(44px, 7.8vw, 118px); letter-spacing: -.065em; }
.project-collection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 35px; }
.project-card { min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0 22px; }
.project-card:hover { text-decoration: none; }
.project-card-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 10px; color: var(--muted); }
.project-card-art { margin: 18px 0 24px; background: #fffaf0; aspect-ratio: 1.8; display: grid; place-items: center; overflow: hidden; }
.project-card-art img { width: 72%; height: 85%; object-fit: contain; }
.project-card-art-scout { background: #27271d; }
.project-card-art-scout img { width: 70%; height: 80%; }
.project-card-copy { display: flex; flex-direction: column; flex: 1; }
.project-card h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.1; letter-spacing: -.05em; }
.project-card p { margin: 14px 0 25px; max-width: 49ch; font-size: 13px; line-height: 1.75; }
.project-card-action { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 12px; }
.project-card-action img { width: 22px; transition: transform .2s ease; }
.project-card:hover .project-card-action { text-decoration: underline; text-underline-offset: 4px; }
.project-card:hover .project-card-action img { transform: translate(3px, -3px); }
[data-theme="dark"] .project-card-action img { filter: invert(92%); }
.resume-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 20px 0 25px; margin-top: 12px; border-bottom: 1px solid var(--rule); }
.resume-toolbar > span { font-size: 10px; color: var(--muted); }
.resume-toolbar > div { display: flex; flex-wrap: wrap; gap: 20px; }
.resume-toolbar .small-link { text-decoration: underline; text-underline-offset: 4px; }
.resume-role { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 2fr); gap: 35px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.resume-meta h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.035em; margin: 10px 0; }
.resume-meta > p:last-child { font-size: 11px; color: var(--muted); }
.resume-role-body h2 { font-size: clamp(23px, 2.5vw, 34px); line-height: 1.2; letter-spacing: -.045em; max-width: 32ch; margin-bottom: 18px; }
.resume-role-body p, .resume-achievements { font-size: 13px; line-height: 1.8; max-width: 78ch; }
.resume-achievements { padding-left: 19px; margin: 20px 0 0; }
.resume-achievements li { padding-left: 5px; margin: 0 0 13px; }
.resume-achievements li:last-child { margin-bottom: 0; }
.resume-research .small-link { margin-top: 18px; text-decoration: underline; text-underline-offset: 4px; }
.resume-capabilities, .resume-education { padding: 30px 0; border-bottom: 1px solid var(--rule); }
.resume-capabilities > h2, .resume-education > h2 { font-size: 27px; letter-spacing: -.04em; line-height: 1.2; margin-bottom: 22px; }
.resume-capabilities > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.resume-capabilities h3, .resume-education h3 { font: 500 14px/1.5 var(--mono); margin: 0 0 10px; }
.resume-capabilities p, .resume-education p:not(.eyebrow) { font-size: 12px; line-height: 1.8; }
.resume-education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.resume-education .eyebrow { margin-bottom: 10px; }
.resume-certs { margin-top: 24px; color: var(--muted); }
.resume-certs span { margin-inline: 8px; }
@media(max-width:700px) {
  #projects h1, #resume h1 { font-size: clamp(32px, 8.8vw, 59px); line-height: 1.05; }
  .about-context { display: block; padding-top: 20px; margin-top: 25px; }
  .about-context p { font-size: 12px; margin: 14px 0; }
  .project-collection { grid-template-columns: 1fr; gap: 30px; margin-top: 25px; }
  .project-card-art { aspect-ratio: 1.6; }
  .project-card-meta { font-size: 9px; }
  .project-card h2 { font-size: 32px; }
  .project-card p { font-size: 12px; }
  .project-card-action { font-size: 11px; }
  .resume-toolbar { gap: 16px; padding-bottom: 22px; }
  .resume-toolbar > span { line-height: 1.8; }
  .resume-role { grid-template-columns: 1fr; gap: 23px; padding: 26px 0; }
  .resume-meta h2 { font-size: 22px; }
  .resume-role-body h2 { font-size: 24px; }
  .resume-role-body p, .resume-achievements { font-size: 12px; }
  .resume-capabilities > div, .resume-education-grid { grid-template-columns: 1fr; gap: 22px; }
  .resume-certs { display: flex; flex-wrap: wrap; gap: 3px 0; }
}
@media(prefers-reduced-motion:reduce) { .project-card-action img { transition: none; } }
