.graph-intro {
  margin-block-end: clamp(32px, 5vw, 64px);
  background: var(--page);
  color: var(--text);
}

.graph-intro .hero-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.graph-intro .graph-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 72px);
  padding-block: clamp(64px, 8vw, 120px);
}

.graph-intro .graph-hero h1 {
  font-size: clamp(2.5rem, 4.25vw, 4.25rem);
  font-weight: 730;
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.graph-intro:lang(zh-CN) .graph-hero h1 { line-height: 1.16; }
.graph-intro:lang(ja) .graph-hero h1 {
  font-size: clamp(1.875rem, 3.35vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: -.045em;
  word-break: keep-all;
}

.graph-intro .hero-description {
  max-inline-size: 30em;
  margin-block: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
}

.graph-intro .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.graph-intro .hero-actions .hero-icon { margin-inline-start: 8px; }

.graph-intro .hero-figure {
  min-inline-size: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.graph-intro :is(.figure-header, .figure-footer) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px clamp(12px, 2vw, 20px);
}

.graph-intro .figure-header { justify-content: space-between; border-block-end: 1px solid var(--line); }
.graph-intro .figure-title { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 620; }
.graph-intro .figure-title .hero-icon { color: var(--secondary); }
.graph-intro :is(.figure-footer, .example-label) { color: var(--muted); font-size: .8125rem; }
.graph-intro .figure-footer { border-block-start: 1px solid var(--line); }
.graph-intro .figure-footer span { display: inline-flex; align-items: center; gap: 8px; }

.graph-intro .line-key { display: inline-block; inline-size: 20px; border-block-start: 2px solid var(--secondary); }
.graph-intro .line-key--dashed { border-block-start-style: dashed; }

.graph-intro .hero-plot {
  background-color: var(--surface);
  background-image: linear-gradient(var(--soft-line) 1px, transparent 1px),
    linear-gradient(to right, var(--soft-line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
}

.graph-intro .hero-graph {
  display: block;
  inline-size: 100%;
  block-size: auto;
  --node-title-size: 14px;
  --node-detail-size: 10px;
}

.graph-intro .hero-scope { fill: none; stroke: var(--line); vector-effect: non-scaling-stroke; }
.graph-intro .hero-edge { fill: none; stroke: var(--secondary); stroke-width: 1.4; }
.graph-intro .hero-edge--focus { stroke: var(--cyan); stroke-width: 2; }
.graph-intro .hero-edge--async { stroke-dasharray: 4 4; }
.graph-intro :is(.hero-graph marker, .diagram-icon) { fill: none; stroke: var(--secondary); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.graph-intro #hero-arrow-focus { stroke: var(--cyan); }
.graph-intro .hero-node-box { fill: var(--panel); stroke: var(--line); }
.graph-intro .hero-node--focus .hero-node-box { fill: var(--language-current); stroke: var(--cyan); stroke-width: 1.5; }

.graph-intro .hero-node-name {
  fill: var(--text);
  font-family: 'Avenir Next', system-ui, sans-serif;
  font-size: var(--node-title-size);
  font-weight: 620;
}
.graph-intro .hero-node-detail {
  fill: var(--muted);
  font: 400 var(--node-detail-size) var(--mono);
}

@media (max-width: 767px) {
  .graph-intro .graph-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 48px; }
  .graph-intro .graph-hero h1 { font-size: clamp(2.25rem, 7.5vw, 3.75rem); }
  .graph-intro:lang(ja) .graph-hero h1 { font-size: clamp(1.875rem, 6.3vw, 3.25rem); }
  .graph-intro .hero-graph { --node-title-size: 15px; }
}
