/* /dotconnector/ - hero, flow diagram, triptych. See src/css/site.css for
   shared .wrap / .section / .eyebrow / .btn primitives this page reuses. */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hero */
.dc-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.dc-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-600);
  flex-shrink: 0;
}
.dc-hero__heading {
  font: 700 var(--fs-h1-sub) / 1.04 var(--font-sans);
  letter-spacing: -0.035em;
  margin: 0;
}
.dc-hero__standfirst {
  font: 600 var(--fs-lede) / 1.5 var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--ink-950);
  max-width: var(--measure);
  margin: 32px 0 0;
}
.dc-hero__body {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink-700);
  max-width: var(--measure);
  margin: 24px 0 0;
}

/* Flow diagram - tight join under the hero, the section handles bottom rhythm */
.dc-flow {
  padding-top: 0;
}
.dc-flow__svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Below 900px the diagram's viewBox (1200x300) shrinks along with the
   viewport and the 12px label text becomes illegible (down to ~3px at
   360px wide). Floor the SVG's rendered width so labels stay readable;
   the wrap scrolls horizontally to show the rest rather than shrinking
   further. This is contained to the diagram - it does not affect page-
   level horizontal scroll. */
@media (max-width: 899px) {
  .dc-flow .wrap {
    overflow-x: auto;
  }
  .dc-flow__svg {
    min-width: 900px;
  }
}

.flow-line {
  stroke: var(--line-300);
  stroke-width: 1.5;
}
.flow-line--dark {
  stroke: var(--ink-950);
}
.flow-node {
  fill: var(--line-300);
}
.flow-node--accent {
  fill: var(--accent-600);
}
.flow-node--dark {
  fill: var(--ink-950);
}
.flow-node--positive {
  fill: var(--positive-600);
}
.flow-label {
  font: 12px var(--font-mono);
  letter-spacing: 1.5px;
  fill: var(--ink-500);
}
.flow-label--accent {
  fill: var(--ink-700);
}
.flow-label--dark {
  fill: var(--ink-950);
}
.flow-label--positive {
  fill: var(--ink-700);
}

/* Triptych */
.dc-triptych__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
}

.dc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 36px 44px;
  background: var(--paper-50);
  border: 1px solid var(--line-300);
  border-radius: var(--radius-md);
  /* Explicit order (not DOM order) holds the emphasised card in position
     regardless of how the triptych list is authored. */
  order: 1;
}
.dc-card__title {
  font: 600 var(--fs-lede) / 1.25 var(--font-sans);
  letter-spacing: -0.02em;
  margin: 0;
}
.dc-card__body {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink-700);
  margin: 0;
}

.dc-card--emphasis {
  order: 2;
  background: var(--ink-950);
  border-color: var(--ink-950);
  color: var(--paper-50);
}
.dc-card--emphasis .eyebrow {
  color: var(--accent-600);
}
.dc-card--emphasis .dc-card__body {
  color: var(--ink-250);
}
.dc-card--emphasis ~ .dc-card {
  order: 3;
}

@media (max-width: 899px) {
  .dc-triptych__grid {
    grid-template-columns: 1fr;
  }
}
