@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1d1d1c;
  --text: #ecebe6;
  --muted: #a6a59f;
  --rule: #3a3a38;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;
  --row-h: 9rem;
  --display-stretch: 112%;
  color-scheme: dark;
}

@media (min-width: 760px) {
  :root { --row-h: 13rem; }
}

@media (min-width: 1200px) {
  :root { --row-h: 16rem; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
}

@media (min-width: 760px) {
  body { font-size: 1.125rem; }
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--bg);
}

.skip:focus { top: 1rem; }

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
}

.brand {
  font-stretch: var(--display-stretch);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* Intro */

.intro {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4.5rem);
}

.name {
  margin: 0;
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  font-stretch: var(--display-stretch);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.02em;
}

.split {
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

.intro .split {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  align-items: end;
}

.lede {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.4;
}

.intro-meta {
  margin: 0;
  color: var(--muted);
}

.intro-meta a { color: var(--text); }

/* Sections */

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-top: 1px solid var(--rule);
}

.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-stretch: var(--display-stretch);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.kind {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

/* Featured film */

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.facade {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--text);
  text-decoration: none;
}

.play {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: rgba(20, 20, 19, 0.82);
  border: 1px solid rgba(236, 235, 230, 0.35);
  border-radius: 2px;
  font-weight: 550;
  line-height: 1.2;
}

.facade:hover .play {
  background: rgba(20, 20, 19, 0.95);
  border-color: var(--text);
}

.play svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: currentColor;
}

.cues-intro {
  margin: 1.75rem 0 0.75rem;
  color: var(--muted);
}

.cues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .cues { gap: 1.25rem; }
}

.cue {
  display: block;
  text-decoration: none;
}

.cue img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cue-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 0.75rem;
  padding-top: 0.55rem;
  line-height: 1.35;
}

.cue-name { font-weight: 600; }

.cue-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cue:hover .cue-name,
.cue[aria-current] .cue-name {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cue[aria-current] img {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.text-col p { max-width: 46ch; }

.facts {
  display: grid;
  gap: 0.9rem;
  margin: 1.75rem 0 0;
}

.facts div {
  display: grid;
  gap: 0.1rem;
}

.facts dt {
  color: var(--muted);
  font-size: 0.9375rem;
}

.facts dd { margin: 0; }

/* Project tiles */

.group-title {
  margin: clamp(3.5rem, 8vw, 6rem) 0 clamp(1.25rem, 3vw, 2rem);
}

.tiles {
  display: grid;
  gap: 2.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tile {
  display: block;
  text-decoration: none;
}

.tiles .tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tile-title {
  display: block;
  margin-top: 0.85rem;
  font-size: 1.25rem;
  font-stretch: var(--display-stretch);
  font-weight: 600;
  line-height: 1.2;
}

.tile-kind {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.tile:hover .tile-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery::after {
  content: "";
  flex-grow: 1000;
}

.gallery li { min-width: 0; }

.gallery img {
  width: 100%;
  height: auto;
}

.gallery .tile-title {
  margin-top: 0.7rem;
  font-size: 1.0625rem;
}

/* About and contact */

.about-text p { max-width: 58ch; }

.email {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: clamp(1.15rem, 4.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

/* Project pages */

.back {
  display: inline-block;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  color: var(--muted);
}

.project-title {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-stretch: var(--display-stretch);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.project-kind {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.project-intro {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.project-text p { max-width: 62ch; }

.project-intro .facts { margin-top: 0; }

.media-list {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.media {
  width: 100%;
  margin: 0 auto;
}

.media figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.media-pair {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 760px) {
  .media-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

video {
  width: 100%;
  background: #000;
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding-block: 2rem;
  border-top: 1px solid var(--rule);
}

.pager a { text-decoration: none; }
.pager .next { text-align: right; }

.pager-label {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}

.pager-title {
  display: block;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-stretch: var(--display-stretch);
  font-weight: 600;
  line-height: 1.2;
}

.pager a:hover .pager-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer p { margin: 0; }

.site-footer ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Not found page */

.not-found {
  padding-block: clamp(4rem, 12vw, 9rem);
}

.not-found h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-stretch: var(--display-stretch);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Fade up on scroll. Only applies when JavaScript is running, and is
   switched off for people who ask their device for reduced motion. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Blocks that left through the top of the screen come back in from above. */
.js [data-reveal].from-above:not(.is-visible) {
  transform: translateY(-28px);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal].from-above:not(.is-visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {
  .js [data-reveal],
  .js [data-reveal].from-above:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}
