/* Portfolio navigation is namespaced to preserve each project's own UI. */
body { padding-bottom: 96px; }
.pf-dock, .pf-dock * { box-sizing: border-box; }
.pf-dock {
  position: fixed; z-index: 10000; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100vw - 24px); padding: 8px;
  background: rgba(28,29,33,.9); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px; box-shadow: 0 12px 40px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,"PingFang SC",sans-serif;
  line-height: 1.2; text-align: left; isolation: isolate;
}
.pf-dock a { color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.pf-dock a:hover { background: rgba(255,255,255,.16); }
.pf-dock a:active { transform: scale(.94); }
.pf-dock a:focus-visible { outline: 2px solid #9ccaff; outline-offset: 3px; }
.pf-home { display: flex; align-items: center; gap: 7px; padding: 0 12px 0 8px; height: 44px; border-radius: 30px; font-size: 12px; white-space: nowrap; }
.pf-home img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }
.pf-divider { height: 25px; width: 1px; background: rgba(255,255,255,.18); flex-shrink: 0; }
.pf-position { padding: 0 13px; min-width: 156px; }
.pf-position small { display: block; font-size: 8px; letter-spacing: .16em; color: #afb2bb; margin-bottom: 5px; }
.pf-position strong { display: block; font-size: 12px; font-weight: 500; letter-spacing: .025em; white-space: nowrap; }
.pf-arrow { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.09); font-size: 20px; font-weight: 400; }
.pf-disabled { color: rgba(255,255,255,.24); background: transparent; }
/* Keep the original demo controls clear of the portfolio dock. */
.perspective-overlay { bottom: 92px; }
#demoMask { padding-bottom: 92px; }
#demoMask .modal-shell { max-height: calc(100dvh - 124px); }
#demoMask .modal-body { padding-bottom: 92px; }
#demoMask .modal-header { gap: 12px; flex-wrap: wrap; }
#demoMask .role-switch { min-width: 0; }
#demoMask .role-btn { padding-left: 10px; padding-right: 10px; }
@media (max-width: 600px) {
  .pf-dock { bottom: max(12px, env(safe-area-inset-bottom)); gap: 3px; padding: 6px; }
  .pf-home { padding: 0 8px; gap: 5px; }
  .pf-home img { width: 23px; height: 23px; }
  .pf-position { min-width: 0; padding: 0 8px; }
  .pf-position strong { font-size: 11px; }
  .pf-position small { font-size: 7px; letter-spacing: .12em; }
  .pf-arrow { width: 40px; height: 44px; }
  .perspective-overlay { bottom: 84px; }
  #demoMask .modal-body { padding-bottom: 84px; }
  #demoMask .modal-shell { width: calc(100vw - 16px); max-height: calc(100dvh - 96px); }
  #demoMask .modal-header { padding: 14px 16px; align-items: flex-start; }
  #demoMask .role-btn { font-size: 12px; }
  #overview h1.headline { font-size: clamp(29px, 9vw, 44px); line-height: 1.16; }
  .nav-blur > .container-lg { padding-inline: 16px; }
  .nav-blur > .container-lg > div:last-child { display: none; }
  .headline--hero em { display: inline-block; white-space: nowrap; }
  .nav__brand { white-space: nowrap; font-size: 12px; }
  .nav__links { gap: 16px; }
  .nav__links a { white-space: nowrap; font-size: 11px; }
  .nav__links a:nth-child(2), .nav__links a:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pf-dock a { transition: none; } }
