:root {
  --mask: #0d3323;
  --mask-deep: #061b14;
  --mask-soft: #164a32;
  --mask-line: #287451;
  --copper: #c77b3f;
  --copper-deep: #7e431f;
  --gold: #e3bf62;
  --gold-soft: #f1d88b;
  --silk: #f4f2dd;
  --silk-dim: #cbd6c1;
  --cyan: #8ef8ff;
  --cyan-deep: #22bcc9;
  --black-chip: #071712;
  --shadow: rgba(0, 0, 0, .38);
  --display: 'Orbitron', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --header-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--copper) var(--mask-deep);
}

html,
body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
}

body {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(40, 116, 81, .38), transparent 48%),
    linear-gradient(90deg, rgba(244, 242, 221, .032) 1px, transparent 1px),
    linear-gradient(0deg, rgba(244, 242, 221, .026) 1px, transparent 1px),
    var(--mask);
  background-size: auto, 42px 42px, 42px 42px, auto;
  color: var(--silk);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(199, 123, 63, .06) 44.1% 44.35%, transparent 44.5%),
    radial-gradient(90% 80% at 10% 0%, rgba(227, 191, 98, .1), transparent 62%),
    radial-gradient(80% 60% at 100% 80%, rgba(142, 248, 255, .08), transparent 66%);
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 91;
  pointer-events: none;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .05 0 0 0 0 .22 0 0 0 0 .13 0 0 0 .36 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.night {
  --mask: #061b18;
  --mask-deep: #020d0b;
  --mask-soft: #0b2c28;
  --mask-line: #1d6e67;
  --silk: #e7fff6;
  --silk-dim: #a7cbc3;
}

::selection {
  background: var(--cyan);
  color: var(--mask-deep);
}

a {
  color: var(--gold-soft);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: .85rem;
  left: .85rem;
  z-index: 120;
  transform: translateY(-150%);
  color: var(--mask-deep);
  background: var(--cyan);
  border: 1px solid var(--silk);
  padding: .7rem .9rem;
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .85rem;
  padding: .7rem clamp(.85rem, 3vw, 2.4rem);
  background: color-mix(in srgb, var(--mask-deep) 86%, transparent);
  border-bottom: 1px solid rgba(244, 242, 221, .22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px);
}

.brand {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--silk);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--copper);
  fill: var(--gold);
  flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(199, 123, 63, .28));
}

.brand-text {
  display: grid;
  gap: .06rem;
  min-width: 0;
  overflow: hidden;
}

.brand-text span {
  font-family: var(--display);
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text small {
  color: var(--silk-dim);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem .72rem;
  color: var(--silk-dim);
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-soft);
  border-color: rgba(227, 191, 98, .35);
  background: rgba(227, 191, 98, .08);
}

.mode-toggle,
.map-toolbar button {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid rgba(227, 191, 98, .4);
  color: var(--silk);
  background: rgba(5, 20, 15, .64);
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  justify-self: end;
  padding: .62rem .78rem;
  font-family: var(--display);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.mode-toggle:hover,
.map-toolbar button:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  background: rgba(8, 38, 31, .88);
}

.toggle-dot {
  width: .72rem;
  height: .72rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(227, 191, 98, .14);
}

.night .toggle-dot {
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(142, 248, 255, .9);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(96svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: clamp(4rem, 8vh, 7rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 8vh, 6rem);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(1rem, 4vw, 3rem);
  z-index: -2;
  border: 1px solid rgba(244, 242, 221, .2);
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(199, 123, 63, .26) 18.08% 18.35%, transparent 18.45% 44%, rgba(227, 191, 98, .2) 44.1% 44.25%, transparent 44.35%),
    linear-gradient(0deg, transparent 0 28%, rgba(199, 123, 63, .22) 28.08% 28.32%, transparent 28.42% 70%, rgba(142, 248, 255, .16) 70.05% 70.25%, transparent 70.35%);
  box-shadow: inset 0 0 0 8px rgba(5, 20, 15, .22), 0 26px 80px rgba(0, 0, 0, .24);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(36rem 26rem at 82% 28%, rgba(199, 123, 63, .18), transparent 62%),
    radial-gradient(40rem 30rem at 18% 78%, rgba(142, 248, 255, .1), transparent 70%),
    linear-gradient(135deg, transparent 0 47%, rgba(227, 191, 98, .12) 47.08% 47.28%, transparent 47.36%);
}

.hero-grid {
  position: absolute;
  inset: 8% 0 0;
  z-index: -1;
  opacity: .48;
  background:
    repeating-linear-gradient(90deg, transparent 0 64px, rgba(227, 191, 98, .08) 65px, transparent 66px),
    repeating-linear-gradient(0deg, transparent 0 64px, rgba(244, 242, 221, .06) 65px, transparent 66px);
  mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent);
}

.hero-content {
  width: min(960px, 100%);
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: clamp(.68rem, 1.5vw, .78rem);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: .98;
  letter-spacing: 0;
}

h1 {
  display: grid;
  gap: .15rem;
  color: var(--silk);
  font-size: clamp(4.2rem, 14vw, 12.4rem);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(142, 248, 255, .12), 0 18px 60px rgba(0, 0, 0, .34);
}

h1 span:first-child {
  color: transparent;
  -webkit-text-stroke: clamp(1px, .18vw, 2px) var(--silk);
}

h1 span:last-child {
  color: var(--gold-soft);
}

.hero-lede {
  max-width: 58rem;
  margin: 1.3rem auto 0;
  color: var(--silk);
  font-size: clamp(1rem, 2.1vw, 1.34rem);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 2rem;
}

.copper-button,
.ghost-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1rem;
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.copper-button {
  color: #160904;
  background: linear-gradient(180deg, #efb06f, var(--copper));
  border: 1px solid #ffd69d;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .26), inset 0 -2px 0 rgba(126, 67, 31, .5);
}

.ghost-button {
  color: var(--cyan);
  background: rgba(3, 18, 14, .64);
  border: 1px solid rgba(142, 248, 255, .42);
}

.route-ticket {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  top: clamp(6rem, 18vh, 11rem);
  width: min(18rem, calc(100vw - 2rem));
  padding: 1rem;
  color: var(--silk);
  background: rgba(4, 18, 13, .72);
  border: 1px solid rgba(227, 191, 98, .34);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .3);
}

.route-ticket span,
.rush-metrics span,
.datasheet-kicker {
  display: block;
  color: var(--cyan);
  font-family: var(--display);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.route-ticket strong {
  display: block;
  margin-top: .45rem;
  color: var(--gold-soft);
  font-size: .88rem;
}

.route-ticket p {
  margin: .45rem 0 0;
  color: var(--silk-dim);
  font-size: .8rem;
}

.hero-stats {
  width: min(850px, calc(100% - 2rem));
  margin: clamp(2.2rem, 7vh, 4rem) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(244, 242, 221, .22);
  background: rgba(4, 18, 13, .56);
}

.hero-stats div {
  padding: .9rem .75rem;
  border-right: 1px solid rgba(244, 242, 221, .18);
  text-align: center;
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  color: var(--silk-dim);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: .18rem 0 0;
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: clamp(1.25rem, 4vw, 2.2rem);
  font-weight: 800;
}

.load-in {
  animation: board-load .8s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--d, 0) * 110ms);
}

@keyframes board-load {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.section {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 5vw, 5rem);
}

.section-intro {
  width: min(1120px, 100%);
  margin-inline: auto;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.section-intro.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(16rem, .58fr);
  gap: clamp(1rem, 5vw, 5rem);
  align-items: end;
}

h2 {
  max-width: 13ch;
  color: var(--silk);
  font-size: clamp(2.1rem, 6vw, 5.2rem);
  font-weight: 900;
  text-transform: uppercase;
}

.section-intro p:not(.eyebrow) {
  max-width: 45rem;
  margin: .95rem 0 0;
  color: var(--silk-dim);
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
}

.map-section {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.map-shell {
  width: min(1280px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
  gap: 1rem;
  align-items: stretch;
}

.map-stage {
  position: relative;
  min-width: 0;
  aspect-ratio: 14 / 9;
  min-height: 620px;
  border: 1px solid rgba(227, 191, 98, .35);
  background:
    linear-gradient(135deg, rgba(244, 242, 221, .06), transparent 42%),
    rgba(3, 18, 14, .62);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34), inset 0 0 0 8px rgba(7, 23, 18, .32);
  overflow: hidden;
}

.map-toolbar {
  position: absolute;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  display: flex;
  gap: .4rem;
}

.map-toolbar button {
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.map-toolbar svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.city-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.city-svg.is-dragging {
  cursor: grabbing;
}

.board-base {
  fill: var(--mask);
}

.board-grain {
  opacity: .2;
  pointer-events: none;
}

.board-frame {
  fill: none;
  stroke: rgba(244, 242, 221, .38);
  stroke-width: 2;
}

.silk-title,
.silk-coord,
.district-label,
.capacitor-label,
.junction-label {
  fill: var(--silk);
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: .12em;
}

.silk-coord {
  fill: var(--silk-dim);
  font-size: 13px;
}

.ground-plane {
  fill: url(#groundCopper);
  stroke: rgba(244, 242, 221, .18);
  stroke-width: 1.4;
}

.trace-under {
  fill: none;
  stroke: rgba(5, 20, 15, .9);
  stroke-width: 17;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trace-line {
  fill: none;
  stroke: var(--copper);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .86;
}

.trace-line.thin {
  stroke-width: 5;
}

.trace-line.bus {
  stroke-width: 10;
  stroke: #d79555;
}

.trace-line.is-routed {
  stroke: var(--gold-soft);
  filter: url(#softGlow);
  opacity: 1;
}

.night .trace-line {
  stroke: var(--cyan-deep);
  opacity: .78;
  filter: url(#softGlow);
}

.night .trace-line.bus {
  stroke: var(--cyan);
}

.night .trace-line.is-routed {
  stroke: var(--cyan);
}

.active-route {
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 18;
  opacity: .78;
  filter: url(#softGlow);
  animation: route-crawl 1.2s linear infinite;
}

.night .active-route {
  stroke: var(--cyan);
  opacity: .95;
}

@keyframes route-crawl {
  to {
    stroke-dashoffset: -64;
  }
}

.pad,
.via {
  fill: var(--gold);
  stroke: rgba(5, 20, 15, .85);
  stroke-width: 2;
}

.via {
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 3;
}

.capacitor-can {
  fill: #b9c0a4;
  stroke: var(--silk);
  stroke-width: 2;
}

.capacitor-top {
  fill: #edf2d8;
  stroke: #748070;
  stroke-width: 2;
}

.capacitor-mark {
  stroke: var(--mask-deep);
  stroke-width: 3;
  stroke-linecap: round;
}

.capacitor-label {
  font-size: 13px;
  fill: var(--silk-dim);
}

.district-chip {
  cursor: pointer;
}

.chip-body {
  fill: var(--black-chip);
  stroke: var(--silk);
  stroke-width: 2;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .36));
  transition: fill .2s ease, stroke .2s ease;
}

.chip-core {
  fill: rgba(244, 242, 221, .04);
  stroke: rgba(244, 242, 221, .25);
  stroke-width: 1;
}

.chip-pin {
  fill: var(--gold);
  stroke: rgba(5, 20, 15, .8);
  stroke-width: 1;
}

.chip-code {
  fill: var(--gold-soft);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
}

.chip-name {
  fill: var(--silk);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .06em;
}

.district-chip:hover .chip-body,
.district-chip:focus .chip-body,
.district-chip.is-selected .chip-body {
  stroke: var(--cyan);
  fill: #0d241d;
}

.district-chip.is-selected .chip-body {
  filter: drop-shadow(0 0 18px rgba(142, 248, 255, .42)) drop-shadow(0 18px 18px rgba(0, 0, 0, .32));
}

.packet {
  fill: var(--cyan);
  stroke: #eaffff;
  stroke-width: 1.4;
  filter: url(#softGlow);
}

.packet.gold {
  fill: var(--gold-soft);
  stroke: #fff7cf;
}

.datasheet {
  min-width: 0;
  padding: 1.15rem;
  color: var(--silk);
  background:
    linear-gradient(180deg, rgba(244, 242, 221, .08), rgba(244, 242, 221, .02)),
    rgba(3, 18, 14, .78);
  border: 1px solid rgba(227, 191, 98, .34);
  box-shadow: inset 0 0 0 1px rgba(244, 242, 221, .06);
}

.datasheet h3 {
  margin-top: .42rem;
  color: var(--gold-soft);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.datasheet p {
  margin: .8rem 0 0;
  color: var(--silk-dim);
  font-size: .92rem;
}

.datasheet dl {
  margin: 1rem 0;
  display: grid;
  gap: .68rem;
}

.datasheet dl div {
  padding-top: .68rem;
  border-top: 1px solid rgba(244, 242, 221, .14);
}

.datasheet dt {
  color: var(--cyan);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.datasheet dd {
  margin: .16rem 0 0;
  color: var(--silk);
  font-weight: 600;
}

.sheet-route {
  margin-top: 1rem;
  padding: .85rem;
  border: 1px dashed rgba(142, 248, 255, .42);
  background: rgba(142, 248, 255, .05);
}

.sheet-route span {
  display: block;
  color: var(--silk-dim);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sheet-route strong {
  display: block;
  margin-top: .35rem;
  color: var(--cyan);
  font-size: .9rem;
}

.district-rack {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.district-card {
  min-width: 0;
  min-height: 10rem;
  padding: 1rem;
  text-align: left;
  color: var(--silk);
  background:
    linear-gradient(135deg, rgba(199, 123, 63, .2), transparent 44%),
    rgba(4, 18, 13, .62);
  border: 1px solid rgba(244, 242, 221, .18);
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.district-card:hover,
.district-card:focus-visible,
.district-card.is-selected {
  transform: translateY(-3px);
  border-color: var(--cyan);
  background:
    linear-gradient(135deg, rgba(142, 248, 255, .16), transparent 46%),
    rgba(4, 18, 13, .82);
}

.district-card span {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  color: var(--mask-deep);
  background: var(--gold);
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 900;
}

.district-card strong {
  display: block;
  margin-top: 1rem;
  color: var(--silk);
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.district-card em {
  display: block;
  margin-top: .5rem;
  color: var(--silk-dim);
  font-size: .82rem;
  font-style: normal;
}

.rush {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.rush-panel {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(20rem, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(142, 248, 255, .28);
  background:
    linear-gradient(90deg, rgba(142, 248, 255, .08), transparent 55%),
    rgba(3, 18, 14, .58);
}

.rush-panel .section-intro {
  margin: 0;
}

.rush-scope {
  min-width: 0;
  border: 1px solid rgba(244, 242, 221, .14);
  background: #03110d;
  box-shadow: inset 0 0 50px rgba(142, 248, 255, .08);
}

.rush-scope svg {
  width: 100%;
  display: block;
}

.scope-grid {
  fill: none;
  stroke: rgba(244, 242, 221, .12);
  stroke-width: 1;
}

.scope-wave {
  fill: none;
  stroke-linecap: round;
  stroke-width: 5;
  filter: drop-shadow(0 0 12px rgba(142, 248, 255, .55));
}

.wave-a {
  stroke: var(--cyan);
  stroke-dasharray: 18 16;
  animation: route-crawl 1.3s linear infinite;
}

.wave-b {
  stroke: var(--gold-soft);
  stroke-dasharray: 8 20;
  animation: route-crawl 1.8s linear infinite reverse;
}

.scope-pulses circle {
  fill: var(--cyan);
  animation: blink 1.4s ease-in-out infinite alternate;
}

@keyframes blink {
  to {
    opacity: .25;
    transform: translateY(16px);
  }
}

.rush-metrics {
  width: min(1180px, 100%);
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.rush-metrics article {
  padding: 1rem;
  background: rgba(4, 18, 13, .62);
  border: 1px solid rgba(227, 191, 98, .2);
}

.rush-metrics strong {
  display: block;
  margin-top: .55rem;
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.42rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.rush-metrics p {
  margin: .65rem 0 0;
  color: var(--silk-dim);
  font-size: .86rem;
}

.fab-timeline {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  counter-reset: rev;
}

.fab-timeline li {
  position: relative;
  min-height: 18rem;
  padding: 1.1rem;
  background:
    linear-gradient(180deg, rgba(227, 191, 98, .12), transparent 55%),
    rgba(3, 18, 14, .64);
  border: 1px solid rgba(244, 242, 221, .16);
}

.fab-timeline li::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  height: 5px;
  background: linear-gradient(90deg, var(--copper), var(--gold), var(--cyan));
}

.fab-timeline time {
  color: var(--cyan);
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.fab-timeline strong {
  display: block;
  margin-top: .9rem;
  color: var(--silk);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.fab-timeline p {
  margin: .75rem 0 0;
  color: var(--silk-dim);
  font-size: .9rem;
}

.ledger {
  padding-top: 2rem;
}

.signal-ledger {
  width: min(1020px, 100%);
  margin-inline: auto;
  border: 1px solid rgba(142, 248, 255, .28);
  background: rgba(2, 13, 11, .72);
}

.signal-ledger p {
  margin: 0;
  display: grid;
  grid-template-columns: 5rem 11rem 1fr;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(244, 242, 221, .12);
  color: var(--silk-dim);
  font-size: .92rem;
}

.signal-ledger p:last-child {
  border-bottom: 0;
}

.signal-time {
  color: var(--cyan);
  font-weight: 700;
}

.signal-ledger strong {
  color: var(--gold-soft);
}

.signal-text {
  min-width: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 5vw, 5rem);
  color: var(--silk-dim);
  background: var(--mask-deep);
  border-top: 1px solid rgba(244, 242, 221, .2);
}

.site-footer p {
  margin: 0;
  font-size: .85rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.guide-page main {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 5rem);
}

.guide-hero {
  width: min(1060px, 100%);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(227, 191, 98, .36);
  background:
    linear-gradient(135deg, rgba(199, 123, 63, .16), transparent 48%),
    rgba(3, 18, 14, .68);
}

.guide-hero h1 {
  max-width: 9ch;
  font-size: clamp(3rem, 9vw, 7.6rem);
}

.guide-copy {
  width: min(920px, 100%);
  margin: 2rem auto 0;
  display: grid;
  gap: 1rem;
  color: var(--silk-dim);
}

.guide-copy h2 {
  max-width: none;
  margin-top: 1.2rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.guide-copy p,
.guide-copy li {
  font-size: 1rem;
}

.guide-copy ul {
  margin: 0;
  padding-left: 1.2rem;
}

.guide-copy strong {
  color: var(--silk);
}

.guide-copy code {
  color: var(--cyan);
  background: rgba(142, 248, 255, .08);
  padding: .08rem .22rem;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .route-ticket {
    position: relative;
    inset: auto;
    margin: 1.5rem auto 0;
  }

  .map-shell,
  .rush-panel {
    grid-template-columns: 1fr;
  }

  .map-stage {
    min-height: 560px;
  }

  .district-rack,
  .fab-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 126px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    gap: .45rem;
    padding: .62rem .72rem;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .brand-text span {
    font-size: .78rem;
    letter-spacing: .1em;
  }

  .brand-text small {
    font-size: .58rem;
  }

  .mode-toggle {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .site-nav a {
    padding-inline: .3rem;
    font-size: .59rem;
    letter-spacing: .08em;
  }

  .hero {
    padding-inline: .85rem;
    min-height: calc(90svh - var(--header-h));
  }

  .hero::before {
    inset: .75rem;
  }

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

  .hero-stats div:nth-child(2) {
    border-right: 0;
  }

  .hero-stats div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(244, 242, 221, .18);
  }

  .section {
    padding-inline: .85rem;
  }

  .section-intro.split {
    grid-template-columns: 1fr;
    gap: .4rem;
  }

  h2 {
    max-width: 12ch;
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .map-stage {
    min-height: 440px;
  }

  .map-toolbar {
    top: .5rem;
    left: .5rem;
  }

  .district-rack,
  .fab-timeline,
  .rush-metrics {
    grid-template-columns: 1fr;
  }

  .district-card {
    min-height: 8rem;
  }

  .fab-timeline li {
    min-height: 12rem;
  }

  .signal-ledger p {
    grid-template-columns: 4rem 1fr;
    gap: .3rem .8rem;
    grid-template-areas:
      "time name"
      "time text";
  }

  .signal-time {
    grid-area: time;
  }

  .signal-ledger strong {
    grid-area: name;
  }

  .signal-text {
    grid-area: text;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    display: grid;
  }

  .copper-button,
  .ghost-button {
    width: 100%;
  }

  .map-stage {
    min-height: 390px;
  }

  .datasheet {
    padding: .95rem;
  }
}

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

/* Pass 2: municipal routing system */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background:
    radial-gradient(circle at 78% 9%, rgba(227, 191, 98, .1) 0 1px, transparent 2px),
    radial-gradient(80% 68% at 88% 18%, rgba(31, 104, 69, .36), transparent 62%),
    radial-gradient(75% 54% at -8% 62%, rgba(1, 18, 12, .64), transparent 70%),
    linear-gradient(90deg, rgba(244, 242, 221, .028) 1px, transparent 1px),
    linear-gradient(0deg, rgba(244, 242, 221, .022) 1px, transparent 1px),
    var(--mask);
  background-size: 19px 19px, auto, auto, 42px 42px, 42px 42px, auto;
}

body::before {
  background:
    linear-gradient(117deg, transparent 0 39%, rgba(199, 123, 63, .07) 39.08% 39.28%, transparent 39.38%),
    linear-gradient(117deg, transparent 0 59%, rgba(227, 191, 98, .055) 59.06% 59.2%, transparent 59.3%),
    radial-gradient(90% 80% at 10% 0%, rgba(227, 191, 98, .1), transparent 62%),
    radial-gradient(80% 60% at 100% 80%, rgba(142, 248, 255, .07), transparent 66%);
}

.site-header {
  grid-template-areas: "brand nav mode";
  grid-template-columns: minmax(15rem, 1fr) auto minmax(15rem, 1fr);
  min-height: 76px;
  padding-block: .55rem;
  border-bottom-color: rgba(227, 191, 98, .25);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}

.brand { grid-area: brand; }
.site-nav { grid-area: nav; }
.mode-toggle { grid-area: mode; }

.brand-text,
.brand-text span,
.brand-text small {
  overflow: visible;
  text-overflow: clip;
}

.signal-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: rgba(227, 191, 98, .08);
}

.signal-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--copper), var(--gold-soft) 58%, var(--cyan));
  box-shadow: 0 0 12px rgba(142, 248, 255, .6);
  will-change: transform;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .35rem;
  height: 2px;
  transform: scaleX(0);
  background: var(--cyan);
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}

.site-nav a:hover::after,
.site-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.hero {
  min-height: calc(100svh - 76px);
  align-items: center;
  padding: clamp(5rem, 10vh, 8.2rem) clamp(1rem, 6vw, 6.5rem) clamp(8.5rem, 18vh, 11.5rem);
}

.hero::before {
  inset: clamp(1rem, 3vw, 2.8rem);
  border-color: rgba(227, 191, 98, .27);
  background:
    linear-gradient(90deg, transparent 0 12.8%, rgba(199, 123, 63, .38) 12.88% 13.08%, transparent 13.16% 71%, rgba(227, 191, 98, .14) 71.08% 71.2%, transparent 71.28%),
    linear-gradient(0deg, transparent 0 23%, rgba(199, 123, 63, .28) 23.06% 23.26%, transparent 23.34% 76%, rgba(142, 248, 255, .14) 76.06% 76.22%, transparent 76.3%);
}

.hero-content {
  width: min(840px, 70vw);
  margin: 0;
  text-align: left;
}

.hero-content .eyebrow {
  max-width: 72ch;
  padding-left: 3rem;
  position: relative;
}

.hero-content .eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  gap: -.18rem;
  margin-left: -.045em;
  font-size: clamp(5.6rem, 13vw, 12.8rem);
  line-height: .78;
  letter-spacing: -.055em;
}

.hero h1 span:last-child {
  padding-left: .44em;
  color: var(--gold-soft);
  text-shadow: 0 0 32px rgba(227, 191, 98, .12), 0 22px 70px rgba(0, 0, 0, .4);
}

.hero-stamp {
  display: inline-flex;
  gap: 1rem;
  margin: 2rem 0 0 37%;
  padding: .42rem .65rem;
  color: var(--mask-deep);
  background: var(--gold);
  font-family: var(--display);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.hero-stamp span {
  color: #4d240f;
}

.hero-lede {
  max-width: 42rem;
  margin: 1.25rem 0 0 17%;
  color: #e3e8d6;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.65;
  text-align: left;
  text-wrap: pretty;
}

.hero-actions {
  justify-content: flex-start;
  margin: 1.7rem 0 0 17%;
}

.copper-button,
.ghost-button {
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, color .25s ease;
}

.copper-button::after,
.ghost-button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%) skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transition: transform .48s ease;
}

.copper-button:hover,
.ghost-button:hover {
  transform: translateY(-3px);
}

.copper-button:hover::after,
.ghost-button:hover::after {
  transform: translateX(110%) skewX(-22deg);
}

.hero-schematic {
  position: absolute;
  z-index: -1;
  top: 4%;
  right: -5%;
  width: min(65vw, 940px);
  height: 90%;
  opacity: .38;
}

.hero-trace {
  fill: none;
  stroke: var(--copper);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1800;
  animation: schematic-draw 2.2s cubic-bezier(.16, .72, .16, 1) both;
}

.hero-trace-b { animation-delay: .18s; stroke: var(--gold); opacity: .68; }
.hero-trace-c { animation-delay: .36s; stroke-width: 2; opacity: .5; }

.hero-vias circle {
  fill: var(--mask-deep);
  stroke: var(--gold);
  stroke-width: 4;
}

.hero-packets circle {
  fill: var(--cyan);
  stroke: #eaffff;
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(142, 248, 255, .9));
}

@keyframes schematic-draw {
  from { stroke-dashoffset: 1800; opacity: 0; }
  to { stroke-dashoffset: 0; }
}

.hero-coordinate {
  position: absolute;
  top: 9rem;
  right: 2.4rem;
  display: grid;
  gap: .6rem;
  color: rgba(244, 242, 221, .54);
  font-size: .58rem;
  letter-spacing: .16em;
  text-align: right;
  writing-mode: vertical-rl;
}

.route-ticket {
  top: 9.5rem;
  right: 5vw;
  width: 19rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-color: rgba(227, 191, 98, .56);
  background: linear-gradient(135deg, rgba(199,123,63,.12), transparent 52%), rgba(2, 13, 10, .88);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.route-ticket::after {
  content: "34";
  position: absolute;
  right: .7rem;
  bottom: -.3rem;
  color: rgba(227, 191, 98, .12);
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 900;
}

.hero-rail {
  position: absolute;
  left: 4vw;
  right: 4vw;
  bottom: 8.8rem;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: .8rem;
  color: var(--silk-dim);
  font-size: .58rem;
  letter-spacing: .14em;
}

.hero-rail i {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--copper) 0 14px, transparent 14px 24px);
}

.hero-stats {
  position: absolute;
  left: 4vw;
  right: 4vw;
  bottom: 2.5rem;
  width: auto;
  margin: 0;
  border-color: rgba(227, 191, 98, .34);
  background: rgba(2, 13, 10, .72);
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section-intro {
  margin-left: clamp(0rem, 4vw, 4rem);
  margin-right: auto;
}

.section-intro h2 {
  letter-spacing: -.035em;
  line-height: .92;
}

.map-section {
  isolation: isolate;
  padding-bottom: clamp(8rem, 13vw, 12rem);
}

.map-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 0 0;
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(199, 123, 63, .13) 6.05% 6.18%, transparent 6.22%),
    linear-gradient(0deg, transparent 0 38%, rgba(227, 191, 98, .09) 38.05% 38.18%, transparent 38.22%);
}

.map-shell {
  position: relative;
  display: block;
  width: min(1340px, 100%);
}

.map-stage {
  min-height: 720px;
  aspect-ratio: 14 / 8.6;
  border-color: rgba(227, 191, 98, .54);
  box-shadow: 0 38px 110px rgba(0, 0, 0, .44), inset 0 0 0 8px rgba(7, 23, 18, .42), 0 0 0 1px rgba(142,248,255,.08);
}

.map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 48%, rgba(255,255,255,.025) 49% 50%, transparent 51%);
}

.map-hud {
  position: absolute;
  z-index: 6;
  top: 1rem;
  right: 1rem;
  min-width: 14rem;
  padding: .7rem .8rem;
  text-align: right;
  color: var(--silk-dim);
  background: rgba(2, 13, 10, .8);
  border-right: 3px solid var(--cyan);
}

.map-hud span,
.map-hud small {
  display: block;
  font-size: .54rem;
  letter-spacing: .15em;
}

.map-hud span { color: var(--cyan); }
.map-hud strong { display: block; color: var(--silk); font-family: var(--display); font-size: .76rem; }

.map-legend {
  position: absolute;
  z-index: 6;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding: .6rem .7rem;
  color: var(--silk-dim);
  background: rgba(2, 13, 10, .82);
  font-size: .57rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.map-legend i { width: 1.6rem; height: 3px; display: inline-block; }
.legend-trace { background: var(--copper); }
.legend-packet { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.legend-ground { background: var(--mask-line); }

.datasheet {
  position: absolute;
  z-index: 7;
  top: 7.4rem;
  right: -1.2rem;
  width: min(22.5rem, 34%);
  padding: 1.25rem 1.3rem 1.4rem;
  background:
    linear-gradient(135deg, rgba(227, 191, 98, .12), transparent 38%),
    rgba(2, 13, 10, .94);
  border-color: rgba(227, 191, 98, .58);
  box-shadow: -24px 30px 70px rgba(0,0,0,.46), inset 0 0 0 1px rgba(244,242,221,.06);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.datasheet-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.datasheet-topline p { margin: 0; }
.datasheet-topline span { color: var(--gold); font-size: .58rem; letter-spacing: .14em; }

.sheet-foot {
  margin-top: 1.2rem !important;
  padding-top: .65rem;
  border-top: 1px solid rgba(244,242,221,.12);
  font-size: .57rem !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.packet-tail {
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: .45;
  filter: url(#softGlow);
}

.packet-tail.gold { stroke: var(--gold-soft); }

.districts {
  padding-top: clamp(5rem, 8vw, 7.5rem);
}

.district-rack {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: .85rem;
}

.district-card {
  position: relative;
  grid-column: span 3;
  min-height: 11.5rem;
  padding: 1.3rem 1.2rem 2rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(199,123,63,.2), transparent 38%),
    rgba(2, 14, 10, .78);
  border-color: rgba(227, 191, 98, .24);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}

.district-card:nth-child(1),
.district-card:nth-child(6) { grid-column: span 4; }
.district-card:nth-child(2),
.district-card:nth-child(7) { grid-column: span 3; }
.district-card:nth-child(3),
.district-card:nth-child(8) { grid-column: span 5; }
.district-card:nth-child(4) { grid-column: 2 / span 5; }
.district-card:nth-child(5) { grid-column: span 5; }

.district-card::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: 0;
  height: .7rem;
  background: repeating-linear-gradient(90deg, var(--gold) 0 9px, transparent 9px 17px);
  opacity: .72;
  transition: opacity .22s ease, filter .22s ease;
}

.district-card::before {
  content: attr(data-chip);
  position: absolute;
  right: .8rem;
  top: .5rem;
  color: rgba(244, 242, 221, .06);
  font-family: var(--display);
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 1;
}

.district-card:hover::after,
.district-card.is-selected::after {
  opacity: 1;
  filter: drop-shadow(0 0 7px rgba(142,248,255,.8));
}

.district-card.is-selected {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.district-footnote {
  width: min(1180px, 100%);
  margin: 1.25rem auto 0;
  color: var(--silk-dim);
  font-size: .72rem;
}

.district-footnote span {
  margin-right: .8rem;
  color: var(--cyan);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .12em;
}

.rush {
  padding-inline: max(1rem, 5vw);
  background:
    radial-gradient(55% 90% at 72% 50%, rgba(34, 188, 201, .19), transparent 68%),
    linear-gradient(105deg, rgba(199,123,63,.08), transparent 36%),
    rgba(1, 14, 12, .78);
  border-block: 1px solid rgba(142, 248, 255, .22);
}

.rush::before {
  content: "07:42";
  position: absolute;
  right: 1vw;
  top: 1rem;
  color: rgba(142,248,255,.035);
  font-family: var(--display);
  font-size: clamp(7rem, 22vw, 22rem);
  font-weight: 900;
  line-height: 1;
}

.rush-panel {
  position: relative;
  grid-template-columns: minmax(0, .9fr) minmax(28rem, 1.12fr);
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.rush-panel .section-intro {
  position: relative;
  z-index: 2;
  margin-left: 0;
  padding: clamp(1.4rem, 4vw, 3rem) clamp(1rem, 4vw, 3.2rem);
  background: rgba(2,13,10,.85);
  border: 1px solid rgba(227,191,98,.3);
}

.rush-panel h2 {
  max-width: 9ch;
  font-size: clamp(3.4rem, 7vw, 7rem);
}

.rush-panel h2 span {
  display: block;
  white-space: nowrap;
}

.rush-scope {
  position: relative;
  margin-left: -2rem;
  border-color: rgba(142,248,255,.3);
  box-shadow: 0 30px 90px rgba(0,0,0,.5), inset 0 0 90px rgba(142,248,255,.1);
}

.rush-readout {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: grid;
  justify-items: end;
  padding: .55rem .7rem;
  color: var(--cyan);
  background: rgba(0, 10, 8, .8);
  border-right: 2px solid var(--cyan);
}

.rush-readout span,
.rush-readout small { font-size: .52rem; letter-spacing: .12em; }
.rush-readout strong { font-family: var(--display); font-size: 1.25rem; }

.rush-livebar {
  width: min(1180px, 100%);
  height: 52px;
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 0 1rem;
  color: var(--silk-dim);
  background: rgba(2,13,10,.72);
  border: 1px solid rgba(142,248,255,.18);
  font-family: var(--display);
  font-size: .58rem;
  letter-spacing: .1em;
}

.rush-livebar i {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--gold), var(--cyan));
  opacity: .4;
  animation: rush-line 1.2s ease-in-out infinite alternate;
}

.rush-livebar i:nth-of-type(2) { animation-delay: -.3s; }
.rush-livebar i:nth-of-type(3) { animation-delay: -.6s; }
.rush-livebar i:nth-of-type(4) { animation-delay: -.9s; }

@keyframes rush-line { to { opacity: 1; box-shadow: 0 0 12px var(--cyan); } }

.rush-metrics {
  gap: 0;
  border-block: 1px solid rgba(227,191,98,.22);
}

.rush-metrics article {
  min-height: 11rem;
  padding: 1.35rem;
  background: rgba(2,13,10,.38);
  border: 0;
  border-right: 1px solid rgba(227,191,98,.2);
}

.rush-metrics article:last-child { border-right: 0; }

.fab-board-label {
  width: min(1120px, 100%);
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .7rem;
  color: var(--silk-dim);
  border-bottom: 1px solid rgba(227,191,98,.3);
  font-size: .6rem;
  letter-spacing: .12em;
}

.fab-board-label span:first-child { color: var(--cyan); }

.fab-timeline {
  gap: 0;
}

.fab-timeline li {
  min-height: 20rem;
  padding: 2.6rem 1.2rem 1.4rem;
  background: transparent;
  border: 0;
  border-top: 5px solid var(--copper);
  border-right: 1px solid rgba(244,242,221,.15);
}

.fab-timeline li:nth-child(even) { margin-top: 3.4rem; border-top-color: var(--gold); }
.fab-timeline li:last-child { border-right: 0; border-top-color: var(--cyan); }

.fab-timeline li::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 1.1rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mask-deep);
  border: 4px solid var(--gold);
}

.fab-timeline li::after {
  left: auto;
  right: 1.1rem;
  bottom: 1.2rem;
  width: 28%;
  height: 2px;
}

.signal-ledger {
  box-shadow: 22px 24px 0 rgba(2,13,10,.34);
}

.ledger-ticker {
  width: min(1020px, 100%);
  margin: 1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem 1.4rem;
  color: var(--silk-dim);
  font-size: .58rem;
  letter-spacing: .1em;
}

.ledger-ticker span::before {
  content: "";
  display: inline-block;
  width: .42rem;
  height: .42rem;
  margin-right: .4rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(142,248,255,.8);
}

.night {
  background:
    radial-gradient(70% 80% at 80% 20%, rgba(0, 204, 224, .13), transparent 66%),
    radial-gradient(80% 70% at 10% 80%, rgba(0, 102, 94, .12), transparent 70%),
    linear-gradient(90deg, rgba(142,248,255,.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(142,248,255,.02) 1px, transparent 1px),
    var(--mask);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
}

.night .hero-trace { stroke: var(--cyan); filter: drop-shadow(0 0 9px rgba(142,248,255,.58)); }
.night .hero h1 span:last-child { color: var(--cyan); text-shadow: 0 0 32px rgba(142,248,255,.38); }
.night .map-stage { box-shadow: 0 38px 110px rgba(0,0,0,.52), inset 0 0 80px rgba(34,188,201,.1), 0 0 35px rgba(142,248,255,.12); }

.mode-flash::after {
  animation: mode-flash .7s ease both;
}

@keyframes mode-flash {
  0% { opacity: .9; background-color: rgba(142,248,255,.22); }
  100% { opacity: .28; background-color: transparent; }
}

/* Guide / fabrication manual */
.guide-page main {
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 5vw, 5rem) clamp(5rem, 9vw, 8rem);
}

.guide-hero {
  position: relative;
  width: min(1180px, 100%);
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .72fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  border-color: rgba(227,191,98,.5);
  background:
    linear-gradient(110deg, rgba(199,123,63,.17), transparent 44%),
    rgba(2,14,10,.76);
}

.guide-hero::after {
  content: "TC / 34";
  position: absolute;
  right: -1rem;
  bottom: -2.8rem;
  color: rgba(227,191,98,.05);
  font-family: var(--display);
  font-size: 9rem;
  font-weight: 900;
}

.guide-hero h1 {
  font-size: clamp(4.5rem, 10vw, 8.6rem);
  line-height: .78;
  letter-spacing: -.05em;
}

.guide-deck {
  max-width: 42rem;
  margin: 1.8rem 0 0;
  color: var(--silk-dim);
  font-size: 1rem;
}

.guide-diagram {
  width: 100%;
  color: var(--copper);
  opacity: .85;
}

.guide-diagram path,
.guide-diagram rect,
.guide-diagram circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}

.guide-diagram rect { fill: rgba(2,13,10,.8); stroke: var(--silk); }
.guide-diagram circle { fill: var(--mask-deep); stroke: var(--gold); stroke-width: 5; }
.guide-diagram text { fill: var(--silk-dim); font: 11px var(--mono); letter-spacing: .1em; }

.guide-specs {
  position: absolute;
  left: clamp(2rem, 5vw, 4.5rem);
  right: clamp(2rem, 5vw, 4.5rem);
  bottom: 1.3rem;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding-top: .8rem;
  border-top: 1px solid rgba(244,242,221,.18);
}

.guide-specs div { display: flex; gap: .7rem; }
.guide-specs dt { color: var(--silk-dim); font-size: .62rem; text-transform: uppercase; }
.guide-specs dd { margin: 0; color: var(--gold); font-family: var(--display); font-size: .7rem; font-weight: 800; }

.guide-layout {
  width: min(1100px, 100%);
  margin: clamp(3rem, 7vw, 6rem) auto 0;
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.guide-index {
  position: sticky;
  top: 7rem;
  display: grid;
  padding-top: 1rem;
  border-top: 3px solid var(--copper);
}

.guide-index span {
  margin-bottom: .7rem;
  color: var(--gold);
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.guide-index a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--silk-dim);
  border-bottom: 1px solid rgba(244,242,221,.12);
  font-family: var(--display);
  font-size: .64rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.guide-index a:hover { color: var(--cyan); padding-left: .45rem; }

.guide-copy {
  width: auto;
  margin: 0;
  gap: 0;
}

.guide-copy section {
  scroll-margin-top: 7rem;
  padding: 1.4rem 0 clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid rgba(227,191,98,.28);
}

.guide-section-code {
  margin: 0 0 1.1rem;
  color: var(--cyan);
  font-family: var(--display);
  font-size: .62rem !important;
  font-weight: 800;
  letter-spacing: .15em;
}

.guide-copy h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -.04em;
}

.guide-copy p {
  max-width: 70ch;
  margin: 0 0 1.25rem;
  color: #d2dccb;
  font-size: 1rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.token-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 1.7rem;
  border: 1px solid rgba(244,242,221,.16);
}

.token-strip span {
  min-height: 8.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .15rem;
  padding: .65rem;
  color: var(--silk);
  background: linear-gradient(to bottom, var(--swatch) 0 58%, rgba(2,13,10,.92) 58%);
  border-right: 1px solid rgba(244,242,221,.14);
  font-size: .6rem;
}

.token-strip span:last-child { border-right: 0; }
.token-strip b { color: var(--gold); font-family: var(--display); font-size: .56rem; letter-spacing: .1em; }

.reproduce-block {
  position: relative;
  padding: 2rem !important;
  border: 1px solid rgba(142,248,255,.3) !important;
  background: linear-gradient(135deg, rgba(142,248,255,.08), transparent 48%), rgba(2,13,10,.55);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-areas: "brand mode" "nav nav";
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-nav { grid-column: auto; }

  .route-ticket {
    position: relative;
    margin: 2rem 0 0 17%;
  }

  .map-shell {
    display: grid;
    grid-template-columns: 1fr;
  }

  .map-stage { min-height: 560px; }

  .datasheet {
    position: relative;
    inset: auto;
    width: 100%;
    clip-path: none;
  }

  .district-rack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .district-card,
  .district-card:nth-child(n) { grid-column: auto; }

  .rush-panel { grid-template-columns: 1fr; }
  .rush-scope { margin: -1rem 1rem 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 106px; }

  .site-header {
    min-height: 106px;
    grid-template-areas: "brand mode" "nav nav";
    row-gap: .1rem;
    padding: .35rem .7rem;
  }

  .site-nav a { min-height: 44px; }

  .site-nav a {
    padding-inline: .18rem;
    font-size: .55rem;
    letter-spacing: .045em;
  }

  .site-nav a:not(:last-child) {
    border-right-color: rgba(227, 191, 98, .22);
  }

  .mode-toggle {
    width: auto;
    padding-inline: .65rem;
  }

  .toggle-label {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    overflow: visible;
  }

  .hero {
    min-height: auto;
    padding: 4.1rem .85rem 11rem;
  }

  .hero::before { inset: .65rem; }

  .hero-content {
    width: 100%;
  }

  .hero-content .eyebrow {
    max-width: 34ch;
    padding-left: 2.4rem;
    font-size: .61rem;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 23vw, 6.6rem);
    line-height: .82;
  }

  .hero h1 span:last-child { padding-left: .15em; }

  .hero-stamp {
    margin: 1.6rem 0 0 .7rem;
    gap: .55rem;
    font-size: .52rem;
  }

  .hero-lede,
  .hero-actions,
  .route-ticket {
    margin-left: .7rem;
    margin-right: .7rem;
  }

  .hero-lede { max-width: 29rem; }
  .hero-schematic { top: 6%; right: -60%; width: 145vw; opacity: .22; }
  .hero-coordinate { display: none; }

  .route-ticket {
    width: auto;
  }

  .hero-rail {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 9.4rem;
  }

  .hero-rail span:nth-of-type(2) { display: none; }
  .hero-rail { grid-template-columns: auto 1fr auto; }
  .hero-rail i:nth-of-type(2) { display: none; }

  .hero-stats {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.2rem;
  }

  .section-intro { margin-left: 0; }

  .map-section { padding-bottom: 6rem; }
  .map-stage { min-height: 420px; }
  .map-hud { top: .5rem; right: .5rem; min-width: 0; padding: .45rem; }
  .map-hud strong { font-size: .58rem; }
  .map-hud small { display: none; }
  .map-legend { left: .5rem; right: .5rem; bottom: .5rem; gap: .35rem .7rem; }
  .map-legend span:last-child { display: none; }

  .district-rack { grid-template-columns: 1fr; }
  .district-card { min-height: 9.5rem; }
  .district-footnote { line-height: 1.6; }
  .district-footnote span { display: block; margin-bottom: .3rem; }

  .rush { padding-inline: .85rem; }
  .rush-panel .section-intro { padding: 1.3rem 1rem; }
  .rush-panel h2 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .rush-scope { margin: -.6rem .65rem 0; }
  .rush-readout { top: .5rem; right: .5rem; }
  .rush-livebar i:nth-of-type(even) { display: none; }

  .rush-metrics { grid-template-columns: 1fr; }
  .rush-metrics article { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(227,191,98,.2); }
  .rush-metrics article:last-child { border-bottom: 0; }

  .fab-board-label { flex-wrap: wrap; }
  .fab-timeline { grid-template-columns: 1fr; }
  .fab-timeline li,
  .fab-timeline li:nth-child(even) { min-height: 0; margin-top: 0; padding-bottom: 3.5rem; }

  .ledger-ticker { display: grid; grid-template-columns: 1fr 1fr; }

  .guide-page main { padding-top: 2rem; }
  .guide-hero {
    min-height: 560px;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 2rem 1.4rem 5rem;
  }
  .guide-hero h1 { font-size: clamp(4.3rem, 22vw, 6rem); }
  .guide-diagram { max-height: 210px; }
  .guide-specs { left: 1.4rem; right: 1.4rem; gap: .8rem; justify-content: space-between; }
  .guide-specs div { display: grid; gap: 0; }
  .guide-layout { grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
  .guide-index { position: relative; top: auto; grid-template-columns: 1fr 1fr; padding-top: .6rem; }
  .guide-index span { grid-column: 1 / -1; }
  .guide-index a { font-size: .58rem; }
  .guide-copy section { scroll-margin-top: 7rem; }
  .token-strip { grid-template-columns: 1fr 1fr; }
  .token-strip span { min-height: 7rem; }
  .token-strip span:last-child { grid-column: 1 / -1; }
  .reproduce-block { padding: 1.25rem !important; }
}

@media (max-width: 430px) {
  .brand-mark { width: 31px; height: 31px; }
  .brand-text span { font-size: .74rem; }
  .hero-actions { display: grid; }
  .hero-stamp span { display: none; }
  .rush-panel h2 {
    max-width: 100%;
    font-size: 2.65rem;
    letter-spacing: -.055em;
  }
  .map-stage { min-height: 365px; }
  .map-legend { font-size: .5rem; }
  .signal-ledger { box-shadow: none; }
  .site-footer nav { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-packets,
  .rush-livebar i {
    display: none;
  }

  .hero-trace {
    stroke-dashoffset: 0;
  }
}

/* Pass 3: rush-hour induction console and final craft */
html {
  scrollbar-width: thin;
}

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

html::-webkit-scrollbar-track {
  background: var(--mask-deep);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--copper), var(--gold));
  border: 2px solid var(--mask-deep);
}

body {
  font-variant-numeric: tabular-nums slashed-zero;
  font-optical-sizing: auto;
}

.brand,
.site-footer a {
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
}

.site-header {
  z-index: 100;
  isolation: isolate;
}

.site-header > .brand,
.site-header > .site-nav,
.site-header > .mode-toggle {
  position: relative;
  z-index: 1;
}

.brand:hover {
  color: var(--gold-soft);
}

.brand:hover .brand-mark {
  filter: drop-shadow(0 0 13px rgba(227, 191, 98, .55));
}

.site-footer a {
  padding-inline: .42rem;
  border-block: 1px solid transparent;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
  background: rgba(142, 248, 255, .06);
  border-color: rgba(142, 248, 255, .28);
  transform: translateY(-2px);
}

.hero-stats dd,
.rush-readout,
.rush-console,
.signal-ledger,
.ledger-ticker,
.guide-specs {
  font-variant-numeric: tabular-nums slashed-zero;
}

.load-in {
  animation-timing-function: cubic-bezier(.16, .84, .22, 1);
}

.rush-scope {
  overflow: hidden;
}

.rush-scope svg {
  transform: scaleY(var(--rush-gain, 1));
  transform-origin: center;
  transition: transform .5s cubic-bezier(.16, .84, .22, 1), filter .35s ease;
}

.rush .wave-a,
.rush .wave-b {
  animation-duration: var(--rush-speed, 1.1s);
}

.rush.is-surging .rush-scope svg {
  filter: saturate(1.22) brightness(1.08);
}

.rush-console {
  position: relative;
  isolation: isolate;
  width: min(1180px, 100%);
  margin: 1.15rem auto 0;
  overflow: hidden;
  color: var(--silk);
  background:
    radial-gradient(circle at 83% 22%, rgba(142, 248, 255, .1) 0 1px, transparent 2px),
    linear-gradient(108deg, rgba(199, 123, 63, .12), transparent 34%),
    rgba(1, 12, 9, .88);
  background-size: 18px 18px, auto, auto;
  border: 1px solid rgba(227, 191, 98, .36);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3), inset 0 0 0 6px rgba(7, 23, 18, .28);
}

.rush-console::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  right: -8rem;
  top: -10rem;
  border: 1px solid rgba(142, 248, 255, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 2rem rgba(142, 248, 255, .025),
    0 0 0 4rem rgba(142, 248, 255, .018),
    0 0 0 6rem rgba(142, 248, 255, .012);
}

.rush-console::after {
  content: "RUSH HOUR / ELECTRONS HAVE RIGHT OF WAY";
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--mask-deep);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 5px),
    var(--cyan);
  font-family: var(--display);
  font-size: clamp(1.45rem, 4.5vw, 4.2rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.035em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-105%) skewX(-7deg);
}

.rush-console.surge-reveal::after {
  animation: surge-scan 1.35s cubic-bezier(.18, .84, .22, 1) both;
}

@keyframes surge-scan {
  0% { opacity: 0; transform: translateX(-105%) skewX(-7deg); }
  16%, 62% { opacity: .96; transform: translateX(0) skewX(0); }
  100% { opacity: 0; transform: translateX(105%) skewX(7deg); }
}

.rush-console-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(244, 242, 221, .13);
}

.rush-console-head > div {
  min-width: 0;
}

.rush-console-head span,
.rush-console-readings span,
.rush-console-readings small,
.rush-dial-wrap label,
.rush-scale {
  color: var(--silk-dim);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rush-console-head > div > span {
  color: var(--cyan);
}

.rush-console-head strong {
  display: block;
  margin-top: .22rem;
  font-family: var(--display);
  font-size: clamp(.9rem, 2vw, 1.18rem);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rush-console-head p {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  white-space: nowrap;
}

.surge-lamp {
  width: .65rem;
  height: .65rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(227, 191, 98, .12);
  transition: background .3s ease, box-shadow .3s ease;
}

.is-surging .surge-lamp {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(142, 248, 255, .12), 0 0 18px rgba(142, 248, 255, .95);
  animation: surge-lamp 1s ease-in-out infinite alternate;
}

@keyframes surge-lamp {
  to { opacity: .48; box-shadow: 0 0 0 7px rgba(142, 248, 255, .06), 0 0 25px rgba(142, 248, 255, .9); }
}

.rush-dial-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .15rem 1rem;
  padding: 1.15rem 1.25rem .9rem;
}

.rush-dial-wrap label {
  align-self: end;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 800;
}

.rush-dial-wrap output {
  color: var(--cyan);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.rush-dial-wrap input[type="range"] {
  --dial-position: 56.8%;
  width: 100%;
  height: 44px;
  grid-column: 1 / -1;
  margin: .35rem 0 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: ew-resize;
  background: transparent;
}

.rush-dial-wrap input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background:
    linear-gradient(90deg, var(--copper), var(--gold) var(--dial-position), rgba(244, 242, 221, .15) var(--dial-position));
  border: 1px solid rgba(244, 242, 221, .2);
  box-shadow: 0 0 18px rgba(199, 123, 63, .18);
}

.rush-dial-wrap input[type="range"]::-webkit-slider-thumb {
  width: 25px;
  height: 25px;
  margin-top: -10px;
  appearance: none;
  -webkit-appearance: none;
  border: 4px solid var(--mask-deep);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 2px var(--silk), 0 0 22px rgba(142, 248, 255, .9);
}

.rush-dial-wrap input[type="range"]::-moz-range-track {
  height: 6px;
  background: rgba(244, 242, 221, .15);
  border: 1px solid rgba(244, 242, 221, .2);
}

.rush-dial-wrap input[type="range"]::-moz-range-progress {
  height: 6px;
  background: linear-gradient(90deg, var(--copper), var(--gold));
}

.rush-dial-wrap input[type="range"]::-moz-range-thumb {
  width: 19px;
  height: 19px;
  border: 4px solid var(--mask-deep);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 2px var(--silk), 0 0 22px rgba(142, 248, 255, .9);
}

.rush-dial-wrap input[type="range"]:focus-visible {
  outline-offset: 0;
}

.rush-scale {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  color: rgba(203, 214, 193, .78);
  font-size: .52rem;
}

.rush-scale span:nth-child(2) {
  color: var(--cyan);
}

.rush-console-readings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(13rem, .9fr);
  border-top: 1px solid rgba(244, 242, 221, .13);
}

.rush-console-readings p {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  margin: 0;
  padding: 1rem 1.2rem;
  border-right: 1px solid rgba(244, 242, 221, .13);
}

.rush-console-readings strong {
  grid-column: 1 / -1;
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  line-height: 1.08;
}

.rush-console-readings small {
  align-self: end;
  justify-self: end;
  color: var(--cyan);
  font-size: .48rem;
}

#peakSurge {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.1rem;
  color: var(--mask-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--copper));
  border: 0;
  font-family: var(--display);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s ease, transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease;
}

#peakSurge span {
  color: #4b210c;
  font-size: .52rem;
}

#peakSurge:hover,
#peakSurge:focus-visible {
  filter: saturate(1.18) brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(0, 0, 0, .28);
}

.rush-console .rush-livebar {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(142, 248, 255, .18);
  background: rgba(142, 248, 255, .025);
}

.ledger {
  isolation: isolate;
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(199, 123, 63, .08) 14.08% 14.2%, transparent 14.3%),
    radial-gradient(48rem 22rem at 50% 74%, rgba(0, 0, 0, .22), transparent 70%);
}

.ledger::after {
  content: "TC / OPS / 34";
  position: absolute;
  z-index: -1;
  right: 3vw;
  bottom: 1.8rem;
  color: rgba(227, 191, 98, .045);
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 9rem);
  font-weight: 900;
  letter-spacing: -.07em;
}

@media (max-width: 1080px) {
  .rush-console-readings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #peakSurge {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .rush-console-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rush-console-head p {
    white-space: normal;
  }

  .rush-console-readings {
    grid-template-columns: 1fr 1fr;
  }

  .rush-console-readings p {
    padding: .9rem;
  }

  .rush-console-readings p:nth-child(2) {
    border-right: 0;
  }

  .rush-console-readings p:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(244, 242, 221, .13);
    border-right: 0;
  }

  .rush-console-readings strong {
    font-size: 1.4rem;
  }

  #peakSurge {
    grid-column: 1 / -1;
  }

  .rush-scale span:nth-child(2) {
    text-align: center;
  }

  .rush-scale span:last-child {
    text-align: right;
  }
}

@media (max-width: 430px) {
  .rush-console-head,
  .rush-dial-wrap {
    padding-inline: .9rem;
  }

  .rush-console-head > div > span {
    font-size: .51rem;
  }

  .rush-scale {
    font-size: .44rem;
    letter-spacing: .06em;
  }

  .rush-console-readings small {
    display: none;
  }

  .rush-console .rush-livebar {
    padding-inline: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rush-console.surge-reveal::after {
    animation: none;
    opacity: .96;
    transform: none;
  }

  .is-surging .surge-lamp {
    animation: none;
  }

  .rush-scope svg {
    transition: none;
  }
}
