/* /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). Swap the SVG for a vertical step list that echoes its
   visual language: dots, a connecting line, mono labels. Same content,
   same reading order. */
.dc-flow__steps {
  display: none;
}
@media (max-width: 899px) {
  .dc-flow__svg {
    display: none;
  }
  .dc-flow__steps {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .dc-flow__steps li {
    position: relative;
    padding: 0 0 22px 26px;
    font: 12px / 1.4 var(--font-mono);
    letter-spacing: 1.5px;
    color: var(--ink-500);
  }
  .dc-flow__steps li:last-child {
    padding-bottom: 0;
  }
  /* Node dot */
  .dc-flow__steps li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line-300);
  }
  /* Line to the next node */
  .dc-flow__steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 16px;
    bottom: -2px;
    width: 1.5px;
    background: var(--line-300);
  }
  /* Only stage transitions get a downward arrowhead (into Specifications,
     Senior review, Production). Input-to-input connectors stay plain
     lines: in the diagram the five inputs feed Specifications in
     parallel, not each other. One clipped element (1.5px stem plus
     triangle tip) so each segment's color applies to line and arrow
     together. */
  .dc-flow__steps li.dc-flow__step--handoff::after,
  .dc-flow__steps li.dc-flow__step--accent::after,
  .dc-flow__steps li.dc-flow__step--dark::after {
    left: 0.5px;
    width: 9px;
    clip-path: polygon(
      calc(50% - 0.75px) 0,
      calc(50% + 0.75px) 0,
      calc(50% + 0.75px) calc(100% - 6px),
      calc(50% + 4.5px) calc(100% - 6px),
      50% 100%,
      calc(50% - 4.5px) calc(100% - 6px),
      calc(50% - 0.75px) calc(100% - 6px)
    );
  }
  /* Modifier selectors carry the .dc-flow__steps prefix so they outrank
     the `.dc-flow__steps li` base rules above - bare .dc-flow__step--*
     loses that specificity contest and the colors never apply. */
  .dc-flow__steps .dc-flow__step--accent {
    color: var(--ink-700);
  }
  .dc-flow__steps .dc-flow__step--accent::before {
    background: var(--accent-600);
  }
  .dc-flow__steps .dc-flow__step--dark {
    color: var(--ink-950);
  }
  .dc-flow__steps .dc-flow__step--dark::before {
    background: var(--ink-950);
  }
  .dc-flow__steps li.dc-flow__step--accent::after,
  .dc-flow__steps li.dc-flow__step--dark::after {
    background: var(--ink-950);
  }
  .dc-flow__steps .dc-flow__step--positive {
    color: var(--ink-700);
  }
  .dc-flow__steps .dc-flow__step--positive::before {
    background: var(--positive-600);
  }
}

.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;
  }
}
