/* One pocket-sized instrument on each environment photograph. */
.study-cue.living-plate {
  --cue-width: clamp(182px, 17.3vw, 262px);
  --lp-footer: 26px;
  --lp-surface: #132420;
  --lp-edge: #dfd6ae;
  --lp-cream: #fff0cd;
  width: var(--cue-width);
  color: var(--lp-cream);
  text-decoration: none;
  filter: drop-shadow(0 5px 14px #0b130eb5);
  -webkit-tap-highlight-color: transparent;
}
.lp-mount {
  position: relative;
  display: block;
  aspect-ratio: 1.53;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #e6dfbdac;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--lp-surface) 40%, #12211f 88%);
  box-shadow: 0 0 0 3px #14221b66, inset 0 0 0 1px #23372c;
  transition: border-color .2s, box-shadow .2s;
}
.living-plate:hover .lp-mount, .living-plate:focus-visible .lp-mount {
  border-color: #fff2ce;
  box-shadow: 0 0 0 3px #18271d8c, 0 0 16px #f6e4ae30;
}
.living-plate:focus-visible { outline: 2px solid #fff2ce; outline-offset: 5px; }
.lp-shots, .lp-shot, .lp-field, .lp-glass { position: absolute; inset: 0; }
.lp-field, .lp-glass { bottom: var(--lp-footer); overflow: hidden; }
.lp-field { display: grid; place-items: center; }
.lp-field > .lp-image, .lp-field > .lp-drawing { display: block; width: 100%; height: 100%; min-height: 0; }
.lp-field .lp-contain { object-fit: contain; }
.lp-field .lp-cover { object-fit: cover; }
.lp-base { z-index: -1; }
.lp-shot {
  opacity: 0;
  animation-name: var(--lp-sequence);
  animation-duration: var(--lp-cycle);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: var(--lp-delay);
}
.lp-shot:first-child { opacity: 1; }
.lp-label {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  height: var(--lp-footer);
  padding: 0 25px 0 9px;
  background: #142220;
  color: #f6edd2;
  font: 550 clamp(.64rem, .79vw, .83rem)/1 var(--sans, sans-serif);
  letter-spacing: .012em;
}
.lp-inspect {
  position: absolute;
  right: 6px;
  bottom: calc((var(--lp-footer) - 14px)/2);
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--lp-edge);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.lp-glass {
  pointer-events: none;
  background:
    linear-gradient(var(--lp-edge),var(--lp-edge)) 5px 5px/9px 1px,
    linear-gradient(var(--lp-edge),var(--lp-edge)) 5px 5px/1px 7px,
    linear-gradient(var(--lp-edge),var(--lp-edge)) calc(100% - 5px) calc(100% - 5px)/9px 1px,
    linear-gradient(var(--lp-edge),var(--lp-edge)) calc(100% - 5px) calc(100% - 5px)/1px 7px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 9px #101b1b20;
}
.lp-advance {
  position: absolute;
  right: 0;
  left: 0;
  bottom: calc(var(--lp-footer) - 1px);
  height: 2px;
  background: #8b9a8c73;
}
.lp-advance::before {
  content: '';
  display: block;
  height: 100%;
  transform-origin: left;
  background: var(--lp-edge);
  animation: lp-exposure-time var(--lp-beat) linear infinite var(--lp-lead);
}
.lp-leader::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 8px;
  height: 3px;
  border-radius: 50%;
  background: #fff2d7;
  box-shadow: 0 0 5px 1px var(--scene-color, #c4d9a0);
  animation: lp-lead-pulse 2.8s ease-in-out -.7s infinite;
}

/* Each optical change is between independent records. The tank uses hard cuts
   between the position drawing and photograph of one instant. */
@keyframes lp-frames-2 {
  0%,46% { opacity: 1; } 50%,96% { opacity: 0; } 100% { opacity: 1; }
}
@keyframes lp-frames-3 {
  0%,30.7% { opacity: 1; } 33.334%,97.4% { opacity: 0; } 100% { opacity: 1; }
}
@keyframes lp-frames-4 {
  0%,23% { opacity: 1; } 25%,98% { opacity: 0; } 100% { opacity: 1; }
}
@keyframes lp-contacts {
  0%,49.99% { opacity: 1; } 50%,100% { opacity: 0; }
}
@keyframes lp-exposure-time { from { transform: scaleX(.045); } to { transform: scaleX(1); } }
@keyframes lp-lead-pulse {
  0% { left: 0; opacity: .02; } 15%,78% { opacity: .95; } 100% { left: 96%; opacity: .02; }
}

.lp-hide, .lp-learning, .lp-town {
  --lp-edge: #dcde91;
  --lp-surface: #142b29;
}
.lp-hide .lp-mount, .lp-learning .lp-mount, .lp-town .lp-mount, .lp-phone .lp-mount {
  background: radial-gradient(ellipse at 57% 42%, #26423c 0, #142c28 55%, #101d1a 100%);
}
.lp-rule, .lp-grid, .lp-week-rule, .lp-phone-rule {
  fill: none;
  stroke: #86a18f;
  stroke-width: 1;
}
.lp-grid { opacity: .30; stroke-dasharray: 2 3; }
.lp-rule { opacity: .65; }
.lp-ink-label { fill: #c7d5bd; font: 9px ui-monospace, monospace; }
.lp-reading { fill: none; stroke: #f2d888; stroke-linecap: round; stroke-width: 1.7; }
.lp-reading-1 { stroke: #a9d5c9; }
.lp-reading-2 { stroke: #eba996; }
.lp-reader-head {
  transform-box: view-box;
  animation: lp-read-time 8s linear infinite var(--lp-lead);
}
.lp-scan-wash { fill: #e6f39928; }
.lp-scan-edge { fill: none; stroke: #e5ed97; stroke-width: 1; }
.lp-scan-tip { fill: #e5ed97; }
@keyframes lp-read-time { from { transform: translateX(0); } to { transform: translateX(84.615%); } }

.lp-gates { --lp-edge: #fae5a7; }
.lp-gates .lp-base .lp-image { object-position: center 45%; }
.lp-gates .lp-base::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#162a1b30,#10231cec 45%,#10231cf5);
}
.lp-gates .lp-shot .lp-drawing { width: 65%; justify-self: end; margin-right: 1%; }
.lp-feeder-wire, .lp-gate-light { fill: none; stroke: #ecebc9; stroke-width: 2.4; stroke-linecap: round; }
.lp-feeder-seed { fill: #d9bc73; }
.lp-tag-odd { fill: #efcd84; }
.lp-tag-even { fill: #a7d8c6; }
.lp-gate-light { stroke: #d0e998; stroke-width: 3.1; animation: lp-reader-light 1.65s ease-in-out -.4s infinite alternate; }
@keyframes lp-reader-light { from { opacity: .5; } to { opacity: 1; } }

.lp-wood { --lp-edge: #dfc781; --lp-surface: #152a28; }
.lp-rum, .lp-plains, .lp-estuary { --lp-edge: #a89666; --lp-surface: #fbfbf7; }
.lp-rum .lp-mount, .lp-plains .lp-mount, .lp-estuary .lp-mount { background: var(--lp-surface); }
.lp-den { --lp-edge: #e0adbd; --lp-surface: #0e1719; }
.lp-bond-ring {
  fill: none;
  stroke: #ffd9c1;
  vector-effect: non-scaling-stroke;
  stroke-width: 1.1;
  stroke-dasharray: 3 5;
  animation: lp-circle-register 3s linear infinite;
}
@keyframes lp-circle-register { to { stroke-dashoffset: -24; } }
.lp-tank { --lp-surface: #363f50; --lp-edge: #f1d890; }
.lp-tank .lp-mount { background: #363f50; }
.lp-tank .lp-shot { animation-name: lp-contacts; animation-timing-function: steps(1, end); }
.lp-target { fill: none; stroke: #a96621; stroke-width: 9; }
.lp-tank .lp-shot:nth-child(2) .lp-target { stroke: #ffe6a6; }
.lp-flock-ties { fill: none; stroke: #a1cac2; stroke-opacity: .79; }
.lp-flock-nodes { fill: #c9d9b4; }
.lp-informed { fill: #f2ad7d; stroke: #fee3b2; stroke-width: 1.2; }
.lp-locator {
  fill: none; stroke: #ffdc9c; stroke-width: 1.3;
  transform-box: fill-box; transform-origin: center;
  animation: lp-locate 1.45s ease-out infinite;
}
@keyframes lp-locate { from { transform: scale(.65); opacity: 1; } to { transform: scale(1.55); opacity: .25; } }
.lp-model-0 { fill: #f1c78a; stroke: #f1c78a; }
.lp-model-1 { fill: #9addc9; stroke: #9addc9; }
.lp-town polyline { fill: none; stroke-width: 2.4; }
.lp-week-rule { stroke: #dec899; stroke-dasharray: 3 3; }
.lp-town .lp-shot circle { stroke: #162c27; stroke-width: 1.5; }
.lp-phone { --lp-edge: #e5bbab; }
.lp-phone-case { fill: #1b242c; stroke: #cfafab; stroke-width: 1.8; }
.lp-phone-screen { fill: #343c43; }
.lp-phone-rule { stroke: #b89791; stroke-width: 1.4; }
.lp-call-line { fill: #cfe8cb; }
.lp-call-echo, .lp-feed-cards { fill: none; stroke: #efbd9f; stroke-width: 1.6; stroke-linejoin: round; }
.lp-call-echo { animation: lp-reader-light 1.2s ease-in-out infinite alternate; }
.lp-feed-cards { animation: lp-browse 2.8s ease-in-out infinite; }
.lp-clock { fill: none; stroke: #c0b3aa; stroke-width: 1.4; }
.lp-clock text { fill: #f2d5bb; stroke: none; font: 21px var(--serif, serif); }
@keyframes lp-browse { 0%,15%,100% { transform: translateY(2px); } 70% { transform: translateY(-3px); } }
.lp-cabinet { --lp-edge: #f0d29f; --lp-surface: #c9bda2; }

@media (max-width: 650px) {
  .study-cue.living-plate {
    --cue-width: clamp(125px, 36vw, 167px);
    --lp-footer: 22px;
    top: 17px;
    right: 14px;
    bottom: auto;
  }
  .lp-mount { aspect-ratio: 1.43; }
  .lp-label { padding-left: 6px; font-size: .655rem; }
  .lp-inspect { width: 12px; height: 12px; bottom: 5px; right: 5px; }
  .lp-leader { width: 24px; }
}
@media (min-width: 651px) and (max-height: 550px) {
  .study-cue.living-plate { --cue-width: clamp(144px, 18vw, 185px); --lp-footer: 22px; bottom: 47px; }
}
body:where(.motion-paused,.film-suspended,.film-inspecting) .living-plate *,
body:where(.motion-paused,.film-suspended,.film-inspecting) .living-plate *::before,
body:where(.motion-paused,.film-suspended,.film-inspecting) .living-plate *::after {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  .living-plate *, .living-plate *::before, .living-plate *::after { animation: none !important; transition: none; }
  .living-plate .lp-shot { opacity: 0; }
  .living-plate .lp-shot:first-child { opacity: 1; }
  .living-plate .lp-advance::before { transform: scaleX(.32); }
  .living-plate .lp-leader::after { display: none; }
}
