/* Film blocks: a 9:16 card beside its copy, on the light content pages.
   Tokens match the page's own :root (navy #0b2a5b, red #c8102e). */

.filmrow {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin: 6px 0 4px;
}

/* hark.css gives every figure a 16px 40px margin, which overflows a 300px grid column. */
.filmrow figure.filmcard {
  margin: 0;
}

.filmrow--wide {
  grid-template-columns: 340px 1fr;
}

.filmcard {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0b2a5b;
  box-shadow: 0 18px 44px rgba(11, 42, 91, 0.18), 0 2px 0 rgba(11, 42, 91, 0.06);
  aspect-ratio: 9 / 16;
  width: 100%;
}

.filmcard video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b2a5b;
}

.filmcard__meta {
  position: absolute;
  left: 12px;
  top: 12px;
  font: 500 11px/1 var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(11, 42, 91, 0.72);
  padding: 6px 9px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.filmcopy h2 {
  margin: 0 0 10px;
}

.filmcopy p {
  margin: 0 0 12px;
  max-width: 46ch;
}

/* A sourced quote sits inside the copy column; the panel is light on pages that are not. */
.filmquote {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-left: 3px solid #c8102e;
  background: #f5f7fb;
  border-radius: 0 10px 10px 0;
  max-width: 52ch;
  color: #16233c;
}

.filmquote p {
  margin: 0 0 8px;
  color: #16233c;
  font-size: 17px;
  line-height: 1.55;
}

.filmquote cite {
  font-style: normal;
  font: 500 12px/1.5 var(--font-mono, ui-monospace, monospace);
  color: #55647d;
}

@media (max-width: 760px) {
  .filmrow,
  .filmrow--wide {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .filmcard {
    max-width: 300px;
  }
}

/* Two objects per row: the copy sits above the pair, so no card ever shares a row with a
 * short column. A 9:16 card is 1.78x its width tall; any text column beside it is a void. */
.filmlead {
  max-width: 62ch;
  margin: 0 0 22px;
}

.filmlead p {
  margin: 0 0 10px;
}

.filmpair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: 30px;
  align-items: start;
}

.filmpair .filmcard {
  margin: 0;
}

/* A placeholder frame for the still: same shape as a card, and it cannot be mistaken for a film.
 * The capture is shorter than 9:16, so it centres inside the card's own shape rather than
 * leaving its caption 100px above the film's. */
.filmthread {
  border-radius: 14px;
  overflow: hidden;
  background: #161f39;
  box-shadow: 0 1px 2px #00000010;
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
}

.filmthread img {
  display: block;
  width: 100%;
  height: auto;
}

.filmcard__copy {
  padding-top: 12px;
}

.filmcard__copy h3 {
  margin: 8px 0 6px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.filmcard__copy p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-secondary, #636366);
}

.filmcard__tag {
  font: 600 10px/1 var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary, #8a8a8f);
}

@media (max-width: 760px) {
  .filmpair {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}

/* In a pair, the figure carries a caption, so the 9:16 shape moves onto the media itself.
 * `.filmcard` is the card *and* the box on the pages that have no caption; here it is a figure. */
.filmpair .filmcard {
  aspect-ratio: auto;
  overflow: visible;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.filmpair .filmcard video {
  aspect-ratio: 9 / 16;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(11, 42, 91, 0.18), 0 2px 0 rgba(11, 42, 91, 0.06);
}
