.network-section { padding-top: 36px; padding-bottom: 82px; border-top: 1px solid var(--landing-border); }
.network-demo {
  --network-active: var(--landing-accent);
  min-width: 0;
  width: 100%;
  container-type: inline-size;
}
html[data-theme=light] .network-demo {
  --network-active: #657118;
}
.network-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.network-demo .preview-kicker {
  margin: 0 0 8px;
  color: var(--landing-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
}
.network-demo-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -.035em;
  line-height: 1.3;
}
.network-demo .demo-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--landing-border);
  border-radius: 999px;
  color: var(--landing-muted);
  font-size: 9px;
  white-space: nowrap;
}
.network-demo .demo-label > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--landing-accent);
}
.network-demo .study {
  height: clamp(440px, 43cqw, 520px);
  margin-top: 22px;
  position: relative;
  isolation: isolate;
  touch-action: pan-y;
}
.network-demo canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
  touch-action: pan-y;
}
.network-demo .study.is-over-network canvas {
  cursor: grab;
}
.network-demo .study.is-dragging canvas {
  cursor: grabbing;
}
.network-demo .field-label {
  position: absolute;
  top: 8px;
  right: 2%;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--landing-quiet);
  font-size: 7px;
  letter-spacing: .08em;
  pointer-events: none;
}
.network-demo .tiny-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.network-demo .matrix {
  position: absolute;
  top: 50%;
  left: 0;
  width: 39%;
  max-width: 460px;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: minmax(0, .48fr) minmax(0, .52fr);
  gap: clamp(44px, 5.5cqw, 68px);
  pointer-events: none;
}
.network-demo .column {
  min-width: 0;
}
.network-demo .column h2 {
  margin: 0 0 22px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--landing-muted);
  white-space: nowrap;
}
.network-demo .layers {
  padding-top: 46px;
}
.network-demo .row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--landing-border);
  color: var(--landing-ink);
  background: transparent;
  text-align: left;
  font-size: clamp(20px, 2.15cqw, 26px);
  font-weight: 400;
  letter-spacing: -.045em;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: color 180ms ease;
}
.network-demo .row:last-of-type {
  border-bottom: 1px solid var(--landing-border);
}
.network-demo .row-index {
  color: var(--landing-quiet);
  font:
    7px/1 ui-monospace,
    Consolas,
    monospace;
  letter-spacing: 0;
}
.network-demo .layers .row-index {
  flex: 0 0 8px;
}
.network-demo .parts .row-index {
  margin-left: auto;
  padding-left: 4px;
}
.network-demo .row-point {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--landing-accent);
  opacity: 0;
  transition: opacity 180ms ease;
}
.network-demo .layers .row-point {
  right: -4px;
}
.network-demo .parts .row-point {
  left: -4px;
}
.network-demo .row:is(.is-related, .is-preview, [aria-pressed=true], :hover) {
  color: var(--network-active);
}
.network-demo .row:is(.is-related, .is-preview, [aria-pressed=true]) .row-point {
  opacity: 1;
}
.network-demo .column-note {
  margin: 15px 0 0;
  font-size: 10px;
  line-height: 1.6;
  color: var(--landing-muted);
}
.network-demo .study-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  border-top: 1px solid var(--landing-border);
}
.network-demo .selection-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
  padding: 12px 0;
}
.network-demo .detail-marker {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--landing-accent);
}
.network-demo .selection-detail strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 550;
}
.network-demo .selection-detail p {
  margin: 4px 0 0;
  min-height: 29px;
  font-size: 11px;
  color: var(--landing-muted);
  line-height: 1.45;
}
.network-demo .network-gesture-guide {
  display: grid;
  flex: 0 0 154px;
  gap: 5px;
  color: var(--landing-muted);
  text-align: right;
  font-size: 10px;
}
.network-demo .network-gesture-guide span:first-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--landing-ink);
}
.network-demo .network-gesture-guide svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.network-demo .key-guide {
  font-size: 7px;
  color: var(--landing-quiet);
}
/* Stack before the globe or either reading column needs to be squeezed. */
@container (width < 780px) {
  .network-demo .study {
    height: calc(328px + clamp(280px, 64cqw, 460px));
  }
  .network-demo .matrix {
    top: 24px;
    width: min(100% - 20px, 580px);
    max-width: none;
    transform: none;
    gap: clamp(40px, 10cqw, 80px);
  }
  .network-demo .row {
    font-size: clamp(18px, 3.7cqw, 24px);
    min-height: 40px;
  }
  .network-demo .layers { padding-top: 40px; }
  .network-demo .column h2 { font-size: 9px; }
  .network-demo .field-label {
    top: 290px;
    left: 0;
    right: auto;
  }
}
@container (max-width: 380px) {
  .network-demo-head {
    align-items: flex-start;
    gap: 12px;
  }
  .network-demo-head h2 {
    max-width: 190px;
    font-size: 16px;
  }
  .network-demo .demo-label {
    padding: 6px 8px;
    font-size: 8px;
  }
  .network-demo .column-note {
    font-size: 7px;
  }
  .network-demo .study-footer {
    gap: 12px;
    min-height: 102px;
  }
  .network-demo .network-gesture-guide {
    flex-basis: 105px;
    font-size: 7px;
  }
  .network-demo .selection-detail p {
    min-height: 43px;
  }
  .network-demo .key-guide {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .network-demo *,
  .network-demo *::before,
  .network-demo *::after {
    transition: none;
  }
}

@media (max-width: 700px) {
  .network-section { padding-top: 28px; padding-bottom: 60px; }
}
