/* ═══════════════════════════════════════════════════════
   TRUST MANPOWER — visual effects (sandbox proposal)
   Everything here is switched on by a class on <html>:
   fx-gradient, fx-three, fx-glass, fx-metal.
   With none of them, the page looks exactly as it does today.
   ═══════════════════════════════════════════════════════ */

/* ── Hero layer: moving gradient + 3D objects, behind the text ── */
.fx-hero-layer {
  position: absolute; top: 0; left: 0; right: 0;
  height: min(100%, 880px);
  z-index: 0; pointer-events: none; overflow: hidden;
}
.fx-grad, .fx-3d { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.fx-grad.on { opacity: 0.9; }
.fx-3d.on { opacity: 1; }
.fx-grad {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 96%);
          mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 96%);
}
/* the moving gradient replaces the old static glow (which also made phones scroll sideways) */
html.fx-gradient #hero::before { display: none; }
html.fx-gradient #hero { background: var(--white); }
#hero { overflow-x: clip; }
html.fx-three #hero .hero-photo-wrap { z-index: 2; }

/* ── Glass menu bar: a floating pill ── */
html.fx-glass body > nav {
  top: 12px; left: 50%; right: auto;
  width: min(1180px, calc(100vw - 24px));
  height: 60px; padding: 0 12px 0 20px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 12px 40px rgba(13,43,78,0.13), 0 2px 8px rgba(13,43,78,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}
html.fx-glass body > nav.scrolled {
  box-shadow: 0 16px 48px rgba(13,43,78,0.18), 0 2px 8px rgba(13,43,78,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
html.fx-glass body > nav.nav-hidden { transform: translate(-50%, -210%); }
html.fx-glass .nav-logo img { height: 38px; }
html.fx-glass .nav-links { gap: 28px; }
html.fx-glass .mobile-menu {
  top: 82px; left: 12px; right: 12px;
  border-radius: 24px; border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 24px 60px rgba(13,43,78,0.2);
}
html.fx-glass .mobile-menu a:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  html.fx-glass body > nav { height: 56px; padding: 0 8px 0 16px; }
  html.fx-glass .nav-logo img { height: 34px; }
  html.fx-glass .mobile-menu { top: 76px; }
}

/* glass labels over the hero photos */
html.fx-glass .float-chip {
  background: rgba(255,255,255,0.66);
  -webkit-backdrop-filter: saturate(170%) blur(16px); backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 16px 48px rgba(13,43,78,0.22), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Chromium browsers: the liquid-glass layer does the bending and blurring itself */
.fx-glass-nav { display: contents; }
.fx-glass-pane .glass, .fx-glass-nav .glass { box-shadow: none !important; }
.fx-glass-pane > span, .fx-glass-nav > span { box-shadow: 0 0 0 0.5px rgba(255,255,255,0.6) inset, 0 1px 3px rgba(255,255,255,0.35) inset !important; }
.fx-glass-pane { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; }
.fx-glass-live > *:not(.fx-glass-pane) { position: relative; z-index: 1; }
html.fx-glass body > nav.fx-glass-live,
html.fx-glass .float-chip.fx-glass-live {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: rgba(255,255,255,0.5);
}
html.fx-glass .float-chip.fx-glass-live { background: rgba(255,255,255,0.72); }

/* ── Liquid-metal logo above the last section's heading ── */
.fx-metal-logo {
  width: 190px; height: 190px; margin: -50px auto 6px;
  opacity: 0; transform: scale(0.9); transition: opacity 1.2s ease, transform 1.2s var(--ease);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35));
}
.fx-metal-logo.on { opacity: 1; transform: none; }
.fx-metal-logo canvas { display: block; }
@media (max-width: 700px) { .fx-metal-logo { width: 150px; height: 150px; margin-top: -56px; } }

/* ── Sandbox-only switchboard ── */
.fx-panel {
  position: fixed; left: 16px; bottom: 16px; z-index: 900; width: 268px;
  font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #1d1d1f; background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid #e8e8ed; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(13,43,78,0.25); overflow: hidden;
}
.fx-panel-tab {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 12px 16px; border: 0; background: #0d2b4e; color: #fff;
  font: 700 12px/1 inherit; letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer;
}
.fx-panel-tab::after { content: '–'; font-size: 16px; }
.fx-panel.shut { width: auto; }
.fx-panel.shut .fx-panel-tab::after { content: '+'; margin-left: 12px; }
.fx-panel.shut .fx-panel-body { display: none; }
.fx-panel-body { padding: 8px 16px 14px; }
.fx-panel label { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid #f0f0f3; cursor: pointer; }
.fx-panel input { width: 18px; height: 18px; margin-top: 1px; accent-color: #2563b0; flex: none; }
.fx-panel b { display: block; font-weight: 700; }
.fx-panel i { display: block; font-style: normal; font-size: 12px; color: #6e6e73; }
.fx-panel-row { display: flex; gap: 8px; margin-top: 12px; }
.fx-panel-row button {
  flex: 1; padding: 9px 8px; border-radius: 100px; border: 1px solid #d2d2d7;
  background: #fff; font: 600 12px/1 inherit; color: #1d1d1f; cursor: pointer;
}
.fx-panel-row button:hover { border-color: #2563b0; color: #2563b0; }
.fx-panel p { margin-top: 10px; font-size: 11px; color: #86868b; }

/* the glass layers never take clicks */
.fx-glass-nav *, .fx-glass-pane * { pointer-events: none !important; }
.fx-glass-nav .glass, .fx-glass-pane .glass { display: flex !important; }
