/* Connected research context: lightweight node canvas, Inter and restrained blue. */
.home-page #about .system-heading {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: start;
}
.home-page #about .system-heading h2 {
  max-width: 650px;
  font-size: clamp(42px, 4.4vw, 64px);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.home-page #about .system-heading p {
  font-size: 16px;
  line-height: 1.75;
  margin-top: 5px;
}
.home-page .system-visual.knowledge-flow {
  height: auto;
  margin-top: 48px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 55% 45%, rgba(219, 234, 254, 0.35), transparent 60%),
    radial-gradient(circle, #cbd5e1 0.7px, transparent 0.9px), #fafbfd;
  background-size:
    auto,
    20px 20px,
    auto;
  border: 1px solid #dce3ed;
  font-family: Inter, 'Segoe UI', sans-serif;
}
.knowledge-flow-toolbar,
.knowledge-flow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: #64748b;
}
.knowledge-flow-toolbar {
  border-bottom: 1px solid #e2e8f0;
}
.knowledge-flow-toolbar > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
}
.knowledge-flow-footer {
  padding-block: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 9px;
}
.flow-live-dot,
.knowledge-flow-footer i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b82f6;
  flex: none;
}
.knowledge-flow-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: #475569;
}
.knowledge-flow-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(55px, 6.5vw, 100px);
  padding: 66px 42px 100px;
  min-height: 520px;
}
.knowledge-edges {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.knowledge-sources {
  position: relative;
  display: grid;
  gap: 14px;
  z-index: 1;
}
.flow-column-label {
  position: absolute;
  top: -29px;
  left: 0;
  color: #64748b;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
}
.flow-node {
  position: relative;
  z-index: 1;
  border: 1px solid #d6dfeb;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
}
.knowledge-source {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 15px 16px;
}
.flow-node-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
}
.flow-node-icon svg {
  width: 19px;
  height: 19px;
}
.home-page .knowledge-flow h3 {
  margin: 0;
  color: #0b1730;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.home-page .knowledge-flow p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
.knowledge-memory {
  padding: 23px 25px 24px;
  border-color: #a9c2eb;
  background: linear-gradient(145deg, #fff, #f7faff);
  box-shadow:
    0 0 0 5px rgba(219, 234, 254, 0.3),
    0 12px 32px rgba(37, 99, 235, 0.06);
}
.flow-node-eyebrow {
  font-size: 9px;
  letter-spacing: 0.11em;
  font-weight: 500;
  line-height: 1.5;
  color: #64748b;
}
.flow-memory-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 24px 0 17px;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 4px;
}
.flow-memory-mark svg {
  width: 31px;
  height: 31px;
}
.home-page .knowledge-memory h3 {
  font-size: 25px;
  line-height: 1.17;
  letter-spacing: -0.035em;
  font-weight: 450;
}
.home-page .knowledge-memory > p {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #475569;
}
.flow-memory-details {
  display: grid;
  gap: 9px;
  margin-top: 23px;
  padding-top: 17px;
  border-top: 1px solid #dce6f3;
  font-size: 10px;
  color: #475569;
}
.flow-memory-details span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flow-memory-details span::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #93b4e8;
}
.knowledge-next {
  padding: 23px 21px 24px;
}
.flow-next-art {
  height: 143px;
  display: grid;
  place-items: center;
  margin: 12px 0 8px;
  background: radial-gradient(ellipse at center, #eff6ff, transparent 70%);
}
.flow-next-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 210px;
  filter: grayscale(1);
  opacity: 0.9;
}
.home-page .knowledge-next h3 {
  font-size: 20px;
  letter-spacing: -0.035em;
  font-weight: 450;
}
.home-page .knowledge-next > p {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 10px;
}
.flow-node-tag {
  display: inline-block;
  margin-top: 22px;
  padding: 6px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 8px;
  letter-spacing: 0.09em;
  line-height: 1.4;
}
.flow-port {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.5px solid #8aa8d6;
  border-radius: 50%;
  background: #fff;
  z-index: 2;
  transform: translate(-50%, -50%);
}
.port-right {
  left: 100%;
  top: 50%;
}
.port-left {
  left: 0;
  top: 50%;
}
.port-memory-in {
  left: 0;
  top: var(--port-y);
}
.port-bottom {
  left: 50%;
  top: 100%;
}
.knowledge-edge {
  fill: none;
  stroke: #bdcce0;
  stroke-width: 1.25;
}
.knowledge-edge--return {
  stroke: #b5c8e6;
  stroke-dasharray: 4 5;
}
.knowledge-edge-trace {
  fill: none;
  stroke: #4b86df;
  stroke-width: 1.5;
  stroke-dasharray: 3 15;
  opacity: 0.5;
}
.knowledge-edge-particle {
  fill: #2563eb;
  stroke: #fff;
  stroke-width: 1;
  opacity: 0.95;
}
.knowledge-edge-label {
  fill: #64748b;
  font:
    10px Inter,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0.02em;
}
.knowledge-flow.is-visible .knowledge-edge-trace {
  animation: knowledge-edge-flow 3.6s linear infinite !important;
}
@keyframes knowledge-edge-flow {
  to {
    stroke-dashoffset: -72;
  }
}
@keyframes knowledge-edge-breathe {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.65;
  }
}
/* Equal-height stages and a clear candidate -> testing -> refinement loop. */
.knowledge-flow-board:has([data-flow-investigation]) {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(24px, 2.4vw, 38px);
  padding: 64px 28px 100px;
}
.knowledge-flow-board:has([data-flow-investigation]) .knowledge-sources {
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.knowledge-flow-board:has([data-flow-investigation])
  :is(.knowledge-memory, .knowledge-investigation, .knowledge-next) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 392px;
  padding: 24px 20px;
  background: #fff;
  border-color: #c3d4e8;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
}
.knowledge-flow-board:has([data-flow-investigation]) .knowledge-investigation {
  background: linear-gradient(180deg, #fff, #f7faff);
  border-color: #9fb9d9;
}
.home-page
  .knowledge-flow-board:has([data-flow-investigation])
  :is(.knowledge-memory, .knowledge-investigation, .knowledge-next)
  h3 {
  min-height: 50px;
  margin: 18px 0 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 450;
  letter-spacing: -0.03em;
}
.home-page
  .knowledge-flow-board:has([data-flow-investigation])
  :is(.knowledge-memory, .knowledge-investigation, .knowledge-next)
  > p {
  min-height: 38px;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #475569;
}
.knowledge-flow-board:has([data-flow-investigation]) .flow-memory-mark {
  width: 100%;
  height: 96px;
  flex: none;
  margin: 20px 0 18px;
  background: radial-gradient(ellipse, #eff6ff, transparent 75%);
  border: 0;
}
.knowledge-flow-board:has([data-flow-investigation]) .flow-memory-mark svg {
  width: 64px;
  height: 64px;
  stroke-width: 1;
}
.knowledge-flow-board:has([data-flow-investigation]) .flow-memory-details {
  margin-top: auto;
  padding-top: 14px;
  gap: 8px;
}
.knowledge-flow-board:has([data-flow-investigation]) .flow-next-art {
  width: 100%;
  height: 112px;
  flex: none;
  margin: 20px 0 16px;
}
.knowledge-flow-board:has([data-flow-investigation]) .flow-next-art img {
  max-width: 190px;
}
.knowledge-flow-board:has([data-flow-investigation]) .flow-node-tag {
  align-self: flex-start;
  margin-top: auto;
}
.flow-design-candidates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.flow-design-candidates > div {
  min-width: 0;
  padding: 9px 4px 8px;
  border: 1px solid #d8e4f1;
  background: #fff;
  text-align: center;
}
.flow-design-candidates svg {
  display: block;
  width: 100%;
  height: 60px;
  max-width: 84px;
  margin: auto;
  overflow: visible;
}
.flow-design-candidates span {
  display: block;
  margin-top: 4px;
  color: #536980;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
.flow-candidate-links,
.flow-refinement-loop {
  display: block;
  width: 100%;
  height: 22px;
  flex: none;
  fill: none;
  stroke: #a2bad5;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-test-cycle {
  position: relative;
  border: 1px solid #d8e4f1;
  padding: 10px 8px 0;
  background: rgba(239, 246, 255, 0.45);
}
.flow-investigation-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: #365c89;
  font-size: 10px;
  line-height: 1.5;
}
.flow-investigation-steps li + li::before {
  content: '\2192';
  margin-right: 6px;
  color: #8aa8d6;
}
.flow-refinement-loop {
  height: 18px;
  margin-top: 5px;
  stroke-dasharray: 3 3;
}
.flow-iteration-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #dce6f3;
  font-size: 10px;
  line-height: 1.5;
  color: #475569;
}
.flow-iteration-note svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: #6484ad;
  stroke-width: 1.3;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .knowledge-flow-board:has([data-flow-investigation]) {
    padding-inline: 22px;
    gap: 24px;
  }
  .knowledge-flow-board:has([data-flow-investigation])
    :is(.knowledge-memory, .knowledge-investigation, .knowledge-next) {
    padding: 22px 14px;
  }
  .home-page
    .knowledge-flow-board:has([data-flow-investigation])
    :is(.knowledge-memory, .knowledge-investigation, .knowledge-next)
    h3 {
    font-size: 18px;
    min-height: 45px;
  }
  .flow-design-candidates {
    gap: 5px;
  }
  .flow-design-candidates svg {
    height: 52px;
  }
  .flow-test-cycle {
    padding-inline: 5px;
  }
  .flow-investigation-steps {
    font-size: 9px;
  }
  .flow-investigation-steps li + li::before {
    margin-right: 3px;
  }
}
@media (max-width: 760px) {
  .knowledge-flow-board:has([data-flow-investigation]) {
    grid-template-columns: 1fr;
    gap: 65px;
    padding: 55px 26px 85px;
  }
  .knowledge-flow-board:has([data-flow-investigation])
    :is(.knowledge-memory, .knowledge-investigation, .knowledge-next) {
    width: 100%;
    max-width: 350px;
    justify-self: center;
    min-height: 380px;
    padding: 24px;
  }
  .knowledge-flow-board:has([data-flow-investigation]) .knowledge-sources {
    min-height: 330px;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .knowledge-flow-board {
    gap: 48px;
    padding-inline: 25px;
  }
  .knowledge-source {
    padding: 13px 11px;
    gap: 9px;
  }
  .flow-node-icon {
    width: 27px;
    height: 27px;
  }
  .home-page .knowledge-source h3 {
    font-size: 14px;
  }
  .home-page .knowledge-source p {
    font-size: 9px;
  }
  .knowledge-memory {
    padding-inline: 18px;
  }
  .home-page .knowledge-memory h3 {
    font-size: 23px;
  }
  .knowledge-next {
    padding-inline: 16px;
  }
  .home-page .knowledge-next h3 {
    font-size: 18px;
  }
}
@media (max-width: 760px) {
  .home-page #about .system-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .home-page #about .system-heading p {
    font-size: 15px;
  }
  .knowledge-flow-toolbar,
  .knowledge-flow-footer {
    padding: 15px 20px;
  }
  .knowledge-flow-toolbar > span:last-child,
  .knowledge-flow-footer > span:last-child {
    display: none;
  }
  .knowledge-flow-board {
    grid-template-columns: 1fr;
    gap: 65px;
    padding: 55px 26px 85px;
  }
  .knowledge-sources {
    width: 100%;
    max-width: 350px;
    justify-self: center;
  }
  .knowledge-memory,
  .knowledge-next {
    width: 100%;
    max-width: 300px;
    justify-self: center;
  }
  .knowledge-source {
    min-height: 70px;
  }
  .home-page .knowledge-source h3 {
    font-size: 16px;
  }
  .home-page .knowledge-source p {
    font-size: 11px;
  }
  .knowledge-memory {
    padding: 24px;
  }
  .flow-memory-mark {
    margin-top: 18px;
  }
  .knowledge-next {
    padding: 24px;
  }
  .flow-next-art {
    height: 140px;
  }
  .knowledge-flow-footer > span:first-child {
    font-size: 10px;
  }
  .knowledge-edge-label {
    font-size: 9px;
  }
}
