/* ═══ chapter 04, SmartPanel: the site's blueprint paper (its own --paper and dot grid) and its blueprint blue.
   The drawing is the site's real engine (sp/film.html), laid behind the whole chapter with room to move, so
   nothing it draws is ever cut off. The numbers round it are live, read from the animation as it plays. ═══ */
.ch--sp{--c:#afb9a1;--ink:#fffffa;position:relative;overflow:hidden;color:var(--ink);
  background:#afb9a1}
.ch--sp > *:not(.sp__film){position:relative;z-index:1}
.sp__name{margin:0 0 min(clamp(20px,3vw,40px),3svh);line-height:0}
.sp-logo{height:clamp(30px,2.8vw,46px);width:auto;display:block;overflow:visible}
.sp-logo path{transform-box:fill-box}
.ch--sp.sp-on .sp-logo .m-front,.ch--sp.sp-on .sp-logo .m-side{transform-origin:50% 100%;animation:sp-rise .9s cubic-bezier(.2,.8,.2,1) both}
.ch--sp.sp-on .sp-logo .m-side{animation-delay:.12s}
.ch--sp.sp-on .sp-logo .m-green-a,.ch--sp.sp-on .sp-logo .m-green-b{animation:sp-slide .7s cubic-bezier(.2,.8,.2,1) both .55s}
.ch--sp.sp-on .sp-logo .m-green-b{animation-delay:.68s}
.ch--sp.sp-on .sp-logo .lg-word{animation:sp-fade .8s ease both .5s}
.ch--sp:not(.sp-on) .sp-logo g, .ch--sp:not(.sp-on) .sp-logo path{opacity:0}
@keyframes sp-rise{from{transform:scaleY(0)}to{transform:none}}
@keyframes sp-slide{from{transform:translateX(-40%);opacity:0}to{transform:none;opacity:1}}
@keyframes sp-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){ .sp-logo *{opacity:1!important;animation:none!important} }
.sp__body{grid-template-columns:minmax(0,.62fr) minmax(0,1.6fr);align-items:end;pointer-events:none}
.sp__body .ch__text{pointer-events:auto}
.ch--sp .ch__what{max-width:13em}
.sp__film{position:absolute;inset:0;margin:0;z-index:0;pointer-events:none}
.sp__film iframe{position:absolute;inset:0;width:100%;height:100%;max-width:none;border:0;display:block}

@media (max-width:820px){
  .sp__body{grid-template-columns:1fr}
  .sp__film{position:relative;inset:auto;height:min(520px,70svh);margin:0 calc(-1 * var(--gut))}
}
@media print{ .sp__film{display:none} }
/* on the sage, the wordmark's grey and green disappear: both words take the chapter's off-white. the mark keeps its own colours */
.ch--sp .sp-logo .w-smart,.ch--sp .sp-logo .w-panel{fill:var(--ink)}
