:root {
  color-scheme: light;
  --black: #080808;
  --white: #f4f3ef;
  --pure-white: #fff;
  --muted: #74716a;
  --line: rgba(8, 8, 8, 0.2);
  --inverse-line: rgba(244, 243, 239, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}

body.dialog-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

::selection {
  background: #db3d2d;
  color: var(--pure-white);
}

.site-header {
  align-items: center;
  color: var(--pure-white);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 1.45rem 2.5rem;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}

.brand {
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.25);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.8rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
  transition: opacity 160ms ease;
}

.site-nav a:hover {
  opacity: 0.6;
}

.hero {
  background: #181311;
  height: 92svh;
  min-height: 40rem;
  overflow: hidden;
  position: relative;
}

.hero::after {
  background: var(--white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  bottom: -1px;
  content: "";
  height: 1.3rem;
  left: -5%;
  position: absolute;
  width: 110%;
  z-index: 2;
}

.hero__video,
.hero__shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero__video {
  object-fit: cover;
  object-position: center 44%;
}

.hero__shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 38%, rgba(0, 0, 0, 0.28)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 40%, rgba(0, 0, 0, 0.08));
}

.hero__identity {
  color: var(--pure-white);
  left: 50%;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 54rem);
  z-index: 1;
}

.hero__identity p {
  font-size: 0.78rem;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.hero__identity h1 {
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: 5.5rem;
  font-weight: 400;
  line-height: 0.96;
  margin: 0;
}

.hero__footer {
  align-items: center;
  bottom: 2.5rem;
  color: var(--pure-white);
  display: flex;
  font-size: 0.68rem;
  justify-content: space-between;
  left: 2.5rem;
  position: absolute;
  right: 2.5rem;
  text-transform: uppercase;
  z-index: 3;
}

.hero__footer p {
  margin: 0;
}

.hero__footer cite {
  font-style: normal;
}

.hero__footer a {
  align-items: center;
  display: inline-flex;
  gap: 0.7rem;
}

.hero__footer a span {
  font-size: 1rem;
}

.films {
  padding: 7rem 2.5rem 10rem;
}

.section-header {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  margin: 0 auto 5rem;
  max-width: 92rem;
  padding-bottom: 1rem;
}

.section-header p,
.section-header h2 {
  margin: 0;
}

.section-index,
.section-count {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.section-header h2 {
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1;
}

.film-grid {
  display: grid;
  gap: 8rem 1.4rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 92rem;
}

.film--hustle {
  grid-column: 1 / span 8;
}

.film--manhattan {
  align-self: end;
  grid-column: 9 / span 4;
  padding-top: 8rem;
}

.film--experimental {
  grid-column: 1 / span 4;
}

.film--heaven {
  align-self: end;
  grid-column: 5 / span 8;
  padding-top: 6rem;
}

.film--owl {
  grid-column: 1 / span 7;
}

.film--documentary {
  align-self: end;
  grid-column: 9 / span 4;
  padding-top: 4rem;
}

.film--profile {
  grid-column: 1 / span 4;
}

.film--class {
  align-self: end;
  grid-column: 5 / span 8;
  padding-top: 5rem;
}

.film__button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}

.film__image {
  background: #d3d1cb;
  display: block;
  overflow: hidden;
  position: relative;
}

.film__image--landscape {
  aspect-ratio: 16 / 9;
}

.film__image--portrait {
  aspect-ratio: 4 / 5;
}

.film__image img {
  height: 100%;
  object-fit: cover;
  transition: filter 350ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.film--manhattan .film__image img {
  object-position: 55% center;
}

.film--experimental .film__image img {
  object-position: center;
}

.film--documentary .film__image img {
  object-position: 5% center;
}

.film__play {
  align-items: center;
  background: rgba(244, 243, 239, 0.94);
  bottom: 0.8rem;
  color: var(--black);
  display: inline-flex;
  font-size: 0.65rem;
  height: 2.4rem;
  justify-content: center;
  opacity: 0;
  position: absolute;
  right: 0.8rem;
  text-transform: uppercase;
  transform: translateY(0.4rem);
  transition: opacity 180ms ease, transform 180ms ease;
  width: 3.7rem;
}

.film__button:hover .film__image img,
.film__button:focus-visible .film__image img {
  filter: brightness(0.9) saturate(0.92);
  transform: scale(1.025);
}

.film__button:hover .film__play,
.film__button:focus-visible .film__play {
  opacity: 1;
  transform: translateY(0);
}

.film__caption {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
}

.film__caption strong {
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.05;
}

.film__caption span {
  color: var(--muted);
  font-size: 0.64rem;
  text-align: right;
  text-transform: uppercase;
}

.interlude {
  background: var(--black);
  min-height: 88svh;
  overflow: hidden;
  position: relative;
}

.interlude img {
  height: 88svh;
  min-height: 42rem;
  object-fit: cover;
  object-position: center 42%;
  width: 100%;
}

.interlude::after {
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.35));
  content: "";
  inset: 0;
  position: absolute;
}

.interlude p {
  bottom: 2rem;
  color: var(--pure-white);
  font-size: 0.65rem;
  left: 2.5rem;
  margin: 0;
  position: absolute;
  text-transform: uppercase;
  z-index: 1;
}

.interlude cite {
  font-style: normal;
}

.about {
  background: var(--black);
  color: var(--white);
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr) minmax(17rem, 0.55fr);
  padding: 9rem 2.5rem;
}

.about__heading p {
  color: rgba(244, 243, 239, 0.55);
  font-size: 0.68rem;
  margin: 0 0 1.2rem;
  text-transform: uppercase;
}

.about__heading h2 {
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.about__statement {
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: 2.5rem;
  line-height: 1.14;
  margin: 0;
  max-width: 46rem;
}

.about__details {
  border-top: 1px solid var(--inverse-line);
  margin: 0;
}

.about__details div {
  border-bottom: 1px solid var(--inverse-line);
  padding: 0.85rem 0;
}

.about__details dt,
.about__details dd {
  font-size: 0.66rem;
  margin: 0;
  text-transform: uppercase;
}

.about__details dt {
  color: rgba(244, 243, 239, 0.5);
  margin-bottom: 0.25rem;
}

.site-footer {
  align-items: center;
  display: grid;
  font-size: 0.66rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 7rem;
  padding: 0 2.5rem;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  color: var(--muted);
  text-align: center;
}

.site-footer a {
  justify-self: end;
}

.project-dialog {
  background: transparent;
  border: 0;
  height: 100%;
  max-height: none;
  max-width: none;
  padding: 0;
  width: 100%;
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.project-dialog__close {
  align-items: center;
  background: var(--white);
  border: 0;
  border-radius: 50%;
  color: var(--black);
  cursor: pointer;
  display: flex;
  font-size: 1.65rem;
  height: 2.8rem;
  justify-content: center;
  line-height: 1;
  position: fixed;
  right: 1.25rem;
  top: 1.25rem;
  width: 2.8rem;
  z-index: 4;
}

.project-dialog__layout {
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(19rem, 0.35fr);
  min-height: 100%;
}

.project-dialog__media {
  align-items: center;
  background: #000;
  display: flex;
  justify-content: center;
  min-height: 100svh;
}

.project-dialog__video {
  max-height: 100svh;
  width: 100%;
}

.project-dialog__info {
  align-self: end;
  padding: 6rem 2.25rem 3rem;
}

.project-dialog__index,
.project-dialog__runtime {
  color: rgba(244, 243, 239, 0.52);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.project-dialog__info h2 {
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.96;
  margin: 1.2rem 0 2rem;
}

.project-dialog__credit {
  color: rgba(244, 243, 239, 0.72);
  font-size: 0.8rem;
  margin: 0;
}

.project-dialog__runtime {
  border-top: 1px solid var(--inverse-line);
  margin: 2rem 0 0;
  padding-top: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero__identity h1 {
    font-size: 4.3rem;
  }

  .film-grid {
    gap: 6rem 1.2rem;
  }

  .film--hustle,
  .film--heaven,
  .film--owl,
  .film--class {
    grid-column: span 7;
  }

  .film--manhattan,
  .film--experimental,
  .film--documentary,
  .film--profile {
    grid-column: span 5;
  }

  .film--hustle,
  .film--experimental,
  .film--owl,
  .film--profile {
    grid-column-start: 1;
  }

  .film--manhattan,
  .film--heaven,
  .film--documentary,
  .film--class {
    grid-column-start: 8;
  }

  .about {
    grid-template-columns: minmax(12rem, 0.55fr) minmax(0, 1.45fr);
  }

  .about__details {
    grid-column: 2;
  }

  .project-dialog__layout {
    display: block;
  }

  .project-dialog__media {
    min-height: auto;
  }

  .project-dialog__video {
    max-height: 76svh;
  }

  .project-dialog__info {
    padding-top: 3rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 1.1rem;
  }

  .brand {
    font-size: 1.08rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.72rem;
  }

  .hero {
    height: 88svh;
    min-height: 34rem;
  }

  .hero__video {
    object-position: 55% center;
  }

  .hero__identity h1 {
    font-size: 3.15rem;
  }

  .hero__footer {
    bottom: 2rem;
    left: 1.1rem;
    right: 1.1rem;
  }

  .films {
    padding: 5rem 1rem 7rem;
  }

  .section-header {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    margin-bottom: 3rem;
  }

  .section-count {
    display: none;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .film-grid {
    display: block;
  }

  .film,
  .film--manhattan,
  .film--heaven,
  .film--documentary,
  .film--class {
    padding-top: 0;
  }

  .film + .film {
    margin-top: 4rem;
  }

  .film__image--portrait {
    aspect-ratio: 4 / 3;
  }

  .film__play {
    opacity: 1;
    transform: none;
  }

  .film__caption {
    gap: 0.65rem;
  }

  .film__caption strong {
    font-size: 1.05rem;
  }

  .film__caption span {
    max-width: 9rem;
  }

  .interlude,
  .interlude img {
    height: 72svh;
    min-height: 34rem;
  }

  .interlude p {
    bottom: 1.25rem;
    left: 1rem;
  }

  .about {
    display: block;
    padding: 6rem 1rem;
  }

  .about__statement {
    font-size: 2rem;
    margin-top: 4rem;
  }

  .about__details {
    margin-top: 4rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    padding: 0 1rem;
  }

  .site-footer p:nth-child(2) {
    display: none;
  }

  .project-dialog__close {
    right: 0.75rem;
    top: 0.75rem;
  }

  .project-dialog__media {
    min-height: 55svh;
  }

  .project-dialog__info {
    padding: 3rem 1rem;
  }

  .project-dialog__info h2 {
    font-size: 2.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .film__image img,
  .film__play {
    transition: none;
  }
}
