/* pierrezebouni.com v41, from Pierre's Figma Frames 16, 17, 18 (computer, 1440 wide), 19 and 20 (iPhone, 402 wide).
   Ground #E9E9E9 (Frames 16, 19 and 20), on project pages too. Ink #101010. Blue #0080FF.
   Every size runs smoothly from its iPhone value to its computer value: fl(a,b) in the source is a at 402 wide and
   b at 1440 wide, and stays within the two (it is written out as clamp() when the site is built).
   Type: Alumni Sans only, asked for first by every page and held back until it has arrived, so it never blinks. */
@font-face{font-family:'Alumni Sans';src:url(/fonts/alumni-sans-wght.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:block}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:clip}
body{margin:0;min-height:100vh;overflow-x:clip;background-color:#E9E9E9;color:#101010;font-family:'Alumni Sans','Arial Narrow',sans-serif;font-weight:300;font-size:clamp(14px,11.289px + 0.674vw,21px);line-height:clamp(16px,12.514px + 0.867vw,25px);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
p,h1,h2,figure,dl,dd,ul{margin:0}
ul{padding:0;list-style:none}
h1,h2{font-weight:inherit;font-size:inherit}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-align:inherit}
:focus{outline:none}
:focus-visible{outline:1px solid #0080FF;outline-offset:3px}
::selection{background:#0080FF;color:#F5F5F5}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
[hidden]{display:none !important}

/* before Portfolio is pressed the home page holds still: nothing to scroll, no elastic slide */
html.hm:not(.pf-open),html.hm:not(.pf-open) body{overflow:hidden;overscroll-behavior:none;height:100%}
@media (hover:none),(pointer:coarse){html.hm:not(.pf-open) body{touch-action:none}}

/* the name: Bold 33 at 18 by 9 on a computer, Bold 21 at 11 by 5 on an iPhone; it stays at the top of the screen */
.top{position:sticky;top:0;z-index:40;height:clamp(36px,26.318px + 2.408vw,61px);padding:clamp(5px,3.451px + 0.385vw,9px) clamp(11px,8.289px + 0.674vw,18px) 0;background-color:inherit}
.who{display:inline-block;font-weight:700;font-size:clamp(21px,16.353px + 1.156vw,33px);line-height:clamp(25px,19.191px + 1.445vw,40px);text-transform:uppercase;white-space:nowrap}

/* the About: Light 21 on 25, 455 wide, first line 109 from the top (Frame 16); on the iPhone Frame 19 drew Light 12 on 12,
   242 wide, first line 62: the type is now a little larger there (14 on 16) and the column widens with it (280) */
.page{position:relative}
.about{padding:clamp(26px,17.48px + 2.119vw,48px) clamp(11px,8.289px + 0.674vw,18px) 7px}
.about p{max-width:clamp(280px,212.225px + 16.859vw,455px);line-height:clamp(16px,12.514px + 0.867vw,25px)}
.about p+p{margin-top:clamp(14px,13.613px + 0.096vw,15px)}

/* the Portfolio band: under the About, then under the name once open. It slips away while scrolling down
   through the work and slides back as soon as the page is scrolled up */
.pf{position:sticky;top:clamp(36px,26.318px + 2.408vw,61px);z-index:30;display:flex;align-items:flex-start;height:clamp(33px,22.931px + 2.505vw,59px);padding:clamp(5px,3.451px + 0.385vw,9px) clamp(12px,5.029px + 1.734vw,30px) 0 clamp(11px,8.289px + 0.674vw,18px);background-color:#E9E9E9;color:#0080FF;line-height:clamp(16px,12.514px + 0.867vw,25px);transition:transform .8s cubic-bezier(.45,0,.2,1)}
html.pf-open .pf.away{transform:translateY(-100%)}
.pf-go{display:inline-flex;align-items:baseline;white-space:nowrap}
.chev{display:inline-block;width:clamp(7px,5.451px + 0.385vw,11px);transition:transform .45s cubic-bezier(.65,0,.15,1)}
html.pf-open .pf-go .chev{transform:translate(-1px,2px) rotate(90deg)}
html.pf-open.closing .pf-go .chev{transform:none}

/* the work: two columns of 720 by 550 at 1440, no gaps; the last one keeps the same size; one column on phones.
   No frame was drawn for the open work on an iPhone, so the captions follow the project page (Frame 20): set 12 from
   the edge like its words, the name Bold 16 on 18 like Project Gallery and the place Light 14 on 16 like its text.
   On a computer they are those of Frame 17: Bold 25 and Light 21, 19 from the edge */
.grid{display:none;grid-template-columns:repeat(2,minmax(0,1fr))}
html.pf-open .grid{display:grid;align-content:start}
.tile{position:relative;display:block;aspect-ratio:720/550;overflow:hidden;background:#D9D9D9}
.tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.tile::after{content:'';position:absolute;left:0;right:0;bottom:0;height:56.55%;background:linear-gradient(to top,rgba(16,16,16,.4),rgba(16,16,16,0));pointer-events:none}
.cap{position:absolute;z-index:1;left:clamp(12px,9.289px + 0.674vw,19px);right:clamp(12px,9.289px + 0.674vw,19px);bottom:clamp(9px,7.451px + 0.385vw,13px);color:#F5F5F5;pointer-events:none}
.cap b{display:block;font-weight:700;font-size:clamp(16px,12.514px + 0.867vw,25px);line-height:clamp(18px,13.74px + 1.06vw,29px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cap span{display:block;font-weight:300;font-size:clamp(14px,11.289px + 0.674vw,21px);line-height:clamp(16px,12.514px + 0.867vw,25px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (hover:hover){.tile:hover img{transform:scale(1.025)}}
@media (max-width:640px){.grid{grid-template-columns:minmax(0,1fr)}}

/* project pages (Frames 18 and 20): the landing's ground and ink, the name over the cover, the story in columns */
body.proj{background-color:#E9E9E9;color:#101010}
body.proj .top{position:fixed;left:0;right:0;color:#F5F5F5;background-color:rgba(16,16,16,0);transition:background-color .35s ease}
body.proj .top.solid{background-color:#E9E9E9;color:#101010}
body.proj .top:not(.solid) .who{text-shadow:0 0 16px rgba(0,0,0,.25)}
.hero{position:relative;aspect-ratio:1440/819;overflow:hidden;background:#D9D9D9}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;cursor:zoom-in}
.hero:after{content:'';position:absolute;left:0;right:0;top:0;z-index:1;height:clamp(90px,66.763px + 5.78vw,150px);background:linear-gradient(rgba(16,16,16,.42),rgba(16,16,16,0));pointer-events:none}
/* Project Gallery: Bold 21 with a 30 by 60 chevron, 43 from the right (Frame 18); on the iPhone Bold 16 (Frame 20 drew 14) and 16 by 36 */
.pgal{position:absolute;right:clamp(14px,2.769px + 2.794vw,43px);top:50%;z-index:2;display:flex;align-items:center;gap:clamp(12px,9.676px + 0.578vw,18px);transform:translateY(-50%);color:#F5F5F5;font-weight:700;font-size:clamp(16px,14.064px + 0.482vw,21px);line-height:clamp(18px,16.838px + 0.289vw,21px);text-align:right;text-shadow:0 0 18px rgba(0,0,0,.4)}
.pgal svg{display:block;width:clamp(16px,10.578px + 1.349vw,30px);height:clamp(36px,26.705px + 2.312vw,60px);fill:none;stroke:currentColor;stroke-width:1.6;filter:drop-shadow(0 0 7px rgba(0,0,0,.4));transition:transform .35s cubic-bezier(.22,1,.36,1)}
.pgal:hover svg{transform:translateX(4px)}
/* on light covers the name and Project Gallery turn dark; the cover is cropped differently on a phone, so it is judged twice */
@media (min-width:641px){
  body.proj.dark-name .top:not(.solid){color:#101010}
  body.proj.dark-name .top:not(.solid) .who{text-shadow:none}
  .hero.ink-top:after{display:none}
  .hero.ink-pg .pgal{color:#101010;text-shadow:none}
  .hero.ink-pg .pgal svg{filter:none}
}
@media (max-width:640px){
  body.proj.m-dark-name .top:not(.solid){color:#101010}
  body.proj.m-dark-name .top:not(.solid) .who{text-shadow:none}
  .hero.m-ink-top:after{display:none}
  .hero.m-ink-pg .pgal{color:#101010;text-shadow:none}
  .hero.m-ink-pg .pgal svg{filter:none}
}
/* on a computer it only shows while the pointer is over the cover; on touch screens it stays */
@media (hover:hover) and (pointer:fine){
  .pgal{opacity:0;transition:opacity .45s ease}
  .pgal span{transform:translateX(10px);transition:transform .6s cubic-bezier(.22,1,.36,1)}
  .hero:hover .pgal,.pgal:focus-visible{opacity:1}
  .hero:hover .pgal span{transform:none}
}

/* the story (Frame 18 grid: three columns of 440, 50 and 20 between them, 18 and 31 at the edges). Each row is
   composed from what its words say and the pictures that show it: words in one column and two pictures cut to the
   same upright box (Frame 18); words beside pictures kept at their own shape; pictures across the whole width with
   the words above them; or words, picture, words. Pictures in one line share one height and keep their shape. */
.story{padding:31px 31px 0 18px}
.row{display:grid;grid-template-columns:minmax(0,440fr) 50px minmax(0,440fr) 20px minmax(0,440fr);align-items:start;margin-bottom:30px}
.row.wide{row-gap:30px}
.c1{grid-column:1}
.c2{grid-column:3}
.c3{grid-column:5}
.c12{grid-column:1/4}
.c23{grid-column:3/6}
.all{grid-column:1/6}
.words,.media{grid-row:1;min-width:0}
.row.wide .media{grid-row:2}
.words.c3{text-align:right}
.words p+p{margin-top:15px}
.facts{display:flex;flex-wrap:wrap;margin-bottom:19px}
.facts span{white-space:nowrap}
.facts span:nth-child(1){min-width:6.67em}
.facts span:nth-child(2){min-width:7.19em}
.facts b{font-weight:700}
.media.two{display:grid}
.row.a .media.two{grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}
.row.b .media.two{grid-template-columns:minmax(0,1fr) 50px minmax(0,1fr)}
.media.two figure:last-child{grid-column:3}
.media.two figure{aspect-ratio:440/520}
.grp{display:flex;align-items:flex-start;gap:20px}
.grp .ln{display:contents}
.media figure{position:relative;overflow:hidden;min-width:0;background:#D9D9D9}
.media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;cursor:zoom-in}
.media img.box{inset:auto;max-width:none}
.media img.whole{object-fit:contain}

.pn{display:flex;justify-content:space-between;gap:24px;padding:120px 31px 40px 18px}
.pn b{font-weight:700}
.pn a{transition:color .2s ease}
.pn a:hover{color:#0080FF}
.pn .nx{text-align:right}

/* the story unrolls while it is scrolled: each picture opens from its top edge like a sheet being unrolled,
   settling as it opens, and each paragraph rises gently into place. Tied to the scroll where the browser can */
@keyframes unroll{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes settle{from{transform:scale(1.07)}to{transform:none}}
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes drift{to{transform:translateY(9%)}}
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion:no-preference){
    body.proj .media figure{animation:unroll linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
    body.proj .media.two figure:last-child,body.proj .grp figure + figure{animation-range:entry 22% entry 100%}
    body.proj .media figure img{animation:settle linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
    body.proj .words > *{animation:rise linear both;animation-timeline:view();animation-range:entry 0% entry 150px}
    body.proj .hero img{animation:drift linear both;animation-timeline:scroll(root);animation-range:0px 100vh}
  }
}
.rv .media figure{clip-path:inset(0 0 100% 0);transition:clip-path 1.3s cubic-bezier(.65,0,.15,1)}
.rv .media figure img{transform:scale(1.07);transition:transform 1.8s cubic-bezier(.2,.7,.2,1)}
.rv .media figure.in{clip-path:inset(0 0 0 0)}
.rv .media figure.in img{transform:none}
.rv .media.two figure:last-child,.rv .grp figure + figure{transition-delay:.18s}
.rv .words > *{opacity:0;transform:translateY(22px);transition:opacity .9s ease,transform 1.1s cubic-bezier(.2,.7,.2,1)}
.rv .words > .in{opacity:1;transform:none}

/* drawings */
.dhead{display:flex;align-items:baseline;gap:5px;padding:clamp(26px,17.48px + 2.119vw,48px) clamp(11px,8.289px + 0.674vw,18px) clamp(12px,8.902px + 0.771vw,20px)}
.dhead sup{font-size:.7em;line-height:0;color:#6A6A64}
.dwall{display:flex;flex-wrap:wrap;gap:10px;padding:0 clamp(11px,8.289px + 0.674vw,18px) 40px}
.dwall::after{content:'';flex:100 1 0}
.dwall figure{background:#FFFFFF}
.dwall img{width:100%;height:100%;object-fit:cover;cursor:zoom-in}

/* page not found */
.nf{padding:clamp(26px,17.48px + 2.119vw,48px) clamp(11px,8.289px + 0.674vw,18px);min-height:60vh}
.nf p{margin-bottom:15px}
.nf a{color:#0080FF}

/* gallery: on the page's own ground */
.gal{position:fixed;inset:0;z-index:90;visibility:hidden;transition:visibility 0s linear .4s}
.gal.open{visibility:visible;transition-delay:0s}
.gal-bg{position:absolute;inset:0;background:#E9E9E9;opacity:0;transition:opacity .45s ease}
.gal.open .gal-bg{opacity:1}
.gal-ui{opacity:0;transition:opacity .4s ease}
.gal.open .gal-ui{opacity:1;transition-delay:.2s}
.gal-top{position:absolute;z-index:4;left:0;right:0;top:0;height:61px;display:flex;align-items:flex-start;gap:14px;padding:16px 31px 0 18px;pointer-events:none}
.gal-top b{font-weight:700}
.gal-count{color:#6A6A64}
.gal-x{margin-left:auto;pointer-events:auto;color:#0080FF}
.gal-img{position:absolute;opacity:0;transition:opacity .45s ease;user-select:none;-webkit-user-drag:none;will-change:transform,opacity}
.gal-img.on{opacity:1}
.gal-track{position:absolute;inset:0;z-index:1;display:none;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-x}
.gal-track::-webkit-scrollbar{display:none}
.gal-sl{position:relative;flex:0 0 100%;height:100%;scroll-snap-align:center;scroll-snap-stop:always}
.gal-si{position:absolute;user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}
.gal.swipe .gal-track{display:flex}
.gal.swipe .gal-img,.gal.swipe .gal-zl,.gal.swipe .gal-zr{display:none}
.gal-zl,.gal-zr{position:absolute;top:61px;bottom:0;width:50%;z-index:2}
.gal-zl{left:0;cursor:url(/img/ui/arr-l.svg) 14 14,w-resize}
.gal-zr{right:0;cursor:url(/img/ui/arr-r.svg) 14 14,e-resize}
.gal.single .gal-zl,.gal.single .gal-zr{cursor:zoom-out}
.gal-cap{position:absolute;z-index:3;left:0;right:0;bottom:14px;text-align:center;color:#6A6A64;padding:0 20px;pointer-events:none}
@media (hover:none),(pointer:coarse){.gal-open{overflow:hidden}.gal-zl,.gal-zr{display:none}}

/* tablets in portrait and phones (Frame 20): 12 at the edges. Words and two cut pictures keep Frame 20: the words in
   a column of 199 on a 402 iPhone, the pictures in one of 162, 17 between, sides alternating. Every other row runs
   the full width, words then pictures (pictures first when they lead on a computer); pictures too wide to share a
   line follow one another, each whole. A quotation sits in the right hand column of 199, set right like every
   text on the right */
@media (max-width:900px){
  .story{padding:2.985vw 2.985vw 0}
  .row{display:flex;flex-direction:column;align-items:stretch;gap:4.23vw;margin-bottom:8vw}
  .row.wide{row-gap:4.23vw}
  .row.side.b .media{order:-1}
  .words.c3{text-align:left}
  .words.q{margin-left:calc((100% - 4.23vw) * 162 / 361 + 4.23vw);text-align:right}
  .row.pair.b .words.c3{text-align:right}
  .row.pair,.row.trio{display:grid;grid-template-columns:minmax(0,199fr) 4.23vw minmax(0,162fr);gap:0}
  .row.pair.b{grid-template-columns:minmax(0,162fr) 4.23vw minmax(0,199fr)}
  .row.pair.a .words,.row.trio .words.c1{grid-column:1;grid-row:1}
  .row.pair.a .media,.row.trio .media{grid-column:3;grid-row:1}
  .row.pair.b .media{grid-column:1;grid-row:1}
  .row.pair.b .words{grid-column:3;grid-row:1}
  .row.trio .words.c3{grid-column:1/4;grid-row:2;margin-top:4.23vw}
  .media.two{grid-template-columns:minmax(0,1fr) !important;row-gap:2.985vw}
  .media.two figure:last-child{grid-column:auto}
  .media.two figure{aspect-ratio:162/194}
  .grp{flex-direction:column;align-items:stretch;gap:2.985vw}
  .grp .ln{display:flex;align-items:flex-start;gap:2.985vw}
  .row.pair .words,.row.trio .words.c1{padding-top:1.25vw}
  .facts{display:block;margin-bottom:3em}
  .facts span{display:block;min-width:0 !important;margin-bottom:.58em}
  .words p+p{margin-top:1.3em}
  .pn{padding:15vw 2.985vw 10vw}
}

/* phones: the cover fills the screen (Frame 20); one tile per row on the home page */
@media (max-width:640px){
  .hero{aspect-ratio:auto;height:100vh;height:100svh}
  .pn{flex-direction:column}
  .pn .nx{text-align:left}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms;animation-delay:0s;transition-duration:.01ms}
}
