/* Mechanical exhibit direction, revised November 16, 2026.
   Frames belong to image links; captions sit outside. No photo or brand edits. */
.feature{gap:48px;align-items:center}
.feature figure,.project-figure{background:transparent}
.feature figure>a{position:relative;margin:11px;outline:1px solid var(--copper);outline-offset:10px;background:var(--paper)}
.feature figure>a::after{content:none}
.feature figcaption,.project-figure figcaption{border:0;padding:14px 0 0;font-size:12px;line-height:1.5;letter-spacing:0;background:transparent}
.project-context{display:block;font-size:11px;margin-top:3px}


/* Keep the robot detail swap in its existing frame. */
.mechanism-controls{margin-top:20px}
.mechanism-toggle{display:flex;align-items:center;gap:11px;min-height:48px;padding:10px 0;border:0;background:none;color:var(--deep);font:500 12px Montserrat,Arial,sans-serif;cursor:pointer;text-align:left}
.mechanism-toggle[hidden]{display:none}
.mechanism-toggle:focus-visible{outline:3px solid var(--deep);outline-offset:3px}
.detail-icon{display:grid;place-items:center;width:22px;height:22px;border:1px solid var(--deep);border-radius:50%;font-size:18px;font-weight:500;line-height:1;transition:transform .2s}
.showing-detail .detail-icon{transform:rotate(45deg)}

/* Equal footprints, aligned tops: a round specimen and a square fabrication. */
.project-pair{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:80px;max-width:920px;margin:64px auto 0;padding-bottom:12px;align-items:start}
.project-specimen,.project-fabrication{width:100%;max-width:360px;justify-self:center;margin:0;padding:0}
.project-pair .project-photo{position:relative;aspect-ratio:1;margin:11px 11px 24px;overflow:hidden;background:var(--linen);outline:1px solid var(--copper);outline-offset:10px}
.project-specimen .project-photo{border-radius:50%}
.project-fabrication .project-photo{border-radius:0}
.project-fabrication .project-figure::before,.project-fabrication .project-figure::after{content:none}
.project-pair .project-photo img{width:100%;height:100%;aspect-ratio:1;object-fit:cover;transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.project-pair .replica-photo{object-position:50% 52%}
.project-pair .gym-photo{object-position:50% 50%}
.project-figure figcaption{min-height:53px}
.project-pair h3{font-size:24px;line-height:1.2;max-width:430px;margin-top:22px}
.project-pair article>p:last-child{font-size:14px;max-width:410px}
.portfolio-exit{max-width:920px;margin:36px auto 0;text-align:center}
.portfolio-exit .portfolio-link{margin-top:0;margin-bottom:60px}

/* Photo zoom stays inside its fixed frame. Keyboard focus is equally visible. */
@media(hover:hover) and (pointer:fine){
 .project-pair .project-photo:hover img{transform:scale(1.035)}
}
.project-pair .project-photo:focus-visible{outline:3px solid var(--deep);outline-offset:10px}
.project-pair .project-photo:focus-visible img{transform:scale(1.035)}
.feature figure>a:focus-visible{outline:3px solid var(--deep);outline-offset:10px}

@media(max-width:950px){.project-pair{column-gap:48px}}
@media(max-width:650px){
 .feature{gap:28px}
 .portfolio-exit{margin-top:30px}.portfolio-exit .portfolio-link{margin-bottom:44px}
 .project-pair{grid-template-columns:1fr;gap:44px;margin-top:44px}
 .project-specimen,.project-fabrication{max-width:340px}
 .project-figure figcaption{min-height:0}
 .project-pair h3{font-size:25px}
 .project-pair article>p:last-child{max-width:none}
}
@media(prefers-reduced-motion:reduce){
 .project-photo img,.feature-image,.detail-icon,.feature figure>a{transition:none!important}
 .project-pair .project-photo:hover img,.project-pair .project-photo:focus-visible img,.feature figure>a:hover,.feature figure>a:focus-visible{transform:none}
}

/* Compact mobile supporting previews; desktop composition retained. */
.project-figure .project-card-caption{min-height:0}
.project-provenance{min-height:39px}
.project-pair .project-description{font-size:14px;line-height:1.65;max-width:410px;margin:0}
@media(max-width:650px){
 .project-pair{gap:32px}
 .project-specimen,.project-fabrication{max-width:100%}
 .project-figure{display:grid;grid-template-columns:104px minmax(0,1fr);column-gap:22px;align-items:start}
 .project-pair .project-photo{margin:7px;outline-offset:6px}
 .project-pair .project-photo:focus-visible{outline-offset:6px}
 .project-figure .project-card-caption{padding:0;display:flex;flex-direction:column}
 .project-pair .project-card-caption h3{order:0;font-size:20px;line-height:1.2;margin:0 0 10px;max-width:none}
 .project-pair .project-card-caption h3 a{display:inline-block;min-height:44px}
 .project-pair .project-description{order:1;font-size:13px;line-height:1.55;max-width:none}
 .project-provenance{order:2;min-height:0;margin-top:10px;font-size:11px;line-height:1.45}
 .project-provenance .project-context{font-size:10px;margin-top:2px}
}
@media(max-width:360px){
 .project-figure{grid-template-columns:84px minmax(0,1fr);column-gap:18px}
 .project-pair .project-card-caption h3{font-size:19px}
}

/* One mechanism control: text column on desktop; beneath image on mobile. */
.mechanism-copy .mechanism-controls{margin-top:16px}
.mechanism-copy .mechanism-controls + .text-link{margin-top:12px}
@media(max-width:650px){.mechanism-media .mechanism-controls{margin-top:20px}}
