/* Constructor names are editorial references, not reproduced brand marks. */
.home-ecosystem {
  padding-block: 44px 56px;
  margin-bottom: 56px;
  border-block: 1px solid var(--rv-line);
}
.ecosystem-story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 56px;
}
.ecosystem-copy h2 {
  margin: 22px 0;
  font-size: clamp(30px, 3.1vw, 43px);
  line-height: 1.16;
  letter-spacing: -1.5px;
  max-width: 15ch;
}
.ecosystem-copy > p {
  max-width: 43ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--rv-muted);
}
.ecosystem-copy .eyebrow {
  font-size: 10px;
  color: var(--rv-ink);
}
.ecosystem-copy .ecosystem-thesis {
  font-size: 18px;
  line-height: 1.65;
  color: var(--rv-ink);
}
.ecosystem-copy .ecosystem-invitation {
  margin-top: 28px;
  font-size: 12px;
  color: var(--rv-source);
}
.ecosystem-investigation {
  min-width: 0;
}
.ecosystem-examples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}
.ecosystem-example {
  min-width: 0;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
  color: var(--rv-muted);
}
.ecosystem-example strong {
  font-size: 12px;
  font-weight: 600;
}
.ecosystem-example span {
  font: 10px var(--rv-font-metadata);
}
.ecosystem-example[aria-pressed='true'] {
  border-color: var(--rv-ink);
  color: var(--rv-ink);
  background: var(--rv-surface);
  box-shadow: inset 0 -2px var(--rv-ink);
}
.ecosystem-figure {
  margin: 0;
  border: 1px solid var(--rv-line);
  background: var(--rv-surface);
}
.ecosystem-figure-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px;
  align-items: center;
}
.ecosystem-figure-caption .technical-label {
  font-size: 9px;
  letter-spacing: 1px;
}
.ecosystem-example-label {
  font: 10px/1.4 var(--rv-font-metadata);
  color: var(--rv-muted);
}
.ecosystem-graph {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  grid-template-rows: repeat(3, 84px);
  gap: 22px;
  padding: 24px 16px;
  background: var(--rv-registry);
  color: var(--rv-on-registry);
}
.ecosystem-edges {
  position: absolute;
  inset: 24px 16px;
  width: calc(100% - 32px);
  height: calc(100% - 48px);
  z-index: -1;
  pointer-events: none;
}
.ecosystem-edges path {
  fill: none;
  stroke: #556252;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.ecosystem-edges .is-active {
  stroke: var(--rv-lime);
  stroke-width: 2;
}
.ecosystem-hub {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 24px 10px 14px;
  text-align: center;
  border: 1px solid var(--rv-lime);
  background: var(--rv-registry);
}
.ecosystem-hub .technical-label {
  color: var(--rv-registry-muted);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 1px;
}
.ecosystem-hub > strong {
  font-size: 20px;
  font-weight: 600;
}
.ecosystem-model-name {
  font: 15px var(--rv-font-metadata);
}
.ecosystem-hub-id {
  font-size: 10px;
  line-height: 1.6;
  color: var(--rv-registry-muted);
}
.ecosystem-hub-record {
  width: 100%;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #556252;
  font-size: 11px;
  line-height: 1.5;
  color: var(--rv-lime);
}
.ecosystem-node {
  min-width: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  text-align: left;
  color: var(--rv-on-registry);
  background: #202820;
  border: 1px solid #556252;
  border-radius: var(--rv-radius);
}
.ecosystem-node > span {
  color: var(--rv-registry-muted);
  font: 9px/1.3 var(--rv-font-metadata);
}
.ecosystem-node > strong {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 550;
}
.ecosystem-node[aria-pressed='true'] {
  border-color: var(--rv-lime);
  box-shadow: inset 2px 0 var(--rv-lime);
}
.ecosystem-node:focus-visible {
  outline-color: var(--rv-lime);
}
.ecosystem-node-build {
  grid-area: 1 / 1;
}
.ecosystem-node-history {
  grid-area: 2 / 1;
}
.ecosystem-node-competition {
  grid-area: 3 / 1;
}
.ecosystem-node-technical {
  grid-area: 1 / 3;
}
.ecosystem-node-market {
  grid-area: 2 / 3;
}
.ecosystem-node-custody {
  grid-area: 3 / 3;
}
.ecosystem-detail {
  padding: 22px;
  min-height: 201px;
}
.ecosystem-detail .technical-label {
  margin: 0 0 9px;
  font-size: 9px;
}
.ecosystem-detail h4 {
  font-size: 15px;
  margin: 0 0 10px;
  font-weight: 600;
}
.ecosystem-detail > p:not(.technical-label),
.ecosystem-reference p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--rv-muted);
}
.ecosystem-detail > small {
  display: block;
  margin-top: 12px;
  font: 10px/1.6 var(--rv-font-metadata);
  color: var(--rv-muted);
}
.ecosystem-reference {
  padding: 16px 22px;
  border-top: 1px solid var(--rv-line);
  background: var(--rv-canvas);
  min-height: 131px;
}
.ecosystem-reference a {
  display: inline-block;
  font-size: 11px;
  margin-top: 8px;
}
.ecosystem-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--rv-muted);
  margin: 14px 0 0;
}
.ecosystem-directory {
  margin-top: 56px;
}
.home-constructors {
  margin: 0 0 64px;
}
.constructor-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 30px;
}
.constructor-intro h2 {
  max-width: 23ch;
  margin: 18px 0 12px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.16;
  letter-spacing: -1.2px;
}
.constructor-thesis {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}
.constructor-description {
  margin: 0;
  max-width: 44ch;
  font-size: 13px;
  line-height: 1.9;
  color: var(--rv-muted);
}
.ecosystem-names.constructor-core li {
  min-height: 62px;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.constructor-identifiers {
  margin: 22px 0;
  font: 10px/1.9 var(--rv-font-metadata);
  color: var(--rv-muted);
}
.constructor-browse {
  border-block: 1px solid var(--rv-steel-line);
}
.constructor-browse summary {
  padding-block: 16px;
  font-size: 12px;
  cursor: pointer;
}
.constructor-browse[open] summary {
  margin-bottom: 6px;
}
.constructor-browse .ecosystem-segment-description {
  margin-bottom: 22px;
}
.home-ecosystem > .ecosystem-record-chain {
  margin-bottom: 40px;
  padding-top: 0;
  border-top: 0;
}
.ecosystem-directory h3,
.ecosystem-competition h3 {
  margin: 12px 0 20px;
  font-size: 24px;
  letter-spacing: -0.6px;
  font-weight: 550;
}
.ecosystem-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}
.ecosystem-segments button {
  min-height: 40px;
  font-size: 11px;
  padding: 10px 13px;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
  background: transparent;
  color: var(--rv-muted);
}
.ecosystem-segments button[aria-pressed='true'] {
  background: var(--rv-registry);
  color: var(--rv-on-registry);
  border-color: var(--rv-registry);
}
.ecosystem-names {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rv-line);
}
.ecosystem-names li {
  min-height: 66px;
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--rv-line);
  display: flex;
  align-items: center;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.45px;
}
.ecosystem-segment-description {
  font-size: 12px;
  line-height: 1.75;
  color: var(--rv-muted);
  margin: 18px 0 0;
}
.ecosystem-directory > .text-action {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
}
.ecosystem-competition {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rv-line);
}
.ecosystem-competition dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 24px 0;
}
.ecosystem-competition dt {
  font: 10px/1.7 var(--rv-font-metadata);
  color: var(--rv-muted);
  margin-bottom: 10px;
}
.ecosystem-competition dd {
  margin: 0;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.8;
}
.ecosystem-record-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
  margin: 0;
  list-style: none;
  border-block: 1px solid var(--rv-line);
  font: 10px/1.8 var(--rv-font-metadata);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.ecosystem-record-chain li:not(:last-child)::after {
  content: '→';
  margin-left: 12px;
  color: var(--rv-muted);
}
@media (max-width: 1050px) {
  .constructor-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .constructor-description {
    max-width: 65ch;
  }
  .ecosystem-story {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ecosystem-copy h2 {
    max-width: 23ch;
  }
  .ecosystem-copy > p {
    max-width: 66ch;
  }
}
@media (max-width: 600px) {
  .home-ecosystem {
    padding-block: 30px 36px;
    margin-bottom: 36px;
  }
  .ecosystem-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ecosystem-graph {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 12px;
    padding: 18px;
  }
  .ecosystem-edges {
    display: none;
  }
  .ecosystem-hub {
    grid-column: 1 / -1;
    grid-row: auto;
    gap: 8px;
    padding: 18px;
    margin-bottom: 6px;
  }
  .ecosystem-hub .technical-label {
    font-size: 9px;
  }
  .ecosystem-hub-record {
    width: auto;
    padding-inline: 18px;
  }
  .ecosystem-node {
    grid-area: auto;
    min-height: 76px;
  }
  .ecosystem-detail {
    min-height: 257px;
    padding: 18px;
  }
  .ecosystem-reference {
    padding: 16px 18px;
    min-height: 168px;
  }
  .ecosystem-directory {
    margin-top: 36px;
  }
  .home-constructors {
    margin: 0 0 40px;
  }
  .ecosystem-names {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ecosystem-names li {
    font-size: 17px;
    min-height: 62px;
  }
  .ecosystem-names.constructor-core li {
    min-height: 56px;
    font-size: 12px;
    padding-right: 10px;
  }
  .ecosystem-competition dl {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-ecosystem button {
    transition: none;
  }
}
