.hero-metal-human {
  position: absolute;
  z-index: 3;
  inset: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
}

.hero {
  --hero-metal-background: #000000;
  height: 100svh;
  min-height: 760px;
  max-height: none;
  border: 0;
  background: var(--hero-metal-background);
}

.hero-metal-human::before {
  position: absolute;
  z-index: 0;
  right: clamp(-120px, -6vw, -40px);
  bottom: clamp(70px, 7vw, 120px);
  width: min(760px, 58vw);
  height: min(620px, 48vw);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.16) 42%, rgba(255, 255, 255, 0.04) 70%, rgba(255, 255, 255, 0) 100%);
  content: "";
  pointer-events: none;
}

.hero h1 {
  color: #fff;
}

.hero h1 span {
  color: rgba(255, 255, 255, 0.58);
}

.hero .hero-network,
.hero .hero-copy > p:not(.hero-network) {
  color: #fff;
}

.site-nav:not(.is-scrolled):not(.has-layer) .brand-mark {
  filter: none !important;
}

.site-nav:not(.is-scrolled):not(.has-layer) .brand-symbol span,
.site-nav:not(.is-scrolled):not(.has-layer) .nav-primary a,
.site-nav:not(.is-scrolled):not(.has-layer) .nav-quiet,
.site-nav:not(.is-scrolled):not(.has-layer) .nav-menu-button {
  color: #fff !important;
}

.metal-human__video,
.metal-human__canvas,
.metal-human__layers {
  position: absolute;
}

.metal-human__video {
  z-index: 1;
  left: var(--media-x, 0);
  top: var(--media-y, 0);
  width: var(--media-width, 100%);
  height: var(--media-height, 100%);
  object-fit: fill;
  background: transparent;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 220ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity;
}

.metal-human__canvas {
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: transparent !important;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.hero::after {
  display: none !important;
  content: none !important;
}

.metal-human__trigger {
  position: absolute;
  z-index: 6;
  left: var(--trigger-x, 45%);
  top: var(--trigger-y, 64%);
  width: 108px;
  aspect-ratio: 1.5;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateY(14px) scale(0.76) rotate(-2deg);
  transform-origin: 50% 70%;
  transition: opacity 420ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

.metal-human.is-ready:not(.is-open) .metal-human__trigger {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateY(0) scale(1) rotate(-2deg);
  animation: bridgeTriggerFloat 2800ms ease-in-out infinite;
}

.metal-human__trigger img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  filter: contrast(1.3) brightness(0.94) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.48)) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.28));
  transition: filter 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.metal-human__trigger::after {
  position: absolute;
  inset: -12px;
  border: 1px solid transparent;
  border-radius: 50%;
  content: "";
}

.metal-human__trigger:focus-visible { outline: 0; }
.metal-human__trigger:focus-visible::after { border-color: rgba(255, 255, 255, 0.58); }

@media (hover: hover) and (pointer: fine) {
  .metal-human__trigger:hover img {
    filter: contrast(1.4) brightness(0.98) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.52)) drop-shadow(0 12px 19px rgba(0, 0, 0, 0.34));
    transform: translateY(-2px) scale(1.025);
  }
}

.metal-human__layers {
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.metal-human__node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  display: flex;
  align-items: center;
  min-height: 32px;
  max-width: 190px;
  padding: 6px 10px 6px 24px;
  border: 0;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: none;
  font: 500 13px/1.25 var(--font-dm-sans, var(--font-sans, sans-serif));
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -40%) scale(0.97);
  transition: color 180ms ease, background-color 180ms ease, opacity 240ms cubic-bezier(0.23, 1, 0.32, 1), transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
}

.metal-human__node::before {
  position: absolute;
  left: 9px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: #000;
  box-shadow: none;
  content: "";
  transform: translateY(-50%);
}

.metal-human.is-open .metal-human__node {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.metal-human.is-open .metal-human__node:nth-child(1) { transition-delay: 0ms; }
.metal-human.is-open .metal-human__node:nth-child(2) { transition-delay: 35ms; }
.metal-human.is-open .metal-human__node:nth-child(3) { transition-delay: 70ms; }
.metal-human.is-open .metal-human__node:nth-child(4) { transition-delay: 105ms; }
.metal-human.is-open .metal-human__node:nth-child(5) { transition-delay: 140ms; }
.metal-human.is-open .metal-human__node:nth-child(6) { transition-delay: 175ms; }

.metal-human__node:hover,
.metal-human__node:focus-visible,
.metal-human__node[aria-pressed="true"] {
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
}

.metal-human__node:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.58); outline-offset: 3px; }
.metal-human__node[aria-pressed="true"]::before { border-color: #fff; background: #fff; }

.hero-copy {
  transition: opacity 380ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.system-open .hero-copy {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.site-nav.system-active {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(0, 0, 0, 0.86) !important;
  -webkit-backdrop-filter: blur(18px) saturate(110%) !important;
  backdrop-filter: blur(18px) saturate(110%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 8px 28px rgba(0, 0, 0, 0.08) !important;
}

.site-nav.system-active .brand-mark { filter: none !important; }
.site-nav.system-active .brand-symbol span,
.site-nav.system-active .nav-primary a,
.site-nav.system-active .nav-quiet { color: #fff !important; }
.site-nav.system-active .nav-action { color: #1a1a1a !important; background: rgba(255, 255, 255, 0.95) !important; }

@keyframes bridgeTriggerFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) scale(1) rotate(-2deg); }
  50% { transform: translate(-50%, -50%) translateY(-2px) scale(1.008) rotate(-1deg); }
}

@media (max-width: 1040px) {
  .metal-human__trigger { width: 100px; }
  .metal-human__node { font-size: 12px; }
}

@media (max-width: 900px) {
  .hero-metal-human { top: 340px; bottom: 0; height: auto; }
  .metal-human__trigger { width: 94px; }
  .metal-human__layers {
    top: 56%;
    right: 16px;
    bottom: auto;
    left: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metal-human__node,
  .metal-human.is-open .metal-human__node {
    position: relative;
    left: auto;
    top: auto;
    min-height: 36px;
    max-width: none;
    white-space: normal;
    transform: translateY(8px) scale(0.98);
  }
  .metal-human.is-open .metal-human__node { transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .hero-metal-human { top: 390px; bottom: 0; height: auto; }
  .metal-human__trigger { width: 84px; }
  .metal-human__layers { top: 53%; right: 4px; left: 4px; gap: 8px; }
  .metal-human__node { min-height: 41px; padding: 8px 9px 8px 26px; font-size: 11px; }
  .metal-human__node::before { left: 10px; width: 7px; height: 7px; }
}

@media (max-width: 760px) {
  .hero-stage {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
  }

  .hero-copy {
    right: 20px !important;
    left: 20px !important;
    width: auto !important;
  }

  .hero-metal-human {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(370px, 42svh);
  }

  .hero-metal-human::before {
    right: -18%;
    bottom: -12%;
    width: 80%;
    height: 62%;
  }

  .metal-human__video {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: 64% 50%;
  }
}

@media (max-width: 360px) {
  .hero-metal-human {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .metal-human__trigger,
  .metal-human__node,
  .metal-human__video { animation: none !important; transition-duration: 1ms !important; }
}
