/* Adam Fussell. Site styles.
   Type: Caslon for everything read, small tracked capitals for labels, the logo for the name. */

:root{
  --ink:#16140f; --mute:#8a8780; --soft:#55524a; --line:#dcd9d0; --tint:#f4f3ef; --green:#2e4035;
  --disp:"Libre Caslon Display","Adobe Caslon Pro","Big Caslon",Georgia,serif;
  --text:"Libre Caslon Text","Adobe Caslon Pro",Georgia,serif;
  --sans:"Inter Tight","Helvetica Neue",Helvetica,Arial,sans-serif;
  --pad:clamp(20px,3.6vw,60px);
  --gap:clamp(14px,1.7vw,24px);
  --max:1560px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{font-family:var(--text);font-size:17px;line-height:1.55;color:var(--ink);background:#fff;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;
  font-kerning:normal;font-feature-settings:"kern","liga"}
::selection{background:#e4e3de;color:var(--ink)}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
img,video{display:block;max-width:100%}
img{height:auto}
:focus-visible{outline:1px solid var(--ink);outline-offset:4px}
i,em{font-family:var(--text);font-style:italic}
.amp{font-family:var(--text);font-style:italic}

/* small tracked capitals: labels, menu, counts. Nothing else is ever tracked. */
.sc{font-family:var(--sans);font-weight:500;font-size:11px;line-height:1.5;letter-spacing:.13em;text-transform:uppercase}
.mute{color:var(--mute)}
.dash{display:block;width:18px;height:1px;background:currentColor;margin:22px auto}

.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--pad)}

/* pictures fade up as they arrive */
.js img.fd{opacity:0;transition:opacity .7s ease}
.js img.fd.in{opacity:1}
.ph{background:var(--tint)}

/* ---------- header ---------- */
header.top{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:34px 0 32px}
header.top .logo{display:block;flex:none}
header.top .logo img{height:15px;width:auto}
header.top nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px 28px}
header.top nav a{position:relative;padding:4px 0}
header.top nav a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .3s ease}
header.top nav a:hover::after,header.top nav a.on::after{transform:scaleX(1)}
header.top nav .sp{width:14px}
.menu-btn{display:none;padding:6px 0}
.mnav{position:fixed;inset:0;z-index:50;background:#fff;padding:26px var(--pad) 40px;display:flex;flex-direction:column;overflow:auto}
.mnav[hidden]{display:none}
.mnav .mtop{display:flex;justify-content:space-between;align-items:center}
.mnav .mtop img{height:15px;width:auto}
.mnav .mlinks{margin:auto 0;padding:40px 0;display:flex;flex-direction:column;gap:6px}
.mnav .mlinks a{font-family:var(--disp);font-size:44px;line-height:1.15}
.mnav .mlinks .small{margin-top:26px;display:flex;flex-direction:column;gap:10px}
.mnav .mlinks .small a{font-family:var(--text);font-size:19px}

/* ---------- footer ---------- */
footer.bot{border-top:1px solid var(--ink);margin-top:40px;padding:20px 0 54px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;font-size:15px}
footer.bot .fl img{height:13px;width:auto}
footer.bot .fc{text-align:center}
footer.bot .fr{display:flex;justify-content:flex-end;gap:26px}
footer.bot a:hover{opacity:.6}

/* ---------- titles ---------- */
h1.title{font-family:var(--disp);font-weight:400;font-size:clamp(46px,7.4vw,108px);line-height:.98;letter-spacing:-.014em;text-wrap:balance}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding:30px 0 clamp(50px,7vw,96px)}
.page-head .sc{padding-bottom:12px}

/* captions under pictures */
.cap{padding-top:14px}
.cap .sc{display:block}
.cap .sc .k{color:var(--mute);margin-left:10px}
.cap .sc:empty{display:none}
.cap .nm{display:block;font-size:16.5px;line-height:1.4;margin-top:2px}

/* ---------- home: opening picture ---------- */
.opening{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;padding-bottom:26px}
.opening figure{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
.opening figure a{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.opening figure img{width:auto;height:auto;max-width:100%;max-height:calc(100vh - 210px);max-height:calc(100svh - 210px);object-fit:contain}
.opening .ofoot{display:flex;justify-content:space-between;align-items:flex-end;padding-top:16px}
.opening .ofoot .nm{font-size:16.5px}

/* view switch */
.view{display:flex;gap:22px;justify-content:flex-end;padding:22px 0 26px;color:var(--mute)}
.view a{padding-bottom:3px;border-bottom:1px solid transparent;transition:color .2s}
.view a:hover{color:var(--ink)}
.view a.on{color:var(--ink);border-color:var(--ink)}

/* ---------- the flow: composed rows on a 12-column grid ---------- */
.flow{padding:6px 0 30px}
.frow{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap);align-items:start;margin-bottom:clamp(64px,9.5vw,156px)}
.frow figure{min-width:0}
.frow figure a{display:block}
.frow figure img{width:100%;height:auto}
.frow figure .box{overflow:hidden}
.frow figure a img,.frow figure a video{transition:opacity .3s}
.frow figure a:hover img,.frow figure a:hover video{opacity:.9}

/* moving image: plays like a gif, but it's video */
.mv{position:relative;overflow:hidden;background:#0d0d0c}
.mv video,.mv img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mv video{opacity:0;transition:opacity .5s}
.mv video.on{opacity:1}

/* ---------- clients ---------- */
.clients{border-top:1px solid var(--ink);padding:24px 0 clamp(60px,8vw,110px);display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap)}
.clients .sc{grid-column:1/4;padding-top:10px}
.clients p{grid-column:4/13;font-family:var(--disp);font-size:clamp(25px,3.15vw,46px);line-height:1.2;letter-spacing:-.006em;text-wrap:pretty}
.clients p i{font-size:.94em}

/* ---------- sector pages: one lead picture, a title, and a row of more ---------- */
.proj{margin-bottom:clamp(90px,11vw,170px)}
.proj-top{display:grid;grid-template-columns:1fr 1fr;column-gap:var(--gap);align-items:center}
.proj-lead{display:flex;justify-content:center}
.proj-lead img{width:auto;height:auto;max-width:100%;max-height:min(80vh,860px)}
.proj-lead .mv{width:100%}
.proj-title{text-align:center;padding:30px clamp(10px,3vw,50px)}
.proj-title .sc{display:block}
.proj-title h2{font-family:var(--disp);font-weight:400;font-size:clamp(34px,4.5vw,66px);line-height:1.04;letter-spacing:-.008em;margin-top:8px;text-wrap:balance}
.proj-title h2 i{font-size:.95em}
.proj-title .more{display:inline-block;color:var(--mute);border-bottom:1px solid transparent;padding-bottom:2px;transition:color .2s,border-color .2s}
.proj-title a:hover .more,.proj-title .more:hover{color:var(--ink);border-color:var(--ink)}
.proj.flip .proj-lead{order:2}
.proj-row{display:flex;gap:var(--gap);margin-top:clamp(28px,3.4vw,48px);align-items:flex-start}
.proj-row>*{min-width:0}
.proj-row a{display:block}
.proj-row a img,.proj-row a .mv{width:100%}
.proj-row a img{transition:opacity .3s}
.proj-row a:hover img{opacity:.88}
.proj-row .cap .nm{font-size:15px}

/* ---------- project page ---------- */
.story-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:20px;padding:30px 0 clamp(50px,7vw,96px);text-align:center}
.story-head .back{justify-self:start;padding-bottom:14px;display:inline-flex;align-items:center;gap:9px}
.story-head .back .arr{flex:none;margin-top:-1px}
.story-head .cnt{justify-self:end;padding-bottom:14px}
.story-head .back:hover,.next a:hover{opacity:.6}
.story-head .st .sc{display:block;margin-bottom:6px}
.next{border-top:1px solid var(--ink);padding:20px 0 30px;display:flex;justify-content:space-between;gap:24px}
.next a{display:block}
.next a .sc{display:block;color:var(--mute)}
.next .big{display:block;font-family:var(--disp);font-size:clamp(26px,3vw,40px);line-height:1.15;margin-top:4px}

/* ---------- one at a time ---------- */
.folio{display:flex;flex-direction:column;height:calc(100vh - 166px);height:calc(100svh - 166px);min-height:400px}
.stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
.stage img,.stage video{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.stage .zone{position:absolute;top:0;bottom:0;width:50%;z-index:2}
.stage .zone.l{left:0;cursor:w-resize}
.stage .zone.r{right:0;cursor:e-resize}
.fbar{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:16px 0 22px;min-height:78px}
.fbar .cap{padding-top:0}
.fbar .more{display:inline-block;margin-top:8px;color:var(--mute);border-bottom:1px solid var(--line)}
.fbar .more:hover{color:var(--ink);border-color:var(--ink)}

/* ---------- film ---------- */
.reel{margin-bottom:clamp(90px,11vw,170px)}
.reel .mv{aspect-ratio:2.39/1;cursor:pointer}
.reel .mv video{opacity:1}
.reel .rbar{display:flex;justify-content:space-between;align-items:center;padding-top:14px}
.reel .snd,.pbtn{border:1px solid var(--ink);padding:9px 16px 8px;transition:background .2s,color .2s}
.reel .snd:hover,.pbtn:hover{background:var(--ink);color:#fff}
.ft{display:block;cursor:pointer;text-align:left;width:100%}
.ft .mv img{transition:transform 1.2s cubic-bezier(.2,.6,.2,1)}
.ft:hover .mv img{transform:scale(1.02)}
.ft .tri{position:absolute;left:14px;bottom:13px;z-index:2;width:0;height:0;border-left:10px solid #fff;border-top:6px solid transparent;border-bottom:6px solid transparent;opacity:.92;filter:drop-shadow(0 0 6px rgba(0,0,0,.35))}
.ft .cap .sc .k{margin-left:10px}
.film-list{margin-top:18px;display:inline-flex;flex-direction:column;gap:5px}
.film-list button{font-family:var(--text);font-size:16.5px;line-height:1.4;border-bottom:1px solid transparent;text-align:center}
.film-list button:hover{border-color:var(--ink)}
.film-list button .sc{display:block;color:var(--mute);margin-top:1px}

/* the film player */
.player{position:fixed;inset:0;z-index:60;background:#fff;display:flex;flex-direction:column;padding:0 var(--pad)}
.player[hidden]{display:none}
.player .pl-bar,.player .pl-nav{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0}
.player .pl-title .nm{font-family:var(--text);font-size:16.5px;letter-spacing:0;text-transform:none;margin-left:12px}
.player .pl-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
.player .pl-stage .mv{max-width:100%;max-height:100%;background:#000}
.player .pl-stage video{opacity:1}
.player button:hover{opacity:.6}
.player .pl-nav{display:grid;grid-template-columns:1fr auto 1fr}
.player .pl-nav .next-b{justify-self:end}

/* ---------- contact: how to reach him on the left, the short biography on the right ---------- */
.contact{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap);align-items:start;padding:0 0 clamp(70px,9vw,130px);font-size:clamp(17px,1.3vw,19px);line-height:1.6}
.contact .side{grid-column:1/5}
.contact .side>div{border-top:1px solid var(--line);padding:15px 0 22px;line-height:1.5}
.contact .side>div:first-child{border-top-color:var(--ink)}
.contact .sc{display:block;color:var(--mute);margin-bottom:7px}
.contact .side a{border-bottom:1px solid var(--line);transition:border-color .2s}
.contact .side a:hover{border-color:var(--ink)}
.contact .bio{grid-column:6/12;max-width:34em;border-top:1px solid var(--ink);padding-top:15px;text-wrap:pretty}
.contact .bio p+p{margin-top:1em}

/* ---------- smaller screens ---------- */
@media(max-width:900px){
  header.top{padding:24px 0 22px}
  header.top nav{display:none}
  .menu-btn{display:block}
  .frow{display:block;margin-bottom:0}
  .frow figure{margin:0 0 46px!important}
  .view{justify-content:flex-start;padding:14px 0 22px}
  .opening{min-height:0;padding-bottom:10px}
  .opening figure img{max-height:none;width:100%}
  .proj-top{grid-template-columns:1fr}
  .proj.flip .proj-lead{order:0}
  .proj-title{padding:26px 0 6px}
  .proj-lead img{max-height:none;width:100%}
  /* the row of more becomes a strip you slide sideways, every frame the same height */
  .proj-row{--rowh:clamp(150px,44vw,300px);gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;
    margin-right:calc(var(--pad)*-1);padding-right:var(--pad);scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .proj-row::-webkit-scrollbar{display:none}
  .proj-row>*{flex:none!important;width:calc(var(--rowh)*var(--ar));scroll-snap-align:start}
  .proj-row>span{display:none}
  .clients{display:block}.clients .sc{display:block;margin-bottom:14px;padding-top:0}
  .contact{display:block}.contact .bio{margin-top:46px;max-width:none}
  .story-head{grid-template-columns:1fr;text-align:left;gap:8px}
  .story-head .back,.story-head .cnt{justify-self:start;padding-bottom:0}
  .story-head .st{order:2;margin:14px 0 6px}
  .story-head .cnt{order:3}
  footer.bot{grid-template-columns:1fr;gap:10px;justify-items:start}
  footer.bot .fc{text-align:left}
  footer.bot .fr{justify-content:flex-start}
  .folio{height:calc(100svh - 190px)}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js img.fd{opacity:1;transition:none}
}

/* ====================================================================== */
/* A section's projects page (16 Nov 2026): an opener, the leading projects each as a lead picture, a title and a row, then every other project.
   Pictures are whole throughout. Nothing here is cropped to fit a box. */

/* ---------- the opener: the section's name over a ruled list of its leading projects, and one picture ---------- */
.opener{--oh:clamp(520px,calc(100vh - 152px),840px);display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap);height:var(--oh);padding-top:26px;margin-bottom:clamp(96px,12vw,180px)}
@supports(height:100svh){.opener{--oh:clamp(520px,calc(100svh - 152px),840px)}}
.view+.opener{--oh:clamp(520px,calc(100vh - 222px),840px);padding-top:4px}
@supports(height:100svh){.view+.opener{--oh:clamp(520px,calc(100svh - 222px),840px)}}
.op-text{grid-column:1 / span 5;display:flex;flex-direction:column;justify-content:space-between;min-height:0}
.op-text .title{white-space:nowrap;margin-top:-.09em}
.op-list{max-width:calc(80% - var(--gap)*.2)}
.op-list a{display:grid;grid-template-columns:1fr auto;column-gap:16px;align-items:baseline;padding:9px 0 10px;border-top:1px solid var(--line);font-size:17px;line-height:1.35;transition:border-color .25s}
.op-list a:first-child{border-top-color:var(--ink)}
.op-list a .sc{color:var(--mute);transition:color .25s}
.op-list a .sc svg{display:block;margin-bottom:-2px}
.op-list a.on,.op-list a:hover{border-top-color:var(--ink)}
.op-list a.on .sc,.op-list a:hover .sc{color:var(--ink)}
.op-list .op-place{margin-left:12px;white-space:nowrap}
.op-plate{grid-column:6 / span 7;position:relative;min-height:0}
.op-plate figure{position:absolute;top:0;right:0;width:min(100%,calc((var(--oh) - 88px)*var(--ar)));opacity:0;transition:opacity .5s ease;pointer-events:none}
.op-plate figure.on{opacity:1;pointer-events:auto}
.op-plate figure a{display:block}
.op-plate figure img{width:100%;height:auto;background:var(--tint)}

/* ---------- a leading project, in the Art Partner manner: one picture, its title centred beside it, one row of the rest.
   Every lead is one height (--L) and every row one height (--R), so a page of them reads down two lines: the middle of the
   pictures and the middle of the titles. --L is the height at which a 3:2 picture exactly fills its side of the page, so a wide lead
   starts on the same line as the row under it; an upright one sits in the middle of that side ---------- */
.pj{--L:clamp(300px,min(74vh,calc((min(100vw,var(--max)) - var(--pad)*2 - var(--gap))*.3888)),620px);--R:clamp(118px,calc(var(--L)*.36),210px);
  margin-bottom:clamp(100px,12vw,180px);scroll-margin-top:28px}
.pj-top{display:grid;grid-template-columns:7fr 5fr;column-gap:var(--gap);align-items:center}
.pj-lead{justify-self:center;display:block;width:min(100%,calc(var(--L)*var(--ar)));aspect-ratio:var(--ar)}
.pj-lead img{width:100%;height:100%;transition:opacity .3s}
.pj-lead:hover img,.strip a:hover img{opacity:.9}
.pj-title{text-align:center;padding:0 clamp(8px,2vw,36px)}
.pj-title .sc{display:block}
.pj-title>.sc:first-child{margin-bottom:12px}
.pj-title h2{font-family:var(--disp);font-weight:400;font-size:clamp(32px,3.5vw,56px);line-height:1.05;letter-spacing:-.01em;text-wrap:balance}
.pj-title h2 i{font-size:.86em;letter-spacing:-.004em}
.pj .strip-w{--sh:var(--R);margin-top:clamp(26px,3vw,44px)}

/* a project's pictures in a row that slides sideways; a click opens them one at a time */
.strip-w{position:relative;--sh:clamp(96px,9.6vw,150px)}
.strip{display:flex;gap:clamp(10px,1vw,14px);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none}
.strip::-webkit-scrollbar{display:none}
.strip a{flex:none;scroll-snap-align:start}
.strip img{display:block;height:var(--sh);width:auto;background:var(--tint);transition:opacity .3s}
.strip-b{position:absolute;top:0;bottom:0;width:76px;display:flex;align-items:center;padding:0;color:var(--ink)}
.strip-b.r{right:0;justify-content:flex-end;background:linear-gradient(90deg,rgba(255,255,255,0),#fff 64%)}
.strip-b.l{left:0;justify-content:flex-start;background:linear-gradient(270deg,rgba(255,255,255,0),#fff 64%)}
.strip-b svg{transition:transform .25s ease}
.strip-b.l svg{transform:scaleX(-1)}
.strip-b.r:hover svg{transform:translateX(4px)}
.strip-b.l:hover svg{transform:scaleX(-1) translateX(4px)}
.strip-b[hidden]{display:none}
@media(hover:none){.strip-b{display:none}}

/* ---------- every other project: a ruled row each, its name and all its pictures ---------- */
.more-head{display:flex;justify-content:space-between;align-items:baseline;border-top:1px solid var(--ink);padding:14px 0 clamp(28px,3.2vw,46px);scroll-margin-top:24px}
.sheets{margin-bottom:clamp(70px,9vw,130px)}
.sh-row{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap);align-items:start;padding:22px 0 26px;border-top:1px solid var(--line);scroll-margin-top:20px}
.sh-row:first-child{border-top:0;padding-top:0}
.sh-name{grid-column:1 / span 3;display:block;padding-right:10px}
.sh-name .sc{display:block}
.sh-name>.sc:first-child{margin-bottom:6px}
.sh-name .nm{display:block;font-family:var(--disp);font-size:clamp(23px,2.05vw,30px);line-height:1.1;letter-spacing:-.004em;text-wrap:balance}
.sh-name .nm i{font-size:.84em}
.sh-name .n{color:var(--mute);margin-top:10px;transition:color .2s}
.sh-name:hover .n{color:var(--ink)}
.sh-row .strip-w{grid-column:4 / span 9;min-width:0}

/* ---------- or, where faces are the point, a wall of lead pictures with their names ---------- */
.wall{margin-bottom:clamp(60px,8vw,110px)}
.wall-row{display:flex;gap:var(--gap);align-items:flex-start;margin-bottom:clamp(40px,4.6vw,68px)}
.wall-row figure{min-width:0;scroll-margin-top:20px}
.wall-row a{display:block}
.wall-row img{width:100%;height:auto;transition:opacity .3s}
.wall-row a:hover img{opacity:.9}

@media(max-width:900px){
  .opener{display:flex;flex-direction:column;height:auto;padding-top:6px;margin-bottom:72px}
  .op-text{display:contents}
  .op-text .title{order:1;white-space:normal;margin-top:0}
  .op-plate{order:2;margin:26px 0 34px}
  .op-list{order:3;max-width:none}
  .op-plate figure{position:static;width:100%;display:none}
  .op-plate figure:first-child{display:block;opacity:1;pointer-events:auto}
  .pj{--R:clamp(110px,31vw,170px);margin-bottom:84px}
  .pj-top{display:block}
  .pj-lead{width:100%}
  .pj-title{text-align:left;padding:18px 0 0}
  .pj-title>.sc:first-child{margin-bottom:8px}
  .pj-title h2{font-size:clamp(32px,8.6vw,50px)}
  .strip-w{--sh:clamp(110px,31vw,170px);margin-right:calc(var(--pad)*-1)}
  .strip{padding-right:var(--pad)}
  .sh-row{display:block;padding:20px 0 24px}
  .sh-name{padding:0 0 14px}
  .wall{columns:2;column-gap:14px}
  .wall-row{display:contents}
  .wall-row figure{break-inside:avoid;margin:0 0 26px;flex:none!important}
}
@media(prefers-reduced-motion:reduce){
  .op-plate figure,.strip-b svg{transition:none}
}

/* ====================================================================== */
/* A section's other two views (16 Nov 2026): the overview, and the book, which is how a picture opens from any page.
   Pictures are whole in both. */

/* ---------- the overview: every picture in the section, a ruled row to a project, every frame one height ---------- */
.ov-head{padding:2px 0 clamp(30px,3.6vw,54px)}
.ov{border-top:1px solid var(--ink);margin-bottom:clamp(70px,9vw,130px)}
.ov-row{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap);align-items:start;padding:22px 0 36px;border-top:1px solid var(--line);scroll-margin-top:12px}
.ov-row:first-child{border-top:0}
.ov-row .sh-name{position:sticky;top:22px}
.ov-pics{grid-column:4 / span 9;--rh:clamp(104px,10.4vw,166px);display:flex;flex-wrap:wrap;gap:10px}
.ov-pics a{flex:none;display:block;height:var(--rh);width:calc(var(--rh)*var(--ar));background:var(--tint)}
.ov-pics img{display:block;width:100%;height:100%;transition:opacity .3s}
.ov-pics a:hover img{opacity:.88}

/* ---------- a page that fits the window: the book ---------- */
body.fit #main{display:flex;flex-direction:column;height:100vh;min-height:500px}
@supports(height:100svh){body.fit #main{height:100svh}}
body.fit #main>.wrap{flex:1 1 auto;min-height:0;width:100%;display:flex;flex-direction:column}
body.fit header.top{flex:none;padding:28px 0 20px}

/* ---------- the book: the section one page at a time ---------- */
.bk{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.bk-stage{position:relative;flex:1 1 auto;min-height:0}
.bk-stage.l{cursor:w-resize}
.bk-stage.r{cursor:e-resize}
.bk-page{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;column-gap:var(--gap)}
.bk-page.wide{column-gap:clamp(30px,5.4vw,86px)}
.bk-pic{flex:none;margin:0;background:var(--tint);overflow:hidden}
.bk-pic img{display:block;width:100%;height:100%}
/* a project's first page: its name where the left-hand picture would be */
.bk-title{flex:none;min-width:0;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}
.bk-title .sc{display:block}
.bk-title .t>.sc{margin-bottom:14px}
.bk-title h2{font-family:var(--disp);font-weight:400;font-size:clamp(34px,4.5vw,70px);line-height:1;letter-spacing:-.016em;text-wrap:balance}
.bk-title h2:first-child{margin-top:-.13em}
.bk-title h2 i{font-size:.8em;letter-spacing:-.008em}
.bk-page.wide .bk-title h2{font-size:clamp(30px,3.1vw,48px);line-height:1.04;letter-spacing:-.012em}
/* a window taller than it is wide: the name above the picture */
.bk-page.col{flex-direction:column;align-items:flex-start;row-gap:18px}
.bk-page.col .bk-title{display:block}
.bk-page.col .bk-title h2,.bk-page.col.wide .bk-title h2{font-size:clamp(30px,8.4vw,52px);line-height:1.04;margin-top:0}
.bk-page.col .bk-title .t>.sc{margin-bottom:8px}
.bk-page.col .bk-title>.sc{margin-top:8px}
.bk-page.open{display:block}
.bk-page.open .opener{height:100%;padding-top:0;margin-bottom:0}
.bk-end{text-align:center}
.bk-end>.sc{display:block;color:var(--mute);margin-bottom:12px}
.bk-end h2{font-family:var(--disp);font-weight:400;font-size:clamp(46px,7.4vw,108px);line-height:.98;letter-spacing:-.014em}
.bk-end h2 a{transition:opacity .2s}
.bk-end h2 a:hover{opacity:.6}
.bk-end .dash{margin:30px auto 24px}
.bk-end .ends{display:flex;justify-content:center;gap:28px;color:var(--mute)}
.bk-end .ends a{border-bottom:1px solid transparent;padding-bottom:2px;transition:color .2s,border-color .2s}
.bk-end .ends a:hover{color:var(--ink);border-color:var(--ink)}
/* the switch between a section's views, at the foot of the book */
.fbar .view{padding:0;gap:20px}
.bk-bar{flex:none}
.bk-r{display:flex;align-items:center;gap:30px;padding-bottom:3px;white-space:nowrap}
.bk-hint{color:var(--mute)}
.bk-hint[hidden]{display:none}
.bk-nav{display:inline-flex;align-items:center;gap:12px}
.bk-nav #bknum{min-width:9.6em;text-align:center;font-variant-numeric:tabular-nums}
.bk-b{display:inline-flex;align-items:center;justify-content:center;width:34px;height:30px;transition:opacity .2s}
.bk-b.l svg{transform:scaleX(-1)}
.bk-b:hover{opacity:.5}
.bk-b[disabled]{opacity:.2;cursor:default}

@media(max-width:900px){
  .ov-row{display:block;padding:18px 0 28px}
  .ov-row .sh-name{position:static;padding:0 0 14px}
  .ov-pics{--rh:clamp(88px,28vw,150px);gap:8px}
  body.fit header.top{padding:20px 0 12px}
  /* the book's first page is as long as it needs to be on a phone, and scrolls */
  body.fit.bk-open #main{height:auto;min-height:0}
  body.bk-open .bk-stage{flex:none}
  body.bk-open .bk-page.open{position:static}
  .bk-page.open .opener{height:auto;margin-bottom:22px}
  /* the book's foot on a phone: the name on a line of its own, then the way back and the page count */
  .bk-bar{flex-wrap:wrap;align-items:flex-end;gap:8px 16px;min-height:96px;padding:12px 0 14px}
  .bk-bar #bkcap{flex:1 0 100%;min-height:42px}
  .bk-r{flex:1 0 100%;justify-content:space-between;gap:14px;padding-bottom:0}
  .bk-nav{gap:2px}
  .bk-nav #bknum{min-width:0;padding:0 6px}
  .fbar .view{gap:16px}
  .fbar .view a.on,.bk-hint{display:none}
}

/* a short window: the list beside the section's name gives way before it can run into the name */
@media(max-height:700px){
  .bk-page.open .op-list a:nth-child(n+6):not(.all){display:none}
}
@media(max-width:1100px){.bk-hint{display:none}}
