:root {
  --hub-carbon: #0b0e12;
  --hub-paper: #f3f3ee;
  --hub-white: #ffffff;
  --hub-ink: #101512;
  --hub-body: #58615f;
  --hub-muted: #55615e;
  --hub-line: #cfd4ce;
  --hub-line-soft: #d9ddd7;
  --hub-lime: #9cff5a;
  --hub-cyan: #4dd6ff;
  --hub-violet: #b99cff;
  --hub-max: 1280px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--hub-paper);
}

body.app-hub {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--hub-paper);
  color: var(--hub-ink);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app-hub a {
  color: inherit;
  text-decoration: none;
}

.app-hub :focus-visible {
  outline: 3px solid var(--hub-cyan);
  outline-offset: 4px;
}

.app-hub ::selection {
  background: var(--hub-lime);
  color: var(--hub-carbon);
}

.hub-shell {
  width: min(var(--hub-max), calc(100% - 96px));
  margin-inline: auto;
}

.hub-skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--hub-carbon);
  color: var(--hub-white) !important;
  font: 600 12px/1 "IBM Plex Mono", monospace;
  letter-spacing: .04em;
  transform: translateY(-160%);
  transition: transform .15s ease;
}

.hub-skip:focus {
  transform: translateY(0);
}

.hub-topbar {
  position: relative;
  z-index: 20;
  height: 72px;
  border-bottom: 1px solid var(--hub-ink);
  background: rgba(243, 243, 238, .94);
  backdrop-filter: blur(14px);
}

.hub-topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.hub-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 12px/1 "IBM Plex Mono", monospace;
  letter-spacing: .06em;
}

.hub-brand-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.hub-brand-mark span {
  width: 6px;
  height: 6px;
  background: currentColor;
}

.hub-preview-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hub-line);
  padding: 0 10px;
  color: #46504d;
  font: 600 9px/1 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
}

.hub-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--hub-lime);
  box-shadow: 0 0 0 1px rgba(16, 21, 18, .25);
}

.hub-desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  font: 600 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hub-desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.hub-desktop-nav a:hover {
  border-color: currentColor;
}

.hub-mobile-menu {
  display: none;
  margin-left: auto;
  position: relative;
}

.hub-mobile-menu summary {
  min-width: 88px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--hub-ink);
  padding: 0 11px;
  cursor: pointer;
  list-style: none;
  font: 600 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
}

.hub-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.hub-mobile-menu[open] summary span {
  transform: rotate(45deg);
}

.hub-mobile-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  border: 1px solid var(--hub-ink);
  background: var(--hub-paper);
  box-shadow: 7px 7px 0 var(--hub-carbon);
}

.hub-mobile-menu nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hub-line);
  padding: 0 14px;
  font: 600 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hub-mobile-menu nav a:last-child {
  border-bottom: 0;
}

.hub-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hub-ink);
  padding: 36px 0 66px;
}

.hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(var(--hub-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hub-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, #000, transparent 88%);
}

.hub-hero .hub-shell {
  position: relative;
}

.hub-boundary {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--hub-ink);
  background: var(--hub-carbon);
  color: #d9e0dd;
}

.hub-boundary > span {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--hub-lime);
  color: var(--hub-carbon);
  font: 600 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  white-space: nowrap;
}

.hub-boundary p {
  margin: 0;
  padding: 9px 14px 9px 0;
  font: 500 10px/1.45 "IBM Plex Mono", monospace;
  letter-spacing: .02em;
}

.hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .65fr);
  gap: 80px;
  align-items: end;
  padding-top: 78px;
}

.hub-kicker {
  margin: 0;
  color: var(--hub-muted);
  font: 600 11px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hub-hero h1 {
  max-width: 840px;
  margin: 20px 0 0;
  font-family: "Funnel Sans", sans-serif;
  font-size: clamp(58px, 6.4vw, 92px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .93;
  text-wrap: balance;
}

.hub-hero-note > p {
  margin: 0 0 30px;
  color: var(--hub-body);
  font-size: 16px;
  line-height: 1.55;
}

.hub-hero-note dl {
  margin: 0;
  border-top: 1px solid var(--hub-ink);
}

.hub-hero-note dl div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--hub-line);
}

.hub-hero-note dt,
.hub-hero-note dd {
  margin: 0;
  font: 600 10px/1.3 "IBM Plex Mono", monospace;
  letter-spacing: .05em;
}

.hub-hero-note dt {
  color: var(--hub-muted);
}

.hub-hero-note dd {
  overflow-wrap: anywhere;
}

.hub-surfaces {
  padding: 82px 0 74px;
  background: #e9ebe5;
}

.hub-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 64px;
  align-items: end;
  margin-bottom: 36px;
}

.hub-section-head h2,
.hub-reading-card h2 {
  margin: 12px 0 0;
  font-family: "Funnel Sans", sans-serif;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .98;
}

.hub-section-head > p {
  margin: 0;
  color: var(--hub-body);
  font-size: 15px;
  line-height: 1.55;
}

.hub-surface-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.hub-surface-grid > li {
  min-width: 0;
  display: flex;
}

.hub-surface-card {
  min-width: 0;
  min-height: 370px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hub-ink);
  transition: transform .16s ease, box-shadow .16s ease;
}

.hub-surface-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 5px 5px 0 var(--hub-carbon);
}

.hub-surface-card:focus-visible {
  outline-color: var(--hub-carbon);
}

.hub-surface-carbon {
  background: var(--hub-carbon);
  color: #f6f8f2 !important;
}

.hub-surface-paper {
  background: var(--hub-paper);
}

.hub-surface-lime {
  background: var(--hub-lime);
}

.hub-surface-cyan {
  background: var(--hub-cyan);
}

.hub-surface-violet {
  background: var(--hub-violet);
}

.hub-card-head {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  padding: 0 14px;
  font-family: "IBM Plex Mono", monospace;
}

.hub-card-index {
  font-size: 12px;
  font-weight: 600;
}

.hub-card-state {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .07em;
  text-align: right;
}

.hub-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 21px 16px;
}

.hub-card-label {
  min-height: 34px;
  font: 600 9px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
}

.hub-card-body strong {
  display: block;
  margin-top: 28px;
  font-family: "Funnel Sans", sans-serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.02;
}

.hub-card-body > span:last-child {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.48;
  opacity: .78;
}

.hub-card-foot {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid currentColor;
  padding: 0 14px;
  font: 600 9px/1.25 "IBM Plex Mono", monospace;
  letter-spacing: .05em;
}

.hub-card-foot > span:last-child {
  font-size: 16px;
}

.hub-route-note {
  margin: 22px 0 0;
  color: #4e5956;
  font: 500 10px/1.6 "IBM Plex Mono", monospace;
}

.hub-route-note span {
  color: var(--hub-ink);
}

.hub-contract {
  border-top: 1px solid var(--hub-ink);
  padding: 72px 0 84px;
}

.hub-contract-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hub-reading-card,
.hub-truth-card {
  min-width: 0;
  min-height: 410px;
  padding: 34px;
}

.hub-reading-card {
  border: 1px solid var(--hub-line-soft);
  background: var(--hub-white);
}

.hub-reading-card h2 {
  max-width: 590px;
  font-size: clamp(38px, 3.6vw, 52px);
}

.hub-reading-card > p:not(.hub-kicker) {
  max-width: 610px;
  margin: 23px 0 0;
  color: var(--hub-body);
  font-size: 15px;
  line-height: 1.58;
}

.hub-type-sample {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--hub-line);
}

.hub-type-sample span {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hub-line);
  color: var(--hub-muted);
  font: 500 10px/1.3 "IBM Plex Mono", monospace;
  letter-spacing: .04em;
}

.hub-truth-card {
  display: flex;
  flex-direction: column;
  background: var(--hub-carbon);
  color: #d9e0dd;
}

.hub-truth-card .hub-kicker {
  color: var(--hub-lime);
}

.hub-truth-card ul {
  margin: 31px 0 36px;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
}

.hub-truth-card li {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid rgba(217, 224, 221, .18);
  font-size: 14px;
  line-height: 1.4;
}

.hub-truth-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--hub-cyan);
}

.hub-truth-status {
  min-height: 46px;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(217, 224, 221, .25);
  padding: 0 13px;
  font: 600 9px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: .07em;
}

.hub-footer {
  border-top: 1px solid rgba(217, 224, 221, .2);
  padding: 24px 0;
  background: var(--hub-carbon);
  color: #d9e0dd;
}

.hub-footer .hub-shell {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 24px;
}

.hub-footer p,
.hub-footer a {
  margin: 0;
  font: 500 9px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: .07em;
}

.hub-footer p:nth-child(2) {
  color: var(--hub-lime);
}

.hub-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1080px) {
  .hub-shell {
    width: min(var(--hub-max), calc(100% - 48px));
  }

  .hub-hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 48px;
  }

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

  .hub-surface-grid > li:last-child {
    grid-column: 1 / -1;
  }

  .hub-surface-grid > li:last-child .hub-surface-card {
    min-height: 270px;
  }
}

@media (max-width: 820px) {
  .hub-hero-grid,
  .hub-section-head,
  .hub-contract-grid {
    grid-template-columns: 1fr;
  }

  .hub-hero-grid {
    gap: 46px;
    padding-top: 60px;
  }

  .hub-hero-note {
    max-width: 560px;
  }

  .hub-section-head {
    gap: 20px;
  }

  .hub-section-head > p {
    max-width: 600px;
  }

  .hub-contract-grid {
    gap: 16px;
  }
}

@media (max-width: 700px) {
  .hub-shell {
    width: min(var(--hub-max), calc(100% - 28px));
  }

  .hub-topbar {
    height: 64px;
  }

  .hub-preview-badge,
  .hub-desktop-nav {
    display: none;
  }

  .hub-mobile-menu {
    display: block;
  }

  .hub-hero {
    padding: 22px 0 50px;
  }

  .hub-hero::before {
    background-size: 36px 36px;
  }

  .hub-boundary {
    display: block;
  }

  .hub-boundary > span {
    min-height: 34px;
  }

  .hub-boundary p {
    padding: 10px 12px;
  }

  .hub-hero-grid {
    gap: 38px;
    padding-top: 46px;
  }

  .hub-hero h1 {
    margin-top: 16px;
    font-size: clamp(46px, 14.7vw, 64px);
    line-height: .92;
  }

  .hub-hero-note > p {
    font-size: 15px;
  }

  .hub-surfaces {
    padding: 58px 0 52px;
  }

  .hub-section-head {
    margin-bottom: 28px;
  }

  .hub-section-head h2 {
    font-size: 43px;
  }

  .hub-surface-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hub-surface-grid > li:last-child {
    grid-column: auto;
  }

  .hub-surface-card,
  .hub-surface-grid > li:last-child .hub-surface-card {
    min-height: 312px;
  }

  .hub-card-body strong {
    max-width: 300px;
    font-size: 29px;
  }

  .hub-card-body > span:last-child {
    max-width: 330px;
  }

  .hub-route-note {
    margin-top: 18px;
  }

  .hub-contract {
    padding: 52px 0 58px;
  }

  .hub-reading-card,
  .hub-truth-card {
    min-height: auto;
    padding: 25px 20px;
  }

  .hub-reading-card h2 {
    font-size: 39px;
  }

  .hub-truth-status {
    margin-top: 8px;
  }

  .hub-footer .hub-shell {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .hub-footer a {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
