:root{
  --ink:#141414;
  --mute:#707070;
  --line:#ececec;
  --bg:#ffffff;
  --gut:32px;
  --col:240px;
  --text-w:760px;   /* the centred column used by the text pages (About) */
  --top-h:72px;     /* height of the top bar */
  --foot-h:48px;    /* height of the pinned footer */
  --ease:cubic-bezier(.2,.7,.2,1);
  /* Two voices, one weight each. Reading text: the plain grotesque of gallery labels
     (Helvetica Neue on Apple devices, Arial elsewhere; nothing to download).
     The top bar (her name, the menu) and the small print (years, counts, captions, labels,
     footer): a typewriter face, Courier Prime, made for screenplays. */
  --sans:"Helvetica Neue",Helvetica,Arial,"Liberation Sans",sans-serif;
  --mono:"Courier Prime","Courier New",Courier,monospace;
  --red:#a8281a;    /* the red of the gummy bears in Reds: the menu's underline */
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;color-scheme:light;scroll-padding-top:var(--top-h)}
body{margin:0;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;background:var(--bg);color:var(--ink);font:400 13px/1.5 var(--sans);letter-spacing:.005em;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-synthesis:none}
a{color:inherit;text-decoration:none}
a:hover{color:var(--mute)}
img,video{display:block;max-width:100%}
p{margin:0 0 1em}
h1,h2{font-size:13px;font-weight:400}
button{font:inherit;letter-spacing:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:1px solid var(--ink);outline-offset:3px}
[lang="fa"],.fa{font-family:"Vazirmatn",var(--sans);letter-spacing:0}
.skip{position:absolute;left:-9999px}
.skip:focus{left:var(--gut);top:8px;background:#fff;padding:4px 8px;z-index:50}

/* the small print: one typewriter face, one size */
.meta,.count,.strip-count,.label,.foot,.cap,.links,.pager,.view-switch,.where i,.frame-cap,.v-top,.v-nav,.v-foot,.cv h2,.cv dt,.writing section h2,.writing li .m{font-family:var(--mono);font-size:12.5px;letter-spacing:-.015em}
.mute,.meta,.count,.strip-count{color:var(--mute)}
.count,.strip-count{font-variant-numeric:tabular-nums}

/* header */
/* three columns (name, place on a series page, menu), all on one baseline */
.top{position:sticky;top:0;z-index:20;min-height:var(--top-h);background:var(--bg);display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:baseline;column-gap:24px;padding:25px var(--gut) 20px;font-family:var(--mono)}
.name{grid-column:1;justify-self:start;font-size:16px;line-height:1;font-weight:700;letter-spacing:0}
.name:hover{color:var(--ink)}
.nav,.menu-btn{grid-column:3;justify-self:end}
.nav{display:flex;gap:24px}
/* the menu: the word under the pointer, and the section you are in, darken and take a thin red
   underline (the red of the gummy bears in Reds), so it is plain they can be clicked */
.nav a{color:var(--mute);text-decoration-line:underline;text-decoration-color:transparent;text-decoration-thickness:1.5px;text-underline-offset:6px;transition:color .2s,text-decoration-color .2s}
.nav a:hover,.nav a:focus-visible,.nav a[aria-current="page"]{color:var(--ink);text-decoration-color:var(--red)}
.menu-btn{display:none}
/* where you are: on a series page, the series and the work in view, in the middle of the top bar */
.where{grid-column:2;grid-row:1;display:flex;align-items:baseline;gap:14px;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .25s var(--ease),visibility 0s .25s;pointer-events:none}
.where.on{opacity:1;visibility:visible;transition:opacity .25s var(--ease)}
.where b{font-weight:400}
.where i{font-style:normal;color:var(--mute);font-variant-numeric:tabular-nums}
main{flex:1 0 auto;padding:0 var(--gut) calc(var(--foot-h) + 72px)}
/* each page eases in, and the browser cross-fades from one page to the next where it can
   (that cross-fade is switched on by one line in each page's <head>): slowly and softly, with her
   name, the menu and the footer holding still while the rest dissolves */
::view-transition-old(root),::view-transition-new(root){animation-duration:.7s;animation-timing-function:cubic-bezier(.4,0,.2,1)}
.top{view-transition-name:top}
.foot{view-transition-name:foot}
::view-transition-group(top),::view-transition-group(foot),::view-transition-old(top),::view-transition-new(top),::view-transition-old(foot),::view-transition-new(foot){animation-duration:.7s;animation-timing-function:cubic-bezier(.4,0,.2,1)}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
@keyframes ease-in{from{opacity:0}}
main > *{animation:ease-in .5s var(--ease) both}

/* footer: pinned to the bottom of the window (on phones it sits at the end of the page) */
.foot{position:fixed;left:0;right:0;bottom:0;z-index:20;height:var(--foot-h);background:var(--bg);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 var(--gut);color:var(--mute)}
.foot a:hover{color:var(--ink)}
/* On a series' own page and on a film's own page the footer's left corner is the way back to the page they
   belong to, and the copyright line closes the page instead, where that link stood (see .pager).
   Phones keep both where they were: their footer is not pinned (see the phone rules at the end). */
.foot .back{display:inline-flex;align-items:center;gap:7px}
.foot .back svg{width:9px;height:9px}
.foot .copy,.pager .all{display:none}

/* home as strips: one scrolling strip per series */
.rows{display:flex;flex-direction:column;gap:96px;padding-top:28px}
.row{display:grid;grid-template-columns:var(--col) minmax(0,1fr);align-items:stretch}
/* left column: title and year level with the top of the pictures, counter level with their bottom edge */
.row-head{display:flex;flex-direction:column;justify-content:space-between;padding-right:24px}
.row-head h2{margin:0}
/* The names that are links (a series here, a film on Videos) are one step heavier than the text around them,
   so that they read as something to click. Arial, the reading face on Windows, has no such weight: there
   site.js marks the page (no-medium) and the letters are drawn a hair thicker instead. */
.row-head h2 a,.video h2 a{font-weight:500}
.no-medium :is(.row-head h2 a,.video h2 a){-webkit-text-stroke:.3px}
.row-head p{margin:1px 0 0}
/* the small "1 of 12": it follows the strip as it is scrolled (-4px sets its last line on the pictures' bottom edge) */
.row-head .strip-count{margin:0 0 -4px}
.strip-count b{font-weight:400}
.strip{min-width:0;display:flex;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-behavior:smooth;scrollbar-width:none;cursor:grab;-webkit-overflow-scrolling:touch;margin-right:calc(var(--gut) * -1);padding-right:var(--gut)}
.strip::-webkit-scrollbar{display:none}
.strip.dragging{cursor:grabbing;scroll-behavior:auto}
.strip.dragging img{pointer-events:none}
.strip.dragging button{cursor:grabbing}
.strip button{flex:0 0 auto;height:var(--strip-h,340px)}
.strip img{height:100%;width:auto;max-width:none;background:#f4f4f4;opacity:0;transition:opacity .5s var(--ease)}
.strip img.in{opacity:1}

/* home as a frame: one work at a time, as large as the window allows */
body[data-home="frame"] main{padding-bottom:var(--foot-h)}
.frame{display:grid;grid-template-rows:minmax(0,1fr) auto;height:calc(100vh - var(--top-h) - var(--foot-h));height:calc(100svh - var(--top-h) - var(--foot-h));padding-top:28px}
.frame-stage{position:relative;min-height:0;display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.frame-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transition:opacity .45s var(--ease);user-select:none;-webkit-user-drag:none}
.frame-stage img.fade{opacity:0}
/* click the right side of the picture for the next work, the left side for the one before */
.frame-stage button{position:absolute;top:0;bottom:0}
.frame-stage .prev{left:0;width:35%;cursor:w-resize}
.frame-stage .next{right:0;width:65%;cursor:e-resize}
/* under the picture: every body of work by name (each name is the way in), then the caption and the count */
.frame-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 32px;padding:16px 0 18px}
.frame-groups{display:flex;flex-wrap:wrap;gap:4px 24px}
.frame-groups a{color:var(--mute);transition:color .2s}
.frame-groups a:hover,.frame-groups a[aria-current="true"]{color:var(--ink)}
.frame-cap{margin:0 0 0 auto;display:flex;gap:24px;color:var(--mute);white-space:nowrap}
.frame-cap a:hover{color:var(--ink)}

/* home as a cover: a picture fills the whole window; the name, the menu and the footer sit on it.
   With several pictures, each takes one screen of scrolling: the page settles on each stop, and the
   picture on show gives way to the next (the new one fades in over the old, so the ground never shows).
   Whether the words are dark or light is set per picture in content/settings.json. */
.covers-stage{position:fixed;inset:0;background:#f4f4f4}
.cover{position:absolute;inset:0;display:block;z-index:1;opacity:0;visibility:hidden;transition:opacity 0s .8s,visibility 0s .8s}
.cover.on{z-index:2;opacity:1;visibility:visible;transition:opacity .8s var(--ease)}
.cover img{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .8s var(--ease)}
.cover img.in{opacity:1}
.cover-stop{height:100vh;height:100svh;scroll-snap-align:start;scroll-snap-stop:always}
html.snap{scroll-snap-type:y mandatory;scroll-padding-top:0}   /* (elsewhere the page keeps room for the top bar when it jumps to a place; here each stop is a whole window) */
body[data-home="cover"] main{padding:0}
body[data-home="cover"] .top{position:fixed;left:0;right:0;background:none;color:var(--ink)}
body[data-home="cover"] .foot{position:fixed;flex-direction:row;align-items:center;height:var(--foot-h);padding:0 var(--gut);background:none}
body[data-home="cover"] :is(.top,.foot){--mute:rgba(20,20,20,.72)}
body[data-home="cover"][data-tone="light"] :is(.top,.cover){--ink:#fff;--mute:rgba(255,255,255,.82)}
body[data-home="cover"][data-foot="light"] .foot{--ink:#fff;--mute:rgba(255,255,255,.82)}
/* a faint halo of the opposite tone keeps the small words readable where a picture is mottled under them
   (on a calm ground it cannot be seen) */
body[data-home="cover"] :is(.top,.foot){text-shadow:0 0 10px rgba(255,255,255,.6),0 0 3px rgba(255,255,255,.35)}
body[data-home="cover"][data-tone="light"] .top{text-shadow:0 0 10px rgba(0,0,0,.45),0 0 3px rgba(0,0,0,.3)}
body[data-home="cover"][data-foot="light"] .foot{text-shadow:0 0 10px rgba(0,0,0,.45),0 0 3px rgba(0,0,0,.3)}
/* or a colour taken from the picture itself ("cover_ink" in content/settings.json, or "ink" for one of
   several pictures): the words then need no halo */
body[data-home="cover"][data-ink="custom"] :is(.top,.foot){--ink:var(--cover-ink);--mute:var(--cover-mute);text-shadow:none}
/* the words change tone with the picture, unhurried */
body[data-home="cover"] :is(.name,.nav a,.menu-btn,.foot,.foot a,.foot button){transition:color .6s var(--ease)}
/* light words need a dark ground while the picture is still on its way */
body[data-home="cover"][data-tone="light"] .covers-stage{background:#1c1c1c}
/* the footer's left side: what the picture is, and (with several) which it is of how many; the small arrow moves on */
body[data-home="cover"] .foot span:first-child{display:flex;align-items:baseline;gap:18px;min-width:0}
.cover-cap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cover-next{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;color:var(--mute);font-variant-numeric:tabular-nums}
.cover-next:hover{color:var(--ink)}
.cover-next svg{width:9px;height:9px;transition:transform .3s var(--ease)}
.cover-next.up svg{transform:rotate(180deg)}
/* the keyboard's focus ring, drawn just inside the window's edge */
.cover:focus-visible{outline:2px solid var(--ink);outline-offset:-8px}
/* phones: the open menu is a white sheet, so the bar above it turns white and its words dark */
body[data-home="cover"].menu-open .top{background:var(--bg);--ink:#141414;--mute:#707070;text-shadow:none}
/* An optional flourish, switched on by "cursor": "bear" in content/settings.json, and only on the
   full-window home page: the pointer is one of the gummy bears from her painting Reds, and over
   each word of the menu it takes another colour (the colours of the bears in her other paintings). */
body:is([data-cursor="bear"],[data-cursor="bear-red"])[data-home="cover"],body:is([data-cursor="bear"],[data-cursor="bear-red"])[data-home="cover"] :is(a,button){cursor:url(/assets/cursor-bear.png) 7 8,auto;cursor:image-set(url(/assets/cursor-bear.png) 1x,url(/assets/cursor-bear-2x.png) 2x) 7 8,auto}
body[data-cursor="bear"][data-home="cover"] .nav a:nth-of-type(1){cursor:url(/assets/cursor-bear-orange.png) 7 8,pointer;cursor:image-set(url(/assets/cursor-bear-orange.png) 1x,url(/assets/cursor-bear-orange-2x.png) 2x) 7 8,pointer}
body[data-cursor="bear"][data-home="cover"] .nav a:nth-of-type(2){cursor:url(/assets/cursor-bear-green.png) 7 8,pointer;cursor:image-set(url(/assets/cursor-bear-green.png) 1x,url(/assets/cursor-bear-green-2x.png) 2x) 7 8,pointer}
body[data-cursor="bear"][data-home="cover"] .nav a:nth-of-type(3){cursor:url(/assets/cursor-bear-teal.png) 7 8,pointer;cursor:image-set(url(/assets/cursor-bear-teal.png) 1x,url(/assets/cursor-bear-teal-2x.png) 2x) 7 8,pointer}
body[data-cursor="bear"][data-home="cover"] .nav a:nth-of-type(4){cursor:url(/assets/cursor-bear-yellow.png) 7 8,pointer;cursor:image-set(url(/assets/cursor-bear-yellow.png) 1x,url(/assets/cursor-bear-yellow-2x.png) 2x) 7 8,pointer}
body[data-cursor="bear"][data-home="cover"] .nav a:nth-of-type(5){cursor:url(/assets/cursor-bear-purple.png) 7 8,pointer;cursor:image-set(url(/assets/cursor-bear-purple.png) 1x,url(/assets/cursor-bear-purple-2x.png) 2x) 7 8,pointer}
body[data-cursor="bear"][data-home="cover"] .nav a:nth-of-type(6){cursor:url(/assets/cursor-bear-pink.png) 7 8,pointer;cursor:image-set(url(/assets/cursor-bear-pink.png) 1x,url(/assets/cursor-bear-pink-2x.png) 2x) 7 8,pointer}
body[data-cursor="bear"][data-home="cover"] .foot span:last-child a:nth-of-type(1){cursor:url(/assets/cursor-bear-yellow.png) 7 8,pointer;cursor:image-set(url(/assets/cursor-bear-yellow.png) 1x,url(/assets/cursor-bear-yellow-2x.png) 2x) 7 8,pointer}
body[data-cursor="bear"][data-home="cover"] .foot span:last-child a:nth-of-type(2){cursor:url(/assets/cursor-bear-purple.png) 7 8,pointer;cursor:image-set(url(/assets/cursor-bear-purple.png) 1x,url(/assets/cursor-bear-purple-2x.png) 2x) 7 8,pointer}
/* The bear that moves ("cursor": "roll", site.js): the bears of Reds, 96 px squares shown at 48, side by
   side on one sheet. Its shadow (b) lies on the floor line, apart from the bear, so it stays on the floor
   when the bear hops. Only once the bears have loaded and the pointer has moved does the ordinary pointer
   go away; until then the still bear shows. */
.roll{position:fixed;left:0;top:0;width:48px;height:48px;margin:-24px 0 0 -24px;pointer-events:none;z-index:60;opacity:0;transition:opacity .2s;will-change:transform}
.roll b{position:absolute;left:4px;top:21px;width:40px;height:6px;border-radius:50%;background:radial-gradient(closest-side,rgba(46,34,24,.42),rgba(46,34,24,0));will-change:transform}
.roll-in{position:absolute;inset:0;will-change:transform}
.roll i{position:absolute;inset:0;background:url(/assets/bears-reds.png) no-repeat 0 0/240px 48px}
html.bear-rolls body[data-home="cover"],html.bear-rolls body[data-home="cover"] *{cursor:none!important}

/* series page */
.intro{display:grid;grid-template-columns:var(--col) minmax(0,1fr);padding:28px 0 88px}
.intro h1{margin:0}
.view-switch{display:flex;gap:16px;margin-top:14px}
.view-switch button{color:var(--mute);transition:color .2s}
.view-switch button:hover,.view-switch button[aria-pressed="true"]{color:var(--ink)}
/* -2px sets its first line on the same baseline as the title beside it */
.statement{max-width:600px;margin-top:-2px;font-size:14px;line-height:1.6}
.statement p:last-child{margin:0}
.works{display:flex;flex-direction:column;align-items:center;gap:120px}
.work{margin:0;display:flex;flex-direction:column;align-items:center;max-width:100%}
.work button{display:block;cursor:zoom-in}
/* each work, with its caption, fits between the top bar and the footer */
.work img{max-height:min(74vh,1100px);max-height:min(calc(100svh - var(--top-h) - var(--foot-h) - 110px),1100px);width:auto;height:auto;opacity:0;transition:opacity .6s var(--ease)}
.work img.in{opacity:1}
/* thumbnails: every work at a glance, whole and uncropped, in rows filled edge to edge.
   --r is each picture's own width/height, set by site.js once it has loaded. */
/* The works sit close together (8 px apart), so that each can be larger while the rows stay under the text;
   the 9 px added to the base height keeps the rows as full as wider spaces would. */
.works[data-view="thumbs"]{--thumb-h:calc(clamp(96px,9.5vw,150px) + 9px);flex-direction:row;flex-wrap:wrap;align-items:flex-start;gap:8px;margin-left:var(--col)}
.works[data-view="thumbs"]::after{content:"";flex:1000 1 0}
.works[data-view="thumbs"] .work{display:block;flex:var(--r,1.3) 1 calc(var(--r,1.3) * var(--thumb-h));min-width:0;max-width:none}
.works[data-view="thumbs"] .work button{width:100%}
.works[data-view="thumbs"] .work img{width:100%;height:auto;max-height:none}
.works[data-view="thumbs"] .cap{display:none}
.cap{margin-top:14px;line-height:1.5;color:var(--mute);text-align:center}
.cap i{font-style:italic}
.views{margin-top:140px}
/* Thumbnails on a computer: the first screen belongs to the series' text and its works alone. What follows
   starts just below that screen, however few rows the thumbnails take (and 140px under them, as before,
   when they fill more than the screen). */
@media (min-width:721px){
  .series-top[data-view="thumbs"]{min-height:calc(100vh - var(--top-h) - var(--foot-h) + 32px);min-height:calc(100svh - var(--top-h) - var(--foot-h) + 32px);padding-bottom:140px}
  .series-top[data-view="thumbs"] + .views{margin-top:0}
}
.label{color:var(--mute);margin:0 0 20px}
/* installation views: whole photographs, never cropped. Each row is filled edge to edge;
   --r is the photo's own width/height, set by site.js once the photo has loaded. */
.views-grid{--view-h:clamp(200px,19vw,280px);display:flex;flex-wrap:wrap;align-items:flex-start;gap:40px}
.views-grid::after{content:"";flex:1000 1 0}
.views-grid button{display:block;flex:var(--r,1.5) 1 calc(var(--r,1.5) * var(--view-h));min-width:0;cursor:zoom-in}
.views-grid img{width:100%;height:auto;opacity:0;transition:opacity .6s var(--ease)}
.views-grid img.in{opacity:1}
/* one or two views only: larger, on one line, side by side (they narrow together when the window does) */
.views-grid.few{--view-h:min(60vh,600px);flex-wrap:nowrap}
.pager{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:24px;margin-top:120px;color:var(--mute)}
.pager > :last-child{text-align:right}
.pager a:hover{color:var(--ink)}

/* viewer */
.viewer{outline:none;position:fixed;inset:0;z-index:100;background:#fff;display:grid;grid-template-rows:auto 1fr auto;opacity:0;visibility:hidden;transition:opacity .25s var(--ease),visibility 0s .25s}
.viewer.open{opacity:1;visibility:visible;transition:opacity .25s var(--ease)}
.v-top{display:flex;justify-content:space-between;align-items:baseline;padding:27px var(--gut) 0;color:var(--mute)}
.v-count{margin-left:16px;font-variant-numeric:tabular-nums}
.v-stage{position:relative;display:flex;align-items:center;justify-content:center;padding:24px var(--gut);min-height:0;touch-action:pan-y}
.v-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transition:opacity .22s var(--ease);user-select:none;-webkit-user-drag:none}
.v-stage img.fade{opacity:0}
.v-hit{position:absolute;top:0;bottom:0;width:50%;z-index:2}
.v-hit.prev{left:0;cursor:w-resize}
.v-hit.next{right:0;cursor:e-resize}
.v-foot{display:flex;justify-content:space-between;align-items:baseline;gap:24px;padding:0 var(--gut) 26px;color:var(--mute);min-height:46px}
.v-foot .cap{margin:0;text-align:left}
.v-nav{display:flex;gap:18px;flex-shrink:0}
.v-nav button,.v-close{color:var(--mute);transition:color .2s}
.v-nav button:hover,.v-close:hover{color:var(--ink)}
body.locked{overflow:hidden}

/* videos: one work per screen. The still at the left; beside it a column exactly as tall as the still.
   What is read sits at its top edge (title, year, description), what is looked up sits at its
   bottom edge (medium, length, credits, the count and the links). */
body[data-page="video"] main{padding-bottom:var(--foot-h)}
.videos{display:flex;flex-direction:column}
.video{--cap-w:320px;--gap:40px;display:grid;grid-template-columns:minmax(0,min(100% - var(--cap-w) - var(--gap),calc((100svh - var(--top-h) - var(--foot-h) - 56px) * 16 / 9),1440px)) var(--cap-w);justify-content:start;column-gap:var(--gap);align-items:stretch;align-content:center;min-height:calc(100vh - var(--top-h) - var(--foot-h));min-height:calc(100svh - var(--top-h) - var(--foot-h));padding:28px 0}
.video .player{align-self:start}
/* the still is the play button: click it and the video plays in place */
.player{position:relative;aspect-ratio:16/9;background:#0d0d0d;overflow:hidden}
.player img{width:100%;height:100%;object-fit:cover;transition:opacity .3s var(--ease)}
.player button{position:absolute;inset:0;width:100%}
.player:hover img{opacity:.9}
.player .note{position:absolute;left:20px;bottom:18px;color:#fff}
.player iframe,.player video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
/* the small negative margins set the title's capitals on the still's top edge and the last line on its bottom edge */
.video-text{display:flex;flex-direction:column;justify-content:space-between;gap:24px;min-width:0}
.vt-top{margin-top:-4px}
.vt-bottom{margin-bottom:-4px}
.video h2{margin:0}
.video .meta{margin:0}
.video .meta span{display:block}
.vt-top .meta{margin-top:1px}
.video .desc{margin:12px 0 0;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.vt-foot{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-top:12px}
.links{display:flex;gap:18px;margin:16px 0 0;color:var(--mute)}
.vt-foot .links{margin:0}
.links a{display:inline-flex;align-items:center;gap:5px;transition:color .2s}
.links a:hover{color:var(--ink)}
.links svg{width:9px;height:9px}

/* a video on its own page: everything under the film lines up with the film. Its title and facts start at
   the film's left edge, each fact on a line of its own; the text starts at the film's middle and ends at
   its right edge; the stills are as wide as the film. (When the film is narrow, the text goes under the
   facts instead: two columns need about 760px.) */
.film{--film-w:min(100%,max(320px,calc((100svh - var(--top-h) - var(--foot-h) - 190px) * 16 / 9)))}   /* the film's width: the same sum as on the next line but one */
.film-stage{display:flex;justify-content:center;padding-top:28px}
.film-stage .player{width:100%;width:min(100%,max(320px,calc((100svh - var(--top-h) - var(--foot-h) - 190px) * 16 / 9)))}
.film .intro{width:var(--film-w);margin:0 auto;grid-template-columns:repeat(auto-fit,minmax(min(100%,356px),1fr));column-gap:48px;row-gap:28px;padding:36px 0 0}
.film .intro .meta{line-height:1.65;margin-top:3px}
.film .links{margin-top:14px}
/* stills on a video's own page: three to a row, whole frames, as wide as the film */
.film .stills{width:var(--film-w);margin-left:auto;margin-right:auto}
.stills{margin-top:96px}
.stills-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.stills-grid img{width:100%;height:auto;background:#0d0d0d;opacity:0;transition:opacity .6s var(--ease)}
.stills-grid img.in{opacity:1}
.stills-grid img.boxed{aspect-ratio:16/9;object-fit:cover}

/* writing: English on the left, Farsi on the right; the pair sits in the middle of the window, top to bottom */
body[data-page="writing"] main{display:flex;flex-direction:column;justify-content:center;padding-bottom:var(--foot-h)}
.writing{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;padding:40px 0}
.writing section h2{margin:0 0 26px;color:var(--mute)}
.writing ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:22px}
.writing li .t{font-size:14px;line-height:1.4}
.writing li a.t{border-bottom:1px solid transparent;transition:border-color .2s,color .2s}
.writing li a.t:hover{color:var(--ink);border-color:var(--ink)}
/* a small arrow marks a link that leaves the site */
.writing li a.t svg{display:inline-block;width:9px;height:9px;margin-left:7px}
.writing li .m{margin-top:3px;color:var(--mute)}
.writing li .s{margin-top:4px}
.writing section[dir="rtl"]{text-align:right}
.writing section[dir="rtl"] h2{font-family:"Vazirmatn",var(--sans);font-size:13px;letter-spacing:0}
.writing section[dir="rtl"] .t{font-size:16px;line-height:1.7}
.writing section[dir="rtl"] .m{font-family:"Vazirmatn",var(--sans);font-size:13px;letter-spacing:0}
.writing section[dir="rtl"] a.t svg{margin:0 7px 0 0;transform:scaleX(-1)}

/* about */
.about{max-width:var(--text-w);margin:0 auto;padding-top:28px}
.about .portrait{width:180px;margin-bottom:28px}
.bio{max-width:640px;font-size:16px;line-height:1.5;margin-bottom:72px}
.cv{display:flex;flex-direction:column;gap:44px}
.cv h2{margin:0 0 12px;color:var(--mute)}
.cv dl{margin:0;display:grid;grid-template-columns:120px minmax(0,1fr);column-gap:24px;row-gap:7px}   /* (120px holds three years on one line: "2023, 2018, 2017") */
.cv dt{color:var(--mute);padding-top:.5px;white-space:nowrap}
.cv dd{margin:0}
.cv dd .m{margin-top:2px;color:var(--mute);font-family:var(--mono);font-size:12.5px;letter-spacing:-.015em}
.cv dd .s{margin-top:4px;max-width:560px}
.cv dl.dated{grid-template-columns:126px minmax(0,1fr);row-gap:16px}
.cv dd a{display:inline-flex;align-items:baseline;gap:6px;border-bottom:1px solid transparent;transition:border-color .2s}
.cv dd a:hover{color:var(--ink);border-color:var(--ink)}
.cv dd a svg{width:9px;height:9px}
/* a line of the CV that has a page of its own elsewhere: no underline, just a shade warmer and lighter
   than the rest (the warm dark of the shadows in Reds), going to full black under the pointer */
.cv dd a.cv-link{display:inline;color:#3b332b;border:0;transition:color .2s}
.cv dd a.cv-link:hover{color:var(--ink);border:0}
.cv-pdf{margin-top:8px}
.cv-pdf a{border-bottom:1px solid var(--ink)}
.reach a{border-bottom:1px solid transparent;transition:border-color .2s}
.reach a:hover{color:var(--ink);border-color:var(--ink)}

.empty{color:var(--mute);padding-top:28px}
.empty a{color:var(--ink)}
.loading{min-height:60vh}

@media (max-width:1000px){
  :root{--col:190px}
}
/* not enough room between the name and the menu for the place indicator */
@media (max-width:900px){
  .where{display:none}
}
/* videos: still above and text below when the window is narrow, or about as tall as it is wide */
@media (max-width:860px),(max-aspect-ratio:5/4){
  .video{grid-template-columns:minmax(0,1fr);row-gap:18px}
  .video .player{width:min(100%,max(300px,calc((100svh - var(--top-h) - var(--foot-h) - 380px) * 16 / 9)))}
  .video-text{gap:14px}
  .video .desc{max-width:640px}
  .vt-top,.vt-bottom{margin:0}
}
@media (max-width:720px){
  :root{--gut:18px;--col:0px;--top-h:56px}
  .top{grid-template-columns:minmax(0,1fr) auto;padding:17px var(--gut) 14px}
  .nav,.menu-btn{grid-column:2}
  .nav{display:none}
  .menu-btn{display:block}
  /* the open menu is a sheet over the whole screen, its four words in the middle of it, large and easy to tap
     (stretch: it must not keep the bar's right-hand alignment; the padding below, as tall as the bar, centres
     the words on the whole screen rather than on the part under the bar) */
  body.menu-open .nav{display:flex;position:fixed;inset:var(--top-h) 0 0 0;justify-self:stretch;align-self:stretch;background:#fff;flex-direction:column;justify-content:center;align-items:center;gap:0;padding:0 var(--gut) var(--top-h);font-size:30px;z-index:30}
  body.menu-open .nav a{color:var(--ink);padding:12px 0;line-height:1.25}
  body.menu-open .nav a[aria-current="page"]{color:var(--mute)}
  /* the sheet covers the footer too (the footer is drawn at the bar's level, after it, so it showed through) */
  body.menu-open .top{z-index:40}
  /* the footer keeps only its left side: the copyright line, or on the home page the picture's name
     (Email and Instagram are on the About page; on a computer the footer keeps them) */
  .foot > span:last-child{display:none}
  main{padding-bottom:72px}
  .foot{position:static;height:auto;flex-direction:column;align-items:flex-start;gap:6px;padding:24px var(--gut)}
  .rows{gap:64px;padding-top:14px}
  .row{grid-template-columns:minmax(0,1fr)}
  .row-head{flex-direction:row;align-items:baseline;padding:0 0 12px}
  .row-head .strip-count{margin:0}
  .row-head .meta{display:inline}
  .strip{--strip-h:230px;gap:10px}
  html.snap body[data-home="cover"] .foot span:last-child{display:none}
  html.snap body[data-home="cover"] .foot span:first-child{flex:1;justify-content:space-between}
  body[data-home="frame"] main{padding-bottom:0}
  .frame{height:calc(100vh - var(--top-h) - 8px);height:calc(100svh - var(--top-h) - 8px);padding-top:8px}
  .frame-foot{padding:12px 0 14px}
  .frame-cap{margin-left:0;gap:18px}
  .intro{grid-template-columns:minmax(0,1fr);padding:14px 0 48px;gap:20px}
  .works{gap:72px}
  .work img{max-height:none}
  .views{margin-top:88px}
  .views-grid{display:block}
  .views-grid::after{display:none}
  .views-grid button{width:100%;margin-bottom:28px}
  .works[data-view="thumbs"]{--thumb-h:clamp(70px,20vw,110px);gap:10px}
  .pager{margin-top:88px;gap:16px}
  .foot .back,.pager .copy{display:none}
  .foot .copy,.pager .all{display:inline}
  .v-top{padding:19px var(--gut) 0}
  .v-stage{padding:16px 0}
  .v-foot{padding:0 var(--gut) 20px;flex-direction:column;gap:10px}
  .v-hit{display:none}
  body[data-page="video"] main{padding-bottom:0}
  /* each film takes up a screen: the still at the top, just under the bar, the title and text under it,
     and the details, the count and the links at the bottom of the screen, as on a computer */
  .video{min-height:calc(100vh - var(--top-h));min-height:calc(100svh - var(--top-h));padding:14px 0 30px;align-content:stretch;grid-template-rows:auto 1fr;row-gap:28px}
  /* A phone's browser hides its own bars once the page is scrolled, and the screen becomes taller than the
     height each film was given: the top of the next film's picture then showed at the bottom. That extra
     height (the taller screen less the shorter one) is kept empty under each film, so a film still has the
     screen to itself. Where the browser's bars do not move, it is nothing. */
  .video{margin-bottom:calc(100lvh - 100svh)}
  .video:last-child{margin-bottom:0}
  .statement{margin-top:0}
  .video .player{width:100%}
  .film-stage{padding-top:14px}
  .film{--film-w:100%}
  .film-stage .player{width:100%}
  .film .intro{padding:20px 0 0;row-gap:20px}
  .stills{margin-top:56px}
  .stills-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .writing{grid-template-columns:minmax(0,1fr);gap:64px;padding:14px 0 40px}
  .about{padding-top:14px}
  .bio{font-size:15px;margin-bottom:56px}
  .cv dl{grid-template-columns:76px minmax(0,1fr);column-gap:14px}
  .cv dt{white-space:normal}   /* (on a phone several years go on two lines, in their column) */
  .reach{word-break:break-word}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
