:root {
  --pad: clamp(22px, 3vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #0b0b0b; color: #fff;
  font-family: "Jost", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 14px; font-weight: 400; line-height: 1.4; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Header: the same as the home page. */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 38px max(var(--pad), calc((100% - 1560px) / 2 + var(--pad))) 18px; background: #0b0b0b; }
/* Name and title are one unit: the title sits right under the name, in small light capitals. */
.lock { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bar .name { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.bar .role { font-size: 9.2px; font-weight: 300; letter-spacing: .355em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-left: -.05em; }   /* the small shift makes the round C line up optically with the K above it */
.bar .role:hover { color: #fff; }
.menu { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.menu a { font-size: 13px; letter-spacing: .04em; color: rgba(255, 255, 255, .78); }
.menu a:hover, .menu a.on { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.pager a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Credits on the left, media on the right. */
.wrap { display: grid; grid-template-columns: minmax(170px, 27%) minmax(0, 1fr); gap: clamp(28px, 5vw, 84px); max-width: 1560px; margin: 0 auto; padding: 124px var(--pad) 80px; }
.side { position: sticky; top: 120px; align-self: start; }
.all { font-size: 13px; color: rgba(255, 255, 255, .7); }
.all:hover { text-decoration: underline; text-underline-offset: 4px; }
.side h1 { margin: 24px 0 24px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 300; letter-spacing: -.005em; line-height: 1.1; }
.lbl { font-size: 12px; color: rgba(255, 255, 255, .62); }
.who { margin-top: 2px; font-size: 15px; }
.extra { margin-top: 24px; }
.ext { border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 1px; }
.ext:hover { border-bottom-color: #fff; }

.poster { margin-top: 24px; cursor: zoom-in; }
.poster img { display: block; width: 100%; height: auto; }
/* The key image is cropped to its picture (the black bars at the sides are cut); the laurels stay on it. */
.poster.layered { position: relative; overflow: hidden; aspect-ratio: var(--ar); }
.poster.layered img { position: absolute; max-width: none; width: var(--w); height: auto; left: var(--l); top: var(--t); }
.poster.layered img + img { pointer-events: none; }
/* Each film is shown at its own shape, with the black bars cut away (the shape is set on the video itself). */
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.stills { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.stills .srow { display: flex; gap: 10px; }
.stills figure { min-width: 0; overflow: hidden; background: #161616; cursor: zoom-in; }
.stills img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.stills figure:hover img { transform: scale(1.03); }
.no-film .stills { margin-top: 0; }

.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 13px; }
.pager a:last-child { text-align: right; }

/* Full-size viewer for the stills */
.lb { position: fixed; inset: 0; z-index: 40; background: #080808; display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { display: block; max-width: 92vw; max-height: 80vh; width: auto; height: auto; cursor: pointer; }
.lb .wrap { position: relative; display: block; line-height: 0; }
.lb .wrap img.o { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; max-height: none; }
.lb img[hidden] { display: none; }
.lb .wrap.crop { overflow: hidden; aspect-ratio: var(--ar); width: min(92vw, calc(80vh * var(--arn))); }
.lb .wrap.crop img { position: absolute; max-width: none; max-height: none; width: var(--w); height: auto; left: var(--l); top: var(--t); }
.lb button { position: absolute; z-index: 5; background: none; border: 0; font: inherit; color: #fff; cursor: pointer; padding: 18px 22px; }
.lb .wrap, .lb > img { position: relative; z-index: 1; }
.lb .x { top: 6px; right: 6px; } .lb .p { left: 6px; top: 50%; transform: translateY(-50%); } .lb .n { right: 6px; top: 50%; transform: translateY(-50%); }
.lb button:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Contact page: the same layout as a project page; the polaroid sits where the film does. */
/* Contact page: the details first, then the polaroid beneath them in the left column, like a poster on a project page. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-page .all + h1 + .lbl { margin-top: 24px; }
.contact-page .pair { display: flex; gap: 24px; align-items: flex-start; margin-top: 24px; }
.contact-page .pair .poster { flex: 0 1 190px; margin-top: 0; max-width: 190px; cursor: default; }
.contact-page .pair .poster img { aspect-ratio: 1469 / 2324; object-fit: cover; object-position: 50% 40%; }   /* both photos are exactly the same size; the silhouette is trimmed a little to match the polaroid */

@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; padding-top: 108px; gap: 22px; }
  .side { position: static; display: grid; grid-template-columns: auto 1fr; column-gap: 36px; align-items: start; }
  .all { grid-column: 1 / -1; grid-row: 1; }
  .side h1 { grid-column: 1 / -1; grid-row: 2; margin: 18px 0 18px; }
  .side > .lbl { grid-column: 1; grid-row: 3; }
  .side > .who { grid-column: 1; grid-row: 4; }
  .extra { grid-column: 2; grid-row: 3 / span 2; margin: 0; }
  .poster { grid-column: 1 / -1; grid-row: 5; max-width: 240px; margin-top: 24px; }
  .contact-page .side { display: block; }
  .contact-page .extra { margin-top: 24px; }
  .menu { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .stills img { transition: none; } }
@media (max-width: 560px) {
  .menu { gap: 12px; }
  .menu a { font-size: 12px; }
  .bar .name { letter-spacing: .16em; }
}
