/* A quiet, graphite-green screening room. Media stays in its original 16:9 frame. */
html {
  scrollbar-gutter: stable;
}
html.film-open,
.film-open body {
  overflow: hidden;
  overscroll-behavior: none;
}
.film-open main *,
.film-open .site-header *,
.film-open .site-footer * {
  animation-play-state: paused !important;
}
.film-dialog {
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid #69765c;
  margin: auto;
  color: var(--paper);
  background: var(--dark);
  box-shadow: 0 32px 120px #0c140da6;
  overflow: auto;
  overscroll-behavior: contain;
}
.film-dialog::backdrop {
  background: #151d18e8;
  backdrop-filter: blur(10px);
}
.film-dialog[open] {
  animation: film-enter 280ms var(--ease) both;
}
.film-dialog[open]::backdrop {
  animation: film-backdrop 280ms ease both;
}
.film-dialog.is-closing {
  animation: film-exit 160ms ease both;
}
.film-dialog.is-closing::backdrop {
  animation: film-backdrop 160ms ease reverse both;
}
.film-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
}
.film-header .eyebrow {
  color: #c3ceb8;
  font-size: 8px;
  letter-spacing: 0.13em;
}
.film-header h2 {
  margin-top: 7px;
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.film-header h2 em {
  color: #c3cfb1;
}
.film-close {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #69765c;
  font: 10px var(--mono);
  transition: background 0.2s;
}
.film-close:hover,
.film-tools button:hover {
  background: #364132;
}
.film-close svg {
  width: 20px;
  height: 20px;
}
.film-stage {
  background: #121a14;
  border-block: 1px solid #59664e;
}
.film-stage video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: max(170px, calc(100dvh - 245px));
  object-fit: contain;
}
.film-stage video::cue {
  color: #fff;
  background: #172018e8;
  font-family: var(--sans);
}
.film-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 26px;
}
.film-status {
  color: #d3dcc9;
  font: 10px/1.6 var(--mono);
}
.film-status span {
  margin-left: 12px;
}
.film-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.film-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 9px;
  padding: 8px;
  font: 10px var(--mono);
}
.film-cc {
  border: 1px solid currentColor;
  padding: 2px 4px;
  font-size: 9px;
  line-height: 1.1;
}
.film-captions-toggle[aria-pressed="true"] .film-cc {
  color: var(--dark);
  background: #d6e1c7;
  border-color: #d6e1c7;
}
.film-transcript {
  border-top: 1px solid #526048;
}
.film-transcript summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 26px;
  list-style: none;
  font: 10px var(--mono);
  cursor: pointer;
}
.film-transcript summary::-webkit-details-marker {
  display: none;
}
.film-transcript summary span {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s;
}
.film-transcript[open] summary span {
  transform: rotate(45deg);
}
.film-transcript > div {
  max-width: 740px;
  padding: 4px 26px 26px;
  color: #d8dfd0;
  font-size: 13px;
  line-height: 1.9;
}
.film-error {
  padding: 18px 26px;
  background: #303b2c;
  border-top: 1px solid #69765c;
  font-size: 12px;
}
.film-error > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 8px;
}
.film-error a,
.film-error button {
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-block: 8px;
}
.film-dialog :focus-visible {
  outline: 2px solid #d9e5c9;
  outline-offset: -3px;
}
.film-fallback {
  font-size: 12px;
  margin-top: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@keyframes film-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes film-exit {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}
@keyframes film-backdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 760px) {
  .film-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  .film-header {
    padding: 20px 16px;
    gap: 10px;
  }
  .film-header .eyebrow {
    font-size: 7px;
  }
  .film-header h2 {
    max-width: 245px;
    font-size: 28px;
    line-height: 1.02;
  }
  .film-close {
    padding: 8px;
  }
  .film-close > span {
    display: none;
  }
  .film-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 16px 16px 8px;
  }
  .film-tools {
    align-self: stretch;
    justify-content: flex-end;
  }
  .film-transcript summary,
  .film-transcript > div,
  .film-error {
    padding-inline: 16px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .film-dialog {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100dvh - 16px);
  }
  .film-header {
    padding-block: 10px;
  }
  .film-header h2 {
    font-size: 24px;
  }
  .film-stage video {
    max-height: calc(100dvh - 165px);
  }
  .film-toolbar {
    flex-direction: row;
    align-items: center;
    padding-block: 2px;
  }
  .film-header .eyebrow {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .film-dialog[open],
  .film-dialog[open]::backdrop {
    animation: none;
  }
}
@media print {
  .film-dialog,
  .film-launch {
    display: none !important;
  }
}
