/* ============================================================
   studio film section (rabbet 2026-11-30)
   Two clips of the work being made, below Material & Provenance.
   Posters carry the weight; the video only downloads on click.
   Matches the page's own type scale and cream field.
   ============================================================ */

.kg-films {
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 2rem);
  background: #faf8f3;
  border-top: 1px solid rgba(26,26,26,.07);
}

.kg-films__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.kg-films__head {
  max-width: 46rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.kg-films__head .section-title {
  margin: .5rem 0 .9rem;
}

.kg-films__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

/* ---- one film ---- */
.kg-film {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.kg-film__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0b0d12;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;   /* both source clips are portrait */
}
.kg-film__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform .6s cubic-bezier(.2,.7,.3,1), opacity .4s ease;
}
.kg-film__btn:hover .kg-film__poster,
.kg-film__btn:focus-visible .kg-film__poster {
  transform: scale(1.035);
  opacity: .93;
}
.kg-film__btn:focus-visible {
  outline: 2px solid #8a6d2f;
  outline-offset: 3px;
}

/* the play mark: a thin ring, not a fat triangle */
.kg-film__play {
  position: absolute;
  left: 50%; top: 50%;
  width: 62px; height: 62px;
  margin: -31px 0 0 -31px;
  border: 1px solid rgba(255,253,247,.85);
  border-radius: 50%;
  background: rgba(8,10,16,.28);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
  pointer-events: none;
}
.kg-film__play::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  margin: -8px 0 0 -5px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent rgba(255,253,247,.92);
}
.kg-film__btn:hover .kg-film__play,
.kg-film__btn:focus-visible .kg-film__play {
  background: rgba(8,10,16,.46);
  border-color: #fffdf7;
  transform: scale(1.06);
}

/* once playing, the button is just a frame */
.kg-film__btn.is-playing {
  aspect-ratio: auto;
  background: #000;
}
.kg-film__btn.is-playing .kg-film__poster,
.kg-film__btn.is-playing .kg-film__play { display: none; }
.kg-film video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  background: #000;
}

.kg-film figcaption {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-top: .95rem;
}
.kg-film__k {
  font: 600 9.5px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8a6d2f;
}
.kg-film__c {
  font: 400 14px/1.62 "Cormorant Garamond", Georgia, serif;
  color: #4a4740;
  max-width: 30em;
}

@media (max-width: 720px) {
  .kg-films__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .kg-film__btn { aspect-ratio: 4 / 5; }
  .kg-film__play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
}
@media (prefers-reduced-motion: reduce) {
  .kg-film__poster { transition: none; }
  .kg-film__btn:hover .kg-film__poster { transform: none; }
}

/* the second clip's frame sits high in its source: bias the crop up so the
   panel and the wall are kept and the floor is dropped */
.kg-film:nth-of-type(2) .kg-film__poster { object-position: center 28%; }
/* ============================================================
   mobile containment (rabbet 2026-11-30)
   On a 390px viewport the banner's cover image measured 406px wide:
   the scale(1.04) crop transform pushed it past its own frame and it
   was contributing to document width. Clip at the section instead.
   ============================================================ */
.kg-banner { overflow: hidden; max-width: 100vw; }
.kg-banner__img { max-width: 100%; }
.kg-tick { overflow: hidden; max-width: 100vw; }
.kg-tick__rail { overflow: hidden; min-width: 0; }
.kg-films { max-width: 100vw; overflow-x: hidden; }
.kg-films__grid { min-width: 0; }
.kg-film { min-width: 0; }
.kg-film__btn { max-width: 100%; }
