/* The Systems Audit page only. Shared pieces (hero, sections, spec sheet, timeline, accordion, closing band) are in style.css. */

/* Blueprint stage */
.stage-wrap{position:relative;max-width:1312px;margin:72px auto 0;padding:0 32px}
.stage-wrap::after{content:"";position:absolute;left:8%;right:8%;bottom:-40px;height:160px;background:radial-gradient(closest-side,rgba(14,94,156,.55),transparent);filter:blur(30px);z-index:0;pointer-events:none}
.bp{position:relative;z-index:1;border:1px solid rgba(91,176,240,.3);border-radius:4px;background-color:#071a30;
background-image:radial-gradient(900px 560px at 40% 45%,rgba(14,94,156,.38),transparent 72%),linear-gradient(rgba(91,176,240,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(91,176,240,.055) 1px,transparent 1px),linear-gradient(rgba(91,176,240,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(91,176,240,.1) 1px,transparent 1px);
background-size:100% 100%,20px 20px,20px 20px,100px 100px,100px 100px;
box-shadow:0 70px 140px -50px rgba(0,0,0,.95),0 0 140px -30px rgba(14,94,156,.75),inset 0 1px 0 rgba(255,255,255,.06)}
.bp .crop{position:absolute;width:18px;height:18px;border:solid #ffb224;border-width:0;z-index:2}
.bp .crop.a{left:-8px;top:-8px;border-left-width:2px;border-top-width:2px}
.bp .crop.b{right:-8px;top:-8px;border-right-width:2px;border-top-width:2px}
.bp .crop.c{left:-8px;bottom:-8px;border-left-width:2px;border-bottom-width:2px}
.bp .crop.d{right:-8px;bottom:-8px;border-right-width:2px;border-bottom-width:2px}
.bp-h{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 22px;border-bottom:1px solid rgba(91,176,240,.22);font-family:"JetBrains Mono",ui-monospace,monospace;font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:#9fb2c9;background:rgba(4,9,19,.35)}
.bp-h b{color:#f3f7fc;font-weight:500}
.bp-state{display:inline-flex;align-items:center;gap:9px;color:#3ddc97}
.bp-state i{width:7px;height:7px;border-radius:50%;background:#3ddc97;box-shadow:0 0 10px #3ddc97}
.bp[data-mode="hand"] .bp-state{color:#ffb224}
.bp[data-mode="hand"] .bp-state i{background:#ffb224;box-shadow:0 0 10px #ffb224}
.bp-body{display:grid;grid-template-columns:minmax(0,1fr) 300px}
.sv{position:relative;padding:22px 18px 18px 22px;min-width:0}
.sv svg.sc{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(0 0 5px rgba(91,176,240,.28))}
.bp-side{border-left:1px solid rgba(91,176,240,.22);display:flex;flex-direction:column;background:rgba(4,9,19,.3);min-width:0}
.motion .stage-wrap{animation:rise 1.1s .3s var(--ease) both}

/* Lever */
html:not(.js) .leverbox{display:none}
.leverbox{text-align:center;padding:22px 20px 20px;border-bottom:1px solid rgba(91,176,240,.22)}
.lv-hint{display:inline-flex;align-items:center;gap:8px;font:500 11.5px/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.16em;text-transform:uppercase;color:#ffcf73;margin-bottom:6px}
.lv-hint svg{width:12px;height:12px;animation:nudge 1.6s ease-in-out infinite}
@keyframes nudge{50%{transform:translateY(3px)}}
.lever{display:block;width:236px;max-width:100%;margin:0 auto;padding:4px 6px 8px;background:transparent;border:0;border-radius:8px;cursor:pointer;color:#c9d6e6;font-family:"JetBrains Mono",ui-monospace,monospace;-webkit-tap-highlight-color:transparent}
.lever svg{display:block;width:100%;height:auto;overflow:visible}
.lever .tick{fill:none;stroke:#5bb0f0;stroke-width:1.4;stroke-linecap:round}
.lever .arc{fill:none;stroke:#5bb0f0;stroke-width:1;stroke-dasharray:2 5;opacity:.8}
.lever .base{fill:#0a2540;stroke:#5bb0f0;stroke-width:1.5}
.lever .foot{fill:#5bb0f0;opacity:.45}
.lever .rivet{fill:#5bb0f0}
.lever .shaft{fill:#c9d6e6}
.lever .knob{fill:#ffb224;stroke:#040913;stroke-width:1.5;filter:drop-shadow(0 0 6px rgba(255,178,36,.75));transition:fill .2s}
.lever .shine{fill:#fff;opacity:.55}
.lever .pivot{fill:#0a2540;stroke:#c9d6e6;stroke-width:1.5}
.lever .pin{fill:#c9d6e6}
.lever .ring{fill:none;stroke:#ffb224;stroke-width:1.5;opacity:0;transform-origin:100px 34px}
.lever.hint .ring{animation:halo 2s ease-out infinite}
@keyframes halo{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(2.1)}}
.lever .arm{transform-origin:100px 92px;transform:rotate(36deg);transition:transform .55s cubic-bezier(.3,1.75,.45,1)}
.lever[aria-checked="false"] .arm{transform:rotate(-36deg)}
.lever:hover .knob{fill:#ffc04d}
.lever:active .arm{transition-duration:.12s;transform:rotate(30deg)}
.lever[aria-checked="false"]:active .arm{transform:rotate(-30deg)}
.lever .lmp{fill:#0a2540;stroke:#5bb0f0;stroke-width:1.4;transition:fill .3s}
.lever[aria-checked="true"] .lmp.r{fill:#3ddc97;filter:drop-shadow(0 0 5px #3ddc97)}
.lever[aria-checked="false"] .lmp.l{fill:#ffb224;filter:drop-shadow(0 0 5px #ffb224)}
.lever .zap{opacity:0;transform-origin:100px 92px}
.lever .zap path{fill:none;stroke:#ffb224;stroke-width:2.4;stroke-linecap:round}
.bp.jolt .lever .zap{animation:zap .45s ease-out}
@keyframes zap{0%{opacity:1;transform:scale(.5)}100%{opacity:0;transform:scale(1.5)}}
.lv-labels{display:flex;justify-content:space-between;font-size:11.5px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;margin-top:4px}
.lv-labels span{padding:3px 5px;border-bottom:2px solid transparent;transition:color .3s,border-color .3s;color:#8fa3bc}
.lever[aria-checked="true"] .lv-r{color:#f3f7fc;font-weight:600;border-bottom-color:#3ddc97}
.lever[aria-checked="false"] .lv-l{color:#f3f7fc;font-weight:600;border-bottom-color:#ffb224}

/* Station notes */
.notes-cap{padding:16px 20px 6px;font:500 11px/1.4 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:#8fa3bc}
.notes-cap b{display:block;color:#eaf1f9;font-weight:500}
.notes{display:grid;padding:4px 10px 10px}
.notes li{padding:10px 10px 11px;border-radius:8px;display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:4px;align-items:center;transition:background .25s}
.notes .n{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid #5bb0f0;border-radius:50%;font:500 10.5px/1 "JetBrains Mono",ui-monospace,monospace;color:#c9d6e6;background:#0a2540;transition:background .25s,color .25s,border-color .25s}
.notes .k{font:500 11.5px/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:#eaf1f9}
.notes .v{grid-column:2;font-size:14.5px;line-height:1.4;color:#c9d6e6}
.notes li.on{background:rgba(255,178,36,.09);box-shadow:inset 0 0 0 1px rgba(255,178,36,.35)}
.notes li.on .n{background:#ffb224;border-color:#ffb224;color:#0a1626}

/* Title block */
.tb{margin:auto 20px 20px;display:grid;grid-template-columns:1fr 1fr;border:1px solid rgba(91,176,240,.45);font-family:"JetBrains Mono",ui-monospace,monospace;background:rgba(4,9,19,.45)}
.tb-c{padding:6px 9px 7px;border-right:1px solid rgba(91,176,240,.35);border-bottom:1px solid rgba(91,176,240,.35);min-width:0}
.tb-c:nth-child(3),.tb-w{border-right:0}
.tb-w{grid-column:1/-1}
.tb-c:last-child{border-bottom:0}
.tb-c span{display:block;font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:#8fa3bc}
.tb-c b{display:block;font-size:12px;font-weight:500;line-height:1.35;color:#eaf1f9}
.tb-rev b{color:#3ddc97}
.bp[data-mode="hand"] .tb-rev b{color:#ffb224}

/* Bubble */
.bubble{position:absolute;z-index:5;max-width:250px;padding:10px 13px 11px;border-radius:8px;background:rgba(8,22,40,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,178,36,.5);color:#eaf1f9;font-size:14.5px;line-height:1.35;box-shadow:0 24px 50px -16px rgba(0,0,0,.9),0 0 30px -8px rgba(255,178,36,.35);pointer-events:none}
.bubble b{display:block;font:500 11px/1.2 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:#ffb224;margin-bottom:4px}
.bubble[hidden]{display:none}

/* Drawing, redrawn as a blueprint */
.p{stroke:#c9d6e6;stroke-width:1.3;stroke-linejoin:round;stroke-linecap:round;fill:none}
.fl{fill:#0f2f52}.fr{fill:#0c4372}.ft{fill:#15406a}
.plate{fill:rgba(14,94,156,.16)}
.fb{fill:#061629}.fb2{fill:#0a2644}.fbt{fill:#0b2a4b}
.slab.ft{fill:#15406a}
.head.fl{fill:#2f86c9}.head.fr{fill:#1c5f99}.ft.head{fill:#5bb0f0}
.paper{fill:#1b4b7a}
.fl,.fr,.ft,.gp,.lamp,.tagc,.tagn,.scr{transition:fill .45s ease,stroke .45s ease}
.ln.dc{stroke:#9fc8ec;stroke-width:1.1}
.ln.lw{stroke:rgba(91,176,240,.5);stroke-width:1.1;transition:stroke .45s}
.ln.acc{stroke:#ffb224;stroke-width:2.2}
.dot{fill:#c9d6e6;stroke-width:.4}
.bar{fill:#ffb224;stroke-width:1.1}
.gr{fill:none;stroke:#5bb0f0;stroke-width:.6;opacity:.22}
.roll{fill:none;stroke:#5bb0f0;stroke-width:.8;opacity:.45}
.gp{fill:#15406a;stroke:#c9d6e6;stroke-width:1.2;stroke-linejoin:round}
.gh{fill:#0e5e9c}
.gear{animation:spin 7s linear infinite}
.gear.gb{animation-duration:4.4s;animation-direction:reverse}
@keyframes spin{to{transform:rotate(360deg)}}
.lamp{fill:#3ddc97;stroke:#c9d6e6;stroke-width:1.1}
.halo{fill:#3ddc97;opacity:0;pointer-events:none}
.halo.on{animation:pinglamp .5s ease-out}
@keyframes pinglamp{0%{opacity:.6}100%{opacity:0}}
.wave{fill:none;stroke:#3ddc97;stroke-width:1.8;stroke-linecap:round;animation:blinkw 2.2s ease-in-out infinite}
@keyframes blinkw{0%,100%{opacity:.25}50%{opacity:1}}
.beam{fill:#5bb0f0;opacity:.28;transition:opacity .4s}
.flow{fill:none;stroke:#ffb224;stroke-width:2;stroke-dasharray:2 9;stroke-linecap:round;stroke-linejoin:round;animation:march .9s linear infinite;filter:drop-shadow(0 0 4px rgba(255,178,36,.8))}
@keyframes march{to{stroke-dashoffset:-11}}
.tk-sh{fill:rgba(0,0,0,.4)}
.tk-doc{fill:#ffb224;stroke:#3a2600;stroke-width:1;stroke-linejoin:round}
.tk-l{fill:none;stroke:#0a1626;stroke-width:1.3;stroke-linecap:round}
.tk-b1{fill:#ffb224}.tk-b2{fill:#c7860f}.tk-b3{fill:#ffd57f}
.tk-b1,.tk-b2,.tk-b3{stroke:#3a2600;stroke-width:1;stroke-linejoin:round}
#tokens{filter:drop-shadow(0 0 6px rgba(255,178,36,.55))}
.lead{fill:none;stroke:#8fbfe6;stroke-width:1}
.ldot{fill:#c9d6e6}
.tagc{fill:#0a2540;stroke:#5bb0f0;stroke-width:1.4}
.tagn{font:500 12px "JetBrains Mono",ui-monospace,monospace;fill:#eaf1f9;text-anchor:middle}
.tagl{font:500 13px "JetBrains Mono",ui-monospace,monospace;letter-spacing:.14em;fill:#eaf1f9}
.dim{fill:none;stroke:#5bb0f0;stroke-width:1}
.dimt{font:500 13.5px "JetBrains Mono",ui-monospace,monospace;letter-spacing:.09em;fill:#9fd0f7}
.fline{fill:none;stroke:#5bb0f0;stroke-width:1;opacity:.45}
.zone{font:500 10px "JetBrains Mono",ui-monospace,monospace;fill:#8fa3bc}
.reg{fill:none;stroke:#ffb224;stroke-width:1}
.mono-t{font:500 12px "JetBrains Mono",ui-monospace,monospace;letter-spacing:.12em;fill:#c9d6e6}
.scrib{font:600 27px "Caveat","Segoe Print",cursive;fill:#ffb224}
.scrl{fill:none;stroke:#ffb224;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ringm{fill:none;stroke:#ffb224;stroke-width:2.5;opacity:.35}
.hit{cursor:pointer;outline:none}
.hit rect{fill:#fff;fill-opacity:0;stroke:none}
.hit:focus-visible rect{stroke:#ffb224;stroke-width:2.5;stroke-dasharray:7 5}
.sys-only,.hand-only{transition:opacity .5s ease}
.hand-only{opacity:0}
.belt{transition:opacity .6s ease}

/* By hand */
.bp[data-mode="hand"] .hand-only{opacity:1}
.bp[data-mode="hand"] .sys-only{opacity:0}
.bp[data-mode="hand"] .belt{opacity:.22}
.bp[data-mode="hand"] .st .fr{fill:#0f2f52}
.bp[data-mode="hand"] .st .fl{fill:#0a2540}
.bp[data-mode="hand"] .ln.lw{stroke:#c9d6e6}
.bp[data-mode="hand"] .beam,.bp[data-mode="hand"] .wave{opacity:0;animation:none}
.bp[data-mode="hand"] .lamp{fill:#0a2540}
.bp[data-mode="hand"] .gear{animation-play-state:paused}
.bp[data-mode="hand"] .flow{stroke:#c9d6e6;stroke-width:1.6;stroke-dasharray:none;animation:none;opacity:.75;filter:none}
.bp.jolt svg.sc{animation:jolt .42s cubic-bezier(.3,.7,.3,1)}
@keyframes jolt{0%{transform:translateY(0)}18%{transform:translateY(5px)}45%{transform:translateY(-3px)}70%{transform:translateY(1.5px)}100%{transform:translateY(0)}}

/* Station lit */
.bp[data-active="1"] .s1 .fr,.bp[data-active="2"] .s2 .fr,.bp[data-active="3"] .s3 .fr,.bp[data-active="4"] .s4 .fr{fill:#1b86d8}
.bp[data-active="1"] .s1 .fl,.bp[data-active="2"] .s2 .fl,.bp[data-active="3"] .s3 .fl,.bp[data-active="4"] .s4 .fl{fill:#1a5d96}
.bp[data-active="1"] .s1 .scr,.bp[data-active="2"] .s2 .scr,.bp[data-active="3"] .s3 .gp,.bp[data-active="4"] .s4 .scr{fill:rgba(255,178,36,.5)}
.bp[data-active="1"] .s1 .lamp,.bp[data-active="2"] .s2 .lamp,.bp[data-active="3"] .s3 .lamp,.bp[data-active="4"] .s4 .lamp{fill:#3ddc97}
.bp[data-active="1"] .s1 .halo,.bp[data-active="2"] .s2 .halo,.bp[data-active="3"] .s3 .halo,.bp[data-active="4"] .s4 .halo{opacity:.4;animation:glow 1.1s ease-in-out infinite}
@keyframes glow{0%,100%{opacity:.2}50%{opacity:.6}}
.bp[data-active="1"] .t1 .tagc,.bp[data-active="2"] .t2 .tagc,.bp[data-active="3"] .t3 .tagc,.bp[data-active="4"] .t4 .tagc{fill:#ffb224;stroke:#ffb224}
.bp[data-active="1"] .t1 .tagn,.bp[data-active="2"] .t2 .tagn,.bp[data-active="3"] .t3 .tagn,.bp[data-active="4"] .t4 .tagn{fill:#0a1626}
.bp[data-active="1"] .t1 .tagl,.bp[data-active="2"] .t2 .tagl,.bp[data-active="3"] .t3 .tagl,.bp[data-active="4"] .t4 .tagl{fill:#ffb224}

/* Draw in */
@keyframes draw{from{stroke-dasharray:1;stroke-dashoffset:1}to{stroke-dasharray:1;stroke-dashoffset:0}}
@keyframes fillin{from{fill-opacity:0}to{fill-opacity:1}}
@keyframes fade{from{opacity:0}}
.anim .p{animation:draw .85s cubic-bezier(.6,0,.2,1) backwards,fillin .6s ease backwards}
.anim .late{animation:fade .8s ease 2.4s backwards}
.anim .gear{animation:spin 7s linear infinite}
.anim .gear.gb{animation:spin 4.4s linear infinite reverse}
.done .p,.done .late{animation:none}
.done .flow{animation:march .9s linear infinite}
.done .wave{animation:blinkw 2.2s ease-in-out infinite}
.bp[data-mode="hand"] .done .flow{animation:none}

/* Who it is for */
.who-a{font-family:var(--font-display);font-stretch:100%;font-size:clamp(24px,2.5vw,34px);line-height:1.22;letter-spacing:-.015em;color:#f3f7fc;font-weight:600}
.who-b{font-size:19px;line-height:1.6;color:#c9d6e6;border-left:1px solid rgba(255,178,36,.5);padding-left:28px;margin-top:6px}

/* What you get */
.get-l h3{font-size:clamp(28px,3vw,40px);margin-top:18px}
.get-l p{margin-top:18px;color:#c9d6e6;font-size:18px;max-width:24em}
.get-l .also{margin-top:28px;padding:16px 18px;border:1px dashed rgba(91,176,240,.5);border-radius:10px;color:#eaf1f9;font-size:17px}

/* Responsive */
@media (max-width:1100px){
.bp-body{grid-template-columns:minmax(0,1fr)}
.bp-side{border-left:0;border-top:1px solid rgba(91,176,240,.22);display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);align-items:start}
.leverbox{border-bottom:0;border-right:1px solid rgba(91,176,240,.22);grid-row:span 2;align-self:stretch}
.notes{grid-template-columns:1fr 1fr}
.tb{margin:4px 20px 20px}
}
@media (max-width:760px){
.stage-wrap{padding-left:16px;padding-right:16px}
.stage-wrap{margin-top:48px}
.bp-h{padding:11px 14px;font-size:10px}
.bp-h .fig{display:none}
.sv{padding:12px 6px 8px}
.bp-side{grid-template-columns:minmax(0,1fr)}
.leverbox{border-right:0;border-bottom:1px solid rgba(91,176,240,.22)}
.notes{grid-template-columns:minmax(0,1fr)}
.tb{margin:4px 14px 16px}
.tagl{font-size:19px}
.mono-t{font-size:15px}
.who-b{padding-left:18px;font-size:17px}
}
