.hero {
  position: relative;
  height: var(--hero-height);
  isolation: isolate;
  overflow: hidden;
  overflow-x: clip;
  border-bottom: var(--border-heavy) solid var(--color-border);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, var(--color-bg) 0%, var(--color-bg) 37%, var(--color-clear) 60%),
    linear-gradient(180deg, var(--color-clear) 72%, var(--color-bg-deep) 100%);
  content: "";
}

.hero::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40.8%;
  z-index: -2;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-accent) 0,
    var(--color-accent) 12px,
    var(--color-clear) 12px,
    var(--color-clear) 23px
  );
  content: "";
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 8;
  width: 54%;
  padding: 50px 0 0 var(--gutter);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  margin-bottom: 21px;
  padding: 8px 11px;
  overflow: hidden;
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-panel);
  box-shadow: var(--shadow-small);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow-status {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  background: var(--color-success);
  box-shadow: 0 0 0 3px var(--color-panel-dark);
}

.hero-title {
  width: 790px;
  max-width: none;
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(66px, 5.5vw, 84px);
  font-weight: 950;
  letter-spacing: -0.068em;
  line-height: 0.91;
  text-shadow:
    4px 4px 0 var(--color-bg),
    7px 7px 0 var(--color-shadow);
}

.hero-title .title-accent {
  position: relative;
  color: var(--color-accent);
  -webkit-text-stroke: var(--border-fine) var(--color-accent-dark);
}

.hero-title .title-accent::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 4px;
  height: 5px;
  background: var(--color-accent);
  box-shadow: 4px 4px 0 var(--color-accent-dark);
  content: "";
}

.hero-summary {
  width: 540px;
  max-width: 100%;
  margin: 28px 0 0;
  padding: 13px 16px 13px 18px;
  border-left: 6px solid var(--color-accent);
  background: var(--color-bg-deep);
  box-shadow: var(--shadow-small);
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 23px;
  pointer-events: auto;
}

.tag-row {
  display: flex;
  width: 570px;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.bento-facts {
  position: absolute;
  bottom: 30px;
  left: var(--gutter);
  z-index: 9;
  display: grid;
  grid-template-columns: 202px 174px 174px;
  gap: 10px;
  pointer-events: auto;
}

.fact-card {
  min-width: 0;
  min-height: 87px;
  padding: 12px 13px;
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-panel);
  box-shadow: var(--shadow-small);
  transition: transform var(--motion-fast) ease;
}

.fact-card:hover {
  transform: translateY(-4px);
}

.fact-card:nth-child(2) {
  background: var(--color-panel-2);
}

.fact-card:nth-child(3) {
  background: var(--color-panel-dark);
}

.fact-label {
  display: block;
  margin-bottom: 9px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fact-main {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
}

.fact-main svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.fact-sub {
  display: block;
  margin-top: 6px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.rack-wrap {
  position: absolute;
  top: 25px;
  right: 27px;
  z-index: 2;
  width: 785px;
  height: 690px;
  filter: drop-shadow(15px 17px 0 var(--color-shadow));
}

.rack {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: var(--border-heavy) solid var(--color-border);
  background:
    linear-gradient(145deg, var(--color-sheen), var(--color-clear) 23%),
    repeating-linear-gradient(
      90deg,
      var(--color-clear) 0,
      var(--color-clear) 74px,
      var(--color-grid) 74px,
      var(--color-grid) 75px
    ),
    var(--color-panel);
}

.rack-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 58px;
  align-items: center;
  padding: 0 21px;
  border-bottom: var(--border-heavy) solid var(--color-border);
  background: var(--color-panel-dark);
}

.rack-id {
  display: grid;
  gap: 3px;
}

.rack-id strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rack-id span {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.rack-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--color-success);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.rack-state::before {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--color-success);
  box-shadow: 0 0 0 3px var(--color-panel);
  content: "";
}

.scale-top {
  position: absolute;
  top: 74px;
  right: 28px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

.scale-line {
  position: absolute;
  top: 91px;
  right: 29px;
  left: 29px;
  height: 13px;
  border-top: var(--border-fine) solid var(--color-border);
  background: repeating-linear-gradient(
    90deg,
    var(--color-border) 0,
    var(--color-border) var(--border-fine),
    var(--color-clear) var(--border-fine),
    var(--color-clear) 24px
  );
}

.slot-bank {
  position: absolute;
  top: 116px;
  right: 28px;
  left: 28px;
  height: 192px;
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-bg-deep);
  box-shadow: inset 9px 9px 0 var(--color-shadow);
}

.slot-label {
  position: absolute;
  top: 9px;
  left: 12px;
  color: var(--color-border);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.cartridges {
  position: absolute;
  right: 14px;
  bottom: 15px;
  left: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  align-items: end;
}

.cartridge {
  position: relative;
  height: 131px;
  padding: 15px 9px 10px;
  border: var(--border-heavy) solid var(--color-border);
  background:
    linear-gradient(155deg, var(--color-sheen), var(--color-clear) 35%),
    var(--color-panel-2);
  box-shadow: 4px 4px 0 var(--color-shadow);
  animation: cartridge-seat var(--motion-slow) cubic-bezier(.2, .75, .2, 1) both;
}

.cartridge:nth-child(2) {
  animation-delay: 90ms;
}

.cartridge:nth-child(3) {
  animation-delay: 180ms;
}

.cartridge:nth-child(4) {
  animation-delay: 270ms;
}

.cartridge:nth-child(5) {
  animation-delay: 360ms;
}

.cartridge.selected {
  border-color: var(--color-accent);
  background:
    linear-gradient(155deg, var(--color-accent-glow), var(--color-clear) 43%),
    var(--color-panel-2);
}

.slot-no {
  position: absolute;
  top: -14px;
  left: 7px;
  padding: 2px 5px;
  background: var(--color-bg-deep);
  color: var(--color-border);
  font-family: var(--font-mono);
  font-size: 8px;
}

.platform-mark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding-bottom: 9px;
  border-bottom: var(--border-fine) solid var(--color-border-soft);
}

.platform-name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-status {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--color-success);
}

.client-name {
  display: block;
  height: 29px;
  margin-top: 9px;
  overflow: hidden;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.35;
}

.version-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 7px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
}

.file-type {
  padding: 2px 4px;
  border: var(--border-fine) solid var(--color-border);
  color: var(--color-text-muted);
}

.lock-tab {
  position: absolute;
  right: 8px;
  bottom: -12px;
  left: 8px;
  height: 13px;
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-panel-2);
}

.selected .lock-tab {
  border-color: var(--color-accent-dark);
  background: var(--color-accent);
}

.download-arrow {
  position: absolute;
  top: 46px;
  right: -11px;
  display: grid;
  width: 25px;
  height: 36px;
  place-items: center;
  border: var(--border-heavy) solid var(--color-accent-dark);
  background: var(--color-accent);
  box-shadow: 3px 3px 0 var(--color-shadow);
  color: var(--color-bg-deep);
}

.download-arrow svg {
  width: 15px;
  height: 20px;
}

.wiring {
  position: absolute;
  top: 309px;
  right: 35px;
  left: 35px;
  height: 225px;
  color: var(--color-border);
}

.wire-base {
  fill: none;
  stroke: var(--color-border-soft);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 8;
}

.wire-trace {
  fill: none;
  stroke: var(--color-border);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.wire-active {
  fill: none;
  stroke: var(--color-accent);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 4;
  opacity: 0.28;
  animation: wire-pulse 2.2s ease-in-out infinite;
}

.wire-node {
  fill: var(--color-panel-dark);
  stroke: var(--color-border);
  stroke-width: 3;
}

.wire-node-active {
  fill: var(--color-accent);
  stroke: var(--color-accent-dark);
  stroke-width: 3;
  animation: node-pulse 2.2s ease-in-out infinite;
}

.core {
  position: absolute;
  right: 164px;
  bottom: 39px;
  width: 455px;
  height: 151px;
  border: var(--border-heavy) solid var(--color-text);
  background: var(--color-bg-deep);
  box-shadow: 8px 8px 0 var(--color-shadow);
}

.core-side {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: -17px;
  width: 17px;
  border: var(--border-heavy) solid var(--color-border);
  border-right: 0;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-accent) 0,
    var(--color-accent) 8px,
    var(--color-panel-dark) 8px,
    var(--color-panel-dark) 16px
  );
}

.core-head {
  display: flex;
  height: 47px;
  align-items: center;
  padding: 0 15px;
  border-bottom: var(--border-heavy) solid var(--color-border);
  background: var(--color-panel);
}

.core-head strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.core-badge {
  margin-left: auto;
  padding: 4px 7px;
  border: var(--border-fine) solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 8px;
}

.rule-code {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  column-gap: 10px;
  padding: 11px 14px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.75;
}

.code-no {
  color: var(--color-border-soft);
  text-align: right;
}

.code-accent {
  color: var(--color-accent);
}

.code-success {
  color: var(--color-success);
}

.bolt {
  position: absolute;
  width: 18px;
  height: 18px;
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-bg-deep);
  box-shadow: inset 0 0 0 3px var(--color-panel-2);
}

.bolt::after {
  position: absolute;
  top: 5px;
  right: 2px;
  left: 2px;
  border-top: var(--border-heavy) solid var(--color-border);
  content: "";
  transform: rotate(-24deg);
}

.bolt-a {
  top: 76px;
  left: 7px;
}

.bolt-b {
  top: 76px;
  right: 7px;
}

.bolt-c {
  right: 7px;
  bottom: 10px;
}

.bolt-d {
  bottom: 10px;
  left: 7px;
}

.component-tabs {
  min-width: 0;
}

.tab-list {
  display: flex;
  max-width: 100%;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-bg-deep);
  box-shadow: var(--shadow-small);
  scrollbar-width: thin;
}

.tab-list[role="tablist"] {
  align-items: stretch;
}

.tab-button {
  position: relative;
  min-height: 46px;
  flex: 0 0 auto;
  padding: 8px 16px;
  border: var(--border-heavy) solid var(--color-border-soft);
  background: var(--color-panel);
  color: var(--color-text-muted);
  font-weight: 800;
}

.tab-button:hover,
.tab-button[aria-selected="true"],
.tab-button.active {
  border-color: var(--color-accent);
  background: var(--color-panel-2);
  color: var(--color-text);
}

.tab-button[aria-selected="true"]::after,
.tab-button.active::after {
  position: absolute;
  right: 7px;
  bottom: -7px;
  left: 7px;
  height: 7px;
  border: var(--border-heavy) solid var(--color-accent-dark);
  background: var(--color-accent);
  content: "";
}

.tab-panel {
  min-width: 0;
  margin-top: 16px;
  padding: clamp(20px, 4vw, 38px);
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-panel);
  box-shadow: var(--shadow-hard);
}

.feature-browser {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.feature-browser .tab-list {
  flex-direction: column;
  padding: 12px;
  overflow: visible;
}

.feature-browser .tab-button {
  width: 100%;
  min-height: 62px;
  text-align: left;
}

.feature-browser .tab-button::before {
  margin-right: 11px;
  color: var(--color-border);
  content: attr(data-slot);
  font-family: var(--font-mono);
  font-size: 10px;
}

.feature-browser .tab-panel {
  min-height: 360px;
  margin-top: 0;
}

.toc-tabs {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  max-width: 100%;
  gap: 7px;
  margin-bottom: 34px;
  padding: 9px;
  overflow-x: auto;
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-bg-deep);
  box-shadow: var(--shadow-small);
}

.toc-tabs a {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: var(--border-fine) solid var(--color-border-soft);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.toc-tabs a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-panel-dark);
  box-shadow: var(--shadow-small);
}

.faq-item summary {
  position: relative;
  min-height: 58px;
  padding: 16px 54px 16px 18px;
  cursor: pointer;
  color: var(--color-text);
  font-weight: 850;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 14px;
  right: 15px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-panel);
  color: var(--color-accent);
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] summary {
  border-bottom: var(--border-heavy) solid var(--color-border);
  background: var(--color-panel);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 18px;
  color: var(--color-text-muted);
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.glossary-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-panel);
  box-shadow: var(--shadow-small);
}

.term-code {
  display: grid;
  place-items: center;
  border-right: var(--border-heavy) solid var(--color-border);
  background: var(--color-accent);
  color: var(--color-bg-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  writing-mode: vertical-rl;
}

.term-body {
  min-width: 0;
  padding: 20px;
}

.term-body h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.term-body p {
  margin: 0;
  color: var(--color-text-muted);
}

.client-card {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 22px;
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-panel);
  box-shadow: var(--shadow-small);
}

.client-card.featured {
  border-color: var(--color-accent);
  box-shadow: 8px 8px 0 var(--color-accent-dark);
}

.client-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 14px;
}

.client-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.client-title {
  min-width: 0;
}

.client-title h3 {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.client-meta {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-actions .button {
  min-height: 45px;
}

.badge-primary,
.badge-recommended {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-bg-deep);
}

.badge-maintained {
  border-color: var(--color-success);
  color: var(--color-success);
}

.badge-archived {
  border-color: var(--color-error);
  color: var(--color-error);
}

.badge-warning {
  border-color: var(--color-warn);
  color: var(--color-warn);
}

[data-cdnver][hidden] {
  display: none;
}

.post-card {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 22px;
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-panel-dark);
  box-shadow: var(--shadow-small);
  transition:
    transform var(--motion-fast) ease,
    background-color var(--motion-fast) ease;
}

.post-card:hover {
  transform: translateY(-5px);
  background: var(--color-panel);
}

.post-card-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.post-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
}

.post-card p {
  margin: 0;
  color: var(--color-text-muted);
}

.post-card-link {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.callout {
  position: relative;
  margin: 24px 0;
  padding: 18px 20px 18px 28px;
  overflow-x: clip;
  border: var(--border-heavy) solid var(--color-border);
  border-left: 9px solid var(--color-accent);
  background: var(--color-panel-dark);
  box-shadow: var(--shadow-small);
  color: var(--color-text-muted);
}

.callout::before {
  position: absolute;
  top: 7px;
  left: 5px;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  content: "";
}

.callout-success {
  border-left-color: var(--color-success);
}

.callout-warning {
  border-left-color: var(--color-warn);
}

.callout-error {
  border-left-color: var(--color-error);
}

.callout-title {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text);
  font-weight: 850;
}

.download-guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 52px;
  padding: 24px;
  border: var(--border-heavy) solid var(--color-accent);
  background: var(--color-panel);
  box-shadow: 9px 9px 0 var(--color-accent-dark);
}

.download-guide-card h2,
.download-guide-card h3 {
  margin-bottom: 8px;
}

.download-guide-card p {
  margin: 0;
  color: var(--color-text-muted);
}

.download-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dl-fab {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 70;
  display: inline-flex;
  max-width: calc(100vw - 28px);
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 9px 16px 9px 10px;
  border: var(--border-heavy) solid var(--color-text);
  background: var(--color-accent);
  box-shadow: var(--shadow-hard);
  color: var(--color-bg-deep);
  font-size: 13px;
  font-weight: 900;
}

.dl-fab:hover {
  transform: translate(-2px, -2px);
}

.dl-fab-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;
  border: var(--border-heavy) solid var(--color-bg-deep);
}

.dl-fab svg {
  width: 19px;
  height: 19px;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.swatch {
  min-width: 0;
  border: var(--border-heavy) solid var(--color-border);
  background: var(--color-panel-dark);
  box-shadow: var(--shadow-small);
}

.swatch-color {
  height: 86px;
  border-bottom: var(--border-heavy) solid var(--color-border);
}

.swatch-copy {
  padding: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.swatch-bg .swatch-color {
  background: var(--color-bg);
}

.swatch-panel .swatch-color {
  background: var(--color-panel);
}

.swatch-panel-2 .swatch-color {
  background: var(--color-panel-2);
}

.swatch-border .swatch-color {
  background: var(--color-border);
}

.swatch-accent .swatch-color {
  background: var(--color-accent);
}

.swatch-accent-dark .swatch-color {
  background: var(--color-accent-dark);
}

.swatch-text .swatch-color {
  background: var(--color-text);
}

.swatch-muted .swatch-color {
  background: var(--color-text-muted);
}

.swatch-success .swatch-color {
  background: var(--color-success);
}

.swatch-warn .swatch-color {
  background: var(--color-warn);
}

.swatch-error .swatch-color {
  background: var(--color-error);
}

.preview-label {
  display: block;
  margin-bottom: 12px;
  color: var(--color-border);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.type-display {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.type-mono {
  font-family: var(--font-mono);
}

@keyframes cartridge-seat {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wire-pulse {
  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.9;
  }
}

@keyframes node-pulse {
  0%,
  100% {
    opacity: 0.65;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .rack-wrap {
    right: -210px;
  }

  .hero-content {
    width: 65%;
  }
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 1080px;
  }

  .hero-content {
    width: 100%;
    padding: 42px var(--gutter) 0;
  }

  .hero-title {
    width: min(790px, 100%);
  }

  .rack-wrap {
    top: 510px;
    right: 50%;
    width: 740px;
    transform: translateX(50%) scale(0.88);
    transform-origin: top center;
  }

  .bento-facts {
    right: var(--gutter);
    bottom: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-browser {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-browser .tab-list {
    flex-direction: row;
    overflow-x: auto;
  }

  .feature-browser .tab-button {
    width: auto;
    min-width: 190px;
  }

  .palette-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 920px;
  }

  .hero::after {
    left: auto;
    right: 12px;
  }

  .hero-content {
    padding-top: 28px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(47px, 14vw, 62px);
    letter-spacing: -0.06em;
  }

  .hero-summary {
    margin-top: 23px;
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tag-row {
    margin-top: 16px;
  }

  .rack-wrap {
    top: 550px;
    width: 740px;
    transform: translateX(50%) scale(0.47);
  }

  .bento-facts {
    bottom: 18px;
    grid-template-columns: minmax(0, 1fr);
  }

  .fact-card {
    min-height: 58px;
    padding: 8px 10px;
  }

  .fact-card:nth-child(2),
  .fact-card:nth-child(3) {
    display: none;
  }

  .fact-label {
    margin-bottom: 4px;
  }

  .feature-browser .tab-list {
    margin-inline: 0;
  }

  .feature-browser .tab-panel {
    min-height: 0;
  }

  .glossary-card {
    grid-template-columns: 43px minmax(0, 1fr);
  }

  .download-guide-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .download-guide-actions .button {
    width: 100%;
  }

  .palette-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dl-fab {
    right: 14px;
    bottom: 14px;
  }
}