/* Exohood Labs / Nexus Impact V4.6
   Mobile-only reflow of the ORIGINAL interactive Nexus.
   This is a layout correction, not a second widget or a change to the desktop scene. */
@media (max-width: 960px) {
  html.exohood-impact .hero .hero-inner,
  html.exohood-impact .hero .hero-copy { min-width: 0; }

  /* Keep the heading, interactive field and paragraph in independent blocks. */
  html.exohood-impact .hero .hero-copy > .hero-side {
    display: block !important;
    position: relative !important;
    isolation: isolate;
    width: min(100%, 560px) !important;
    max-width: 560px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 24px auto 26px !important;
    padding: 0 !important;
    overflow: visible;
    transform: none !important;
  }
  html.exohood-impact .hero .hero-copy > .hero-side > .impact-hero-halo {
    position: absolute;
    z-index: 0;
    width: 310px !important;
    max-width: 85% !important;
    top: 165px !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    opacity: .33 !important;
    pointer-events: none;
  }

  html.exohood-impact .hero .hero-copy > .hero-side > .nexus {
    /* Explicit grid areas stop old absolute desktop coordinates from escaping. */
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      'top top'
      'core core'
      'ai security'
      'defi rwa'
      'worlds worlds'
      'live live'
      'bottom bottom' !important;
    grid-template-rows: auto 177px auto auto auto auto auto !important;
    align-content: start !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    column-gap: 10px !important;
    row-gap: 10px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 18px 15px 15px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(137, 185, 247, .33) !important;
    border-radius: 23px !important;
    background:
      radial-gradient(ellipse 63% 40% at 50% 30%, rgba(50,112,195,.3), transparent 90%),
      linear-gradient(147deg, rgba(16,43,76,.98), rgba(7,21,39,.98)) !important;
    box-shadow: 0 20px 60px rgba(0,6,20,.25), inset 0 1px rgba(228,243,255,.07);
  }

  /* Desktop-only orbital paths and floating coordinates are deliberately
     suppressed in the compact layout; the active central core still animates. */
  html.exohood-impact .hero .hero-copy .nexus :is(.nexus-grid,.nexus-connections,.nexus-orbit,.nexus-sector,.nexus-scan) {
    display: none !important;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-top {
    grid-area: top;
    position: relative !important;
    inset: auto !important;
    z-index: 3;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px;
    width: 100% !important;
    height: auto !important;
    min-height: 25px;
    margin: 0 !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid rgba(154,192,243,.14);
    transform: none !important;
    color: #a7c9ed !important;
    font-size: 9px !important;
    font-weight: 750 !important;
    letter-spacing: .09em !important;
    line-height: 1.35 !important;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-top span { position: static !important; min-width: 0; }
  html.exohood-impact .hero .hero-copy .nexus .nexus-top span:last-child { text-align: right; }

  html.exohood-impact .hero .hero-copy .nexus .nexus-core {
    grid-area: core;
    position: relative !important;
    inset: auto !important;
    z-index: 2;
    display: grid !important;
    place-items: center !important;
    justify-self: center !important;
    align-self: center !important;
    box-sizing: border-box;
    width: 146px !important;
    height: 146px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid rgba(160,208,255,.45);
    border-radius: 28px;
    background: radial-gradient(circle at 40% 25%,rgba(79,142,229,.21),rgba(11,26,49,.9) 73%);
    box-shadow: 0 0 0 14px rgba(99,166,245,.06), 0 0 0 28px rgba(99,166,245,.038), 0 14px 40px rgba(5,12,30,.38);
    transform: none !important;
    animation: exo-mobile-core-glow 4.5s ease-in-out infinite alternate;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-core .core-shell { display: none !important; }
  html.exohood-impact .hero .hero-copy .nexus .nexus-core .core-face {
    position: relative !important;
    inset: auto !important;
    z-index: 1;
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    transform: none !important;
    text-align: center;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-core .core-face small {
    display: block !important;
    font-size: 8px !important;
    line-height: 1.3 !important;
    letter-spacing: .12em !important;
    color: #a9ccec !important;
    text-align: center;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-core .core-face strong {
    display: block !important;
    max-width: 100% !important;
    font: 700 clamp(22px,5vw,28px)/1.1 'Space Grotesk', sans-serif !important;
    letter-spacing: -.05em !important;
    color: #f7fbff !important;
    text-align: center;
    overflow-wrap: anywhere;
  }

  html.exohood-impact .hero .hero-copy .nexus .nexus-node {
    position: relative !important;
    inset: auto !important;
    z-index: 2;
    display: grid !important;
    grid-template-columns: 10px minmax(0,1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 8px !important;
    row-gap: 3px !important;
    align-content: center !important;
    align-items: center !important;
    justify-content: start !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 68px !important;
    margin: 0 !important;
    padding: 12px 11px !important;
    transform: none !important;
    border: 1px solid rgba(137,180,239,.23) !important;
    border-radius: 13px !important;
    background: rgba(10,28,51,.89) !important;
    box-shadow: none !important;
    text-align: left !important;
    color: #f1f7ff !important;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease !important;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-node .pin {
    position: relative !important;
    inset: auto !important;
    grid-row: 1 / span 2;
    grid-column: 1;
    display: block !important;
    box-sizing: border-box;
    width: 9px !important;
    height: 9px !important;
    margin: 0 !important;
    border: 2px solid #95c5fd !important;
    border-radius: 50%;
    background: rgba(138,197,255,.18);
    transform: none !important;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-node b,
  html.exohood-impact .hero .hero-copy .nexus .nexus-node small {
    display: block !important;
    position: static !important;
    grid-column: 2;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: left !important;
    transform: none !important;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-node b {
    grid-row: 1;
    font-size: 10px !important;
    line-height: 1.3 !important;
    letter-spacing: .02em !important;
    color: #f5faff !important;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-node small {
    grid-row: 2;
    font-size: 9px !important;
    line-height: 1.3 !important;
    color: #a2bad7 !important;
    letter-spacing: .025em !important;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-node.active,
  html.exohood-impact .hero .hero-copy .nexus .nexus-node[aria-pressed='true'] {
    border-color: rgba(255,160,117,.7) !important;
    background: linear-gradient(130deg,rgba(44,66,101,.95),rgba(24,42,70,.95)) !important;
    box-shadow: inset 0 0 0 1px rgba(255,160,117,.1) !important;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-node[aria-pressed='true'] .pin { border-color: #ffb08e !important; background: #ffb08e !important; }
  html.exohood-impact .hero .hero-copy .nexus .node-ai { grid-area: ai; }
  html.exohood-impact .hero .hero-copy .nexus .node-security { grid-area: security; }
  html.exohood-impact .hero .hero-copy .nexus .node-defi { grid-area: defi; }
  html.exohood-impact .hero .hero-copy .nexus .node-rwa { grid-area: rwa; }
  html.exohood-impact .hero .hero-copy .nexus .node-worlds {
    grid-area: worlds;
    width: 100% !important;
    min-height: 57px !important;
  }

  html.exohood-impact .hero .hero-copy .nexus .nexus-live {
    grid-area: live;
    position: relative !important;
    inset: auto !important;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 48px !important;
    margin: 2px 0 0 !important;
    padding: 11px 13px !important;
    border: 1px solid rgba(120,173,240,.2) !important;
    border-radius: 12px !important;
    background: rgba(7,19,36,.76) !important;
    transform: none !important;
    text-align: left !important;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-live .signal-pulse {
    position: static !important;
    flex: 0 0 7px;
    width: 7px !important;
    height: 7px !important;
    margin: 0 !important;
    transform: none !important;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-live .nexus-live-text {
    display: block !important;
    min-width: 0;
    font-size: 11px !important;
    line-height: 1.45 !important;
    color: #cbdcf3 !important;
    overflow-wrap: break-word;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-bottom {
    grid-area: bottom;
    position: relative !important;
    inset: auto !important;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 10px 0 0 !important;
    border-top: 1px solid rgba(149,189,241,.17);
    transform: none !important;
    color: #94b2d2 !important;
    text-align: left !important;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-bottom span {
    position: static !important;
    font-size: 9px !important;
    line-height: 1.4 !important;
    letter-spacing: .06em !important;
  }
  html.exohood-impact .hero .hero-copy > .hero-lead {
    position: relative;
    z-index: 2;
    margin-top: 18px !important;
    clear: both;
  }
}
@media (max-width: 410px) {
  html.exohood-impact .hero .hero-copy > .hero-side { margin-top: 21px !important; margin-bottom: 23px !important; }
  html.exohood-impact .hero .hero-copy > .hero-side > .nexus {
    padding: 15px 11px 12px !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
    grid-template-rows: auto 165px auto auto auto auto auto !important;
  }
  html.exohood-impact .hero .hero-copy .nexus .nexus-node { padding: 11px 8px !important; min-height: 65px !important; column-gap: 6px !important; }
  html.exohood-impact .hero .hero-copy .nexus .nexus-node b { font-size: 9.3px !important; }
  html.exohood-impact .hero .hero-copy .nexus .nexus-node small { font-size: 8.6px !important; }
  html.exohood-impact .hero .hero-copy .nexus .nexus-core { width: 138px !important; height: 138px !important; }
  html.exohood-impact .hero .hero-copy .nexus .nexus-top,
  html.exohood-impact .hero .hero-copy .nexus .nexus-bottom span { font-size: 8px !important; }
}
@keyframes exo-mobile-core-glow {
  from { border-color: rgba(145,196,252,.34); box-shadow: 0 0 0 14px rgba(99,166,245,.05), 0 0 0 28px rgba(99,166,245,.025), 0 14px 40px rgba(5,12,30,.32); }
  to { border-color: rgba(255,174,138,.54); box-shadow: 0 0 0 14px rgba(99,166,245,.075), 0 0 0 28px rgba(99,166,245,.04), 0 14px 40px rgba(5,12,30,.42); }
}
@media (prefers-reduced-motion: reduce) {
  html.exohood-impact .hero .hero-copy .nexus .nexus-core { animation: none !important; }
  html.exohood-impact .hero .hero-copy .nexus .nexus-node { transition: none !important; }
}
/* Longer product names stay inside the compact active core. */
@media (max-width: 960px) {
  html.exohood-impact .hero .nexus[data-field='security'] .nexus-core .core-face strong,
  html.exohood-impact .hero .nexus[data-field='rwa'] .nexus-core .core-face strong {
    font-size: clamp(18px, 4.4vw, 21px) !important;
  }
}
