/* A quiet black field: interface marks are subordinate to the revealed network. */
.network-experience {
  min-width: 0;
  container-type: inline-size;
  --network-ink: #d4e5e7;
}
.network-experience .network-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}
.network-experience .network-intro .kicker {
  font: 0.5625rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  color: #adc8c8;
  margin: 0;
}
.network-experience .network-intro p:last-child {
  font: 0.5625rem/1.4 var(--mono);
  color: #7c979b;
  white-space: nowrap;
  margin: 0;
}
.network-experience .network-scenario {
  font-size: clamp(1.125rem, 1.8vw, 1.4375rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.35;
  color: #dce6e5;
  margin: 0 0 17px;
  text-wrap: balance;
}
.network-experience .demo-phases {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 25px;
}
.network-experience .demo-phases li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #75898c;
  font-size: 0.625rem;
}
.network-experience .demo-phases li span {
  font: 0.5rem/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
}
.network-experience .demo-phases li[data-current="true"] {
  color: #bfe8dc;
}
.network-experience .demo-phases li[data-done="true"] span {
  color: #91bdad;
}
.network-experience .map {
  height: 400px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  margin-block: 3px 10px;
}
.network-experience .network-nodes {
  position: absolute;
  inset: 0;
}
.network-experience .node-target {
  --reveal: 0;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  touch-action: pan-y;
  font-family: var(--sans);
  color: #d3e4e7;
  line-height: normal;
  cursor: default;
  opacity: calc(0.1 + var(--reveal) * 0.9);
}
.network-experience .node-target span {
  position: absolute;
  top: 39px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.5625rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  padding: 2px 3px;
  background: #000;
}
.network-experience .node-target::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid transparent;
  border-radius: 50%;
}
.network-experience .node-target[data-available="true"] {
  cursor: pointer;
  opacity: calc(0.7 + var(--reveal) * 0.3);
}
.network-experience .node-target[data-available="true"]::before {
  border-color: #86abb84d;
}
.network-experience .node-target[data-current="true"] {
  opacity: 1;
  color: #c3ecdd;
}
.network-experience .node-target[data-current="true"]::before {
  border-color: #bad9d675;
  border-style: dashed;
}
.network-experience .node-target[data-control="true"] {
  opacity: 0.92;
  color: #b9ead4;
}
.network-experience .node-target[data-control="true"]::before {
  border-color: #9ed8ba;
  border-radius: 3px;
  border-style: dashed;
}
.network-experience .node-target[data-alert="true"] {
  color: #f1bd89;
  opacity: 0.9;
}
.network-experience .node-target:focus-visible {
  opacity: 1;
  outline: 2px solid #bcebd7;
  outline-offset: 3px;
}
.network-experience .node-target:focus-visible span {
  color: #fff;
}
.network-experience .game-feedback {
  border-top: 1px solid #243234;
  padding-top: 16px;
}
.network-experience .feedback-label {
  font: 0.5625rem/1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: #afd3cf;
  margin: 0 0 6px;
}
.network-experience #game-status {
  margin: 0;
  color: #c5d3d4;
  font-size: 0.75rem;
  line-height: 1.55;
  min-height: 38px;
  max-width: 610px;
  text-wrap: pretty;
}
.network-experience[data-result="open"] .feedback-label,
.network-experience[data-result="alarm"] .feedback-label,
.network-experience[data-result="exposed"] .feedback-label,
.network-experience[data-result="budget"] .feedback-label {
  color: #f3ad90;
}
.network-experience[data-result="contained"] .feedback-label {
  color: #b1e9cb;
}
.network-experience .network-evidence {
  margin-top: 8px;
}
.network-experience .network-evidence summary {
  font: 0.625rem/1.4 var(--mono);
  color: #8fa8ac;
  cursor: pointer;
  min-height: 30px;
  padding-block: 6px;
}
.network-experience .network-evidence summary:focus-visible {
  outline: 2px solid #bcebd7;
  outline-offset: 2px;
}
.network-experience #network-evidence {
  font-size: 0.6875rem;
  line-height: 1.6;
  color: #b2c3c5;
  margin: 3px 0 12px;
}
.network-experience .demo-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.network-experience .demo-controls button,
.network-experience #motion {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #2b4043;
  border-radius: 3px;
  color: #c4d8d8;
  background: transparent;
  font: 0.6875rem/1.4 var(--sans);
  transition:
    border-color 120ms,
    color 120ms;
}
.network-experience .demo-controls button:disabled {
  color: #63767a;
  border-color: #172629;
  cursor: default;
  opacity: 1;
}
.network-experience .demo-controls .primary-control:not(:disabled) {
  background: #c2e7d6;
  color: #0a201c;
  border-color: #c2e7d6;
}
.network-experience .demo-controls #restart {
  margin-left: auto;
  border-color: transparent;
  font-size: 0.6875rem;
}
.network-experience[data-phase="won"] .demo-controls #restart {
  border-color: #7cbaa2;
  color: #c2e7d6;
}
.network-experience .network-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 15px;
}
.network-experience .network-foot p {
  font: 0.5625rem/1.65 var(--mono);
  color: #8fa6a9;
  margin: 0;
}
.network-experience #motion {
  font-size: 0.625rem;
  min-height: 44px;
  white-space: nowrap;
  border-color: transparent;
  padding-inline: 0;
  color: #94aaad;
}
.network-experience #motion[aria-pressed="true"] {
  color: #c4ebd9;
}
.network-experience #motion:disabled {
  cursor: default;
  opacity: 1;
}
.network-experience button:focus-visible {
  outline: 2px solid #c3f2e3;
  outline-offset: 3px;
}
@media (hover: hover) {
  .network-experience .node-target[data-available="true"]:hover {
    opacity: 1;
  }
  .network-experience .node-target[data-available="true"]:hover::before {
    border-color: #bedcd9;
  }
  .network-experience .demo-controls button:not(:disabled):hover {
    border-color: #a1c7c2;
    color: #edf6f1;
  }
  .network-experience .demo-controls .primary-control:not(:disabled):hover {
    color: #0a201c;
  }
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .network-experience .node-target {
    opacity: 0.28;
  }
  .network-experience .node-target[data-available="true"] {
    opacity: 0.86;
  }
  .network-experience .node-target[data-current="true"],
  .network-experience .node-target[data-control="true"] {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .network-experience button {
    transition: none;
  }
}
/* Home-only integration: the existing message sits in quiet black space. */
.home-hero {
  background: var(--night);
  color: #edf3f1;
  padding-block: 64px;
}
.home-hero .hero-layout {
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
}
.home-hero .hero-copy {
  align-self: start;
}
.home-hero .hero-copy h1 {
  font-size: clamp(2.6875rem, 4.1vw, 3.8125rem);
}
.home-hero .muted-heading {
  color: var(--accent);
}
.home-hero .kicker,
.home-hero .hero-proof {
  color: #a8bdbd;
}
.home-hero .kicker-line {
  background: #cee7f0;
}
.home-hero .hero-lede {
  color: #c0cdce;
}
.home-hero .hero-proof {
  border-color: #3c5556;
}
.home-hero .hero-proof strong {
  color: #e7f1ee;
}
.home-hero .button {
  background: var(--accent);
  border-color: var(--accent);
  color: #142b30;
}
.home-hero .button:hover {
  background: #cee7f0;
  border-color: #cee7f0;
}
.home-hero a:focus-visible,
.network-experience button:focus-visible {
  outline-color: #c3f2e3;
}

@media (max-width: 1100px) {
  .home-hero .hero-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .home-hero .hero-copy {
    max-width: 680px;
  }
  .home-hero .hero-copy h1 {
    font-size: clamp(2.75rem, 6vw, 4rem);
  }
  .home-hero .hero-lede {
    max-width: 600px;
  }
  .network-experience {
    width: 100%;
    max-width: 800px;
  }
  .network-experience .map {
    height: 400px;
  }
}
@container (max-width:599px) {
  .network-experience .map {
    height: 460px;
  }
  .network-experience .node-target span {
    font-size: 0.5625rem;
    max-width: min(90px, 24cqw);
    white-space: normal;
    width: max-content;
    text-align: center;
    top: 38px;
  }
}
@media (max-width: 480px) {
  .home-hero {
    padding-block: 42px;
  }
  .home-hero .hero-copy h1 {
    font-size: clamp(2.25rem, 10.2vw, 2.9375rem);
  }
  .network-experience .network-intro {
    gap: 8px;
  }
  .network-experience .network-intro .kicker,
  .network-experience .network-intro p:last-child {
    font-size: 0.5rem;
  }
  .network-experience .network-scenario {
    font-size: 1.3125rem;
    max-width: 300px;
  }
  .network-experience .demo-phases {
    justify-content: space-between;
    gap: 9px;
  }
  .network-experience .demo-phases li {
    font-size: 0.5625rem;
  }
  .network-experience .demo-controls {
    gap: 4px;
    flex-wrap: wrap;
  }
  .network-experience .demo-controls button {
    font-size: 0.6875rem;
    padding-inline: 8px;
  }
  .network-experience .demo-controls #restart {
    font-size: 0.6875rem;
  }
  .network-experience #game-status {
    min-height: 58px;
  }
  .network-experience .network-foot {
    flex-wrap: wrap;
    gap: 5px;
  }
}
