/* home — merged work index + info.
   Loads after film.css. Every rule is scoped to .film-page.home-page.
   film.css supplies the tokens, .disp / .mono roles, .home-hero, .projects
   and .monogram; this file only adds what the merge needs. */

/* ---- nav sits over the hero ---- */
.film-page.home-page .home-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: clamp(16px, 3vw, 28px) var(--gutter);
}
.film-page.home-page .home-nav .mono { color: var(--paper-dim); }
.film-page.home-page .home-nav a:hover { color: var(--paper); }

.film-page.home-page .home-hero { position: relative; }
.film-page.home-page .home-hero-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
}
.film-page.home-page .home-hero-slide[data-slide="december"] img {
  object-position: center 48%;
}
.film-page.home-page .home-hero-slide.has-video video { opacity: 1; }
/* more air under the title stack; film.css's clamp bottoms the last line out */
.film-page.home-page .home-hero .hero-overlay {
  padding-bottom: clamp(40px, 7vw, 72px);
}

/* Focal point per still. film.css defaults every slide to `right center`,
   which holds at desktop but swings the crop off the subject as the viewport
   narrows — at phone widths the still is scaled to ~4x the container and
   `right` keeps only the far edge of the frame. Anchor each slide on its own
   subject instead so it survives any aspect ratio. */
.film-page.home-page .home-hero-slide[data-slide="unsanctioned"] img {
  /* anchor the right-side subject (the 2nd ninth from the right edge) so the
     narrow crop stays on her instead of swinging to the left figure */
  object-position: 82% 25%;
}

/* ---- hero title list — this is the index ---- */
.film-page.home-page .home-eyebrow {
  color: var(--paper-dim);
  margin-bottom: clamp(16px, 2.5vw, 24px);
}
.film-page.home-page .home-titles {
  list-style: none;
  display: grid;
  gap: clamp(2px, 0.6vw, 8px);
}
.film-page.home-page .home-titles a {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.25s ease;
}
/* film.css colors and sizes .hero-overlay .disp / .mono directly, which would
   otherwise beat the anchor rule above and keep every title full white. Scope
   through .home-hero so the title list wins and its parts inherit the
   active/inactive color from the anchor. */
.film-page.home-page .home-hero .home-titles a .disp {
  font-size: clamp(26px, 6.2vw, 76px);
  line-height: 0.96;
  color: inherit;
}
.film-page.home-page .home-hero .home-titles a sup {
  font-size: 11px;
  letter-spacing: 0.14em;
  padding-top: 0.35em;
  margin-bottom: 0;
  color: inherit;
}
.film-page.home-page .home-titles li.is-active a,
.film-page.home-page .home-titles a:hover,
.film-page.home-page .home-titles a:focus-visible { color: var(--paper); }
.film-page.home-page .home-titles a:focus-visible {
  outline: var(--rule) solid var(--paper);
  outline-offset: 6px;
}

/* ---- shared section rhythm ---- */
.film-page.home-page .home-work,
.film-page.home-page .home-info,
.film-page.home-page .home-contact {
  padding: clamp(48px, 8vw, 96px) var(--gutter);
}
.film-page.home-page .home-count {
  color: var(--paper-dim);
  margin-bottom: clamp(20px, 3vw, 32px);
}

/* ---- info (was /about) ---- */
.film-page.home-page .home-info { border-top: var(--rule) solid rgba(255, 255, 255, 0.14); }
.film-page.home-page .info-statement {
  font-size: clamp(32px, 5.4vw, 68px);
  line-height: 1.08;
  max-width: 15em;
}
.film-page.home-page .info-statement i { font-style: italic; }
.film-page.home-page .info-support {
  margin-top: clamp(24px, 4vw, 44px);
  max-width: 34em;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  color: var(--paper-dim);
}

/* label / value table — same pattern as the film-page credits block */
.film-page.home-page .info-table {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: var(--rule) solid rgba(255, 255, 255, 0.14);
}
.film-page.home-page .info-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.32fr) 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: 14px 0;
  border-bottom: var(--rule) solid rgba(255, 255, 255, 0.14);
}
.film-page.home-page .info-row dt,
.film-page.home-page .info-row dd {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.7;
}
.film-page.home-page .info-row dt { color: var(--paper-dim); }
.film-page.home-page .info-row dd { color: var(--paper); }
.film-page.home-page .info-row dd a:hover { color: var(--paper-dim); }
.film-page.home-page .info-row dd a:focus-visible {
  outline: var(--rule) solid var(--paper);
  outline-offset: 3px;
}

/* ---- direct contact ---- */
.film-page.home-page .home-contact {
  position: relative;
  display: grid;
  min-height: clamp(520px, 72vw, 860px);
  place-items: center;
  overflow: hidden;
  border-top: var(--rule) solid rgba(255, 255, 255, 0.14);
  padding: 0;
  text-align: center;
}
.film-page.home-page .contact-film-media {
  position: absolute;
  inset: 0;
  background: #070707;
}
.film-page.home-page .contact-film-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: filter 500ms ease, transform 800ms ease;
}
.film-page.home-page .contact-film-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.16) 45%, rgba(0, 0, 0, 0.54)),
    linear-gradient(to right, rgba(0, 0, 0, 0.36), transparent 54%);
  transition: opacity 400ms ease;
}
.film-page.home-page .home-contact-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  transition: opacity 350ms ease, transform 500ms ease;
}
.film-page.home-page .home-contact-content > .mono { color: rgba(255, 255, 255, 0.72); }
.film-page.home-page .home-contact h2 {
  margin: clamp(34px, 6vw, 72px) auto clamp(24px, 4vw, 42px);
  font-size: clamp(60px, 11vw, 160px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.78;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
}
.film-page.home-page .home-contact h2 i { font-weight: 400; }
.film-page.home-page .contact-film-play {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
  padding: 10px 0 8px;
  border: 0;
  border-bottom: var(--rule) solid currentColor;
  background: transparent;
  color: var(--paper);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.film-page.home-page .contact-film-play:hover,
.film-page.home-page .contact-film-play:focus-visible { color: rgba(255, 255, 255, 0.72); }
.film-page.home-page .home-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 7px;
  border-bottom: var(--rule) solid currentColor;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--paper);
}
.film-page.home-page .home-contact-link:hover,
.film-page.home-page .home-contact-link:focus-visible { color: var(--paper-dim); }

.film-page.home-page .contact-film-controls {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: clamp(18px, 3vw, 30px);
  left: var(--gutter);
  display: grid;
  grid-template-columns: auto auto minmax(100px, 1fr) auto auto auto auto auto;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  border-top: var(--rule) solid rgba(255, 255, 255, 0.65);
  color: var(--paper);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}
.film-page.home-page .contact-film-controls[hidden] { display: none; }
.film-page.home-page .contact-film-controls button,
.film-page.home-page .contact-film-controls a {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.film-page.home-page .contact-film-controls button:hover,
.film-page.home-page .contact-film-controls button:focus-visible,
.film-page.home-page .contact-film-controls a:hover,
.film-page.home-page .contact-film-controls a:focus-visible { color: var(--paper-dim); }
.film-page.home-page .contact-film-timeline {
  display: block;
  min-width: 0;
}
.film-page.home-page .contact-film-timeline input {
  display: block;
  width: 100%;
  accent-color: var(--paper);
}
.film-page.home-page .home-contact.is-previewing .contact-film-video {
  filter: saturate(1.08);
  transform: scale(1.025);
}
.film-page.home-page .home-contact.is-playing .home-contact-content {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
.film-page.home-page .home-contact.is-playing .contact-film-scrim { opacity: 0; }
.film-page.home-page .home-contact.is-playing .contact-film-video {
  filter: none;
  transform: scale(1);
}

.film-page.home-page .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;
}

@media (max-width: 719px) {
  .film-page.home-page .info-row { grid-template-columns: 1fr; gap: 2px; }

  .film-page.home-page .home-contact { min-height: 620px; }
  .film-page.home-page .contact-film-video { object-position: 42% center; }
  .film-page.home-page .contact-film-controls {
    grid-template-columns: auto auto minmax(80px, 1fr) auto auto;
    row-gap: 14px;
  }
  .film-page.home-page .contact-film-controls [data-contact-mute],
  .film-page.home-page .contact-film-controls > a,
  .film-page.home-page .contact-film-controls [data-contact-close] { grid-row: 2; }
  .film-page.home-page .contact-film-controls [data-contact-mute] { grid-column: 1; }
  .film-page.home-page .contact-film-controls > a { grid-column: 2 / span 2; }
  .film-page.home-page .contact-film-controls [data-contact-close] { grid-column: 5; }

  /* the identity line is long; give it its own row so it never collides with
     WRITING / INFO / INSPO at phone widths */
  .film-page.home-page .home-nav {
    flex-wrap: wrap;
    row-gap: 14px;
    align-items: flex-start;
  }
  .film-page.home-page .home-nav .mono {
    flex: 1 1 100%;
    font-size: 10px;
    letter-spacing: 0.14em;
    line-height: 1.2;
  }
  .film-page.home-page .home-nav .nav-links { gap: clamp(14px, 4vw, 18px); }
}

/* ---- motion ---- */
@media (prefers-reduced-motion: reduce) {
  .film-page.home-page .home-titles a,
  .film-page.home-page .contact-film-video,
  .film-page.home-page .contact-film-scrim,
  .film-page.home-page .home-contact-content { transition: none; }
}
