:root {
  --paper: #f2f0ea;
  --muted: rgba(242, 240, 234, 0.58);
  --quiet: rgba(242, 240, 234, 0.36);
  --gutter: 26px;
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #000;
}

body {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: var(--gutter);
  z-index: 200;
  padding: 9px 12px;
  background: var(--paper);
  color: #000;
  font: 500 13px/1 var(--font);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.residencies-page {
  min-width: 320px;
  overflow-x: clip;
  background: #000;
  color: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.residencies-page :focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 5px;
}

.residencies-header {
  position: fixed;
  top: 24px;
  right: var(--gutter);
  left: var(--gutter);
  z-index: 100;
  display: flex;
  align-items: center;
  mix-blend-mode: difference;
}

.residencies-brand {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.residencies-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: auto;
  color: rgba(242, 240, 234, 0.58);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.residencies-nav a:hover,
.residencies-nav a:focus-visible,
.residencies-nav a.is-active {
  color: var(--paper);
}

.residencies-nav a.is-active {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.residencies-opening {
  position: relative;
  min-height: 260vh;
}

.residencies-title {
  position: sticky;
  top: 78px;
  z-index: 5;
  width: max-content;
  max-width: calc(100vw - 52px);
  margin: 0;
  padding-left: var(--gutter);
  color: var(--paper);
  font-size: clamp(112px, 16.2vw, 246px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.78;
  pointer-events: none;
}

.residencies-opening-note,
.residencies-opening-year {
  position: absolute;
  top: calc(100vh - 38px);
  z-index: 4;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.residencies-opening-note {
  left: var(--gutter);
}

.residencies-opening-year {
  right: var(--gutter);
}

.residencies-opening-flow {
  position: relative;
  z-index: 2;
  margin-top: -2vh;
  padding-bottom: 16vh;
}

.residencies-introduction {
  width: min(56vw, 880px);
  margin: 30vh 9vw 0 auto;
  font-size: clamp(35px, 3.6vw, 55px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.residency-hero-media {
  width: min(72vw, 1120px);
  margin: 42vh 0 0 5vw;
}

.residency-media-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.residency-media-button img,
.residency-hero-media > img {
  display: block;
  width: 100%;
  height: auto;
}

.residency-media-action {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  mix-blend-mode: difference;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.residencies-exchange {
  display: grid;
  gap: 1.5em;
  width: min(49vw, 760px);
  margin: 28vh 7vw 0 auto;
}

.residencies-label {
  margin: 0 0 28px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.residencies-exchange > p {
  margin: 0;
  font-size: clamp(31px, 3.2vw, 49px);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 1;
}

.residency-secondary-media {
  width: min(48vw, 760px);
  margin: 24vh 0 0 12vw;
}

.residency-secondary-media img,
.residency-campus-media img {
  width: 100%;
  height: auto;
}

.residency-conversations {
  position: relative;
  min-height: 160vh;
  padding: 18vh var(--gutter) 24vh;
}

.residency-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 8vw;
  width: min(1180px, 86vw);
  margin-left: auto;
}

.residency-section-heading .residencies-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.residency-section-heading h2 {
  margin: 0;
  font-size: clamp(50px, 6.1vw, 92px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.residency-section-heading > p:last-child {
  align-self: end;
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

.residency-film-index {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18vh 3vw;
  width: min(1180px, 92vw);
  margin: 25vh auto 0;
}

.residency-film-index figure {
  grid-column: span 6;
  margin: 0;
}

.residency-film-index figure:nth-child(1) {
  grid-column: 1 / span 7;
}

.residency-film-index figure:nth-child(2) {
  grid-column: 8 / span 5;
  margin-top: 24vh;
}

.residency-film-index figure:nth-child(3) {
  grid-column: 2 / span 5;
}

.residency-film-index figure:nth-child(4) {
  grid-column: 7 / span 6;
  margin-top: 16vh;
}

.residency-film-index figure:nth-child(5) {
  grid-column: 4 / span 7;
}

.residency-film-index button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.residency-film-index button img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.residency-film-index button:hover img,
.residency-film-index button:focus-visible img {
  opacity: 0.78;
}

.residency-film-play {
  position: absolute;
  right: 18px;
  bottom: 17px;
  color: var(--paper);
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
  transform: translateX(0);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.residency-film-index button:hover .residency-film-play,
.residency-film-index button:focus-visible .residency-film-play {
  transform: translateX(3px);
}

.residency-film-index figcaption {
  margin-top: 9px;
}

.residency-prizes {
  position: relative;
  min-height: 220vh;
  padding: 15vh var(--gutter) 24vh;
}

.residency-prizes > h2 {
  width: min(930px, 74vw);
  margin: 0;
  font-size: clamp(70px, 9.3vw, 142px);
  font-weight: 700;
  letter-spacing: -0.078em;
  line-height: 0.84;
}

.residency-prizes-copy {
  display: grid;
  gap: 2em;
  width: min(49vw, 720px);
  margin: 28vh 7vw 0 auto;
  font-size: clamp(27px, 2.8vw, 43px);
  font-weight: 600;
  letter-spacing: -0.048em;
  line-height: 1.02;
}

.residency-prizes-copy p {
  margin: 0;
}

.residency-campus-media {
  width: min(58vw, 900px);
  margin: 30vh 0 0 9vw;
}

.residency-viewer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 24px 28px 22px;
  overflow: hidden;
  background: #000;
  border: 0;
  outline: 0;
}

.residency-viewer[hidden] { display: none; }
.residency-viewer:focus,.residency-viewer:focus-visible { outline: 0; }

.residency-viewer-close {
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(242, 240, 234, 0.72);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.residency-viewer-close:hover,.residency-viewer-close:focus-visible { color: var(--paper); }

.residency-viewer-stage {
  display: grid;
  min-height: 0;
  padding: 4px 12px 0;
  place-items: center;
  overflow: hidden;
}

.residency-viewer-frame {
  width: min(1500px, calc(100vw - 80px));
  max-height: calc(100dvh - 158px);
  aspect-ratio: 16 / 9;
  background: #000;
}

.residency-viewer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.residency-viewer-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(1500px, calc(100vw - 56px));
  margin: 0 auto;
  gap: 40px;
  align-items: end;
}

.residency-viewer-caption {
  display: grid;
  gap: 5px;
  min-width: 0;
  max-width: min(58vw, 680px);
}

.residency-viewer-caption strong {
  color: rgba(242, 240, 234, 0.94);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.residency-viewer-caption > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.residency-viewer-controls {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2px;
}

.residency-viewer-controls button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(242, 240, 234, 0.64);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.residency-viewer-controls button:hover,
.residency-viewer-controls button:focus-visible {
  color: var(--paper);
}

.is-viewing-residency {
  overflow: hidden;
}

@media (max-width: 900px) {
  .residencies-header {
    position: absolute;
  }

  .residencies-nav a:not(.is-active) {
    display: none;
  }

  .residencies-title {
    top: 72px;
    font-size: clamp(66px, 19vw, 112px);
  }

  .residencies-introduction,
  .residencies-exchange,
  .residency-prizes-copy {
    width: auto;
    margin-right: 20px;
    margin-left: 20px;
  }

  .residency-hero-media,
  .residency-secondary-media,
  .residency-campus-media {
    width: calc(100vw - 40px);
    margin-right: 20px;
    margin-left: 20px;
  }

  .residency-section-heading {
    grid-template-columns: 1fr;
    width: auto;
  }

  .residency-film-index {
    width: auto;
    margin-right: 20px;
    margin-left: 20px;
  }

  .residency-film-index figure,
  .residency-film-index figure:nth-child(n) {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .residency-prizes > h2 {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .residency-film-play {
    transition: none;
  }

  .residency-film-index button:hover .residency-film-play,
  .residency-film-index button:focus-visible .residency-film-play {
    transform: none;
  }

  .residency-film-index button img {
    transition: none;
  }
}

/* Desktop: the Archive/Profile rhythm carried through the full page. */
@media (min-width: 901px) {
  .residencies-title.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .residencies-opening {
    min-height: 0;
    padding-top: 126px;
  }

  .residencies-opening-flow {
    margin-top: 0;
    padding-bottom: 0;
  }

  .residencies-introduction,
  .residencies-exchange,
  .residency-conversations-intro,
  .residency-prizes-copy {
    width: min(52vw, 820px);
    margin-left: auto;
    margin-right: 6vw;
    color: var(--paper);
    font-size: clamp(38px, 3.55vw, 54px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.98;
  }

  .residencies-exchange,
  .residency-prizes-copy {
    width: min(54vw, 820px);
    margin-right: auto;
    margin-left: auto;
    color: rgba(242, 240, 234, 0.88);
    font-size: clamp(24px, 2.45vw, 38px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.14;
  }

  .residencies-introduction {
    margin-top: 0;
    margin-bottom: 38vh;
  }

  .residency-hero-media {
    width: min(90vw, 1480px);
    margin: 0 auto;
  }

  .residencies-exchange {
    margin-top: 0;
    margin-bottom: 96px;
    gap: 28px;
  }

  .residencies-exchange .review-section-heading,
  .residency-prizes-copy .review-section-heading {
    margin-bottom: 0;
    font-size: 24px;
    letter-spacing: 0;
  }

  .residencies-exchange > p {
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
  }

  .residency-secondary-media {
    width: min(54vw, 850px);
    margin: 32vh 0 0 12vw;
  }

  .residency-conversations {
    min-height: 0;
    padding: 96px var(--gutter) 0;
  }

  .residency-section-heading {
    display: block;
    width: auto;
    margin: 0;
  }

  .residency-section-heading > p.residency-conversations-intro {
    margin-top: 0;
    margin-right: 6vw;
    margin-bottom: 0;
    margin-left: auto;
    color: var(--paper);
    font-size: clamp(38px, 3.55vw, 54px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.98;
  }

  .residency-film-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
    width: min(90vw, 1480px);
    margin: 0 auto;
  }

  .residency-film-index figure,
  .residency-film-index figure:nth-child(n) {
    width: 100%;
    margin: 0;
    grid-column: auto;
    min-width: 0;
  }

  .residency-film-index figure + figure {
    margin-top: 0;
  }

  .residency-film-index figure:nth-child(2) {
    width: 100%;
    margin-left: auto;
  }

  .residency-film-index figure:nth-child(3) {
    width: 100%;
    margin-left: 0;
  }

  .residency-film-index figure:nth-child(4) {
    width: 100%;
    margin-left: auto;
  }

  .residency-film-index figure:nth-child(5) {
    width: min(80vw, 1300px);
    margin-right: auto;
    margin-left: auto;
  }

  .residency-prizes {
    min-height: 0;
    padding: 30vh var(--gutter) 32vh;
  }

  .residency-prizes-copy {
    display: grid;
    gap: 28px;
    margin-top: 0;
  }

  .residency-prize-list-link {
    display: inline-flex;
    width: fit-content;
    gap: 6px;
    align-items: baseline;
    color: rgba(242, 240, 234, 0.68);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
    transition: color 180ms ease;
  }

  .residency-prize-list-link:hover,
  .residency-prize-list-link:focus-visible {
    color: var(--paper);
  }

  .residency-campus-media {
    width: min(90vw, 1480px);
    margin: 96px auto 0;
  }

}

@media (max-width: 900px) {
  html,
  body,
  .residencies-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .residencies-opening {
    min-height: 0;
    padding: 112px 20px 0;
  }

  .residencies-title,
  .residencies-opening-note,
  .residencies-opening-year {
    display: none;
  }

  .residencies-opening-flow {
    margin: 0;
    padding: 0;
  }

  .residencies-introduction {
    width: 100%;
    margin: 0 0 116px;
    color: var(--paper);
    font-size: clamp(32px, 9.2vw, 42px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.98;
  }

  .residency-hero-media {
    width: 100%;
    margin: 0 0 110px;
  }

  .residencies-exchange {
    width: 94%;
    margin: 0 0 110px auto;
  }

  .residencies-exchange > p {
    font-size: clamp(26px, 7.2vw, 34px);
    font-weight: 500;
    line-height: 1.06;
  }

  .residency-secondary-media {
    width: 78vw;
    margin: 0 0 0 auto;
  }

  .residency-conversations {
    min-height: 0;
    padding: 64px 20px 0;
  }

  .residency-section-heading {
    display: block;
    width: 100%;
    margin: 0;
  }

  .residency-section-heading > p.residency-conversations-intro {
    width: 100%;
    margin: 0;
    color: var(--paper);
    font-size: clamp(30px, 8.4vw, 39px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
  }

  .residency-film-index {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 40px;
    margin: 0;
  }

  .residency-film-index figure,
  .residency-film-index figure:nth-child(n) {
    width: 100%;
    margin: 0;
  }

  .residency-film-index figure:nth-child(even) {
    width: 100%;
    margin-left: auto;
  }

  .residency-film-index figure:nth-child(3n) {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .residency-prizes {
    min-height: 0;
    padding: 120px 20px 150px;
  }

  .residency-prizes > h2 { display: none; }

  .residency-prizes-copy {
    width: 100%;
    gap: 28px;
    margin: 0;
    font-size: clamp(27px, 7.6vw, 36px);
    font-weight: 500;
    line-height: 1.05;
  }

  .residency-prize-list-link {
    min-height: 44px;
    align-items: center;
    font-size: 12px;
  }

  .residency-campus-media {
    width: 100%;
    margin: 104px 0 0 auto;
  }

  .residency-viewer {
    gap: 12px;
    padding: 16px;
  }

  .residency-viewer-close {
    top: 8px;
    right: 8px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
  }

  .residency-viewer-stage { padding-top: 40px; }
  .residency-viewer-frame { width: 100%; }

  .residency-viewer-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .residency-viewer-controls {
    width: 100%;
    justify-content: space-between;
  }

  .residency-viewer-controls button { min-height: 44px; }
}
.residency-viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  color: var(--paper);
}
.residencies-exchange > p,
.residency-prizes-copy > p {
  font-size: 23px;
  line-height: 1.45;
  letter-spacing: 0;
}
.residencies-exchange,
.residency-prizes-copy { gap: 28px; }
.residencies-exchange .review-section-heading,
.residency-prizes-copy .review-section-heading {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}
.residency-prizes { padding-top: 112px; padding-bottom: 100px; }
@media (max-width: 900px) {
  .residencies-exchange { width: 100%; margin-bottom: 64px; }
  .residencies-exchange > p,
  .residency-prizes-copy > p { font-size: 20px; line-height: 1.45; letter-spacing: 0; }
  .residency-prizes { padding-top: 80px; padding-bottom: 80px; }
}
