*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #090a0d;
  --panel: #101217;
  --panel-2: #15181e;
  --panel-3: #1b1f26;
  --paper: #edf0f4;
  --slate: #929bad;
  --dim: #5f6878;
  --line: rgba(237, 240, 244, .09);
  --line-strong: rgba(237, 240, 244, .18);
  --cyan: #4df0ff;
  --lime: #c6ff3d;
  --pink: #ff3ea5;
  --orange: #ff8a3d;
  --red: #ff5e68;
  --violet: #9a84ff;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --nav: 60px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  line-height: 1.55;
}

* {
  letter-spacing: 0;
  scrollbar-width: thin;
  scrollbar-color: #377f88 var(--panel);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--panel);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid var(--panel);
  border-radius: 6px;
  background: #377f88;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

code, pre {
  font-family: var(--mono);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.reading-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
}

.nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(9, 10, 13, .97);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.nav__mark {
  width: 25px;
  height: 25px;
}

.nav__brand span {
  font: 600 1rem var(--display);
}

.nav__brand em {
  color: var(--cyan);
  font-style: normal;
}

.nav__links {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 25px;
}

.nav__links a {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--slate);
  font: .66rem var(--mono);
  text-transform: uppercase;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--paper);
}

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--cyan);
}

.nav__github {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 0 14px;
  border: 1px solid var(--lime);
  border-radius: 5px;
  background: var(--lime);
  color: #08110a;
  font: 700 .65rem var(--mono);
  text-transform: uppercase;
}

main {
  padding-top: var(--nav);
}

.section-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font: 600 .66rem var(--mono);
  text-transform: uppercase;
}

.section-code::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  box-shadow: 0 0 13px currentColor;
}

.roadmap-hero {
  min-height: calc(100vh - var(--nav));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: end;
  gap: 80px;
  padding: clamp(90px, 11vh, 150px) max(5vw, 32px) clamp(86px, 10vh, 130px);
  border-bottom: 1px solid var(--line-strong);
  background: #0b0d11;
}

.roadmap-hero__copy {
  max-width: 920px;
}

.roadmap-hero h1 {
  margin-top: 28px;
  font: 700 clamp(3.3rem, 7.2vw, 7.3rem)/.91 var(--display);
}

.roadmap-hero h1 span {
  color: var(--slate);
}

.roadmap-hero__copy > p {
  max-width: 790px;
  margin-top: 34px;
  color: #b4bdcc;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.75;
}

.roadmap-hero__telemetry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: end;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.roadmap-hero__telemetry > div {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(9, 10, 13, .82);
}

.roadmap-hero__telemetry span {
  color: var(--dim);
  font: .57rem var(--mono);
  text-transform: uppercase;
}

.roadmap-hero__telemetry strong {
  margin-top: 7px;
  font: 600 1.34rem var(--display);
}

.roadmap-hero__telemetry > p {
  grid-column: 1 / -1;
  padding: 20px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: #101217;
  color: var(--slate);
  font: .71rem/1.65 var(--mono);
}

.trajectory,
.control-inventory,
.release-gates {
  padding: 100px max(5vw, 32px);
}

.section-head {
  max-width: 1500px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin: 0 auto 64px;
}

.section-head h2 {
  max-width: 850px;
  margin-top: 15px;
  font: 600 clamp(2rem, 4.2vw, 4.25rem)/1.02 var(--display);
}

.section-head > p {
  max-width: 550px;
  color: var(--slate);
  font-size: .96rem;
  line-height: 1.72;
}

.roadmap-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px 18px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font: .61rem var(--mono);
  text-transform: uppercase;
}

.legend-item i {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.legend-item--done { color: var(--lime); }
.legend-item--done i { background: var(--lime); }
.legend-item--active { color: var(--cyan); }
.legend-item--active i { background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.legend-item--planned { color: var(--slate); }
.legend-item--rejected { color: var(--red); }
.legend-item--rejected i { border-radius: 0; transform: rotate(45deg); }

.roadmap-map {
  position: relative;
  max-width: 1500px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 74px 58px;
  margin: 0 auto;
}

.roadmap-map__connections {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.roadmap-connection {
  fill: none;
  stroke: #39414c;
  stroke-width: 1.5;
  stroke-dasharray: 7 8;
  vector-effect: non-scaling-stroke;
}

.roadmap-connection--done {
  stroke: #839b3c;
}

.roadmap-connection--active {
  stroke: #3b99a4;
  animation: route-flow 1.1s linear infinite;
}

@keyframes route-flow {
  to { stroke-dashoffset: -30; }
}

.roadmap-node {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 330px;
  display: grid;
  grid-template-rows: 92px 1fr;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #0e1014;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.roadmap-node:hover {
  transform: translateY(-4px);
  border-color: rgba(237, 240, 244, .32);
  background: #11141a;
}

.roadmap-node[data-slot="01"] { grid-column: 1; grid-row: 1; }
.roadmap-node[data-slot="02"] { grid-column: 2; grid-row: 1; }
.roadmap-node[data-slot="03"] { grid-column: 3; grid-row: 1; }
.roadmap-node[data-slot="04"] { grid-column: 3; grid-row: 2; }
.roadmap-node[data-slot="05"] { grid-column: 2; grid-row: 2; }
.roadmap-node[data-slot="06"] { grid-column: 1; grid-row: 2; }
.roadmap-node[data-slot="07"] { grid-column: 1; grid-row: 3; }
.roadmap-node[data-slot="08"] { grid-column: 2; grid-row: 3; }
.roadmap-node[data-slot="09"] { grid-column: 3; grid-row: 3; }
.roadmap-node[data-slot="10"] { grid-column: 3; grid-row: 4; }
.roadmap-node[data-slot="11"] { grid-column: 2; grid-row: 4; }
.roadmap-node[data-slot="12"] { grid-column: 1; grid-row: 4; }

.roadmap-node--done { border-top-color: rgba(198, 255, 61, .55); }
.roadmap-node--active { border-top-color: rgba(77, 240, 255, .7); }
.roadmap-node--surface { border-color: rgba(255, 62, 165, .34); }

.roadmap-node__orb {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--slate);
  border-radius: 50%;
  background: var(--ink);
  color: var(--slate);
}

.roadmap-node__orb::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid transparent;
  border-radius: inherit;
}

.roadmap-node--done .roadmap-node__orb {
  border-color: var(--lime);
  color: var(--lime);
}

.roadmap-node--done .roadmap-node__orb::after {
  border-color: rgba(198, 255, 61, .18);
}

.roadmap-node--active .roadmap-node__orb {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 22px rgba(77, 240, 255, .1);
}

.roadmap-node--active .roadmap-node__orb::after {
  border-color: rgba(77, 240, 255, .2);
}

.roadmap-node--surface .roadmap-node__orb {
  border-color: var(--pink);
  color: var(--pink);
}

.roadmap-node--surface .roadmap-node__orb::after {
  border-color: rgba(255, 62, 165, .3);
  border-top-style: dashed;
  animation: orbit-spin 7s linear infinite;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.roadmap-node__orb small {
  position: absolute;
  top: 50%;
  left: calc(100% + 15px);
  transform: translateY(-50%);
  color: var(--dim);
  font: .57rem var(--mono);
}

.orb-check {
  width: 22px;
  height: 12px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(-3px) rotate(-45deg);
}

.orb-pulse {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 8px rgba(77, 240, 255, .08), 0 0 18px currentColor;
  animation: node-pulse 1.8s ease-in-out infinite;
}

@keyframes node-pulse {
  50% { opacity: .42; transform: scale(.75); }
}

.orb-index {
  font: 600 .75rem var(--mono);
}

.orb-axis {
  position: relative;
  width: 34px;
  height: 34px;
  display: block;
}

.orb-axis i {
  position: absolute;
  display: block;
  background: currentColor;
  transform-origin: center;
}

.orb-axis--2d i:first-child {
  top: 16px;
  left: 2px;
  width: 30px;
  height: 1px;
}

.orb-axis--2d i:last-child {
  top: 2px;
  left: 16px;
  width: 1px;
  height: 30px;
}

.orb-axis--3d i:first-child {
  top: 16px;
  left: 2px;
  width: 30px;
  height: 1px;
}

.orb-axis--3d i:nth-child(2) {
  top: 2px;
  left: 16px;
  width: 1px;
  height: 30px;
}

.orb-axis--3d i:last-child {
  top: 16px;
  left: 2px;
  width: 30px;
  height: 1px;
  transform: rotate(-38deg);
}

.roadmap-node__body {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.roadmap-node__state {
  color: var(--dim);
  font: 600 .57rem var(--mono);
  text-transform: uppercase;
}

.roadmap-node--done .roadmap-node__state { color: var(--lime); }
.roadmap-node--active .roadmap-node__state { color: var(--cyan); }
.roadmap-node--surface .roadmap-node__state { color: var(--pink); }

.roadmap-node h3 {
  margin-top: 7px;
  font: 600 1.22rem/1.2 var(--display);
}

.roadmap-node p {
  margin-top: 12px;
  color: var(--slate);
  font-size: .84rem;
  line-height: 1.65;
}

.roadmap-node code {
  color: #bdc5d2;
  font-size: .82em;
}

.node-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.node-tags span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #727c8e;
  font: .52rem var(--mono);
}

.surface-contract {
  padding: 100px max(5vw, 32px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: #e9edf0;
  color: #101218;
}

.section-head--light .section-code {
  color: #087f8c;
}

.section-head--light > p {
  color: #555e6d;
}

.surface-stage,
.render-modes,
.api-caveat {
  max-width: 1500px;
  margin-right: auto;
  margin-left: auto;
}

.surface-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
  align-items: stretch;
}

.surface-spec {
  padding: 38px;
  border: 1px solid rgba(16, 18, 24, .22);
  background: #f4f6f7;
}

.surface-spec header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(16, 18, 24, .15);
}

.surface-spec small {
  color: #737b87;
  font: .58rem var(--mono);
  text-transform: uppercase;
}

.surface-spec h3 {
  margin-top: 5px;
  font: 600 clamp(1.55rem, 3vw, 2.4rem) var(--display);
}

.surface-spec > p {
  margin-top: 24px;
  color: #505866;
  line-height: 1.75;
}

.surface-spec ul {
  display: grid;
  gap: 11px;
  margin-top: 24px;
  list-style: none;
}

.surface-spec li {
  position: relative;
  padding-left: 22px;
  color: #333a46;
  font-size: .88rem;
}

.surface-spec li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 1px;
  width: 8px;
  height: 1px;
  background: #087f8c;
}

.surface-glyph {
  position: relative;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  display: block;
  border: 1px solid #11141a;
  border-radius: 50%;
  color: #087f8c;
}

.surface-glyph i {
  position: absolute;
  display: block;
  background: currentColor;
}

.surface-glyph--2d i:first-child {
  top: 34px;
  left: 15px;
  width: 40px;
  height: 1px;
}

.surface-glyph--2d i:last-child {
  top: 15px;
  left: 34px;
  width: 1px;
  height: 40px;
}

.surface-glyph--3d i:first-child {
  top: 34px;
  left: 15px;
  width: 40px;
  height: 1px;
}

.surface-glyph--3d i:nth-child(2) {
  top: 15px;
  left: 34px;
  width: 1px;
  height: 40px;
}

.surface-glyph--3d i:last-child {
  top: 34px;
  left: 15px;
  width: 40px;
  height: 1px;
  transform: rotate(-38deg);
}

.surface-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.surface-bridge span {
  width: 13px;
  height: 13px;
  border: 1px solid #101218;
  border-radius: 50%;
}

.surface-bridge i {
  width: 50px;
  height: 1px;
  background: rgba(16, 18, 24, .35);
}

.render-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 28px;
  border: 1px solid #262b34;
  background: #262b34;
}

.render-modes article {
  min-width: 0;
  padding: 34px;
  background: #11141a;
  color: var(--paper);
}

.render-modes article:last-child {
  background: #18141a;
}

.mode-index {
  color: var(--cyan);
  font: .59rem var(--mono);
}

.render-mode--raw .mode-index {
  color: var(--pink);
}

.render-modes h3 {
  margin-top: 7px;
  font: 600 1.3rem var(--display);
}

.render-modes p {
  max-width: 660px;
  margin-top: 12px;
  color: var(--slate);
  font-size: .87rem;
  line-height: 1.7;
}

.render-modes pre {
  min-height: 170px;
  margin-top: 24px;
  overflow: auto;
  padding: 21px;
  border: 1px solid rgba(237, 240, 244, .14);
  border-radius: 5px;
  background: #090a0d;
  color: #d9dee6;
  font-size: .75rem;
  line-height: 1.75;
}

.tok-name { color: var(--lime); }
.tok-prop { color: var(--pink); }
.tok-type { color: var(--cyan); }
.tok-warn { color: var(--orange); }

.api-caveat {
  padding: 16px 20px;
  border-right: 1px solid rgba(16, 18, 24, .2);
  border-bottom: 1px solid rgba(16, 18, 24, .2);
  border-left: 1px solid rgba(16, 18, 24, .2);
  color: #5f6875;
  font: .64rem/1.6 var(--mono);
}

.control-inventory {
  background: #0b0d11;
}

.inventory-toolbar {
  max-width: 1500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 30px;
  padding: 14px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.inventory-toolbar > a {
  color: var(--cyan);
  font: .63rem var(--mono);
}

.inventory-toolbar > a:hover {
  color: var(--paper);
}

.inventory-filters {
  display: inline-flex;
  gap: 4px;
}

.inventory-filters button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font: .58rem var(--mono);
  text-transform: uppercase;
}

.inventory-filters button:hover {
  color: var(--paper);
}

.inventory-filters button.is-active {
  border-color: var(--line-strong);
  background: var(--panel-2);
  color: var(--paper);
}

.inventory-grid {
  max-width: 1500px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  background: var(--line-strong);
}

.control-family {
  min-width: 0;
  padding: clamp(26px, 3.3vw, 46px);
  background: #0e1014;
  transition: opacity .2s ease, background .2s ease;
}

.control-family:hover {
  background: #12151a;
}

.control-family.is-filtered {
  display: none;
}

.control-family header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.control-family header span,
.control-family header strong {
  font: .58rem var(--mono);
  text-transform: uppercase;
}

.control-family header span {
  color: var(--dim);
}

.control-family header strong {
  color: var(--lime);
}

.control-family[data-control-state="evaluate"] header strong {
  color: var(--orange);
}

.control-family[data-control-state="rejected"] header strong {
  color: var(--red);
}

.control-family h3 {
  margin-top: 22px;
  font: 600 1.25rem/1.2 var(--display);
}

.control-family .control-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px;
}

.control-family .control-tags span {
  padding: 5px 8px;
  border: 1px solid rgba(198, 255, 61, .2);
  border-radius: 3px;
  background: rgba(198, 255, 61, .025);
  color: #b6c58d;
  font: .59rem var(--mono);
}

.control-family[data-control-state="evaluate"] .control-tags span {
  border-color: rgba(255, 138, 61, .21);
  background: rgba(255, 138, 61, .025);
  color: #c3a187;
}

.control-family > p {
  margin-top: 19px;
  color: var(--slate);
  font-size: .86rem;
  line-height: 1.7;
}

.control-family--rejected {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(320px, 1.3fr);
  gap: 0 60px;
  border-top: 2px solid var(--red);
  background: #151013;
}

.control-family--rejected header {
  grid-column: 1 / -1;
}

.control-family--rejected h3 {
  grid-column: 1;
  align-self: end;
  color: #ff8990;
}

.control-family--rejected blockquote {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: center;
  padding-left: 30px;
  border-left: 2px solid var(--red);
  color: var(--paper);
  font: 700 clamp(2rem, 4vw, 4.5rem)/1 var(--display);
}

.control-family--rejected > p {
  grid-column: 1;
}

.release-gates {
  border-top: 1px solid var(--line-strong);
}

.section-head--compact {
  justify-content: start;
}

.gate-grid {
  max-width: 1500px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.gate-grid > div {
  min-width: 0;
  min-height: 245px;
  padding: 30px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.gate-grid span {
  color: var(--cyan);
  font: .6rem var(--mono);
}

.gate-grid strong {
  display: block;
  margin-top: 35px;
  font: 600 1.15rem var(--display);
}

.gate-grid p {
  margin-top: 12px;
  color: var(--slate);
  font-size: .82rem;
  line-height: 1.7;
}

.roadmap-footer {
  max-width: 1500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 40px auto 0;
  color: var(--slate);
  font-size: .82rem;
}

.roadmap-footer strong {
  color: var(--paper);
}

.roadmap-footer > div {
  display: flex;
  gap: 10px;
}

.roadmap-footer a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--paper);
  font: .59rem var(--mono);
  text-transform: uppercase;
}

.roadmap-footer a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

@media (max-width: 1180px) {
  .roadmap-hero {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .roadmap-hero__telemetry {
    max-width: 720px;
  }

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

  .roadmap-node[data-slot="01"] { grid-column: 1; grid-row: 1; }
  .roadmap-node[data-slot="02"] { grid-column: 2; grid-row: 1; }
  .roadmap-node[data-slot="03"] { grid-column: 2; grid-row: 2; }
  .roadmap-node[data-slot="04"] { grid-column: 1; grid-row: 2; }
  .roadmap-node[data-slot="05"] { grid-column: 1; grid-row: 3; }
  .roadmap-node[data-slot="06"] { grid-column: 2; grid-row: 3; }
  .roadmap-node[data-slot="07"] { grid-column: 2; grid-row: 4; }
  .roadmap-node[data-slot="08"] { grid-column: 1; grid-row: 4; }
  .roadmap-node[data-slot="09"] { grid-column: 1; grid-row: 5; }
  .roadmap-node[data-slot="10"] { grid-column: 2; grid-row: 5; }
  .roadmap-node[data-slot="11"] { grid-column: 2; grid-row: 6; }
  .roadmap-node[data-slot="12"] { grid-column: 1; grid-row: 6; }

  .surface-stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .surface-bridge {
    min-height: 50px;
    transform: rotate(90deg);
  }

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

@media (max-width: 1040px) {
  .nav__links {
    display: none;
  }
}

@media (max-width: 880px) {
  :root { --nav: 56px; }

  .nav {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .roadmap-hero {
    min-height: auto;
    padding: 80px 22px 70px;
  }

  .roadmap-hero h1 {
    font-size: clamp(3rem, 13vw, 5.4rem);
  }

  .trajectory,
  .surface-contract,
  .control-inventory,
  .release-gates {
    padding: 74px 22px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    margin-bottom: 44px;
  }

  .roadmap-legend {
    justify-content: start;
  }

  .roadmap-map {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .roadmap-node[data-slot],
  .roadmap-node:nth-of-type(n) {
    grid-column: 1;
    grid-row: auto;
  }

  .render-modes,
  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .control-family--rejected {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .control-family--rejected header,
  .control-family--rejected h3,
  .control-family--rejected blockquote,
  .control-family--rejected > p {
    grid-column: 1;
  }

  .control-family--rejected blockquote {
    grid-row: auto;
    margin-top: 28px;
  }

  .inventory-toolbar,
  .roadmap-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .nav__github {
    min-height: 34px;
  }

  .roadmap-hero__telemetry {
    grid-template-columns: 1fr;
  }

  .roadmap-hero__telemetry > p {
    grid-column: 1;
  }

  .roadmap-node {
    min-height: 0;
    padding: 20px;
  }

  .surface-spec,
  .render-modes article,
  .control-family,
  .gate-grid > div {
    padding: 24px;
  }

  .surface-spec header {
    align-items: flex-start;
    flex-direction: column;
  }

  .render-modes pre {
    font-size: .66rem;
  }

  .inventory-toolbar {
    padding: 12px 0;
  }

  .inventory-filters {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .inventory-filters button {
    border-color: var(--line);
  }

  .gate-grid {
    grid-template-columns: 1fr;
  }

  .gate-grid > div {
    min-height: 0;
  }

  .roadmap-footer > div {
    width: 100%;
    flex-direction: column;
  }

  .roadmap-footer a {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
