/* One work's page. Every work has the same layout (like her reference site):
   a full screen opening with the title in the work's own type, then the words in a column on the left
   with a large picture on the right, then rows of pictures, the film, and the way on.
   Each page sets its own world: --bg, --ink, --muted, --line, --accent, and the title's font. */
body.work{background:var(--bg);color:var(--ink)}
.work .nav a{color:var(--nav,var(--ink))}

/* waiting for her words, in the work's own accent, and in the font her words will have */
.work .ask{display:block;border:1px dashed var(--accent);border-radius:3px;color:var(--accent);
  font:italic 400 clamp(13px,1vw,16px)/1.5 var(--mono);padding:.7em .9em}
.work dd .ask,.work h3 .ask{display:inline-block;padding:.15em .5em}

/* ---------- the opening: one picture (or the looping video) filling the screen, the title in the middle ---------- */
.hero{position:relative;height:100vh;height:100svh;min-height:520px;overflow:hidden;background:var(--bg);isolation:isolate}
.hero > img,.hero > video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
/* a tall photograph stands in the middle, its edges dissolving into the page */
.hero.tall > img{left:50%;width:auto;max-width:none;aspect-ratio:2/3;transform:translateX(-50%);
  -webkit-mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent)}
@media (max-aspect-ratio:3/4){.hero.tall > img{left:0;width:100%;transform:none;aspect-ratio:auto;-webkit-mask-image:none;mask-image:none}}
/* a little shade under the menu, so it reads on bright pictures */
.hero::before{content:"";position:absolute;z-index:-1;left:0;right:0;top:0;height:24%;background:linear-gradient(rgba(5,4,8,.5),rgba(5,4,8,0));pointer-events:none}
.hero-title{position:absolute;z-index:2;left:var(--gl);right:var(--gr);top:50%;transform:translateY(-50%);margin:0;
  text-align:center;font-weight:400;line-height:.95;font-size:clamp(60px,10.5vw,190px);color:var(--title,var(--ink))}

/* ---------- the words on the left, a large picture on the right ---------- */
.info{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:clamp(32px,6vw,120px);align-items:start;
  max-width:1880px;margin:0 auto;padding:clamp(80px,14vh,170px) var(--gr) clamp(60px,10vh,130px) var(--gl)}
/* a second block further down, the picture on the left and the words on the right */
.info.flip{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:center;padding-top:clamp(40px,8vh,110px)}
@media (max-width:820px){.info,.info.flip{grid-template-columns:minmax(0,1fr)}}
.info.solo{grid-template-columns:minmax(0,1fr);padding-bottom:clamp(30px,6vh,70px)}   /* words only, no picture beside them */
.info-text{min-width:0;padding-left:clamp(0px,1.1vw,22px)}
.w-name{margin:0;font:700 calc(clamp(22px,1.9vw,36px) * var(--k,1))/1.1 var(--mono);text-transform:uppercase;letter-spacing:.005em}
.w-sub{margin:.45em 0 0;font:400 clamp(13px,.95vw,16px)/1.4 var(--mono);color:var(--muted)}
.w-words{--mt0:clamp(24px,3.4vh,38px);margin-top:clamp(24px,3.4vh,38px);font:400 calc(clamp(13px,1.02vw,17px) * var(--k,1))/1.55 var(--mono)}
.w-words p{margin:0 0 1em}
.w-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px clamp(20px,2.4vw,44px);margin:clamp(26px,4vh,44px) 0 0}
.w-facts div{min-width:0}
.w-facts dt{font:700 clamp(11px,.82vw,14px)/1.2 var(--mono);text-transform:uppercase;letter-spacing:.03em}
.w-facts dd{margin:.4em 0 0;font:400 clamp(13px,.95vw,16px)/1.4 var(--mono)}
.w-notes{margin-top:clamp(48px,10vh,120px);display:grid;gap:clamp(26px,4.5vh,46px)}
.w-notes h3{margin:0 0 .55em;font:700 clamp(12px,.9vw,15px)/1.2 var(--mono);text-transform:uppercase;letter-spacing:.03em}
.info-pic{margin:0;min-width:0}
.info-pic img{width:100%;height:auto}

/* ---------- rows of pictures ---------- */
.rows{max-width:1880px;margin:0 auto;padding:0 var(--gr) clamp(60px,10vh,130px) var(--gl);display:grid;gap:clamp(12px,2vw,40px)}
.row-label{margin:0 0 4px;padding-left:clamp(0px,1.1vw,22px);font:700 clamp(11px,.82vw,14px)/1.2 var(--mono);text-transform:uppercase;letter-spacing:.03em}
.row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:clamp(12px,2vw,40px);align-items:start}
@media (max-width:640px){.row{grid-auto-flow:row}}
@media (min-width:641px){.row[style*="--cols"]{grid-template-columns:var(--cols)}}   /* nearly the same shape: one height, edges in line */
@media (min-width:641px){.row.pair{justify-self:center;width:calc((100% - 2 * clamp(12px,2vw,40px)) * 2 / 3 + clamp(12px,2vw,40px))}}   /* two tall pictures: the size of three in a row, centred */
/* a section of its own under the photos, with its heading (e.g. Chimera's "Poster design"), the heading lined up with the pictures */
.rows-more .row-label{padding-left:0;margin-bottom:calc(4px + clamp(10px,1vw,16px) - clamp(12px,2vw,40px))}   /* the heading sits close above its pictures; the rows keep their usual spacing */
@media (min-width:641px){.sec-poster-design .row-label{justify-self:center;width:calc((100% - 2 * clamp(12px,2vw,40px)) * 2 / 3 + clamp(12px,2vw,40px))}}
.row figure{margin:0;min-width:0}
.row img{display:block;width:100%;height:auto}
.row video{display:block;width:100%;height:auto;background:#000}
.row video.pixel{image-rendering:pixelated}   /* pixel art stays sharp when enlarged */
.row{align-items:center}

.slot{display:grid;place-items:center;border:1px dashed var(--accent);padding:1rem;text-align:center}
.slot .ask{border:0}

/* ---------- the film ---------- */
.film{max-width:1500px;margin:0 auto;padding:0 var(--gr) clamp(60px,10vh,130px) var(--gl)}
.film video{display:block;width:100%;height:auto;background:#000}
.film .slot{aspect-ratio:16/9}
.film-note{margin:12px 0 0;text-align:right;font:400 12px/1.3 var(--mono);color:var(--muted)}

/* ---------- the way on ---------- */
.exit{display:flex;justify-content:center;gap:clamp(28px,8vw,120px);flex-wrap:wrap;text-align:center;
  padding:clamp(40px,8vh,100px) var(--gr) calc(40px + env(safe-area-inset-bottom,0px)) var(--gl)}
.exit a{text-decoration:none;font:700 clamp(11px,.7vw,13px)/1 var(--mono);text-transform:uppercase;letter-spacing:.03em;color:var(--ink)}
.exit a:hover{text-decoration:underline;text-underline-offset:4px}
.exit .next{color:var(--muted)}
.exit .next span{color:var(--ink)}



@media (prefers-reduced-motion:reduce){.work *{animation:none!important;transition:none!important}}
/* a tall picture keeps to the height of the screen */
.info-pic.tall{display:flex;justify-content:center}
.info-pic.tall img{width:auto;max-width:100%;max-height:min(92vh,1150px)}

/* the opening waits until all of it is ready, then the opening and the menu appear together (see reveal.js) */
.work .hero,.work .nav{transition:opacity .6s ease}
.hold .work .hero,.hold .work .nav,.hold body.work .hero,.hold body.work .nav{opacity:0;animation:unhold .6s 10s forwards}
@keyframes unhold{to{opacity:1}}
/* the parts inside it appear with it, not on their own */
.work .hero canvas{transition:none!important}

/* her layout: every part she can size and move (data-adj) moves down by --my and sideways by --mx (set per page, see each
   page's "her layout"); the words grow with --k. Where computer and phone hold different pictures, or a picture is taken
   out on one of them, these choose */
[data-adj][data-adj]{margin-top:calc(var(--mt0,0px) + var(--my,0vw));position:relative;left:var(--mx,0vw)}
.lay-ph{display:none}
@media (max-width:760px){.lay-pc{display:none}.lay-ph{display:block}.hide-ph{display:none!important}}
@media (min-width:761px){.hide-pc{display:none!important}.info.solo-pc{grid-template-columns:minmax(0,1fr)}}

/* the page never scrolls sideways: a picture made wider than the screen, or moved to the side, is cut at the screen's edge */
html:has(body.work),body.work{overflow-x:hidden}
@supports (overflow:clip){html:has(body.work),body.work{overflow-x:clip}}
body.work main{overflow-x:hidden}
@supports (overflow:clip){body.work main{overflow-x:clip}}

/* videos that play like moving pictures: no buttons, nothing to tap, never full screen (also when a phone's own play
   button would show) */
.vdeco{pointer-events:none}
.vdeco::-webkit-media-controls,.vdeco::-webkit-media-controls-panel,.vdeco::-webkit-media-controls-start-playback-button,.vdeco::-webkit-media-controls-overlay-play-button{display:none!important;-webkit-appearance:none;opacity:0}
.row img.pixel{image-rendering:pixelated}
