@font-face {
  font-family: "Hikma Display";
  src: url("/assets/fonts/HikmaDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17120e;
  --warm: #ece0cf;
  --paper: #e9dfd0;
  --dark: #0b0907;
  --mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --serif: Baskerville, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--warm);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 27px 38px;
  color: rgba(236, 224, 207, 0.78);
  mix-blend-mode: normal;
}

.site-wordmark,
.access-link {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-wordmark {
  max-width: 48vw;
}

.access-link {
  border-bottom: 1px solid rgba(236, 224, 207, 0.34);
  padding-bottom: 5px;
  transition: border-color 160ms ease, color 160ms ease;
}

.access-link:hover,
.access-link:focus-visible {
  border-color: currentColor;
  color: #fff8ee;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero picture,
.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  display: block;
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.64), transparent 42%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 24%);
}

.film-identity {
  position: absolute;
  z-index: 2;
  top: 10.5vh;
  left: 50%;
  width: min(820px, 78vw);
  transform: translateX(-50%);
  color: rgba(32, 25, 19, 0.95);
  text-align: center;
  text-shadow: 0 1px 18px rgba(245, 237, 224, 0.35);
}

.project-kicker,
.section-label,
.director-role,
.photo-note,
.access-kicker,
.access-panel label,
.access-note,
.site-footer,
.scroll-cue,
.project-meta dt {
  font-family: var(--mono);
  text-transform: uppercase;
}

.project-kicker {
  margin-bottom: 22px;
  font-size: 9px;
  letter-spacing: 0.24em;
}

.film-title {
  font-family: "Hikma Display", var(--serif);
  font-variant-caps: small-caps;
  font-weight: 400;
  line-height: 1;
}

.film-title span {
  display: block;
}

.title-line-1 {
  font-size: clamp(19px, 2.5vw, 33px);
  letter-spacing: 0.05em;
}

.title-line-2 {
  margin-top: 2px;
  font-size: clamp(30px, 4.1vw, 55px);
  letter-spacing: 0.02em;
}

.title-line-3 {
  margin-top: 2px;
  font-size: clamp(41px, 5.8vw, 80px);
}

.film-byline {
  margin-top: 20px;
  font-size: clamp(14px, 1.25vw, 19px);
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.film-byline em,
.film-byline span {
  display: block;
}

.film-byline em {
  font-size: 0.72em;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.film-byline span {
  margin-top: 5px;
}

.fund-support {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 38px;
  display: flex;
  max-width: 390px;
  align-items: center;
  gap: 12px;
  color: rgba(236, 224, 207, 0.86);
}

.fund-support img {
  width: 27px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.fund-support p {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.35;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 38px;
  bottom: 31px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(236, 224, 207, 0.64);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.project-overview,
.visual-world,
.director {
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;
}

.project-overview {
  display: grid;
  grid-template-columns: 0.7fr 2.2fr 1fr;
  gap: 54px;
  padding: 140px 0 150px;
}

.section-label {
  color: rgba(236, 224, 207, 0.52);
  font-size: 9px;
  letter-spacing: 0.2em;
  line-height: 1.5;
}

.project-copy {
  max-width: 760px;
}

.logline {
  font-size: clamp(26px, 3.15vw, 48px);
  font-style: italic;
  line-height: 1.14;
}

.short-synopsis {
  max-width: 620px;
  margin-top: 54px;
  color: rgba(236, 224, 207, 0.72);
  font-size: 17px;
  line-height: 1.58;
}

.project-meta {
  align-self: end;
}

.project-meta div {
  border-top: 1px solid rgba(236, 224, 207, 0.16);
  padding: 16px 0 22px;
}

.project-meta dt {
  margin-bottom: 8px;
  color: rgba(236, 224, 207, 0.42);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.project-meta dd {
  color: rgba(236, 224, 207, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.visual-world {
  padding-bottom: 150px;
}

.image-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: repeat(2, minmax(280px, 33vw));
  gap: 10px;
  margin-top: 28px;
}

.image-grid figure {
  overflow: hidden;
}

.image-grid .image-wide {
  grid-row: 1 / span 2;
}

.image-grid img,
.director-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-note {
  margin-top: 14px;
  color: rgba(236, 224, 207, 0.38);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.director {
  display: grid;
  min-height: 720px;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--paper);
  color: var(--ink);
}

.director-image {
  min-height: 620px;
}

.director-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px clamp(52px, 7vw, 110px);
}

.director-copy .section-label {
  color: rgba(23, 18, 14, 0.5);
}

.director-copy h2 {
  margin-top: 50px;
  font-family: "Hikma Display", var(--serif);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.95;
}

.director-role {
  margin: 18px 0 42px;
  color: rgba(23, 18, 14, 0.5);
  font-size: 9px;
  letter-spacing: 0.17em;
}

.director-copy > p:last-child {
  max-width: 510px;
  font-size: 18px;
  line-height: 1.58;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;
  padding: 42px 0 48px;
  color: rgba(236, 224, 207, 0.44);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.site-footer a {
  text-decoration: none;
}

.access-page {
  min-height: 100svh;
  overflow: hidden;
}

.access-backdrop,
.access-scrim {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.access-backdrop {
  object-fit: cover;
}

.access-scrim {
  background: rgba(0, 0, 0, 0.5);
}

.access-main {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 100px 24px 60px;
}

.access-panel {
  width: min(420px, 100%);
  text-align: center;
}

.access-kicker {
  color: rgba(236, 224, 207, 0.46);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.access-panel h1 {
  margin-top: 22px;
  font-family: "Hikma Display", var(--serif);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 400;
}

.access-panel form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 52px;
}

.access-panel label {
  color: rgba(236, 224, 207, 0.48);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.access-panel input {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-bottom: 1px solid rgba(236, 224, 207, 0.32);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--warm);
  font: italic 17px var(--serif);
  letter-spacing: 0.06em;
  padding: 10px 6px 12px;
  text-align: center;
}

.access-panel input:focus {
  border-bottom-color: rgba(236, 224, 207, 0.8);
}

.access-panel button {
  margin-top: 24px;
  border: 0;
  background: transparent;
  color: rgba(236, 224, 207, 0.72);
  cursor: pointer;
  font: 9px var(--mono);
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.access-panel button:disabled {
  cursor: wait;
  opacity: 0.45;
}

.access-message {
  min-height: 17px;
  margin-top: 20px;
  color: rgba(255, 224, 218, 0.86);
  font: 9px/1.6 var(--mono);
  letter-spacing: 0.08em;
}

.access-note {
  margin-top: 25px;
  color: rgba(236, 224, 207, 0.38);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .site-header {
    padding: 22px;
  }

  .site-wordmark {
    font-size: 8px;
  }

  .film-identity {
    top: 17vh;
    left: 0;
    width: 100%;
    padding: 0 20px;
    transform: none;
  }

  .project-kicker {
    margin-bottom: 16px;
  }

  .title-line-1 { font-size: 17px; }
  .title-line-2 { font-size: 27px; }
  .title-line-3 { font-size: 37px; }

  .film-byline {
    margin-top: 14px;
    font-size: 13px;
  }

  .fund-support {
    right: 22px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: 22px;
    max-width: none;
  }

  .fund-support img {
    width: 24px;
  }

  .fund-support p {
    font-size: 8px;
  }

  .scroll-cue {
    display: none;
  }

  .project-overview,
  .visual-world,
  .director,
  .site-footer {
    width: calc(100% - 44px);
  }

  .project-overview {
    display: block;
    padding: 88px 0 100px;
  }

  .project-copy {
    margin-top: 34px;
  }

  .logline {
    font-size: 28px;
  }

  .short-synopsis {
    margin-top: 34px;
    font-size: 16px;
  }

  .project-meta {
    margin-top: 60px;
  }

  .visual-world {
    padding-bottom: 100px;
  }

  .image-grid {
    display: block;
  }

  .image-grid figure {
    height: 58vw;
    min-height: 240px;
    margin-bottom: 8px;
  }

  .image-grid .image-wide {
    height: 82vw;
  }

  .director {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .director-image {
    min-height: 72vw;
  }

  .director-copy {
    padding: 62px 30px 70px;
  }

  .director-copy h2 {
    margin-top: 36px;
  }

  .director-role {
    margin-bottom: 30px;
  }

  .site-footer {
    gap: 24px;
    padding: 34px 0 38px;
  }
}

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