/* A contact sheet and a single moving plate, with the proportions of an art book. */
.motion-introduction { display:grid; grid-template-columns:1fr 1.25fr; gap:26px; margin:24px 0 0; }
.motion-introduction h2, .motion-introduction p { margin:0; color:var(--ink); font:400 12px/1.2 var(--sans); }
.motion-introduction h2 { max-width:100px; }
.motion-introduction p { font-size:10px; max-width:200px; }
.motion-contact-sheet { margin:24px 0 0; }
.motion-sheet-plate { position:relative; height:max(120px,calc(var(--leaf-height) - 340px)); }
.motion-sheet-plate + .motion-sheet-plate { margin-top:48px; }
.motion-print { position:absolute; display:block; width:27%; min-width:0; padding:0; text-align:left; color:var(--ink); }
.motion-print:nth-child(1) { left:0; top:0; }
.motion-print:nth-child(2) { left:0; top:43%; }
.motion-print:nth-child(3) { right:0; top:25%; }
.motion-print:nth-child(4) { left:36.5%; top:53%; }
.motion-print:nth-child(5) { right:0; top:65%; }
.motion-print:nth-child(6) { left:36.5%; top:4%; }
.motion-print-number { display:block; margin-bottom:4px; font:400 8px/1 var(--sans); font-variant-numeric:tabular-nums; }
.motion-print-image { position:relative; display:block; overflow:hidden; background:#e8e6df; height:calc(max(120px,var(--leaf-height) - 340px) * .27); transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s; }
.motion-print-image img { display:block; width:100%; height:100%; object-fit:cover; }
.motion-print:nth-child(1) .motion-print-image { height:calc(max(120px,var(--leaf-height) - 340px) * .33); }
.motion-print:nth-child(6) .motion-print-image { height:calc(max(120px,var(--leaf-height) - 340px) * .23); }
.motion-print-mark { position:absolute; right:5px; bottom:4px; color:white; mix-blend-mode:difference; opacity:0; transform:translate(-3px,3px); transition:opacity .2s,transform .2s; }
.motion-print-title { display:block; margin-top:5px; font:400 8px/1.2 var(--sans); }
.motion-print[aria-pressed=true] .motion-print-title { text-decoration:underline; text-underline-offset:3px; }
.motion-print[aria-pressed=true] .motion-print-number::after { content:' ·'; }
.motion-print:focus-visible { outline-offset:4px; }
.motion-index-note { margin:20px 0 0; font:400 8px/1.2 var(--sans); color:#777167; }
.motion-index-note span { margin-left:12px; }
.motion-feature { margin:24px 0 0; }
.motion-stage { position:relative; width:100%; height:clamp(230px,calc(var(--leaf-height) - 355px),585px); overflow:hidden; background:#eae9e3; isolation:isolate; }
.motion-poster, .motion-video { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; }
.motion-video { z-index:1; }
.motion-stage-play { position:absolute; inset:0; z-index:2; width:100%; height:100%; padding:0; }
.motion-stage-play > [data-study-symbol] { position:absolute; right:12px; bottom:12px; display:grid; place-items:center; width:28px; height:28px; border:1px solid #35352f55; border-radius:50%; color:var(--ink); background:#f6f4eebf; font:400 12px/1 var(--sans); transition:opacity .2s; }
.motion-stage.is-playing .motion-stage-play > [data-study-symbol] { opacity:0; }
.motion-stage:hover .motion-stage-play > [data-study-symbol], .motion-stage-play:focus-visible > [data-study-symbol] { opacity:1; }
.motion-stage-play:focus-visible { outline-offset:-5px; }
.motion-feature figcaption { display:grid; grid-template-columns:1fr 1.5fr; gap:18px; margin-top:12px; color:var(--ink); font:400 9px/1.25 var(--sans); }
.motion-caption-title { font-size:10px; }
.motion-player-controls { display:flex; align-items:center; gap:10px; margin:14px 0 0; padding-top:4px; border-top:1px solid #35352f26; }
.motion-player-controls button { min-height:36px; padding:0; font:400 9px/1 var(--sans); }
.motion-player-controls [data-study-toggle] { min-width:30px; text-align:left; }
.motion-player-controls [data-study-replay] { min-width:24px; font-size:14px; }
.motion-player-controls input { display:block; width:100%; min-width:35px; height:30px; margin:0; accent-color:#55534b; cursor:ew-resize; }
.motion-player-controls input:disabled { opacity:.28; cursor:default; }
.motion-player-controls output { min-width:53px; white-space:nowrap; text-align:right; font:400 8px/1 var(--sans); font-variant-numeric:tabular-nums; }
.motion-source { display:flex; justify-content:space-between; gap:16px; margin-top:8px; font:400 8px/1.2 var(--sans); }
.motion-source a { text-decoration:none; }
.motion-back { display:none; padding:0; font:inherit; }
.motion-status { margin:12px 0 0; max-width:240px; font:400 9px/1.3 var(--sans); }
@media (hover:hover) and (pointer:fine) {
  .motion-print:not(:disabled):hover .motion-print-image { transform:translateY(-3px); box-shadow:0 5px 9px #35352f18; }
  .motion-print:not(:disabled):hover .motion-print-mark { opacity:1; transform:none; }
}
@media (max-height:800px) and (min-width:761px) {
  .motion-introduction { margin-top:24px; gap:18px; }
  .motion-contact-sheet { margin-top:24px; }
  .motion-feature { margin-top:30px; }
  .motion-introduction p { font-size:9px; }
  .motion-stage { height:clamp(220px,calc(var(--leaf-height) - 310px),490px); }
}
@media (max-width:760px), (hover:none) and (pointer:coarse) and (max-width:1024px) {
  .motion-introduction { margin-top:38px; gap:24px; }
  .motion-introduction h2 { font-size:12px; }
  .motion-introduction p { font-size:10px; }
  .motion-contact-sheet { margin-top:34px; }
  .motion-sheet-plate { height:460px; }
  .motion-print-number, .motion-print-title { font-size:9px; }
  .motion-print-image, .motion-print:nth-child(1) .motion-print-image, .motion-print:nth-child(6) .motion-print-image { height:120px; }
  .motion-print:nth-child(1) .motion-print-image { height:150px; }
  .motion-print:nth-child(6) .motion-print-image { height:100px; }
  .motion-print-mark { opacity:1; transform:none; }
  .motion-index-note { margin-top:30px; font-size:9px; }
  .motion-feature { margin-top:28px; }
  .motion-stage { height:clamp(240px,calc(var(--leaf-height) - 310px),520px); }
  .motion-feature figcaption { font-size:10px; }
  .motion-caption-title { font-size:11px; }
  .motion-player-controls { gap:10px; margin-top:16px; }
  .motion-player-controls button { min-height:44px; font-size:11px; }
  .motion-player-controls [data-study-toggle] { min-width:38px; }
  .motion-player-controls [data-study-replay] { min-width:32px; font-size:17px; }
  .motion-player-controls input { height:44px; }
  .motion-player-controls output { font-size:9px; }
  .motion-source { align-items:center; font-size:10px; margin-top:8px; }
  .motion-source a, .motion-back { display:inline-flex; align-items:center; min-height:44px; }
  .motion-status { font-size:10px; }
}
@media (prefers-reduced-motion:reduce) {
  .motion-print-image, .motion-print-mark, .motion-stage-play > [data-study-symbol] { transition:none; }
}

/* A moving plate colors the entire physical page, including its running matter. */
.book .left-leaf.motion-themed-leaf, .book .right-leaf.motion-themed-leaf, .book .motion-leaf-surface {
  --ink:var(--study-ink); --muted:var(--study-ink); --rule:var(--study-rule);
  background:var(--study-background); color:var(--study-ink); color-scheme:light;
}
.book .motion-themed-leaf[data-study-tone=dark] { color-scheme:dark; }
.motion-detail { --ink:var(--study-ink); color:var(--study-ink); }
.motion-detail .motion-stage { background:var(--study-background); }
.book .motion-themed-leaf > .paper-grain { display:none; }
.motion-leaf-surface { position:absolute; inset:0; }
.motion-detail .motion-player-controls { border-color:var(--study-rule); }
.motion-detail .motion-player-controls input { accent-color:var(--study-ink); }
.motion-detail .motion-stage-play > [data-study-symbol] { color:var(--study-ink); background:var(--study-background); border-color:var(--study-rule); }
.motion-themed-leaf .mobile-reader-nav::before { background:var(--study-rule); }
/* A narrow feather absorbs the subtle gradients in the original motion films. */
.motion-detail .motion-poster, .motion-detail .motion-video {
  width:auto; height:auto; max-width:100%; max-height:100%; margin:auto;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 2%,#000 98%,transparent),linear-gradient(to bottom,transparent,#000 2%,#000 98%,transparent);
  mask-image:linear-gradient(to right,transparent,#000 2%,#000 98%,transparent),linear-gradient(to bottom,transparent,#000 2%,#000 98%,transparent);
  -webkit-mask-composite:source-in; mask-composite:intersect;
}
