/* The access scene and school demo share the cabinet, reader and tripod. */
.school-demo-machine { font-size: 10px; position: absolute; width: 20.8em; height: 18.4em; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.school-demo-machine > * { position: absolute; }
.school-demo-shadow { left: 2.2em; top: 16.8em; width: 15.4em; height: 1.2em; background: #0b222bb0; filter: blur(0.4em); border-radius: 50%; }
.school-demo-case { top: 6.4em; left: 4.4em; width: 9em; height: 11em; border-radius: 0.6em 0.5em 0.7em 0.8em; background: linear-gradient(90deg, #c2d1d5 0%, #f1f5f5 26%, #a2b3b8 28%, #8ba0a6 74%, #b9c9cc); transform: skewY(-6deg); box-shadow: inset 0.1em 0 0 #fff9; }
.school-demo-case::before { content: ''; position: absolute; top: -0.7em; left: 0.1em; width: 8.9em; height: 1.2em; border-radius: 0.5em 0.6em 0.3em 0.3em; background: linear-gradient(120deg, #98acb1, #d9e6e7 45%, #b7c9cc); box-shadow: 0 0.3em 0 #1d333b; }
.school-demo-post { width: 0.7em; height: 2em; left: 8.5em; top: 4.4em; border-radius: 0.2em; background: linear-gradient(90deg, #80959c, #ebf3f4, #a4bcc3); }
.school-demo-reader { left: 7em; top: 0.8em; width: 3.4em; height: 4.4em; border: 0.3em solid #111f27; border-radius: 0.5em; background: linear-gradient(145deg, #234e5f, #17323e); box-shadow: 0.2em 0 0 #8b9da1; transform: skewY(-6deg); overflow: hidden; }
.school-demo-face { position: absolute; width: 1.2em; height: 1.3em; left: 0.8em; top: 0.6em; border: 0.15em solid #a2d7dc; border-radius: 48%; }
.school-demo-face::after { content: ''; position: absolute; width: 2em; height: 1em; border: 0.15em solid #a2d7dc; border-bottom: 0; border-radius: 1em 1em 0 0; left: -0.55em; top: 1.5em; }
.school-demo-scan { position: absolute; left: 0.2em; right: 0.2em; top: 0.4em; height: 0.2em; background: #94f3d4; box-shadow: 0 0 0.6em #6af9bf; opacity: 0; }
.school-demo-light { left: 5.1em; top: 6.8em; width: 1.5em; height: 0.3em; border-radius: 0.3em; background: #abc0c3; }
/* Oblique view of a tilted tripod. One rod crosses the lane, two slope down.
   These projected angles and lengths follow each physical rod through one 120° index. */
.school-demo-arms, .school-demo-hub { left: 9.4em; top: 8.8em; }
.school-demo-arms { width: 0; height: 0; }
.school-demo-arms i {
    position: absolute; left: 0; top: -.22em; height: .44em;
    width: var(--rest-length); transform: rotate(var(--rest-angle)); transform-origin: left center;
    border: .08em solid #879da3; border-radius: .3em;
    background: linear-gradient(#edf5f6, #a1b3b8);
}
.school-demo-arms i:nth-child(1) {
    --rest-length: 5.12em; --rest-angle: 175.5deg; --step: tripod-leading;
}
.school-demo-arms i:nth-child(2) {
    --rest-length: 6.16em; --rest-angle: 52.6deg; --step: tripod-lowering;
}
.school-demo-arms i:nth-child(3) {
    --rest-length: 7.33em; --rest-angle: 123.5deg; --step: tripod-returning;
}
@keyframes tripod-leading {
    0%   { width: 5.12em; transform: rotate(175.5deg); }
    20%  { width: 3.01em; transform: rotate(172.2deg); }
    40%  { width: 1.20em; transform: rotate(123.5deg); }
    60%  { width: 2.54em; transform: rotate(55deg); }
    80%  { width: 4.59em; transform: rotate(48.9deg); }
    100% { width: 6.16em; transform: rotate(52.6deg); }
}
@keyframes tripod-lowering {
    0%   { width: 6.16em; transform: rotate(52.6deg); }
    20%  { width: 7.07em; transform: rotate(60.2deg); }
    40%  { width: 7.37em; transform: rotate(71.3deg); }
    60%  { width: 7.29em; transform: rotate(86.1deg); }
    80%  { width: 7.18em; transform: rotate(104.3deg); }
    100% { width: 7.33em; transform: rotate(123.5deg); }
}
@keyframes tripod-returning {
    0%   { width: 7.33em; transform: rotate(123.5deg); }
    20%  { width: 7.66em; transform: rotate(140.7deg); }
    40%  { width: 7.88em; transform: rotate(154.3deg); }
    60%  { width: 7.63em; transform: rotate(164.5deg); }
    80%  { width: 6.72em; transform: rotate(171.6deg); }
    100% { width: 5.12em; transform: rotate(175.5deg); }
}
.school-demo-hub { width: 1.6em; height: 1.6em; margin: -0.8em; border: 0.3em solid #bacbd0; border-radius: 50%; background: #344c56; }

.access-art {
    position: absolute;
    inset: 0;
    overflow: hidden;
    container-type: inline-size;
    background: linear-gradient(110deg, #edf4f5, #dce9ee 65%, #edf3f5);
}
.access-glazing {
    position: absolute;
    inset: -3% 8% 30% 52%;
    border: .5cqw solid #bcd0d6;
    background:
        repeating-linear-gradient(90deg, transparent 0 29%, #bfd1d7 29.2% 30%, transparent 30.3% 34%),
        linear-gradient(119deg, transparent 26%, #f5fafa 26.5% 32%, transparent 32.5% 57%, #f5fafa 57.5% 60%, transparent 60.5%),
        #dce9ee;
    box-shadow: .48cqw .4cqw 0 #d0dfe3;
}
.access-floor {
    position: absolute;
    inset: 69% 0 0;
    border-top: .7cqw solid #c1d2d6;
    background: linear-gradient(170deg, #d7e4e6, #f2f6f6);
}
.access-person-layer { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; }
.access-person { transform: translateX(263px); }
.access-near-leg, .access-far-leg { transform-origin: 168px 133px; }
.access-arm { transform-origin: 164px 99px; }
.access-capture { opacity: 0; }

.access-art .school-demo-machine { left: 53%; top: 55%; font-size: 1.54cqw; }
.access-art .school-demo-case { height: 9.35em; }
.access-art .school-demo-shadow { top: 15.65em; background: #49657055; }
.access-art .school-demo-reader {
    transform: skewY(5deg); box-shadow: .35em -.05em 0 #879ca3;
}
.access-art .school-demo-reader::before {
    content: ''; position: absolute; left: 43%; top: .1em; width: .35em; height: .35em;
    background: #99d8e2; border-radius: 50%;
}
.access-art .school-demo-reader::after {
    content: ''; position: absolute; top: 27%; left: 39%; width: .7em; height: 1.3em;
    border: solid #a3f2d2; border-width: 0 .22em .22em 0; transform: rotate(40deg);
}
.access-art .school-demo-face { opacity: 0; }
.access-art .school-demo-light { background: #71dcad; box-shadow: 0 0 .6em #48bb8d; }

.service-motion.is-playing .access-art {
    --access-time: var(--motion-duration, 6s);
}
.service-motion.is-playing .access-person { animation: access-walk var(--access-time) linear both; }
.service-motion.is-playing .access-near-leg { animation: access-stride var(--access-time) ease-in-out both; }
.service-motion.is-playing .access-far-leg { animation: access-stride var(--access-time) ease-in-out both; --stride-sign: -1; }
.service-motion.is-playing .access-arm { animation: access-push var(--access-time) ease-in-out both; }
.service-motion.is-playing .access-capture { animation: access-capture var(--access-time) ease-in-out both; }
.service-motion.is-playing .access-art .school-demo-scan { animation: access-scan var(--access-time) both; }
.service-motion.is-playing .access-art .school-demo-face { animation: access-display-face var(--access-time) both; }
.service-motion.is-playing .access-art .school-demo-reader::after { animation: access-granted var(--access-time) both; }
.service-motion.is-playing .access-art .school-demo-light { animation: access-confirm var(--access-time) both; }
.service-motion.is-playing .access-art .school-demo-arms i {
    animation: var(--step) calc(var(--access-time) * .22) linear calc(var(--access-time) * .60) both;
}
@keyframes access-walk {
    0% { transform: translateX(-66px); animation-timing-function: ease-in-out; }
    27%, 51% { transform: translateX(52px); animation-timing-function: ease-in; }
    60% { transform: translateX(63px); }
    66% { transform: translateX(87px); }
    72% { transform: translateX(122px); }
    82% { transform: translateX(182px); animation-timing-function: ease-out; }
    96%, 100% { transform: translateX(263px); }
}
@keyframes access-stride {
    0%, 13%, 27%, 51%, 64%, 78%, 96%, 100% { transform: rotate(0deg); }
    7%, 57%, 71%, 85% { transform: rotate(calc(14deg * var(--stride-sign, 1))); }
    20%, 61%, 75%, 91% { transform: rotate(calc(-13deg * var(--stride-sign, 1))); }
}
@keyframes access-push {
    0%, 13%, 27%, 51%, 78%, 96%, 100% { transform: rotate(0deg); }
    7%, 85% { transform: rotate(-12deg); }
    20%, 91% { transform: rotate(10deg); }
    60%, 66% { transform: rotate(-20deg); }
    72% { transform: rotate(-10deg); }
}
@keyframes access-capture {
    0%, 29%, 49%, 100% { opacity: 0; }
    33%, 46% { opacity: .95; }
}
@keyframes access-scan {
    0%, 30% { opacity: 0; transform: translateY(0); }
    33% { opacity: 1; transform: translateY(0); }
    44% { opacity: 1; transform: translateY(2.6em); }
    47%, 100% { opacity: 0; transform: translateY(2.6em); }
}
@keyframes access-display-face {
    0%, 47% { opacity: 1; }
    48%, 100% { opacity: 0; }
}
@keyframes access-granted {
    0%, 47% { opacity: 0; }
    48%, 100% { opacity: 1; }
}
@keyframes access-confirm {
    0%, 47% { background: #abc0c3; box-shadow: none; }
    48%, 100% { background: #71dcad; box-shadow: 0 0 .6em #48bb8d; }
}
