:root {
  --bg: #ffffff;
  --ink: #050505;
  --muted: #9a9a9a;
  --line: #dedede;
  --soft: #eeeeee;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }

.page {
  width: 100%;
  min-height: 100vh;
  padding: 22px 38px 44px;
}
.identity {
  position: relative;
  z-index: 5;
  display: inline-grid;
  gap: 8px;
  font-size: clamp(11px, 1.15vw, 15px);
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.name { display: block; }
.nav {
  position: relative;
  display: block;
  font-size: 0.78em;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.nav-row { display: flex; gap: 5px; align-items: center; }
.nav-prompt { display: inline-block; margin-right: 2px; }
.nav a, .nav span { display: inline-block; }
.subnav {
  position: absolute;
  left: 2.65ch;
  top: 0.7em;
  z-index: 10;
  display: grid;
  gap: 5px;
  min-width: 34ch;
  padding: 20px 170px 34px 0;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  font-size: 0.88em;
  line-height: 1;
  letter-spacing: 0.1em;
  transition: none;
}
.subnav a::before { content: ">"; display: inline-block; margin-right: 6px; }
.films-subnav a[href="commercials.html"] { order: 1; }
.films-subnav a[href="music-videos.html"] { order: 2; }
.films-subnav a[href="personal-films.html"] { order: 3; }
.nav:has(.photographs-trigger:hover) .photographs-subnav,
.nav:has(.photographs-trigger:focus-visible) .photographs-subnav,
.nav:has(.photographs-subnav:hover) .photographs-subnav,
.nav:has(.photographs-subnav:focus-within) .photographs-subnav,
.nav:has(.films-trigger:hover) .films-subnav,
.nav:has(.films-trigger:focus-visible) .films-subnav,
.nav:has(.films-subnav:hover) .films-subnav,
.nav:has(.films-subnav:focus-within) .films-subnav {
  opacity: 1;
  visibility: visible;
}

.work-page { width: 100%; max-width: none; margin: 92px 0 0; }
.back-link, .section-label, .project-title, .footer {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.back-link, .section-label, .footer { color: var(--muted); }
.work-head { display: block; margin-bottom: 28px; }
.work-title {
  margin: 0;
  font-size: clamp(11px, 1.15vw, 15px);
  line-height: 1.05;
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: uppercase;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 24px;
  align-items: start;
}
.single-video-grid { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.centered-project-grid {
  grid-template-columns: minmax(0, 1fr);
  width: min(48vw, 680px);
  margin: 0 auto;
}
.project-card { display: block; min-width: 0; }
.project-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
  border: 0;
}
.project-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.harpers-cover img { transform: scale(1.18); transform-origin: center; }
.project-card:hover .project-cover img { opacity: 0.88; }
.project-meta { padding: 11px 0 2px; }
.project-title { color: var(--ink); }

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
  border: 0;
}
.single-video-grid .video { aspect-ratio: 4 / 3; }
.video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 0;
}
.preview iframe { pointer-events: none; }

.project-page {
  width: 100%;
  max-width: 1420px;
  margin: 72px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.project-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 34px;
  width: min(100%, 1120px);
  margin: 0 auto 22px;
}
.project-head > div:nth-child(2) {
  grid-column: 2;
  text-align: center;
}
.project-name {
  margin: 0;
  font-size: clamp(20px, 3.8vw, 48px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.project-player {
  width: min(100%, 1120px, calc((100vh - 255px) * 1.7778));
  min-width: 640px;
  margin: 0 auto 42px;
}
.stills-section {
  width: min(100%, 1120px);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.section-heading { margin-bottom: 18px; }
.stills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.stills-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  overflow: hidden;
}
.stills-grid.single-still {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}
.stills-grid.single-still img { aspect-ratio: 1 / 1; }
.still-placeholder {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 1120px);
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1420px;
  margin: 52px auto 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .page { padding: 18px; }
  .work-page, .project-page { margin-top: 84px; }
  .project-head { grid-template-columns: 1fr; gap: 18px; }
  .project-head > div:nth-child(2) { grid-column: 1; }
  .project-grid, .stills-grid { grid-template-columns: 1fr; }
  .stills-grid.single-still { grid-template-columns: minmax(0, 620px); }
  .centered-project-grid { width: min(100%, 620px); }
  .project-name { white-space: normal; }
  .project-player { width: min(100%, 900px); min-width: 0; }
}

@media (max-width: 620px) {
  .nav-row { gap: 4px; }
  .subnav {
    left: 2.65ch;
    gap: 5px;
    min-width: 32ch;
    padding: 20px 120px 34px 0;
    font-size: 0.86em;
  }
  .footer, .project-nav { flex-direction: column; align-items: flex-start; }
}