@font-face {
  font-family: Barlow;
  src: url("barlow-semi-condensed-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("barlow-semi-condensed-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color: #191919;
  background: #fff;
  font-family: "katarine-web", Barlow, "Arial Narrow", Arial, sans-serif;
  --gutter: clamp(20px, 3.1vw, 56px);
  --line: #dfdfdf;
  --muted: #585858;
}

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

body { margin: 0; font-size: 1.0625rem; }

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

a { color: inherit; text-underline-offset: .23em; }

a:focus-visible, button:focus-visible, iframe:focus-visible {
  outline: 2px solid #1457a1;
  outline-offset: 4px;
}

h1, h2, h3, strong { font-weight: 500; }

.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 3;
  padding: .6rem 1rem;
  background: #fff;
}

.header {
  min-height: 93px;
  padding: 12px 3vw;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  position: relative;
  z-index: 2;
}

.brand, .header nav a {
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-decoration: none;
}

.brand { color: #222; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #767676;
}

.header nav a[aria-current], .header nav a:hover {
  color: #333;
}

.menu-toggle, .mobile-menu { display: none; }

.project-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: clamp(245px, 39.4vw, 760px);
  background: #252525;
  color: #fff;
  text-decoration: none;
}

.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,#000d 0%,#0007 24%,transparent 58%);
  z-index: -1;
}

.project-tile img {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.project-tile h2 {
  width: fit-content;
  max-width: min(100%, 55ch);
  margin: 0;
  padding: clamp(1.25rem, 3.2vw, 3.7rem) var(--gutter);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .1em;
  overflow-wrap: anywhere;
}

.project-tile:hover img { transform: scale(1.025); }
.project-tile:hover h2 { text-decoration: underline; text-decoration-thickness: .055em; }
.project-tile:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }

.film {
  width: min(100% - var(--gutter) * 2, 1000px);
  margin: 0 auto;
}

.film-heading {
  text-align: center;
  padding: clamp(2.8rem, 7vw, 6.7rem) 0 clamp(2rem, 4vw, 4rem);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: .012em;
}

.film-heading h1 {
  font-size: 1.375rem;
  line-height: 1.6;
  letter-spacing: .12em;
}

.film-heading p {
  margin: 1rem auto 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.45;
}

.player { aspect-ratio: 16 / 9; background: #222; }

.player iframe, .play-poster {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.play-poster {
  position: relative;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
}

.play-poster img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}

.play-poster-direct img { object-fit: contain; object-position: center; }

.play-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 48px;
  padding: .65rem 1.15rem;
  background: #181818eb;
  border: 1px solid #ffffff69;
  font-weight: 500;
}

.play-poster:hover .play-label { background: #fff; color: #191919; }

.play-label i {
  display: block;
  width: 0;
  height: 0;
  border-left: .63rem solid currentColor;
  border-top: .39rem solid transparent;
  border-bottom: .39rem solid transparent;
}

.watch-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .2rem; }

.film-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 1.5rem clamp(1.75rem, 5vw, 4rem);
  margin: clamp(1.4rem, 4vw, 3.2rem) 0;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-block: 1px solid var(--line);
}

.film-details h2 { margin: 0 0 .65rem; font-size: 1.2rem; }
.film-details ul { list-style: none; margin: 0; padding: 0; }
.film-details li { margin: .25rem 0; line-height: 1.45; }
.film-details a { display: inline-flex; align-items: center; min-height: 38px; }

.film-stills { display: grid; gap: clamp(.85rem, 2.4vw, 2rem); margin: clamp(1.75rem, 4vw, 3.5rem) 0; }
.film-stills figure { margin: 0; }
.film-stills img { width: 100%; height: auto; }

.film-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.3rem;
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 clamp(2.5rem, 6vw, 5rem);
}

.film-nav a {
  display: grid;
  align-content: center;
  min-height: 44px;
}

.film-nav a:nth-child(2) { text-align: right; }

.film-nav a span { color: var(--muted); font-size: .9rem; }
.film-nav a strong { font-size: 1.16rem; }

.about, .instagram {
  width: min(100% - var(--gutter) * 2, 1050px);
  margin-inline: auto;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
  padding-top: clamp(2rem, 6vw, 6rem);
}

.about img { width: 100%; height: auto; }
.biography p { line-height: 1.6; margin-bottom: 0; }
.editor-page .biography h2 { margin: 1.5rem 0 .45rem; font-size: 1.2rem; }
.editor-page .biography ul { margin: 0; padding-left: 1.2rem; }
.editor-examples { margin-block: clamp(2.5rem, 5vw, 5rem); }
.editor-examples article + article { margin-top: 2rem; }
.editor-examples h3 { margin: 0 0 .65rem; font-size: 1.125rem; }

.instagram {
  margin-top: clamp(3rem, 9vw, 7rem);
  margin-bottom: 6rem;
}

.instagram header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.35rem; margin-bottom: 1rem; }
.instagram h2 { margin: 0; font-size: 1.6rem; }
.instagram-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.instagram-grid a { display: block; aspect-ratio: 1; position: relative; }
.instagram-grid img { width: 100%; height: 100%; object-fit: cover; }
.instagram-grid a:hover img { filter: brightness(.85); }
.instagram-grid span { position: absolute; right: .45rem; bottom: .45rem; color: #fff; background: #161616ed; padding: .12rem .45rem; font-size: .85rem; }

.contact {
  min-height: 60vh;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1rem;
  padding: 4rem var(--gutter);
  text-align: center;
}

.contact a { font-size: 1.25rem; overflow-wrap: anywhere; }

@media (max-width: 767px) {
  .header { flex-wrap: wrap; min-height: 63px; padding: 0 0 0 15px; }
  .header.nav-ready { position: sticky; top: 0; gap: 0; }
  .header.nav-ready .desktop-nav { display: none; }
  .desktop-nav { flex-wrap: wrap; column-gap: .85rem; row-gap: 0; }
  .brand { font-size: 1rem; }

  .nav-ready .menu-toggle, .menu-close {
    display: grid;
    place-items: center;
    width: 55px;
    min-height: 55px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .menu-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
  }

  .menu-icon::before, .menu-icon::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 2px;
    background: currentColor;
  }

  .menu-toggle .menu-icon::before { top: -7px; }
  .menu-toggle .menu-icon::after { top: 7px; }
  .menu-close .menu-icon { width: 20px; background: transparent; }
  .menu-close .menu-icon::before { transform: rotate(45deg); }
  .menu-close .menu-icon::after { transform: rotate(-45deg); }

  html:has(.mobile-menu[open]) { overflow: hidden; }

  .mobile-menu[open] {
    display: grid;
    grid-template-rows: 63px minmax(min-content, 1fr);
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0 0 63px;
    border: 0;
    background: #111;
    color: #fff;
    overflow-y: auto;
  }

  .mobile-menu::backdrop { background: #111; }

  .menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 15px;
  }

  .menu-bar .brand { color: inherit; }
  .menu-close:focus-visible, .mobile-menu a:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }

  .mobile-menu nav { display: grid; align-self: center; justify-items: center; }
  .mobile-menu nav a {
    display: grid;
    place-items: center;
    min-height: 44px;
    width: 100%;
    padding: 0 15px;
    font-size: 1.375rem;
    letter-spacing: .12em;
    text-align: center;
    text-decoration: none;
  }
  .mobile-menu nav a:hover { text-decoration: underline; }
}

@media (max-width: 730px) {
  .film-details { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about img { width: min(100%, 440px); }
  .instagram-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .project-tile img { transition: none; }
  .project-tile:hover img { transform: none; }
}
