.production[data-page] .chapter[data-chapter=sequence] .stage-picture{order:0}
.production[data-page] .chapter[data-chapter=traffic] .stage-picture{order:-1}.production[data-page] .chapter[data-chapter=controls] .stage-picture{order:-1}
.production[data-page] .chapter[data-chapter] .stage-picture{position:relative;isolation:isolate;padding:clamp(10px,2vw,30px);border-radius:1.25rem;border:1px solid #435046;background:radial-gradient(ellipse at 32% 10%,#24342b,#0f1714 72%);box-shadow:inset 0 1px #ffffff0e}
.production[data-page] .chapter[data-chapter] .stage-picture svg{display:block;max-height:none;width:100%;height:auto}
.production[data-page] .chapter[data-chapter] .stage-picture figcaption{margin:0;padding:1rem .75rem .35rem;border-top:1px solid #3b4941;color:#c7cfc8;font:400 .85rem/1.5 system-ui,sans-serif}
.chapter[data-chapter] .panel-title{fill:#f2f5ec;font:500 22px/1 system-ui,sans-serif;letter-spacing:-.8px}
.chapter[data-chapter] .event-label,.chapter[data-chapter] .device-label{fill:#e5ebe3;font:500 16px/1 system-ui,sans-serif}
.chapter[data-chapter] .instrument-label{fill:#b4c4b6;font:500 13px/1 ui-monospace,monospace;letter-spacing:.2px}
.chapter[data-chapter] .device-label{text-anchor:middle}
.chapter[data-chapter] .timeline-event .event-led,.chapter[data-chapter] .device .device-lamp{fill:#b9f385}
.chapter[data-chapter] .current .event-outline,.chapter[data-chapter] .current .device-shell{stroke:#c6f59a;stroke-width:1.5}
.chapter[data-chapter] .current .event-led,.chapter[data-chapter] .current .device-lamp{fill:#e5ffc8;filter:drop-shadow(0 0 3px #a2ed66)}
.chapter[data-chapter] .animated-only{display:none}
.chapter[data-chapter][data-active] .animated-only{display:block}
@media(max-width:760px){.production[data-page] .chapter[data-chapter] .stage-picture{order:0}.chapter[data-chapter] .instrument-label{font-size:15px}}
@media(prefers-reduced-motion:reduce){.chapter[data-chapter] .animated-only{display:none!important}}
.chapter-track{position:relative}
.chapter-transcript{display:none}
@media(prefers-reduced-motion:no-preference){
  .chapter-track:after{content:"";display:block;height:145svh}
  .production .chapter-track .chapter{position:sticky;top:var(--chapter-top,64px);min-height:calc(100svh - var(--chapter-top,64px));align-content:center;padding-block:18px}
  .production .chapter-track .stage-picture svg{max-height:49svh}
}
@media(max-width:760px) and (prefers-reduced-motion:no-preference){
  .production .chapter-track .chapter{gap:12px}
  .production .chapter-track .chapter h2{font-size:clamp(26px,6.8vw,36px);margin-bottom:9px}
  .production .chapter-track .chapter p{line-height:1.4;margin-bottom:8px}
  .production .chapter-track .stage-picture svg{max-height:29svh}
  .production .chapter-track figcaption{padding-block:5px}
}
@media(prefers-reduced-motion:reduce){
  .chapter-transcript{display:grid;gap:.65em;padding-inline-start:1.4em}
  .chapter-track h2+p{display:none}
}

/* 3D chapters: the same dark panel as the drawings, with one of the site's 3D models inside. */
.production[data-page] .chapter[data-chapter] .stage-picture canvas.chapter-scene{display:block;width:100%;height:auto;aspect-ratio:480/315}
.production[data-page] .chapter:is([data-chapter=hardening],[data-chapter=firewall],[data-chapter=response]) .stage-picture{order:0}
.production[data-page] .chapter:is([data-chapter=detection],[data-chapter=deception],[data-chapter=evidence]) .stage-picture{order:-1}
@media(max-width:760px){.production[data-page] .chapter[data-chapter] .stage-picture{order:0}}
@media(prefers-reduced-motion:no-preference){.production .chapter-track .stage-picture canvas.chapter-scene{max-height:49svh}}
@media(max-width:760px) and (prefers-reduced-motion:no-preference){.production .chapter-track .stage-picture canvas.chapter-scene{max-height:29svh}}
.scene-steps{margin:0;padding:clamp(18px,3vw,36px) clamp(18px,3vw,36px) clamp(18px,3vw,36px) 2.4em;display:grid;gap:14px;color:#e5ebe3;font:500 16px/1.4 system-ui,sans-serif;aspect-ratio:480/315;align-content:center}
