/* Depth Blur console carousel (photographers console section). Built by depthblur.js from the five pages authored in #dbSrc.
   Cards (the real console pages, scaled) carry the motion; at rest the focused page is a flat, un-transformed copy in screen space (.db-pr) so its text and notes are crisp.
   Without JS the five pages show as a plain list of their notes; reduced motion drops drag and transitions. */
.db-src{list-style:none;margin:0 auto;padding:0 max(20px,env(safe-area-inset-left,0px));max-width:var(--wrap,1180px)}
.db-src>li{padding:14px 0;border-top:1px solid var(--hair)}
.db-src>li>.tc{display:none}
.db-src h3{font-size:20px;font-variation-settings:'wdth' 85}
.db-src .xs-notes{display:block;position:static;width:auto;height:auto;margin:6px 0 0;padding-left:1.2em;list-style:disc;color:var(--dim);font-size:15px;line-height:1.5}
.db-src .xs-note{position:static;width:auto;--nt:1}
.db-src .xs-note span{display:inline;opacity:1;left:0}
.db-built>.db-src{display:none}
.db-mount{padding-bottom:clamp(28px,4vw,56px)}

.db-stage{--NW:1280;--NH:720;--g:.7;--D:894;--Dh:503;--Dl:-447px;--Dt:-251px;--nw:140px;--P:2000;--fy:300px;
  position:relative;height:631px;overflow:hidden;cursor:grab;touch-action:pan-y;-webkit-user-select:none;user-select:none;outline-offset:-3px;
  background:
    radial-gradient(60% 55% at 50% 46%,rgba(168,207,182,.075),rgba(168,207,182,0) 70%),
    repeating-linear-gradient(0deg,rgba(236,232,220,.035) 0 1px,transparent 1px 90px),
    repeating-linear-gradient(90deg,rgba(236,232,220,.035) 0 1px,transparent 1px 90px)}
.db-stage.dragging{cursor:grabbing}
.db-focus{position:absolute;left:50%;top:var(--fy);width:0;height:0}
.db-rail{position:absolute;left:0;top:0;width:0;height:0;perspective:calc(var(--P) * 1px);perspective-origin:0 0}
.db-card{position:absolute;left:calc(var(--NW) * -.5px);top:calc(var(--NH) * -.5px);width:calc(var(--NW) * 1px);height:calc(var(--NH) * 1px);transform-origin:50% 50%;cursor:pointer}
.db-pw{position:absolute;inset:0}
.db-stage .xs-panel{position:absolute;inset:0;filter:none;border-radius:16px;
  box-shadow:0 0 0 2px rgba(236,232,220,.2),inset 0 1px 0 rgba(255,255,255,.07),0 30px 70px -20px rgba(0,0,0,.7)}
/* depth dim (per frame) and rest dim (class-driven) are separate veils, so neither fights the other's timing */
.db-card::before,.db-card::after{content:"";position:absolute;inset:0;border-radius:16px;background:#040706;pointer-events:none;z-index:2;will-change:opacity}
.db-card::before{opacity:var(--dim,0)}
.db-card::after{opacity:0;transition:opacity .28s ease}
.db-stage.is-rest .db-card:not(.is-cur)::after{opacity:.66}
.db-stage.is-rest .db-card.is-cur .db-pw{opacity:0;transition:opacity .01s linear .3s}
.db-fx{position:absolute;inset:0;pointer-events:none;z-index:10}
/* frosted edges (below the presenter, so the notes stay crisp) */
.db-frost{position:absolute;top:0;bottom:0;width:18%;-webkit-backdrop-filter:blur(11px);backdrop-filter:blur(11px);
  background:linear-gradient(90deg,rgba(9,12,11,.78),rgba(9,12,11,0));-webkit-mask-image:linear-gradient(90deg,#000 25%,transparent);mask-image:linear-gradient(90deg,#000 25%,transparent)}
.db-frost.l{left:0}.db-frost.r{right:0;transform:scaleX(-1)}

/* the presenter: the focused page, flat in screen space, with its notes and circuit traces */
.db-pr{position:absolute;left:0;top:0;width:0;height:0;z-index:20;pointer-events:none;opacity:0;transition:opacity .12s ease}
.db-stage.is-rest .db-pr{opacity:1;transition:opacity .28s ease}
.db-box{position:absolute}
.db-box .xs-panel{position:static;zoom:var(--g);width:calc(var(--NW) * 1px);height:calc(var(--NH) * 1px);
  box-shadow:0 0 0 2px rgba(236,232,220,.2),inset 0 1px 0 rgba(255,255,255,.07),0 0 0 2px rgba(168,207,182,.4),0 36px 96px -16px rgba(0,0,0,.7)}
.db-notes,.db-over{position:absolute;left:0;top:0;width:0;height:0;margin:0;padding:0;list-style:none}
.db-n{position:absolute;left:var(--nx,0);top:var(--ny,0);width:var(--nw);box-sizing:border-box;margin:0;font-size:14px;line-height:1.3;color:var(--paper)}
.db-n.l{text-align:right;--sd:-1}
.db-n.r{text-align:left;--sd:1}
.db-n span{display:block;position:relative;left:calc(var(--sd,1) * 12px);opacity:0;text-wrap:balance;text-shadow:0 0 10px #090C0B,0 0 3px #090C0B;
  transition:opacity .32s ease calc(.38s + var(--i,0) * .07s),left .32s ease calc(.38s + var(--i,0) * .07s)}
.db-pr.on .db-n span{opacity:1;left:0}
.db-nh{left:var(--Dl);top:calc(var(--Dt) - 36px);width:calc(var(--D) * 1px);text-align:center;font-family:var(--mono);font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--handled)}
.db-nh span{opacity:1;left:0;transition:none;text-shadow:none}
.db-traces{position:absolute;left:0;top:0;width:1px;height:1px;max-width:none;overflow:visible}
.db-t{fill:none;stroke-linejoin:miter;stroke-linecap:butt;stroke-dasharray:1;stroke-dashoffset:1;opacity:0;
  transition:stroke-dashoffset .5s ease calc(.14s + var(--i,0) * .06s),opacity .01s linear calc(.14s + var(--i,0) * .06s)}
.db-pr.on .db-t{stroke-dashoffset:0;opacity:1}
.db-t.c{stroke:rgba(8,12,10,.6);stroke-width:4.5}
.db-t.w{stroke:rgba(168,207,182,.95);stroke-width:1.5}
.db-p{position:absolute;width:0;height:0;margin:0;border-radius:50%;background:var(--handled);box-sizing:border-box;font-size:0;overflow:hidden;
  transition:width .2s ease calc(.54s + var(--i,0) * .06s),height .2s ease calc(.54s + var(--i,0) * .06s),margin .2s ease calc(.54s + var(--i,0) * .06s),box-shadow .2s ease calc(.54s + var(--i,0) * .06s)}
.db-pr.on .db-p{width:7px;height:7px;margin:-3.5px 0 0 -3.5px;box-shadow:0 0 0 3px rgba(8,12,10,.55),0 0 0 4.5px rgba(168,207,182,.5)}

/* where the side margin runs out: the notes set under the panel, one row each, tied to the furniture by numbered pins */
@media (max-width:1000px){
  .db-notes{display:flex;flex-direction:column;gap:3px;left:var(--Dl);top:calc(var(--Dt) + var(--Dh) * 1px + 14px);width:calc(var(--D) * 1px)}
  .db-n{position:relative;left:auto;top:auto;width:auto;order:var(--i,0);text-align:left;font-size:12.5px;line-height:1.3}
  .db-n.l,.db-n.r{text-align:left;--sd:1}
  .db-n span{padding:2px 8px 2px 28px;border-radius:6px;background:rgba(10,15,13,.84);text-wrap:wrap;text-shadow:none;left:0}
  .db-n:not(.db-nh)::before{content:attr(data-n);position:absolute;left:8px;top:calc(50% - 7.5px);width:15px;height:15px;border:1px solid var(--handled);border-radius:50%;box-sizing:border-box;
    display:grid;place-items:center;font:500 9px/1 var(--mono);color:var(--handled);opacity:0;transition:opacity .3s ease calc(.38s + var(--i,0) * .07s);z-index:1}
  .db-pr.on .db-n:not(.db-nh)::before{opacity:1}
  .db-nh{position:absolute;left:0;top:calc(var(--Dh) * -1px - 52px);order:-1;width:calc(var(--D) * 1px)}
  .db-nh span{padding:0;background:none}
  .db-traces{display:none}
  .db-p{font-size:9px;font-family:var(--mono);color:var(--handled);display:grid;place-items:center;background:rgba(10,15,13,.88);border:1px solid var(--handled)}
  .db-pr.on .db-p{width:15px;height:15px;margin:-7.5px 0 0 -7.5px;box-shadow:none}
}

/* controls: previous, a chip per page name, next */
.db-ctl{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:14px 16px 4px}
.db-arrow{width:44px;height:44px;flex:none;border-radius:50%;border:0;background:transparent;color:var(--paper);box-shadow:inset 0 0 0 1px var(--hair-2);cursor:pointer;display:grid;place-items:center}
.db-arrow:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--paper)}
.db-arrow:disabled{opacity:.35;cursor:default}
.db-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.db-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.db-chip{min-height:40px;padding:0 14px;border-radius:999px;border:0;background:transparent;color:var(--dim);font:500 13.5px/1 var(--body);box-shadow:inset 0 0 0 1px var(--hair-2);cursor:pointer}
.db-chip:hover{color:var(--paper);box-shadow:inset 0 0 0 1px var(--paper)}
.db-chip[aria-current="true"]{background:var(--paper);color:var(--ink);box-shadow:none}
.db-hint{flex-basis:100%;text-align:center;font:400 11.5px/1.3 var(--mono);letter-spacing:.04em;color:var(--faint);margin-top:2px}

@media (max-width:760px){
  .db-ctl{gap:8px}
  .db-chips{order:3;flex-basis:100%}
  .db-hint{order:4}
  .db-chip{padding:0 12px;min-height:38px;font-size:13px}
}
@media (prefers-reduced-motion:reduce){
  .db-pr,.db-pr *,.db-card::after,.db-pr .db-n::before{transition:none!important}
  .db-stage{cursor:default}
}
