/* ============================================================
   MONOLITH HOLOGRAM HEADER — Concept 03 x 07 merge
   (THE MACHINED MONOLITH x THE HOLOGRAM)
   Ordered Nov 12, 2026 (Mack): replaces the parked Concept 08
   fracture overlay in the deploy train. ONE fixed overlay:
   R3 compact lockup left; the six-control bar right, built as
   one machined monolith (fused blocks, milled gradient, 14px
   angled end cuts) presented as a hologram (neon bloom,
   scanline sheen, projection light-tray + source dash below).
   All rules scoped under .mhx. Version 20261112b.
   ============================================================ */
.mhx{
  --mhgutter:104px;   /* right gutter: clears the VBot companion's corner post */
  --mhpaneltop:168px; /* mega panel drop position (below lockup + tray) */
  position:fixed; top:0; left:0; right:0; z-index:90;
  pointer-events:none;
  font-family:Arial, Helvetica, sans-serif;
}
.mhx a, .mhx button{ pointer-events:auto; }

/* ---------- LEFT: R3 FRACTURE compact lockup (locked sizes) ---------- */
/* HEADER CLEANUP (2026-11-19, Mack: "logo needs to be moved up"):
   the lockup art carries ~54px of transparent headroom in its
   696x464 frame, so at top:10px the visible emblem sat ~26px down
   with its optical center ~80px — low and disconnected from the
   bar line (bar center 38px). top:-12px spends the transparent
   headroom, not artwork: the emblem's visible top lands ~4px
   (210px lockup) / ~1px (168px lockup) and seats with the bar. */
.mhx-brand{
  position:absolute; top:-12px; left:clamp(18px,3vw,44px);
  display:block; pointer-events:auto; line-height:0;
}
.mhx-brand img{ width:210px; height:auto; display:block; }
@media (max-width:1439px){ .mhx-brand img{ width:168px; } }
@media (max-width:640px){ .mhx-brand img{ width:128px; } .mhx-brand{ top:8px; left:14px; } }

/* ---------- RIGHT: bar wrap — hologram bloom follows the clipped
   silhouette of the monolith (drop-shadow on the wrap, since the
   bar's own clip-path would clip an outer box-shadow) ---------- */
.mhx-barwrap{
  position:absolute; top:16px; right:var(--mhgutter);
  filter:drop-shadow(0 0 16px rgba(57,255,20,.28))
         drop-shadow(0 12px 24px rgba(0,0,0,.55));
  transition:filter .3s ease;
}
.mhx.mhx-settled .mhx-barwrap{
  filter:drop-shadow(0 0 9px rgba(57,255,20,.16))
         drop-shadow(0 12px 24px rgba(0,0,0,.55));
}

/* ---------- THE BAR — one machined monolith (Concept 03) ---------- */
.mh-bar{
  position:relative;
  display:flex; align-items:stretch; height:44px;
  background:linear-gradient(180deg,#262b26 0%, #141714 45%, #0b0d0b 100%);
  clip-path:polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  box-shadow:inset 0 2px 0 rgba(57,255,20,.55), inset 0 -1px 0 rgba(0,0,0,.9);
}
/* hologram scan-lines over the blocks (Concept 07) */
.mh-bar::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:repeating-linear-gradient(0deg, rgba(160,255,180,.055) 0 1px, transparent 1px 4px);
}
/* hologram shimmer — a soft light band drifting across the projection */
.mh-bar::after{
  content:""; position:absolute; top:0; bottom:0; z-index:1; width:130px; pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(190,255,205,.10), transparent);
  animation:mhShimmer 5.5s ease-in-out infinite alternate;
}
@keyframes mhShimmer{ from{ left:2%; } to{ left:82%; } }

/* ---------- CONTROLS — fused blocks, one flat layout (locked) ----------
   All six exactly 44px. The four outlined controls share the flat
   layout; CLIENT PORTAL carries no box/fill/clip/glow of its own.
   The two acid blocks keep their acid treatment. Dividers are the
   monolith seam: 1px neon + 1px black, as machined in Concept 03. */
.mh-ctl{
  position:relative; z-index:2;
  display:flex; align-items:center; justify-content:center; gap:9px;
  height:44px; padding:0 20px;
  font-family:inherit; font-size:12.5px; letter-spacing:.18em;
  text-transform:uppercase; white-space:nowrap;
  color:#d5d9d5; text-shadow:0 1px 0 #000, 0 -1px 1px rgba(255,255,255,.06);
  background:transparent; border:0; border-right:1px solid rgba(57,255,20,.35);
  box-shadow:1px 0 0 rgba(0,0,0,.85);
  text-decoration:none; cursor:pointer;
  -webkit-appearance:none; appearance:none;
}
.mh-ctl.s1{ padding-left:32px; }   /* clear the bar's angled leading cut */
.mh-ctl.s6{ border-right:none; box-shadow:none; padding-right:36px; } /* trailing cut */
.mh-ctl.acid{
  background:linear-gradient(180deg,#c6ff26,#a8ee00);
  color:#0a0d00; font-weight:800; font-style:italic; letter-spacing:.1em;
  text-shadow:none; padding:0 24px;
}
.mh-ctl:focus-visible{ outline:2px solid #39FF14; outline-offset:2px; }

/* MENU control: word + bars, bars in their own column (locked grammar) */
.mhx-bars{ display:inline-flex; flex-direction:column; gap:5px; flex:none; }
.mhx-bars i{ display:block; width:17px; height:2px; background:#39FF14; }
.mhx.mhx-open #mhx-menu{ filter:brightness(1.45); color:#fff; }

/* hover/focus: the brand heartbeat (1.2s) + neon underline sweep */
@keyframes mhBeat{0%,100%{filter:brightness(1)}14%{filter:brightness(1.55)}28%{filter:brightness(1.1)}42%{filter:brightness(1.4)}60%{filter:brightness(1)}}
.mh-ctl:hover, .mh-ctl:focus-visible{ animation:mhBeat 1.2s ease-in-out infinite; color:#fff; }
.mh-ctl.acid:hover, .mh-ctl.acid:focus-visible{ color:#0a0d00; }
.mh-ctl:not(.acid)::after{
  content:""; position:absolute; left:10px; right:10px; bottom:5px; height:2px;
  background:#39FF14; box-shadow:0 0 8px rgba(57,255,20,.8);
  transform:scaleX(0); transform-origin:left center; transition:transform .28s ease;
}
.mh-ctl:not(.acid):hover::after, .mh-ctl:not(.acid):focus-visible::after{ transform:scaleX(1); }

/* ---------- HOLOGRAM PROJECTION — light-tray + source dash (Concept 07) --- */
.mh-beam{
  position:absolute; left:5%; right:5%; top:100%; height:54px;
  background:linear-gradient(180deg, rgba(57,255,20,.20), rgba(57,255,20,0));
  clip-path:polygon(6% 0, 94% 0, 100% 100%, 0 100%);
  filter:blur(3px); pointer-events:none; transition:opacity .3s ease;
}
.mhx.mhx-settled .mh-beam{ opacity:.55; }
.mh-source{
  position:absolute; left:50%; top:calc(100% + 50px); transform:translateX(-50%);
  width:120px; height:5px; border-radius:3px;
  background:rgba(57,255,20,.75);
  box-shadow:0 0 18px 4px rgba(57,255,20,.45);
  pointer-events:none;
}

/* ---------- MEGA PANEL — drops from the overlay ----------
   Box rules follow the locked panel geometry; content rules are
   the panel's own, verbatim (needed on pages that never carried
   the full header). Hover: heartbeat + underline sweep, locked. */
@keyframes mega-beat{0%,100%{transform:scale(1)}14%{transform:scale(1.045)}28%{transform:scale(1)}42%{transform:scale(1.03)}60%{transform:scale(1)}}
.mhx .mega-panel{
  position:absolute; top:var(--mhpaneltop);
  left:clamp(22px,3.2vw,58px); right:clamp(22px,3.2vw,58px);
  z-index:5; pointer-events:auto;
  background:rgba(5,10,6,.98); border:1px solid rgba(57,255,20,.35); border-radius:14px;
  padding:14px 20px; box-shadow:0 28px 70px rgba(0,0,0,.65);
}
.mhx .mega-panel[hidden]{ display:none !important; }
/* PANEL REV — OPTION 1 CLEAN (Mack, 2026-11-19): ghost numerals OFF;
   quick links are squared dark-glass chips that LIGHT UP when picked. */
.mega-quick{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.mega-quick a{color:#39FF14;background:rgba(57,255,20,.06);border:1px solid rgba(57,255,20,.45);font-weight:700;padding:7px 13px;border-radius:4px;text-decoration:none;font-size:12px;text-transform:uppercase;letter-spacing:.08em;transition:background .18s ease,box-shadow .18s ease,color .18s ease}
.mega-quick a:hover,.mega-quick a:focus-visible{background:#39FF14;color:#0a0f0a;box-shadow:0 0 18px rgba(57,255,20,.55),0 0 44px rgba(57,255,20,.28);animation:mega-beat 1.2s ease-in-out}
.mega-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
@media(max-width:900px){.mega-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.mega-grid{grid-template-columns:1fr}}
.mega-col{position:relative}
.mega-col h4{color:#39FF14;margin:0 0 6px;font-size:15px;letter-spacing:.14em;text-transform:uppercase}
.mega-col::before{display:none}
.mega-col a,.mega-col button{display:flex;gap:8px;align-items:baseline;color:#eef2ee;text-decoration:none;background:none;border:0;padding:3.5px 0;font-size:13px;text-align:left;cursor:pointer;width:100%;text-transform:uppercase;letter-spacing:.06em;position:relative;font-family:inherit}
.mega-col a span,.mega-col button span{color:#39FF14;font-size:11px;font-weight:700}
.mega-col a::after,.mega-col button::after{content:"";position:absolute;left:0;bottom:2px;height:2px;width:100%;background:#39FF14;box-shadow:0 0 8px rgba(57,255,20,.8);transform:scaleX(0);transform-origin:left center;transition:transform .28s ease}
.mega-col a:hover::after,.mega-col button:hover::after,.mega-col a:focus-visible::after,.mega-col button:focus-visible::after{transform:scaleX(1)}
.mega-col a:hover,.mega-col button:hover,.mega-col a:focus-visible,.mega-col button:focus-visible{animation:mega-beat 1.2s ease-in-out;color:#ffffff;background:linear-gradient(90deg,rgba(57,255,20,.12),rgba(57,255,20,0) 72%);box-shadow:-14px 0 22px -12px rgba(57,255,20,.45)}

/* ---------- STORE ONLY: cart chip rides the overlay ---------- */
.mhx .fxh-cart{
  position:absolute; top:var(--mhpaneltop); right:var(--mhgutter);
  transform:translateY(-100%); padding-bottom:10px; pointer-events:auto;
}
.mhx .fxh-cart .cart-btn{ pointer-events:auto; }

/* ---------- RESPONSIVE — controls COMPACT below 1420px, never hidden --- */
@media (max-width:1420px){
  .mh-ctl{ padding:0 13px; font-size:11.5px; letter-spacing:.12em; }
  .mh-ctl.acid{ padding:0 16px; }
  .mh-ctl.s1{ padding-left:25px; }
  .mh-ctl.s6{ padding-right:27px; }
}
@media (max-width:1135px){
  .mh-ctl{ padding:0 10px; font-size:10.5px; letter-spacing:.09em; }
  .mh-ctl.acid{ padding:0 12px; }
  .mh-ctl.s1{ padding-left:21px; }
  .mh-ctl.s6{ padding-right:23px; }
}
@media (max-width:999px){
  .mh-ctl{ padding:0 8px; font-size:10px; letter-spacing:.06em; }
  .mh-ctl.acid{ padding:0 10px; }
}
/* tablet: bar drops to its own row under the lockup; the companion's
   corner post nudges below the projection tray */
@media (max-width:859px){
  .mhx{ --mhpaneltop:250px; --mhgutter:8px; }
  .mhx-barwrap{ top:128px; left:12px; right:8px; }
  .mh-ctl{ flex:1; padding:0 4px; font-size:9.5px; letter-spacing:.05em; }
  .mh-ctl.acid{ padding:0 6px; }
  .mh-ctl.s1{ padding-left:13px; }
  .mh-ctl.s6{ padding-right:15px; }
  #vbot.mode-parked{ top:254px !important; }
}
/* phones: lockup 128, bar on its own row, companion nudged below */
@media (max-width:640px){
  .mhx{ --mhpaneltop:234px; }
  .mhx-barwrap{ top:106px; }
  .mh-ctl{ font-size:9px; letter-spacing:.03em; gap:5px; min-width:0; white-space:normal; text-align:center; line-height:1.25; }
  .mhx-bars i{ width:13px; }
  #vbot.mode-parked{ top:238px !important; }
}
/* short windows: leaner tray so the overlay stays clean at small heights */
@media (max-height:620px) and (min-width:860px){
  .mhx{ --mhpaneltop:158px; }
  .mh-beam{ height:40px; }
  .mh-source{ top:calc(100% + 38px); }
}

@media (prefers-reduced-motion: reduce){
  .mh-bar::after{ animation:none; }
  .mh-ctl:hover, .mh-ctl:focus-visible{ animation:none; }
  .mega-col a:hover, .mega-col button:hover,
  .mega-col a:focus-visible, .mega-col button:focus-visible{ animation:none; }
}
