/* Option B's case studies. The layout and the left column are option A's (site.css):
   the name, the tags, the chapters in small capitals with a plus. What changes, to match
   option B's home page: square pictures with a faint edge that rise in, a next project
   card under the last picture, and the big footer. b.css brings the
   footer and cursor. */

/* pictures: square corners and a faint edge, so dark pictures keep their shape */
.bp .stack img{border-radius:0;outline:1px solid rgba(255,255,255,.09);outline-offset:-1px}
/* each picture rises into place the first time it's on screen (b-case.js) */
.b-in .bp .stack > img,.b-in .bp .stack > .pair{opacity:0;translate:0 48px;
  transition:opacity 1s var(--ease),translate 1.2s var(--ease)}
.b-in .bp .stack > .seen{opacity:1;translate:0 0}

/* the archive: square corners on the covers, like the pictures above */
.bp .index .frame{border-radius:0}

/* the left panel is only as tall as what's in it, so at the end of the page it stops with
   the picture column */
.bp .side{min-height:0}

/* the next project: a card right under the last picture and as wide as the pictures,
   twice the height of Boc's. The words sit on the left: the name, a line about it, and
   "Next project" in orange with a little arrow at the bottom. The right side is a row of
   pictures from that project, which spread apart a touch on hover. */
.b-nextcard{display:grid;grid-template-columns:minmax(220px,30%) minmax(0,1fr);column-gap:10px;height:204px;
  padding:10px;border-radius:0;background:#1a1a1a;color:var(--ink);text-decoration:none;
  transition:background-color .3s ease}
.b-nextcard:hover,.b-nextcard:focus-visible{background:#232323}
.n-text{display:grid;grid-template-rows:auto auto 1fr auto;min-width:0;padding:4px 6px 2px}
.n-name{font-size:clamp(20px,1.8vw,28px);line-height:1.1;letter-spacing:-.02em}
.n-sub{margin-top:4px;font-size:16px;line-height:17px;color:var(--mid)}
.n-name,.n-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.n-foot{grid-row:4;display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.n-label{font-size:12px;line-height:1;letter-spacing:.02em;text-transform:uppercase;color:var(--accent)}
.n-arrow{width:16px;height:16px;flex:none;transition:color .25s ease,rotate .35s var(--ease)}
.b-nextcard:hover .n-arrow{color:var(--accent);rotate:45deg}
.n-pics{display:flex;gap:6px;min-width:0;height:184px;overflow:hidden}
.n-pics img{display:block;flex:1 1 0;min-width:0;height:100%;object-fit:cover;background:#0a0a0a;
  transition:flex-grow .6s var(--ease),scale .8s var(--ease)}
/* on hover the picture under the pointer widens a little, like the home page columns */
.n-pics img:hover{flex-grow:1.6}

/* the footer comes a little sooner here than on the home page */
.bp .b-foot{padding-top:clamp(96px,10vw,160px)}

@media (max-width:860px){
  .b-nextcard{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 120px;row-gap:10px;height:auto}
  .n-text{grid-template-rows:auto auto auto;row-gap:2px}
  .n-foot{grid-row:auto;margin-top:12px}
  .n-pics{height:120px}
}

