@font-face { font-family: Poppins; src: url(/fonts/poppins-latin-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Poppins; src: url(/fonts/poppins-latin-ext-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1EFF, U+2C60-2C7F; }
@font-face { font-family: Poppins; src: url(/fonts/poppins-latin-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Poppins; src: url(/fonts/poppins-latin-ext-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1EFF, U+2C60-2C7F; }
@font-face { font-family: Manrope; src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Manrope; src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1EFF, U+2C60-2C7F; }

:root {
  --gutter: 3vw;
  --small: 14px;
  --muted: #767676;
  --line: #dedede;
  --display: 500 1em/1.15 Manrope, sans-serif;
  --label: italic 400 14px/1.4 Poppins, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: #000;
  font: 400 15px/1.6 Manrope, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
main { animation: appear .5s ease both; }
@keyframes appear { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { main { animation: none; } }

/* Links in running text and the menu share one underline that grows from the left. */
.site-nav a, .pager strong, .work-item h2 {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .25s;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 2.9vw var(--gutter);
}
.site-title {
  font: italic 500 calc(16px + .583vw)/1.2 Poppins, sans-serif;
  letter-spacing: -.02em;
  text-decoration: none;
}
.site-nav { display: flex; gap: 1.6vw; font: italic 400 16px/1.5 Poppins, sans-serif; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { background-size: 100% 1px; }
.menu-toggle { display: none; }

/* Three columns built from six half-columns, so an incomplete last row can be shifted to the centre. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 44px 16px;
  padding: 0 var(--gutter);
}
.work-item { grid-column: span 2; }
@media (min-width: 768px) {
  .work-item:nth-child(3n + 1):nth-last-child(2) { grid-column: 2 / span 2; }
  .work-item:nth-child(3n + 1):last-child { grid-column: 3 / span 2; }
}
.work-item { display: block; text-decoration: none; }
.work-image { overflow: hidden; aspect-ratio: 16 / 9; background: #eee; }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
.work-item:hover .work-image img { transform: scale(1.03); }
.work-item h2 {
  display: inline;
  font: var(--display);
  font-size: calc(16px + .14vw);
  letter-spacing: -.02em;
}
.work-item .work-image { margin-bottom: 12px; }
.work-item:hover h2 { background-size: 100% 1px; }
.work-item p { margin: 3px 0 0; color: var(--muted); font: var(--label); font-size: 13px; }
.work-grid .empty { grid-column: 1 / -1; margin: 10vh 0; text-align: center; }
.preview-note {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  margin: 0;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  font-size: 14px;
}

/* Every project page is built the same way: the film on the left, a column of stills beside it, all in their
   own shapes, and title and credits below. The row is as high as film (h × ratio) and stills (a column
   h × side wide whose pictures add up to h) need to fill the width together. So that this is never higher
   than the window below the header, the whole block is only as wide as that height allows, and centred;
   title and credits keep the same edges. */
.project { padding: 0 var(--gutter); }
.project-body {
  --cap: max(240px, calc(100vh - 2.9vw * 2 - 76px));
  display: grid;
  gap: 16px;
  max-width: calc(var(--cap) * (var(--ratio) + var(--side)) + var(--pad));
  margin-inline: auto;
  container-type: inline-size;
}
.draft-note { margin: 0; color: var(--muted); font: var(--label); }
.hero { --h: calc((100cqw - var(--pad) - 1px) / (var(--ratio) + var(--side))); display: flex; gap: 16px; align-items: flex-start; }
.video { position: relative; flex: none; overflow: hidden; height: var(--h); aspect-ratio: var(--ratio); margin: 0; background: #000; }
.hero.solo .video { width: 100%; height: auto; }
.video img, .video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video video { object-fit: contain; }
.stills { display: flex; flex: none; flex-direction: column; gap: 16px; width: calc((var(--h) - var(--gaps)) * var(--side)); }
.stills img { width: 100%; }
.video button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.video svg { width: 64px; height: 64px; transition: transform .25s; }
.video svg circle { fill: rgb(0 0 0 / .35); stroke: #fff; stroke-width: 1.5; }
.video svg path { fill: #fff; }
.video button:hover svg { transform: scale(1.08); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gallery img { width: 100%; }

/* Title and credits. Laid out by the room they get: side by side when wide, stacked in a narrow column. */
.project-info { margin-top: calc(8px + 1.6vw); container-type: inline-size; overflow-wrap: anywhere; }
.project-info h1 {
  margin: 0;
  font: var(--display);
  font-size: calc(21px + .75vw);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.project-info header p { margin: 0; color: var(--muted); font: var(--label); }
.project-info header h1 + p { margin-top: 6px; }
.project-info .kind + p { margin-top: 14px; }
.project-info header p:not(.kind) { color: #000; font: inherit; font-size: var(--small); }
.project-info dl { margin: 24px 0 0; border-top: 1px solid var(--line); }
.project-info dl div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.project-info dt { color: var(--muted); font: var(--label); line-height: 24px; }
.project-info dd { margin: 0; }
@container (min-width: 640px) {
  .info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
  .info dl { margin-top: 0; }
  .info dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 10px 0; }
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: calc(56px + 5vw) var(--gutter) 0;
  padding-top: 16px;
  border-top: 1px solid #000;
}
.pager a { display: flex; align-items: flex-start; gap: 16px; min-width: 0; text-decoration: none; }
.pager .next { flex-direction: row-reverse; text-align: right; }
.pager img { flex: none; width: 150px; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .25s; }
.pager a:hover img { opacity: .8; }
.pager span { display: block; min-width: 0; }
.pager small { display: block; margin-bottom: 6px; color: var(--muted); font: var(--label); font-size: 13px; }
.pager strong { font: var(--display); font-size: calc(16px + .28vw); letter-spacing: -.02em; }
.pager a:hover strong { background-size: 100% 1px; }
.pager em { display: block; margin-top: 3px; color: var(--muted); font: var(--label); font-size: 13px; }

.photos { display: grid; gap: 16px; padding: 0 var(--gutter); }
.photo-row { display: flex; gap: 16px; }
/* Widths in proportion to the pictures' shapes give every picture in a row the same height. */
.photo-row figure { flex: var(--ratio) 1 0; min-width: 0; margin: 0; }
.photo-row img { width: 100%; }

.page { display: grid; gap: 48px; max-width: calc(720px + 2 * var(--gutter)); padding: 1.5vw var(--gutter) 0; font-size: var(--small); overflow-wrap: anywhere; }
.page-text p { margin: 0 0 1em; }
.page-text p:last-child { margin-bottom: 0; }
.page-text a, .project-info a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page-text strong { font-weight: 600; }

/* Info: the portrait keeps the first of the three grid columns and stays in view; text and lists fill the other two. */
.page.split { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: none; padding-top: 0; }
.page-image { position: sticky; top: 3.3vw; margin: 0; }
.page-image img { width: 100%; }
.page-main { display: grid; grid-column: 2 / -1; gap: calc(40px + 2.5vw); }
.split .page-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.split .page-text p { margin: 0; }
.split .page-text p:first-child {
  grid-column: 1 / -1;
  margin-bottom: calc(8px + 1.5vw);
  font: var(--display);
  font-size: calc(19px + .62vw);
  line-height: 1.28;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.split .page-text em { display: inline-block; margin-bottom: 2px; color: var(--muted); font: var(--label); }
.page-list h2 { margin: 0 0 12px; color: var(--muted); font: var(--label); }
.page-list dl { margin: 0; border-top: 1px solid var(--line); }
.page-list dl div {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.page-list dt, .page-list dd + dd { color: var(--muted); font: var(--label); line-height: 22px; }
.page-list dd { margin: 0; }
.page-list dd + dd { text-align: right; }
.not-found { min-height: 40vh; text-align: center; }

.lock {
  display: grid;
  justify-items: center;
  gap: 16px;
  min-height: 40vh;
  padding: 12vw var(--gutter) 0;
  align-content: start;
  font: italic 400 16px/1.5 Poppins, sans-serif;
}
.lock input {
  width: min(320px, 100%);
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  background: none;
  font: 16px/1.5 Manrope, sans-serif;
  text-align: center;
  outline: none;
}
.lock button { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lock-error { margin: 0; font: var(--small)/1.5 Manrope, sans-serif; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: calc(56px + 5vw) var(--gutter) 0;
  padding: 20px 0 calc(20px + 1.5vw);
  border-top: 1px solid var(--line);
}
/* The pager already closes the page with a line. */
main:has(.pager) + .site-footer { margin-top: 48px; }
.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; width: 22px; height: 22px; transition: opacity .2s; }
.social a:hover { opacity: .55; }
.social svg { width: 100%; height: 100%; }
.legal, .copyright { color: var(--muted); font: var(--label); font-size: 13px; text-decoration: none; }
.legal:hover { color: #000; }

@media (max-width: 767px) {
  :root { --gutter: 6vw; }
  .site-header { padding: 6vw var(--gutter); }
  .site-title { font-size: 16px; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    font-size: 8.5vw;
    line-height: 1.3;
  }
  .menu-toggle {
    position: relative;
    display: block;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }
  .menu-toggle::before, .menu-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform .2s, top .2s;
  }
  .menu-toggle::before { top: 12px; }
  .menu-toggle::after { top: 22px; }
  .menu-open { overflow: hidden; }
  .menu-open .site-nav { display: flex; }
  .menu-open .menu-toggle::before { top: 17px; transform: rotate(45deg); }
  .menu-open .menu-toggle::after { top: 17px; transform: rotate(-45deg); }
  .copyright { display: none; }
  .work-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-grid > .work-item { grid-column: auto; }
  .project-body, .gallery, .photos, .photo-row, .stills { gap: 10px; }
  .project-body { max-width: none; }
  .hero { flex-direction: column; align-items: stretch; gap: 10px; }
  .video { width: 100%; height: auto; }
  .stills { width: auto; }
  .gallery { grid-template-columns: 1fr; }
  .project-info { margin-top: 14px; }
  .pager { grid-template-columns: 1fr; gap: 24px; }
  .pager > span { display: none; }
  .pager img { width: 112px; }
  .photo-row { flex-direction: column; }
  .photo-row figure { flex: none; }
  .page { gap: 32px; padding-top: 2vw; }
  .page.split { grid-template-columns: 1fr; gap: 32px; padding-top: 0; }
  .page-image { position: static; }
  .page-main { grid-column: auto; gap: 40px; }
  .split .page-text { grid-template-columns: 1fr; }
  .page-list dl div { grid-template-columns: 3.2em minmax(0, 1fr); gap: 4px 12px; }
  .page-list dd + dd { grid-column: 2; text-align: left; }
}
