/* Homepage 3D ecosystem. Everything immersive is scoped to html.eco-on so the standard hero is untouched. */
.hero-links { margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; }
.hero-links a { font-weight: 700; }
.eco-enter { display: none; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: 12px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: inherit; font-weight: 800; cursor: pointer; }
.eco-enter:hover { background: var(--navy); color: #fff; }
html.eco-capable.eco-off .eco-enter { display: inline-flex; }

.eco-on .hero {
  position: relative; overflow: hidden; display: flex; align-items: center; padding: 0;
  min-height: clamp(640px, 90vh, 860px);
  background: radial-gradient(120% 90% at 70% 40%, #12407a 0%, #0B2D5B 38%, #04122b 100%);
  color: #E6EEF8;
}
.eco-on .hero-grid { position: relative; z-index: 2; grid-template-columns: minmax(0, 540px); padding-block: 3.5rem; pointer-events: none; }
.eco-on .hero h1 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); margin-bottom: 1rem; }
.eco-on .hero-grid a, .eco-on .hero-grid button { pointer-events: auto; }
.eco-on .hero-art { display: none; }
.eco-on .hero h1 { color: #fff; }
.eco-on .hero .lead { color: #D3E2F3; }
.eco-on .hero .eyebrow { color: var(--gold); }
.eco-on .hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.eco-on .hero .btn-secondary:hover { background: #fff; color: var(--navy); }
.eco-on .hero-links a { color: var(--sky); }
.eco-on .hero-links a:hover { color: #fff; }
.eco-on .hero a:focus-visible, .eco-on .hero button:focus-visible { outline-color: var(--gold-2); }
.eco-on .eco-enter { display: none; }

.eco-stage { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.eco-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.eco-stage.is-grabbing .eco-canvas { cursor: grabbing; }
.eco-canvas:focus-visible { outline: 3px solid var(--sky); outline-offset: -6px; }
.eco-nodes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.eco-node {
  position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap; will-change: transform;
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border-radius: 999px;
  border: 1px solid rgba(126, 214, 230, .6); background: rgba(4, 18, 43, .92); color: #fff;
  font: inherit; font-size: .82rem; font-weight: 700; line-height: 1; cursor: pointer; backdrop-filter: blur(6px);
}
.eco-node::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--gold)); box-shadow: 0 0 10px var(--dot, var(--gold)); }
.eco-node.is-hover, .eco-node.is-selected, .eco-node:hover { border-color: var(--gold-2); background: rgba(4, 18, 43, .96); }
.eco-node:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.eco-center { color: #FFE9A8; border-color: rgba(244, 178, 35, .75); }
.eco-center::before { display: none; }
.eco-stage.has-selection .eco-node:not(.is-selected):not(.eco-center) { opacity: .7 !important; }

.eco-hint {
  position: absolute; z-index: 2; right: 1rem; bottom: 4.4rem; margin: 0; width: max-content; max-width: 60%;
  padding: .45rem .9rem; border-radius: 999px; background: rgba(4, 18, 43, .72); color: #D3E2F3; font-size: .82rem; text-align: center;
  pointer-events: none; transition: opacity .6s;
}
.eco-stage.has-interacted .eco-hint, .eco-stage.has-selection .eco-hint { opacity: 0; }
.eco-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eco-controls { position: absolute; z-index: 3; right: 1rem; bottom: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.eco-btn {
  min-height: 40px; padding: 0 .95rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(4, 18, 43, .82); color: #fff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px);
}
.eco-btn:hover { border-color: var(--gold-2); }
.eco-btn:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.eco-zoom { width: 40px; padding: 0; font-size: 1.25rem; line-height: 1; }

.eco-panel {
  position: absolute; z-index: 3; right: 1.25rem; top: 50%; transform: translateY(-50%); width: min(380px, 32vw); max-height: calc(100% - 7rem); overflow: auto;
  padding: 1.25rem 1.25rem 1.1rem; border-radius: 14px; border: 1px solid rgba(126, 214, 230, .4); border-left: 4px solid var(--gold);
  background: rgba(4, 18, 43, .94); color: #D3E2F3; backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: .35rem;
}
.eco-panel[hidden] { display: none; }
.eco-panel-tag { margin: 0; color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eco-panel-title { margin: 0; color: #fff; font-size: 1.55rem; }
.eco-panel-title:focus { outline: none; }
.eco-panel-title:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
.eco-panel-head { margin: .25rem 0 0; color: #fff; font-weight: 700; }
.eco-panel-body { margin: 0 0 .6rem; }
.eco-panel-actions { display: flex; flex-direction: column; gap: .5rem; }
.eco-panel .btn { width: 100%; }
.eco-panel-back { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); cursor: pointer; font: inherit; font-weight: 800; }
.eco-panel-back:hover { background: #fff; color: var(--navy); }

@media (min-width: 860px) {
  .eco-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(4, 18, 43, .94) 0%, rgba(4, 18, 43, .8) 34%, rgba(4, 18, 43, 0) 62%); }
}
@media (max-width: 859px) {
  .eco-on .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .eco-on .hero-grid, .eco-on .hero-copy { display: contents; pointer-events: auto; }
  .eco-on .hero-copy > * { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
  .eco-on .hero .eyebrow { order: 1; margin-top: 1.75rem; margin-bottom: .5rem; }
  .eco-on .hero h1 { order: 2; font-size: clamp(1.8rem, 7.4vw, 2.4rem); margin-bottom: .75rem; }
  .eco-stage { order: 3; position: relative; inset: auto; width: 100%; height: min(70vh, 620px); min-height: 460px; }
  .eco-on .hero .lead { order: 4; margin-top: 1rem; }
  .eco-on .hero .actions { order: 5; margin-top: 1.25rem; }
  .eco-on .hero-links { order: 6; margin-top: 1rem; margin-bottom: 2.5rem; }
  .eco-controls { left: .5rem; right: .5rem; bottom: .6rem; justify-content: center; gap: .4rem; }
  .eco-btn { min-height: 38px; padding: 0 .75rem; font-size: .78rem; }
  .eco-zoom { width: 38px; }
  .eco-node { font-size: .72rem; padding: .4rem .6rem; gap: .35rem; min-height: 30px; }
  .eco-node::before { width: 8px; height: 8px; }
  .eco-hint { right: auto; left: 50%; transform: translateX(-50%); bottom: auto; top: .6rem; max-width: 92%; font-size: .72rem; padding: .35rem .8rem; }
  .eco-panel { left: .6rem; right: .6rem; top: auto; bottom: .6rem; transform: none; width: auto; max-height: 56%; padding: .85rem .95rem; gap: .2rem; }
  .eco-panel-title { font-size: 1.2rem; }
  .eco-panel-head { font-size: .88rem; margin-top: .1rem; }
  .eco-panel-body { font-size: .84rem; margin-bottom: .4rem; }
  .eco-panel-tag { font-size: .68rem; }
  .eco-panel-actions { flex-direction: row; }
  .eco-panel-actions .btn { flex: 1 1 0; min-height: 44px; padding: .5rem .6rem; font-size: .85rem; text-align: center; }
  .eco-stage.has-selection .eco-controls { display: none; }
}
@media (pointer: coarse) {
  .eco-node { min-height: 32px; }
  .eco-btn { min-height: 40px; }
  .eco-zoom { width: 40px; }
}
