/* Incomenomics v3 depth layer: THE CIRCUIT as a machined console (her note 11/18: "More lift to the box and layers in the box needed").
   Front to back, each layer with its own shadow and its own parallax rate (--px/--py are set by circuit.js, -1..1):
     housing      .eco.cx        thick bevelled metal, a visible side wall away from the light, corner fixings, tight + wide shadows
     back plate   .cx-stage::before   recessed in the housing: engraved grid and circuit traces            (moves against the pointer)
     track        .cx-svg        a milled channel (dark far wall, lit near wall) with the jade light running IN it
     stations     .cx-st         tokens standing proud of the track on posts, each throwing a shadow on the plate
     step card    .cx-card       a cream ledger card resting above the track, its shadow falling onto it
     paper slips  .cx-chip       cream slips in front of everything, feeding along a brass guide rail          (moves most)
   One light, top-left. Reduced motion and "Motion off" keep all of the depth and drop the movement.
   Loaded last. (c) Incomenomics LLC. All rights reserved. */

/* ---------- housing ---------- */
main :has(>.eco.cx){perspective:1700px}
main .eco.cx{--px:0;--py:0;--wall:9px;border:0;border-radius:20px;overflow:visible;isolation:isolate;padding:clamp(18px,1.9vw,28px);
  background:
   radial-gradient(circle at 12px 12px,#060b08 0 1px,#aebfb5 1.3px 1.9px,#4a5b52 2.2px 4.2px,#0a110d 4.5px 5.4px,rgba(0,0,0,0) 6px),
   radial-gradient(circle at calc(100% - 12px) 12px,#060b08 0 1px,#aebfb5 1.3px 1.9px,#4a5b52 2.2px 4.2px,#0a110d 4.5px 5.4px,rgba(0,0,0,0) 6px),
   radial-gradient(circle at 12px calc(100% - 12px),#060b08 0 1px,#aebfb5 1.3px 1.9px,#4a5b52 2.2px 4.2px,#0a110d 4.5px 5.4px,rgba(0,0,0,0) 6px),
   radial-gradient(circle at calc(100% - 12px) calc(100% - 12px),#060b08 0 1px,#aebfb5 1.3px 1.9px,#4a5b52 2.2px 4.2px,#0a110d 4.5px 5.4px,rgba(0,0,0,0) 6px),
   repeating-linear-gradient(92deg,rgba(255,255,255,.022) 0 1px,rgba(255,255,255,0) 1px 3px),
   linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,0) 26%,rgba(0,0,0,0) 62%,rgba(0,0,0,.28)),
   linear-gradient(160deg,#2c4238,#17261f 46%,#0e1914);
  box-shadow:
   0 1.5px 0 rgba(255,255,255,.34) inset,1.5px 0 0 rgba(255,255,255,.16) inset,0 -2px 0 rgba(0,0,0,.6) inset,
   0 0 0 1px #050908,
   1px 1px 0 1px #1c2e25,2px 2px 0 1px #1a2a22,3px 3px 0 1px #17261f,4px 4px 0 1px #14221b,5px 5px 0 1px #111d17,6px 6px 0 1px #0e1813,7px 7px 0 1px #0b130f,8px 8px 0 1px #080e0b,9px 9px 0 1px #050908,
   14px 18px 9px rgba(0,0,0,.85),34px 50px 54px -8px rgba(0,0,0,.85),80px 116px 120px -40px rgba(0,0,0,.8);
  transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1),rotate .25s ease-out,box-shadow .35s}
/* the bevel: a chamfer line just inside the rim, lit above and left, shaded below and right */
main .eco.cx::before{content:"";position:absolute;inset:5px;border-radius:15px;pointer-events:none;background:none;
  box-shadow:0 1px 0 rgba(255,255,255,.12) inset,1px 0 0 rgba(255,255,255,.06) inset,0 -1px 0 rgba(0,0,0,.55) inset,-1px 0 0 rgba(0,0,0,.4) inset}
main .eco.cx::after{content:none}
main .eco.cx>*{position:relative}
main .cx .eco-head{margin-bottom:12px;padding:0 20px}
main .cx .eco-head .t{color:#d9c48f;text-shadow:0 -1px 0 rgba(0,0,0,.8),0 1px 0 rgba(255,255,255,.1)}
main .cx-cap{padding:0 20px 2px;margin-top:14px;text-shadow:0 -1px 0 rgba(0,0,0,.7)}

/* ---------- the switch on the housing (was a pill) ---------- */
main .cx-calm{position:relative;gap:10px;padding:6px 0;min-height:44px;border:0;border-radius:6px;background:none;box-shadow:none;color:var(--muted);font:600 12px/1 'Inter',sans-serif;letter-spacing:.04em;
  text-shadow:0 -1px 0 rgba(0,0,0,.8)}
main .cx-calm:hover{color:var(--cream);border:0}
main .cx-calm::before{content:"";order:2;width:40px;height:22px;border-radius:11px;flex:none;
  background:linear-gradient(180deg,#1b8a5e,#2fb882);box-shadow:1px 2px 4px rgba(0,0,0,.75) inset,0 0 0 1px #040806,0 1px 0 rgba(255,255,255,.18),0 0 9px rgba(70,207,144,.4);transition:background .25s,box-shadow .25s}
main .cx-calm::after{content:"";position:absolute;right:3px;top:50%;width:16px;height:16px;margin-top:-8px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#ffffff,#c9d2cd 55%,#8e9893);box-shadow:0 1px 0 rgba(255,255,255,.8) inset,1px 2px 0 #5f6964,2px 3px 3px rgba(0,0,0,.6);transition:translate .25s cubic-bezier(.2,.7,.2,1)}
main .cx-calm[aria-pressed=true]::before{background:linear-gradient(180deg,#0a120e,#16221c);box-shadow:1px 2px 4px rgba(0,0,0,.85) inset,0 0 0 1px #040806,0 1px 0 rgba(255,255,255,.14)}
main .cx-calm[aria-pressed=true]::after{translate:-18px 0}
main .cx-calm:focus-visible{outline:2px solid var(--gold);outline-offset:4px}

/* ---------- the well and the back plate ---------- */
main .cx-stage{border-radius:12px;background:#040806;overflow:hidden;isolation:isolate;
  box-shadow:4px 6px 12px rgba(0,0,0,.95) inset,-1px -1px 0 rgba(255,255,255,.05) inset,0 0 0 1px #020403,0 1px 0 rgba(255,255,255,.2),1px 0 0 rgba(255,255,255,.08)}
main .cx-stage::before{content:"";position:absolute;inset:-14px;z-index:-1;pointer-events:none;
  translate:calc(var(--px)*-7px) calc(var(--py)*-7px);transition:translate .3s ease-out;
  background:
   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160' viewBox='0 0 240 160'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M0 31h60l16 16h60l14-14h90M0 111h40l14 14h70l16-16h100M120 0v24l-14 14v40M200 160v-30l-12-12V84' stroke='%23000' stroke-opacity='.75' stroke-width='2'/%3E%3Cpath d='M0 30h60l16 16h60l14-14h90M0 110h40l14 14h70l16-16h100M120-1v24l-14 14v40M200 159v-30l-12-12V83' stroke='%239fe8c4' stroke-opacity='.16' stroke-width='1'/%3E%3Cg fill='%2346cf90' fill-opacity='.3' stroke='none'%3E%3Ccircle cx='76' cy='46' r='2.4'/%3E%3Ccircle cx='150' cy='32' r='2.4'/%3E%3Ccircle cx='106' cy='78' r='2.4'/%3E%3Ccircle cx='188' cy='84' r='2.4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
   repeating-linear-gradient(0deg,rgba(0,0,0,.5) 0 1px,rgba(255,255,255,.035) 1px 2px,rgba(0,0,0,0) 2px 28px),
   repeating-linear-gradient(90deg,rgba(0,0,0,.5) 0 1px,rgba(255,255,255,.035) 1px 2px,rgba(0,0,0,0) 2px 28px),
   radial-gradient(70% 60% at 30% 12%,rgba(120,220,175,.16),rgba(120,220,175,0) 70%),
   linear-gradient(150deg,#16291f,#0c1812 55%,#070f0b)}
/* the well's own wall throws a shadow across the plate from the top-left */
main .cx-stage::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;
  box-shadow:10px 14px 18px -6px rgba(0,0,0,.8) inset,0 0 0 1px rgba(0,0,0,.6) inset}

/* ---------- the track: a milled channel with the light in it ---------- */
main .cx-svg{z-index:1;translate:calc(var(--px)*-3px) calc(var(--py)*-3px);transition:translate .3s ease-out}
main .cx-lip-d{fill:none;stroke:#000;stroke-width:27;transform:translate(-1.8px,-1.8px);opacity:.9}
main .cx-lip-l{fill:none;stroke:rgba(196,240,218,.26);stroke-width:27;transform:translate(1.8px,1.8px)}
main .cx-bed{stroke:#030705;stroke-width:24;filter:none}
main .cx-floor{fill:none;stroke:#0a1a12;stroke-width:17;transform:translate(1.4px,2px)}
main .cx-rail{stroke:#46cf90;stroke-width:6.4;filter:drop-shadow(0 0 5px rgba(70,207,144,.8)) drop-shadow(0 0 14px rgba(70,207,144,.35))}
main .cx-gap{stroke:#06140d;stroke-width:3}
main .cx-core{stroke:rgba(215,255,235,.6)}
main .cx-pulse{fill:#eafff3}
/* the brass guide rail the slips feed along, and the inlet where it meets the track */
main .cx-intake path{stroke:#c9a04a;stroke-width:3;stroke-dasharray:none;stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 -.6px 0 rgba(255,240,196,.75)) drop-shadow(1px 1.4px 0 #5c4316) drop-shadow(3px 5px 3px rgba(0,0,0,.75))}
main .cx-port{fill:#0b1510;stroke:#e2c070;stroke-width:2.4;filter:drop-shadow(2px 3px 2px rgba(0,0,0,.8))}

/* ---------- stations: tokens standing on posts ---------- */
main .cx-st{z-index:3;translate:calc(var(--px)*3px) calc(var(--py)*3px);transition:translate .3s ease-out}
main .cx-st .d{border:0;
  box-shadow:0 1.5px 0 rgba(255,255,255,.3) inset,1px 0 0 rgba(255,255,255,.12) inset,0 -3px 5px rgba(0,0,0,.55) inset,
   1px 1px 0 #16261e,2px 2px 0 #13211a,3px 3px 0 #101c16,4px 4px 0 #0c1611,5px 6px 0 #08100c,6px 7px 0 #040806,
   11px 15px 7px rgba(0,0,0,.7),20px 28px 18px -4px rgba(0,0,0,.55)}
main .cx-st:hover .d{transform:translate(-1px,-3px);
  box-shadow:0 1.5px 0 rgba(255,255,255,.34) inset,1px 0 0 rgba(255,255,255,.14) inset,0 -3px 5px rgba(0,0,0,.55) inset,
   1px 1px 0 #16261e,2px 2px 0 #13211a,3px 3px 0 #101c16,4px 4px 0 #0c1611,5px 6px 0 #08100c,6px 7px 0 #040806,
   15px 21px 10px rgba(0,0,0,.6),28px 38px 24px -4px rgba(0,0,0,.5)}
main .cx-st:active .d{transform:translate(2px,3px);
  box-shadow:0 1.5px 0 rgba(255,255,255,.3) inset,0 -3px 5px rgba(0,0,0,.55) inset,1px 1px 0 #16261e,2px 2px 0 #0c1611,3px 3px 0 #040806,5px 7px 5px rgba(0,0,0,.75)}
main .cx-st.on .d{transform:translate(-1px,-3px) scale(1.06);border:0;
  box-shadow:0 1.5px 0 rgba(255,255,255,.7) inset,0 -3px 5px rgba(0,70,40,.45) inset,
   1px 1px 0 #1f9a66,2px 2px 0 #1b8a5c,3px 3px 0 #177a51,4px 4px 0 #126443,5px 6px 0 #0c4a31,6px 7px 0 #063321,
   15px 21px 10px rgba(0,0,0,.6),28px 38px 24px -4px rgba(0,0,0,.5),0 0 30px 2px rgba(70,207,144,.55)}
main .cx-st.hit .d{box-shadow:0 1.5px 0 rgba(255,255,255,.3) inset,0 -3px 5px rgba(0,0,0,.55) inset,
   1px 1px 0 #16261e,2px 2px 0 #13211a,3px 3px 0 #101c16,4px 4px 0 #0c1611,5px 6px 0 #08100c,6px 7px 0 #040806,
   11px 15px 7px rgba(0,0,0,.7),0 0 26px 2px rgba(70,207,144,.55)}
/* the label is an engraved plate fixed under its token */
main .cx-st .lb{border-radius:3px;color:#e9e4d6;background:linear-gradient(180deg,#2a3d33,#15211b);
  box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 -1px 0 rgba(0,0,0,.5) inset,1px 2px 0 #040806,4px 6px 5px rgba(0,0,0,.65);text-shadow:0 -1px 0 rgba(0,0,0,.7)}
main .cx-st:hover .lb,main .cx-st.on .lb{color:#ffffff}

/* ---------- the step card: a cream ledger card resting above the track ---------- */
main .cx-card{z-index:2;border:0;border-radius:4px;overflow:visible;color:#1b221e;
  translate:calc(var(--px)*6px) calc(var(--py)*6px);transition:translate .3s ease-out;
  background:linear-gradient(135deg,rgba(255,255,255,.38),rgba(255,255,255,0) 32%,rgba(0,0,0,0) 68%,rgba(0,0,0,.08)),
   linear-gradient(180deg,rgba(196,62,50,.5) 0 1px,transparent 1px) 0 13px/100% 1px no-repeat,
   repeating-linear-gradient(180deg,transparent 0 27px,rgba(47,96,130,.16) 27px 28px),linear-gradient(176deg,#f5efdc,#e8e0c9);
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,1px 0 0 rgba(255,255,255,.5) inset,1px 1px 0 #d2c9b1,2px 2px 0 #a39a82,3px 3px 0 #7d7562,
   9px 13px 8px rgba(0,0,0,.6),22px 32px 26px -4px rgba(0,0,0,.6),44px 62px 50px -16px rgba(0,0,0,.5)}
main .cx-card .k{color:#6b4f1c}
main .cx-card h3{color:#17201b;text-shadow:none}
main .cx-card p{color:#3b4640}
main .cx-card .nx{color:#4f5953}
main .cx-card .nx b{color:#0d6b47}
main .cx-card .nx::before{border-color:#1f7a56;opacity:1}
main .cx-card .chip.jade{filter:drop-shadow(1px 2px 0 #0d3a28) drop-shadow(4px 6px 5px rgba(0,0,0,.35))}
main .cx-card a.tlink{color:#f2eee3;border-color:#0d1612;background:linear-gradient(180deg,#27382f,#15211b);box-shadow:0 1px 0 rgba(255,255,255,.18) inset,1px 2px 0 #060b08,5px 8px 8px -2px rgba(0,0,0,.5)}
main .cx-card a.tlink:hover{color:#b8f3d6;transform:translateY(-1px)}
main .cx-card a.tlink:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(255,255,255,.14) inset,0 0 0 #060b08,2px 3px 4px -2px rgba(0,0,0,.6)}
@media(max-width:599px){main .cx-stage.tall .cx-card{border-radius:4px}}

/* ---------- the incoming papers: cream slips in front of everything ---------- */
main .cx-stage>div[aria-hidden]:not(.cx-hub){position:absolute;inset:0;z-index:4;pointer-events:none;translate:calc(var(--px)*11px) calc(var(--py)*11px);transition:translate .3s ease-out}
main .cx-chip{border:0;border-radius:2px;color:#1d2622;text-shadow:none;padding:8px 12px 8px 9px;
  background:linear-gradient(135deg,rgba(255,255,255,.45),rgba(255,255,255,0) 45%,rgba(0,0,0,.06)),
   linear-gradient(180deg,transparent calc(100% - 6px),rgba(47,96,130,.3) calc(100% - 6px) calc(100% - 5px),transparent calc(100% - 5px)),linear-gradient(176deg,#f8f3e2,#e9e2cc);
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,1px 1px 0 #cfc6ae,2px 2px 0 #9d957f,6px 9px 6px rgba(0,0,0,.65),16px 24px 18px -4px rgba(0,0,0,.6)}
main .cx-chip i{color:#0d6b47}
@media(max-width:599px){main .cx-chip{padding:6px 8px 6px 7px}}

/* the centre mark on phones keeps its plate */
main .cx-hub{z-index:2;translate:calc(var(--px)*2px) calc(var(--py)*2px)}
main .cx-hub .core{box-shadow:0 1.5px 0 rgba(255,255,255,.2) inset,0 -3px 5px rgba(0,0,0,.5) inset,1px 1px 0 #16261e,2px 2px 0 #101c16,3px 4px 0 #08100c,8px 11px 7px rgba(0,0,0,.7),0 0 0 6px rgba(224,189,120,.06)}

/* without the script the stations sit in a grid: keep them above the plate */
main .cx-stage:not(.cx-ready) .cx-st,main .cx-stage:not(.cx-ready) .cx-card{translate:none}

@media(max-width:600px){main .eco.cx{border-radius:16px;
  box-shadow:0 1.5px 0 rgba(255,255,255,.34) inset,1.5px 0 0 rgba(255,255,255,.16) inset,0 -2px 0 rgba(0,0,0,.6) inset,0 0 0 1px #050908,
   1px 1px 0 1px #1c2e25,2px 2px 0 1px #17261f,3px 3px 0 1px #111d17,4px 4px 0 1px #0b130f,5px 5px 0 1px #050908,
   9px 12px 8px rgba(0,0,0,.85),22px 34px 36px -8px rgba(0,0,0,.85)}
  main .eco.cx::before{border-radius:12px}
  main .cx .eco-head,main .cx-cap{padding-left:14px;padding-right:14px}}
html.calm main .eco.cx{rotate:none}
@media(prefers-reduced-motion:reduce){main .eco.cx{rotate:none!important;transition:none}
  main .cx-stage::before,main .cx-svg,main .cx-st,main .cx-card,main .cx-stage>div[aria-hidden]:not(.cx-hub),main .cx-hub{translate:none!important;transition:none}
  main .cx-calm::after,main .cx-calm::before{transition:none}}

/* ---------- the Circuit strip on the service pages: the same machine, as a control strip ---------- */
main .cstrip{border:0;border-radius:16px;overflow:visible;
  background:
   radial-gradient(circle at 12px 12px,#060b08 0 1px,#aebfb5 1.3px 1.9px,#4a5b52 2.2px 4.2px,#0a110d 4.5px 5.4px,rgba(0,0,0,0) 6px),
   radial-gradient(circle at calc(100% - 12px) 12px,#060b08 0 1px,#aebfb5 1.3px 1.9px,#4a5b52 2.2px 4.2px,#0a110d 4.5px 5.4px,rgba(0,0,0,0) 6px),
   radial-gradient(circle at 12px calc(100% - 12px),#060b08 0 1px,#aebfb5 1.3px 1.9px,#4a5b52 2.2px 4.2px,#0a110d 4.5px 5.4px,rgba(0,0,0,0) 6px),
   radial-gradient(circle at calc(100% - 12px) calc(100% - 12px),#060b08 0 1px,#aebfb5 1.3px 1.9px,#4a5b52 2.2px 4.2px,#0a110d 4.5px 5.4px,rgba(0,0,0,0) 6px),
   repeating-linear-gradient(92deg,rgba(255,255,255,.022) 0 1px,rgba(255,255,255,0) 1px 3px),
   linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,0) 24%,rgba(0,0,0,0) 62%,rgba(0,0,0,.26)),
   linear-gradient(160deg,#2c4238,#17261f 46%,#0e1914);
  box-shadow:0 1.5px 0 rgba(255,255,255,.32) inset,1.5px 0 0 rgba(255,255,255,.15) inset,0 -2px 0 rgba(0,0,0,.6) inset,0 0 0 1px #050908,
   1px 1px 0 1px #1c2e25,2px 2px 0 1px #17261f,3px 3px 0 1px #14221b,4px 4px 0 1px #0e1813,5px 5px 0 1px #0b130f,6px 6px 0 1px #050908,
   10px 14px 8px rgba(0,0,0,.85),28px 42px 46px -8px rgba(0,0,0,.85),64px 92px 96px -36px rgba(0,0,0,.75)}
/* the track: a milled slot with the light in it */
main .cs-track::before{height:8px;margin-top:-1px;border:0;border-radius:4px;
  background:linear-gradient(180deg,#020403 0 2px,#46cf90 2px 3.5px,#06140d 3.5px 5px,#46cf90 5px 6px,#0a1a12 6px);
  box-shadow:0 -1.5px 0 #000,0 1.5px 0 rgba(196,240,218,.28),0 0 8px rgba(70,207,144,.35)}
/* tokens standing on posts, each with its shadow on the housing */
main .cs-node .d{border:0;
  box-shadow:0 1.5px 0 rgba(255,255,255,.3) inset,1px 0 0 rgba(255,255,255,.12) inset,0 -3px 5px rgba(0,0,0,.55) inset,
   1px 1px 0 #16261e,2px 2px 0 #101c16,3px 3px 0 #0c1611,4px 5px 0 #040806,8px 11px 6px rgba(0,0,0,.7),16px 22px 14px -4px rgba(0,0,0,.5)}
main .cs-node:hover .d{transform:translate(-1px,-3px);
  box-shadow:0 1.5px 0 rgba(255,255,255,.34) inset,0 -3px 5px rgba(0,0,0,.55) inset,1px 1px 0 #16261e,2px 2px 0 #101c16,3px 3px 0 #0c1611,4px 5px 0 #040806,12px 16px 9px rgba(0,0,0,.6),22px 30px 20px -4px rgba(0,0,0,.45)}
main .cs-node:active .d{transform:translate(1px,2px)}
main .cs-node.on .d{border:0;
  box-shadow:0 1.5px 0 rgba(255,255,255,.7) inset,0 -3px 5px rgba(0,70,40,.45) inset,1px 1px 0 #1f9a66,2px 2px 0 #177a51,3px 3px 0 #126443,4px 5px 0 #063321,
   10px 14px 8px rgba(0,0,0,.6),0 0 26px 0 rgba(70,207,144,.55)}
@media(prefers-reduced-motion:reduce){main .cs-node:hover .d,main .cs-node:active .d{transform:none}}

/* ---------- the background traces are drawn live by traces.js (one canvas behind the page); the old faint pattern steps aside ---------- */
html.tr-on .band-alt{background:linear-gradient(180deg,rgba(16,27,21,.62),rgba(16,27,21,.28))}

/* a paper slip rides the brass rail into the track; the inlet is a brass funnel pointing in */
main .cx-slip{fill:#f6f0dc;stroke:#9d957f;stroke-width:.8;filter:drop-shadow(2px 3px 2px rgba(0,0,0,.75))}
main .cx-inlet{fill:#e2c070;stroke:#5c4316;stroke-width:1;stroke-linejoin:round;filter:drop-shadow(1px 2px 1px rgba(0,0,0,.8))}
main .cx-port.flash{fill:#f6f0dc;stroke:#fff3c9}

/* the tap ring for the background traces on phones (traces.js): a jade ring opens at the finger, above the page */
.tr-tap{position:fixed;z-index:60;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;border:2px solid rgba(150,240,200,.95);
  box-shadow:0 0 16px rgba(70,207,144,.75),0 0 0 1px rgba(7,11,9,.45),0 0 0 1px rgba(7,11,9,.45) inset;pointer-events:none;animation:trTap .75s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes trTap{to{transform:scale(5.5);opacity:0}}
html.calm .tr-tap{display:none}
@media(prefers-reduced-motion:reduce){.tr-tap{display:none}}
