/* DBM 3D workbench: depth clarifies the customer journey and progressively enhances normal HTML. */
:root { --dbm-depth-back: 0px; --dbm-depth-mid: 0px; --dbm-depth-front: 0px; }
.dbm-3d-stage { transform-style: preserve-3d; }
.dbm-3d-stage > .dbm-hero-copy,
.dbm-3d-stage > .dbm-offer-hero-copy,
.dbm-3d-stage > .spatial-hero-copy,
.dbm-3d-stage > .dbm-hero-panel,
.dbm-3d-stage > .dbm-page-hero-picture,
.dbm-3d-stage > .dbm-offer-hero-art,
.dbm-3d-stage > .toolbox-workbench,
.dbm-3d-stage > .spatial-portfolio-bay,
.dbm-3d-stage > .command-card,
.dbm-3d-stage > .dbm-instrument { transform-style: preserve-3d; }
.dbm-3d-stage { perspective: 1500px; isolation: isolate; position: relative; }
.dbm-3d-stage > .dbm-hero-copy,
.dbm-3d-stage > .dbm-offer-hero-copy,
.dbm-3d-stage > .spatial-hero-copy,
.dbm-3d-stage.shell.hero > div:first-child,
.dbm-3d-stage > .dbm-hero-panel { transform: translate3d(0, 0, var(--dbm-depth-mid)); transition: transform 180ms ease-out; }
.dbm-3d-stage > .dbm-page-hero-picture,
.dbm-3d-stage > .dbm-offer-hero-art,
.dbm-3d-stage > .toolbox-workbench,
.dbm-3d-stage > .spatial-portfolio-bay,
.dbm-3d-stage > .command-card,
.dbm-3d-stage > .dbm-instrument { transform: translate3d(0, 0, var(--dbm-depth-front)) rotateY(var(--dbm-rotate-y, 0deg)) rotateX(var(--dbm-rotate-x, 0deg)); transition: transform 180ms ease-out; }
.dbm-3d-stage::before { content: ""; position: absolute; inset: 8% 4% 4%; z-index: -1; border: 1px solid color-mix(in srgb, var(--dbm-lime, #c8ff3d) 22%, transparent); border-radius: 18px; transform: translateZ(-70px) rotateX(55deg); transform-origin: center bottom; opacity: .8; pointer-events: none; }
.dbm-3d-stage::after { content: "DBM / WORKBENCH"; position: absolute; right: 2%; bottom: 2%; z-index: 2; color: color-mix(in srgb, var(--dbm-lime, #c8ff3d) 72%, white); font: 800 11px/1.2 var(--dbm-font-mono, ui-monospace, monospace); letter-spacing: .1em; transform: translateZ(90px) rotate(-4deg); pointer-events: none; }
.dbm-3d-rail { position: absolute; right: 4%; bottom: 8%; z-index: 3; display: grid; gap: 7px; width: min(170px, 30%); transform: translateZ(100px) rotateY(-8deg); pointer-events: none; }
.dbm-3d-rail span { display: block; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--dbm-lime, #c8ff3d) 40%, transparent); background: rgba(7, 17, 15, .86); color: #dff7c2; box-shadow: 0 10px 24px rgba(0,0,0,.18); font: 800 12px/1.15 var(--dbm-font-mono, ui-monospace, monospace); letter-spacing: .06em; }
.dbm-3d-rail span:nth-child(2) { transform: translateX(15px) translateZ(14px); border-color: color-mix(in srgb, var(--dbm-blue, #75d4ed) 42%, transparent); }
.dbm-3d-rail span:nth-child(3) { transform: translateX(30px) translateZ(28px); border-color: color-mix(in srgb, var(--dbm-orange, #dd5d31) 42%, transparent); }
.dbm-3d-stage.is-in-view .dbm-3d-rail span { animation: dbm-3d-settle 700ms cubic-bezier(.16,1,.3,1) both; }
.dbm-3d-stage.is-in-view .dbm-3d-rail span:nth-child(2) { animation-delay: 90ms; }
.dbm-3d-stage.is-in-view .dbm-3d-rail span:nth-child(3) { animation-delay: 180ms; }
@keyframes dbm-3d-settle { from { opacity: 0; transform: translate3d(34px, 18px, 0) rotateX(-12deg); } to { opacity: 1; } }
body.dbm-home-page .dbm-3d-stage { min-height: inherit; }
body.dbm-home-page .dbm-3d-rail { right: 7%; bottom: 12%; }
body.dbm-offer-page .dbm-3d-stage { min-height: 360px; }
body.dbm-toolbox-page .dbm-3d-stage::before { inset: 14% 6% 4%; }
body.dbm-toolbox-page .dbm-3d-rail { bottom: 16%; }
body.dbm-portfolio-page .dbm-3d-stage::before { inset: 12% 0 2%; }
body.dbm-portfolio-page .dbm-3d-rail { bottom: 11%; }
body.dbm-request-page .dbm-3d-stage::before { inset: 10% 3% 2%; }
.dbm-reduced-motion .dbm-3d-stage > *,
.dbm-reduced-motion .dbm-3d-stage::before,
.dbm-reduced-motion .dbm-3d-stage::after,
.dbm-reduced-motion .dbm-3d-rail span { transition: none !important; animation: none !important; transform: none !important; }
@media (max-width: 820px) {
  .dbm-3d-stage::before { inset: 7% 0 1%; transform: translateZ(-50px) rotateX(50deg); }
  .dbm-3d-stage::after { right: 0; bottom: 0; font-size: 10px; }
  .dbm-3d-rail { right: 32px; bottom: 3%; width: 124px; }
  .dbm-3d-stage > .dbm-page-hero-picture,
  .dbm-3d-stage > .dbm-offer-hero-art,
  .dbm-3d-stage > .toolbox-workbench,
  .dbm-3d-stage > .spatial-portfolio-bay,
  .dbm-3d-stage > .command-card,
  .dbm-3d-stage > .dbm-instrument { transform: translate3d(0, 0, 28px) rotateY(0) rotateX(0); }
  .dbm-3d-stage.shell.hero > div:first-child { transform: translateZ(0); }
}
@media (prefers-reduced-motion: reduce) {
  .dbm-3d-stage > *, .dbm-3d-stage::before, .dbm-3d-stage::after, .dbm-3d-rail span { transition: none !important; animation: none !important; transform: none !important; }
}
@media (hover: none), (pointer: coarse) {
  .dbm-3d-stage > .dbm-page-hero-picture,
  .dbm-3d-stage > .dbm-offer-hero-art,
  .dbm-3d-stage > .toolbox-workbench,
  .dbm-3d-stage > .spatial-portfolio-bay,
  .dbm-3d-stage > .command-card,
  .dbm-3d-stage > .dbm-instrument { transform: translateZ(34px); }
}
