/* Portfolio index and selected work */
.archive > .wrap, #work.work-section > .wrap {
  --edge:clamp(16px,2.8vw,60px);
  width:min(1720px,calc(100% - 2 * var(--edge)));
}
.archive { padding-block:clamp(16px,2vw,30px) clamp(52px,6vw,100px); }
.archive .archive-header { margin:clamp(20px,3.3vw,54px) 0 clamp(16px,2vw,32px); }
.archive-header h1 { margin:.12em 0 0; }
.archive .filters { padding-bottom:12px; }
.archive .filter-status { margin:10px 0 18px; }
.archive .project-grid {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(32px,4vw,64px) clamp(12px,1.8vw,30px);
}
.archive .project-card { min-width:0; }
.archive .project-card[hidden] { display:none; }
.archive .project-image, #work .project-image { width:100%; overflow:hidden; }
.archive .project-image { aspect-ratio:1.55; }
.archive .project-image img, #work .project-image img {
  display:block; width:100%; height:100%; object-fit:cover;
}
.archive .project-card:nth-child(1 of :not([hidden])) { grid-column:1/-1; }
.archive .project-card:nth-child(1 of :not([hidden])) .project-image { aspect-ratio:2.25; }
.archive .project-caption { display:block; padding-top:12px; }
.archive .project-caption h3 { margin:0; font-size:clamp(22px,2.1vw,36px); line-height:1.12; }
.archive .project-caption h3 a { display:inline-flex; align-items:center; gap:.45em; }
.archive .project-caption h3 a span { font-size:.63em; }
.archive .project-caption p { margin:4px 0 0; max-width:none; font-size:.84rem; line-height:1.45; }
#work .work-heading {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:.85rem; margin-bottom:clamp(16px,2.2vw,36px);
}
.catalogue-button {
  display:inline-flex; align-items:center; justify-content:space-between; gap:1.3rem;
  min-height:48px; padding:.7rem 1.05rem; background:var(--portfolio-accent); color:#152019;
  border:1px solid #667e43; border-radius:3px; font-weight:700; text-decoration:none;
}
.catalogue-button span { font-size:1.35em; line-height:1; }
.catalogue-button:hover { color:#fff; background:#243021; }
#work .sample-grid { display:grid; grid-template-columns:100%; gap:clamp(30px,4vw,78px); }
#work .sample .project-image { aspect-ratio:2.1; }
#work .sample-body {
  width:100%; display:flex; align-items:center; flex-wrap:wrap;
  gap:0 clamp(14px,2vw,32px); padding-top:.65rem;
}
.sample-title { flex:1 1 auto; }
#work .sample h3 { margin:0; line-height:1.15; font-size:clamp(1.6rem,2.8vw,3rem); }
#work .sample-field { margin:.2rem 0 0; font-size:.85rem; font-weight:500; }
#work .sample-link { margin:0; }
.sample-jumps { display:flex; gap:.25rem; }
.sample-jumps a {
  display:grid; place-items:center; width:44px; height:44px; border-radius:50%;
  border:1px solid #a1a69a; line-height:1; font-size:1.15rem;
}
.sample-jumps a:hover { background:#20271d; color:#fff; }
.selection-end { display:flex; justify-content:center; margin-top:clamp(32px,4vw,68px); }
@media(max-width:900px) {
  .archive .project-grid { grid-template-columns:minmax(0,1fr); }
  .archive .project-card:nth-child(1 of :not([hidden])) .project-image,
  .archive .project-image, #work .sample .project-image { aspect-ratio:1.6; }
}
@media(max-width:600px) {
  .archive > .wrap, #work.work-section > .wrap { --edge:16px; }
  .archive .project-image, #work .sample .project-image {
    width:calc(100% + 2 * var(--edge)); margin-inline:calc(-1 * var(--edge));
  }
  .sample-title { flex-basis:100%; }
  #work .sample-body { justify-content:space-between; row-gap:.35rem; }
  #work .sample-link { align-self:center; }
  #work .work-heading { align-items:start; }
  .work-heading h2 { width:100%; }
}
/* Case covers and gallery plates */
main .case-hero.wrap {
  width:100%; display:block; padding:0; margin:0 auto;
}
main .case-hero .hero-copy {
  width:min(1500px,calc(100% - clamp(32px,6vw,100px))); margin:auto;
  display:grid; align-items:end; grid-template-columns:1.1fr minmax(0,1fr);
  column-gap:clamp(24px,6vw,120px); padding-block:clamp(20px,2.5vw,42px);
}
main .case-hero .hero-copy .eyebrow { grid-column:1/-1; margin:0 0 .35rem; }
main .case-hero .hero-copy h1 { margin:0; font-size:clamp(2.3rem,5.3vw,5.4rem); line-height:1.02; }
main .case-hero .hero-intro { margin:0; font-size:clamp(.9rem,1.1vw,1.1rem); line-height:1.5; }
main .case-hero .case-format { margin:.5rem 0 0; grid-column:2; justify-self:start; }
main .case-hero .hero-visual { width:100%; margin:0; padding:0; }
main .case-hero .hero-visual img { width:100%; height:auto; aspect-ratio:auto; max-height:none; }
main .solution-chapter .solution-heading { display:block; margin:0 0 clamp(12px,1.4vw,24px); }
.solution-chapter .solution-heading h2 { margin:0; max-width:none; }
main .solution-chapter .editorial-gallery { display:grid; grid-template-columns:100%; gap:clamp(24px,3vw,50px); }
.gallery-row {
  display:grid; grid-template-columns:minmax(0,1fr);
  width:min(1640px,calc(100% - clamp(32px,5.6vw,110px))); margin-inline:auto;
  gap:clamp(20px,2.8vw,48px) clamp(12px,1.6vw,28px); align-items:start;
}
.gallery-pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
.gallery-icons { width:min(900px,94%); grid-template-columns:repeat(3,minmax(0,1fr)); }
.gallery-immersive, .gallery-stack[id="full-screen"] { width:100%; }
.editorial-gallery .gallery-row figure { margin:0; width:100%; }
.editorial-gallery .gallery-row a { width:100%; display:block; }
.editorial-gallery .gallery-row img { display:block; width:100%; height:auto; max-height:none; }
.editorial-gallery .gallery-immersive img { height:clamp(45vw,100svh,85vw); object-fit:cover; }
.editorial-gallery .gallery-row figcaption {
  font-size:.8rem; line-height:1.45; padding-top:.45rem;
}
.gallery-immersive figcaption, .gallery-stack[id="full-screen"] figcaption { padding-inline:clamp(16px,2.8vw,60px); }
.editorial-gallery a:focus-visible { outline:3px solid var(--fg); outline-offset:-4px; }
@media(max-width:900px) {
  .gallery-pair { grid-template-columns:minmax(0,1fr); }
  main .case-hero .hero-copy { display:block; }
  main .case-hero .hero-intro { margin:.65rem 0 0; max-width:64ch; }
  .editorial-gallery .gallery-immersive img { height:auto; }
}
@media(max-width:600px) {
  .gallery-row { width:100%; }
  .editorial-gallery .gallery-row figcaption { padding-inline:16px; }
  .gallery-icons { width:calc(100% - 32px); gap:8px; }
  .editorial-gallery .gallery-icons figcaption { padding-inline:0; }
}
@media print {
  .gallery-row figure { break-inside:avoid; }
  .sample-jumps { display:none; }
}
.case-browser,.case-steps,.case-index-link,.neighbours-heading {
  display:flex; align-items:center;
}
.case-browser { gap:clamp(.75rem,2vw,2rem); padding-block:.45rem; border-bottom:1px solid var(--line); }
.case-index-link { gap:.6rem; min-height:44px; font-size:.86rem; font-weight:700; }
.index-symbol { width:14px; height:14px; display:inline-block; flex:none; background:conic-gradient(currentColor 0 0) 0 0 / 6px 6px space; }
.case-position { color:var(--muted); }
.case-steps { gap:.75rem; margin-inline-start:auto; }
.case-steps a {
  display:flex; align-items:center; gap:.55rem; justify-content:center; min-width:44px; min-height:44px;
  font-size:.85rem; font-weight:600; padding-inline:.6rem;
}
.case-steps a[rel="next"] > [aria-hidden] { order:1; }
.case-index-link:hover,.case-steps a:hover,.neighbour-card:hover strong { text-decoration:underline; text-underline-offset:.25em; }
.nav-sr { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.case-neighbours { border-top:1px solid var(--line); padding-top:clamp(20px,3vw,40px); }
.neighbours-heading { justify-content:space-between; gap:.75rem; margin-bottom:1rem; flex-wrap:wrap; }
.neighbours-heading h2 { font-size:clamp(1.65rem,3.4vw,3rem); line-height:1.12; letter-spacing:-.04em; }
.neighbour-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(10px,1.6vw,24px); }
.neighbour-card {
  display:grid; grid-template-columns:minmax(76px,29%) minmax(0,1fr) auto;
  align-items:center; overflow:hidden; border:1px solid var(--line); gap:clamp(.55rem,1.3vw,1.2rem);
  padding-inline-end:clamp(.55rem,1.3vw,1.2rem); border-radius:3px; text-decoration:none;
}
.neighbour-card img { width:100%; height:100%; min-height:100px; aspect-ratio:1.3; object-fit:cover; }
.neighbour-copy { display:grid; gap:.25rem; line-height:1.2; }
.neighbour-label { color:var(--muted); font-size:.78rem; }
.neighbour-card strong { font-size:clamp(1.1rem,2vw,1.75rem); overflow-wrap:anywhere; letter-spacing:-.035em; }
.neighbour-card > [aria-hidden] { font-size:1.3rem; }
@media(max-width:640px) {
  .case-steps { gap:.35rem; }
  .case-steps a { position:relative; border:1px solid var(--line); border-radius:50%; font-size:1.05rem; }
  .case-steps .step-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .neighbour-card { grid-template-columns:minmax(0,1fr) auto; align-content:start; align-items:start; gap:.5rem; padding:0 0 .8rem; }
  .neighbour-card img { grid-column:1/-1; height:auto; min-height:0; aspect-ratio:1.65; }
  .neighbour-copy { padding-left:.6rem; }
  .neighbour-card > [aria-hidden] { margin-right:.55rem; line-height:1; }
}
