.hero {
  height: min(44.15vw, 680px);
  min-height: 520px;
  position: relative;
}
.hero-copy {
  position: relative;
  z-index: 3;
  padding-top: clamp(88px, 7.1vw, 118px);
  padding-left: 15px;
  width: 49%;
  pointer-events: none;
}
.hero-copy a {
  pointer-events: auto;
}
.hero-copy .eyebrow {
  color: var(--purple);
}
.hero h1 {
  font-size: clamp(78px, 10vw, 154px);
  font-weight: 700;
  line-height: 0.73;
  letter-spacing: -0.075em;
  margin-top: 28px;
  margin-left: -5px;
}
:where(.hero h1) span {
  color: var(--yellow);
}
.hero-description {
  font-size: clamp(16px, 1.61vw, 25px);
  line-height: 1.5;
  letter-spacing: -0.025em;
  margin-top: 15px;
  white-space: nowrap;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-top: 33px;
}
.hero-actions .button {
  min-height: 66px;
  padding-inline: 36px;
  gap: 24px;
  font-size: 17px;
}
.license-note {
  font: 400 12px var(--mono);
  color: var(--muted);
  margin-top: 24px;
  letter-spacing: 0.01em;
}
.knowledge-field {
  position: absolute;
  inset: 0 0 0 40%;
}
#graph-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
}
#evidence-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.node-control {
  position: absolute;
  z-index: 5;
  text-align: left;
  transform: translate(28px, -50%);
  border: 0;
  background: none;
  padding: 7px 8px;
  border-radius: 0;
  white-space: nowrap;
}
.node-control .node-name {
  display: block;
  font: 600 clamp(17px, 1.55vw, 24px) / 1.1 var(--sans);
  letter-spacing: -0.015em;
}
.node-control .node-type {
  display: block;
  margin-top: 3px;
  font: 400 12px var(--mono);
  color: var(--muted);
}
.node-control:hover .node-name,
.node-control.is-selected .node-name {
  color: var(--paper);
}
.node-control:focus-visible {
  outline-offset: 1px;
}
.node-control.is-dim {
  opacity: 0.18;
}
.inspect-control {
  position: absolute;
  z-index: 5;
  transform: translate(22px, 70px);
  background: var(--ink);
  border: 1px solid #727281;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  font: 400 11px var(--mono);
}
.inspect-control .icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.inspect-control:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}
.field-caption {
  position: absolute;
  z-index: 3;
  bottom: 17px;
  right: 5px;
  color: #bdc1d5;
  font: 400 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.field-caption span {
  padding-inline: 8px;
  color: #6d6a7b;
}
.source-card {
  position: absolute;
  z-index: 3;
  color: #15101e;
  text-align: left;
  border: 1px solid #d3cbbd;
  background: #f2eddf url("/assets/paper-texture.png") center / cover;
  font-family: var(--mono);
  transition:
    transform 240ms ease,
    opacity 180ms ease;
}
.source-card-main {
  top: 3.5%;
  right: -1%;
  width: 55%;
  min-height: 180px;
  padding: 21px 28px 16px;
  transform: rotate(6deg);
}
.source-eyebrow {
  font-size: 10px;
  display: block;
  color: #46424e;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.source-sentence {
  display: block;
  font-size: clamp(12px, 1.12vw, 17px);
  line-height: 1.7;
  text-wrap: balance;
}
.source-card mark {
  color: inherit;
  background: transparent;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.source-card mark.is-active {
  text-decoration-color: var(--brand);
}
.source-rule {
  display: block;
  height: 1px;
  background: #cfc7b8;
  margin-top: 15px;
}
.source-rule + .source-rule {
  margin-top: 8px;
  width: 91%;
}
.source-card-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  margin-top: 9px;
  opacity: 0;
  transition: opacity 180ms ease;
}
:where(.source-card:hover) .source-card-action,
:where(.source-card:focus-visible) .source-card-action {
  opacity: 1;
}
.source-card-action .icon {
  height: 12px;
  width: 12px;
  flex-basis: 12px;
}
.source-card:focus-visible {
  outline-color: var(--yellow);
  outline-offset: 7px;
}
.source-card-small {
  left: 2%;
  top: 76%;
  width: 22%;
  padding: 13px 17px 7px;
  transform: rotate(4deg);
  font-size: clamp(10px, 1.03vw, 15px);
  line-height: 1.4;
}
.source-card-small .source-card-action {
  margin-top: 6px;
}
.source-card.is-muted {
  opacity: 0.88;
}
.ambient-record {
  position: absolute;
  z-index: 1;
  border: 1px solid #343040;
  color: #9395ae;
  padding: 18px 22px;
  font: 400 12px / 1.6 var(--mono);
  opacity: 0.45;
  user-select: none;
  pointer-events: none;
}
.ambient-record > span {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
}
.ambient-record hr {
  border: 0;
  height: 1px;
  background: #3b354a;
  margin-top: 13px;
}
.ambient-record hr + hr {
  margin-top: 8px;
  width: 80%;
  margin-left: 0;
}
.ambient-variety {
  left: 12%;
  top: 4%;
  width: 27%;
  transform: rotate(-10deg);
}
.ambient-supplier {
  right: 0;
  top: 38%;
  width: 22%;
  transform: rotate(-10deg);
}
.ambient-species {
  right: 0;
  top: 73%;
  width: 22%;
  transform: rotate(10deg);
}

@media (max-width: 1100px) and (min-width: 901px) {
  .hero {
    min-height: 515px;
  }
  .hero-copy {
    padding-top: 93px;
  }
  .hero-actions {
    gap: 22px;
  }
  .hero-actions .button {
    min-height: 55px;
    font-size: 13px;
    padding-inline: 18px;
    gap: 12px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .license-note {
    font-size: 10px;
  }
  .source-card-main {
    min-height: 155px;
    width: 57%;
    padding: 17px 19px 10px;
  }
  .source-card-main .source-sentence {
    white-space: normal;
  }
  .source-card-small {
    padding: 10px;
  }
  .source-eyebrow {
    font-size: 8px;
    margin-bottom: 10px;
  }
  .source-rule {
    margin-top: 10px;
  }
  .ambient-record {
    font-size: 10px;
    padding: 12px;
  }
  .node-control {
    transform: translate(22px, -50%);
    padding-left: 5px;
  }
  .node-control .node-name {
    font-size: 16px;
  }
  .node-control .node-type {
    font-size: 10px;
  }
  .inspect-control {
    font-size: 9px;
    transform: translate(-5px, 49px);
    padding-inline: 6px;
  }
}
@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 0;
  }
  .hero-copy {
    width: 100%;
    padding-top: 50px;
    padding-left: 0;
  }
  .hero-copy .eyebrow {
    font-size: 11px;
  }
  .hero h1 {
    font-size: clamp(64px, 17.6vw, 116px);
    margin-top: 17px;
    letter-spacing: -0.07em;
    line-height: 0.86;
    margin-left: -2px;
  }
  .hero-description {
    white-space: normal;
    margin-top: 24px;
    max-width: 520px;
    font-size: 18px;
  }
  .hero-actions {
    gap: 25px;
    margin-top: 26px;
  }
  .hero-actions .button {
    font-size: 12px;
    min-height: 53px;
    padding-inline: 17px;
    gap: 12px;
  }
  .hero-actions .text-link {
    font-size: 12px;
    gap: 7px;
  }
  .license-note {
    font-size: 9px;
    margin-top: 20px;
  }
  .knowledge-field {
    position: relative;
    inset: auto;
    margin-top: 20px;
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
    height: 470px;
  }
  .source-card-main {
    top: 4%;
    width: 77%;
    right: 2%;
    min-height: 124px;
    padding: 17px 18px 12px;
    transform: rotate(4deg);
  }
  .source-eyebrow {
    font-size: 8px;
    margin-bottom: 9px;
  }
  .source-sentence {
    white-space: normal;
    font-size: 11px;
  }
  .source-rule {
    margin-top: 10px;
  }
  .source-card-action {
    font-size: 8px;
    margin-top: 5px;
  }
  .source-card-small {
    left: 0;
    top: 71%;
    width: 28%;
    font-size: 9px;
    padding: 10px 10px 5px;
  }
  .ambient-variety {
    left: 0;
    top: 7%;
    width: 29%;
    padding: 10px;
    font-size: 8px;
    opacity: 0.25;
  }
  .ambient-record > span {
    font-size: 8px;
  }
  .ambient-supplier,
  .ambient-species {
    display: none;
  }
  .node-control {
    transform: translate(14px, -50%);
    padding-left: 5px;
    min-height: 44px;
  }
  .node-control .node-name {
    font-size: 14px;
  }
  .node-control .node-type {
    font-size: 8px;
    margin-top: 3px;
  }
  .inspect-control {
    font-size: 9px;
    gap: 2px;
    padding-inline: 5px;
    transform: none;
    min-height: 32px;
  }
  .inspect-control .icon {
    width: 10px;
    height: 10px;
    flex-basis: 10px;
  }
  .field-caption {
    font-size: 8px;
    bottom: 12px;
    right: 0;
  }
}
@media (min-width: 600px) and (max-width: 900px) {
  .source-sentence {
    font-size: 15px;
  }
  .source-eyebrow {
    font-size: 10px;
  }
  .source-card-main {
    min-height: 155px;
  }
  .source-card-small {
    font-size: 12px;
  }
  .node-control .node-name {
    font-size: 18px;
  }
  .node-control .node-type {
    font-size: 10px;
  }
}

@media (min-width: 901px) {
  .inspect-control[data-product="pear"] {
    transform: translate(-150px, -58px);
  }
  .inspect-control[data-product="plum"] {
    transform: translate(75px, 45px);
  }
}
@media (max-width: 360px) {
  .hero-actions {
    gap: 16px;
  }
  .hero-actions .button {
    font-size: 11px;
    padding-inline: 12px;
    gap: 8px;
    flex-shrink: 0;
  }
  .hero-actions .text-link {
    font-size: 11px;
    white-space: nowrap;
  }
}

#node-controls {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
@media (max-width: 900px) {
  .hero-break {
    display: none;
  }
}
