/* 2026-12-02: "How moAI remembers" film — a full-width band under the memo card.
   Scrolling plays the take (typing-storyboard/scroll-take.js), the same way as the film that opens
   "How moAI works". With reduced motion it is an ordinary video with controls. */
.memory-film {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  background: #b9b2a9;
}
.memory-film .take-stage { position: relative; margin: 0; }
.memory-film .take-stage > video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #b9b2a9;
}
.memory-film .film-description {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* While scrubbing, the stage stays under the header and the band is long enough to play the take. */
.memory-film[data-scrub] { overflow: visible; height: calc(min(56.25vw, 100svh - var(--site-header-height, 104px)) + 150svh); }
.memory-film[data-scrub] .take-stage {
  position: sticky;
  top: var(--site-header-height, 104px);
  height: min(56.25vw, 100svh - var(--site-header-height, 104px));
  overflow: hidden;
}
.memory-film[data-scrub] .take-stage > video { height: 100%; aspect-ratio: auto; object-fit: cover; }
@media (max-width: 700px) {
  .memory-film[data-scrub] { height: auto; }
  .memory-film[data-scrub]::after { content: ""; display: block; height: clamp(170px, 34svh, 300px); }
  .memory-film[data-scrub] .take-stage { height: auto; }
  .memory-film[data-scrub] .take-stage > video { height: auto; aspect-ratio: 16 / 9; }
  .memory-film .film-description {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 24px 14px;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    background: #f2f2ee;
    color: #4f564f;
    font-size: .9375rem;
    line-height: 1.5;
  }
}
