/* Brein: the five-layer stage (shared by index.html and methode.html). The stage is 1200x720 design units; each page scales it with a transform. */
.m-scene { position: absolute; left: 0; top: 0; width: 1200px; height: 720px; transform-origin: 0 0; will-change: transform; }
.m-scene > * { position: absolute; }
#docs, #tiles, #seats, #agents { left: 0; top: 0; width: 1200px; height: 720px; pointer-events: none; }
.m-doc, .m-tile, .m-seat, .m-agent { position: absolute; }
.m-back, .m-core { left: 0; top: 0; width: 1200px; height: 720px; overflow: visible; }
.m-back { z-index: 1; } .m-core { z-index: 5; }
.m-cable { fill: none; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.m-orb-glow { animation: orbPulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes orbPulse { 50% { opacity: .55; transform: scale(1.12); } }

.m-doc { left: 0; top: 0; z-index: 3; width: 92px; }
.m-doc > div { height: 116px; border-radius: 10px; padding: 10px 9px; background: linear-gradient(170deg, #26262D, #18181C); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.9); display: grid; align-content: start; gap: 6px; animation: bob 5s ease-in-out infinite alternate; }
.m-doc:nth-child(2n) > div { animation-duration: 6.2s; animation-delay: -2s; }
.m-doc:nth-child(3n) > div { animation-duration: 4.4s; animation-delay: -1s; }
@keyframes bob { to { transform: translateY(-12px) rotate(2deg); } }
.m-doc b { font-size: 9.5px; font-weight: 700; letter-spacing: .02em; color: #D6D6DC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-doc i { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); }
.m-doc i:first-of-type { height: 5px; width: 60%; background: var(--c); opacity: .85; }
.m-doc i:nth-of-type(3) { width: 80%; } .m-doc i:nth-of-type(5) { width: 55%; }
.m-scan { left: 400px; top: 120px; width: 380px; height: 2px; z-index: 4; background: linear-gradient(90deg, transparent, var(--lilac), transparent);
  box-shadow: 0 0 18px 4px rgba(216,204,244,.45); animation: scan 3.4s ease-in-out infinite alternate; }
@keyframes scan { to { transform: translateY(430px); } }

.m-matrix { left: 770px; top: 150px; width: 232px; z-index: 8; padding: 14px; border-radius: 14px; background: rgba(22,22,27,.9); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px -24px rgba(0,0,0,.9); }
.mx-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #E6E6EA; margin-bottom: 10px; }
.mx-head small { color: #7B7B85; font-size: 9.5px; letter-spacing: .08em; }
.mx-grid { position: relative; height: 170px; margin-left: 14px; border-left: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)) 50% 0 / 1px 100% no-repeat, linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)) 0 50% / 100% 1px no-repeat; }
.mx-ax { position: absolute; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #7B7B85; font-weight: 700; }
.mx-ax.y { left: -16px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.mx-ax.x { right: 0; bottom: -18px; }
.mx-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #4A4A52; transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.mx-dot.qw { background: var(--sage); box-shadow: 0 0 14px var(--sage); }
.mx-dot.big { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--blush); box-shadow: 0 0 20px var(--blush); }
.mx-dot span { position: absolute; left: 16px; top: 50%; translate: 0 -50%; white-space: nowrap; font-size: 9.5px; font-weight: 700; color: #E6E6EA; letter-spacing: .04em; }
.mx-dot.big span { left: auto; right: 22px; }
.m-matrix.on .mx-dot { transform: scale(1); }
.m-matrix.on .mx-dot:nth-child(4) { transition-delay: .15s; } .m-matrix.on .mx-dot:nth-child(5) { transition-delay: .3s; } .m-matrix.on .mx-dot:nth-child(6) { transition-delay: .45s; }
.m-matrix.on .mx-dot:nth-child(7) { transition-delay: .6s; } .m-matrix.on .mx-dot:nth-child(8) { transition-delay: .75s; }

.m-tile { width: 64px; margin-left: -32px; margin-top: -28px; z-index: 2; display: grid; justify-items: center; gap: 7px; opacity: 0; }
.m-tile .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, #26262D, #141418);
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 14px 30px -12px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.07), 0 0 26px -12px var(--c); }
.m-tile .ic svg { width: 28px; height: 28px; filter: drop-shadow(0 0 10px rgba(255,255,255,.08)); }
.m-tile b { font-size: 11px; font-weight: 600; color: #8D8D97; letter-spacing: .02em; white-space: nowrap; }
.ico-s { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.m-seat { width: 120px; margin-left: -60px; z-index: 7; display: grid; justify-items: center; gap: 7px; opacity: 0; }
.m-seat i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; color: var(--black); background: var(--c); box-shadow: 0 0 0 4px rgba(13,13,15,.9), 0 0 24px -4px var(--c); }
.m-seat span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); background: rgba(13,13,15,.85); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.m-panel { z-index: 8; border-radius: 12px; padding: 10px 12px 12px; background: rgba(24,24,29,.94); border: 1px solid rgba(255,255,255,.12); opacity: 0;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.95); font-size: 11px; color: #CFCFD6; transform-origin: 50% 100%; }
.m-pbar { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.m-pbar i { width: 6px; height: 6px; border-radius: 50%; background: #3A3A42; }
.m-pbar span { margin-left: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #E6E6EA; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m-kpis div { border-radius: 8px; background: rgba(255,255,255,.05); padding: 7px 8px; display: grid; }
.m-kpis b { font-family: var(--f-display); font-size: 16px; letter-spacing: -0.03em; color: var(--white); line-height: 1.1; }
.m-kpis small { font-size: 8.5px; color: #8D8D97; }
.m-kpis div:nth-child(1) b { color: var(--sage); } .m-kpis div:nth-child(2) b { color: var(--champagne); } .m-kpis div:nth-child(3) b { color: var(--blush); }
.m-chart { display: block; width: 100%; height: 64px; margin-top: 8px; }
.m-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 10px; }
.m-row em { font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; color: var(--black); }
.m-gantt { display: grid; gap: 6px; }
.m-gantt div { position: relative; height: 12px; border-radius: 4px; background: rgba(255,255,255,.04); }
.m-gantt div::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 4px; background: var(--c); opacity: .9; }

.m-agent { left: 0; top: 0; z-index: 6; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 9px; border-radius: 999px; opacity: 0;
  background: rgba(20,20,25,.92); border: 1px solid var(--lilac); color: var(--lilac); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 26px -6px var(--lilac); }
.m-agent svg { width: 15px; height: 15px; }
@media (max-width: 759px) { .m-tile b { display: none; } }
