/* The Tree of IRIX 7 — generated site styles */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060a16;
  --bg-deep: #03050b;
  --bg-panel: #0c1323;
  --ink: #f4eee3;
  --ink-dim: #cfd5e2;
  --muted: #99a2b7;
  --faint: #6d768c;
  --coral: #ff9a72;
  --coral-hot: #ff7a5c;
  --gold: #ffd37a;
  --cream: #ffe3b5;
  --teal: #63d8c6;
  --mint: #8fe3c0;
  --sky: #7cc7ff;
  --violet: #c9b8ff;
  --pink: #f49ad4;
  --line: rgba(244, 238, 227, 0.13);
  --line-soft: rgba(244, 238, 227, 0.07);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

::selection {
  background: rgba(255, 154, 114, 0.3);
  color: #fff;
}

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

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  transition: top 0.2s;
}
.skip:focus {
  top: 16px;
}

.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;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

/* ------------------------------------------------------------------ stage */

#stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #05070f;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
#stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(4, 7, 15, 1) 0,
    rgba(4, 7, 15, 1) 42px,
    rgba(4, 7, 15, 0) 96px,
    rgba(4, 7, 15, 0) calc(100% - 96px),
    rgba(4, 7, 15, 1) calc(100% - 42px),
    rgba(4, 7, 15, 1) 100%
  );
}
#stage.is-dragging {
  cursor: grabbing;
}
#stage.is-flying {
  cursor: progress;
}
#stage:focus {
  outline: none;
}

#tree {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Generated SVG — atmosphere */

.star {
  fill: #f6ecd8;
}
.twinkle {
  animation: twinkle 7s ease-in-out infinite;
}
.star-cross {
  stroke: #f6ecd8;
  stroke-width: 1;
  stroke-opacity: 0.24;
}
.orbit {
  fill: none;
  stroke: var(--cream);
  stroke-opacity: 0.09;
  stroke-width: 1;
}
.orbit.faint {
  stroke-opacity: 0.055;
}
.orbit.fainter {
  stroke-opacity: 0.035;
  stroke-dasharray: 2 8;
}
.axis {
  stroke: var(--cream);
  stroke-opacity: 0.035;
  stroke-width: 1;
}
.sun-ring {
  fill: none;
  stroke: var(--cream);
  stroke-opacity: 0.18;
  stroke-width: 1;
  stroke-dasharray: 1 7;
}
.planet-ring {
  fill: none;
  stroke: var(--gold);
  stroke-opacity: 0.16;
  stroke-width: 1.1;
}
.planet-ring.faint {
  stroke-opacity: 0.06;
}
.ridge {
  stroke: none;
}
.ridge.far {
  fill: #0b1226;
  opacity: 0.62;
}
.ridge.near {
  fill: #070c19;
  opacity: 0.92;
}
.horizon {
  fill: none;
  stroke: var(--coral);
  stroke-opacity: 0.34;
  stroke-width: 1.1;
}
.horizon-glow {
  fill: none;
  stroke: var(--coral-hot);
  stroke-opacity: 0.14;
  stroke-width: 7;
  filter: url(#softGlow);
}
.root-underlay {
  fill: none;
  stroke: var(--coral-hot);
  stroke-opacity: 0.1;
  stroke-width: 28;
  filter: url(#softGlow);
  stroke-linecap: round;
}
.root-main {
  fill: none;
  stroke: var(--coral);
  stroke-opacity: 0.52;
  stroke-width: 6.5;
  stroke-linecap: round;
}
.root-light {
  fill: none;
  stroke: var(--cream);
  stroke-opacity: 0.22;
  stroke-width: 1.4;
}
.root-hair {
  fill: none;
  stroke: var(--coral);
  stroke-opacity: 0.22;
  stroke-width: 1.1;
}
.bough-shadow {
  fill: none;
  stroke: var(--coral-hot);
  stroke-opacity: 0.1;
  filter: url(#softGlow);
  stroke-linecap: round;
}
.bough {
  fill: none;
  stroke: url(#boughGrad);
  stroke-linecap: round;
}
.trunk {
  fill: none;
  stroke: url(#trunkGrad);
  stroke-linecap: round;
}
.bough-light,
.trunk-light {
  fill: none;
  stroke: var(--cream);
  stroke-opacity: 0.26;
  stroke-linecap: round;
}
.split-hub {
  fill: var(--cream);
  filter: url(#tinyGlow);
  opacity: 0.8;
}
.twig {
  fill: none;
  stroke: #e79a72;
  stroke-opacity: 0.4;
  stroke-width: 1.25;
  stroke-linecap: round;
}
.cross-link {
  fill: none;
  stroke: var(--sky);
  stroke-opacity: 0.18;
  stroke-width: 1.1;
  stroke-dasharray: 2 9;
}
.converge {
  fill: none;
  stroke: var(--gold);
  stroke-opacity: 0.44;
  stroke-width: 1.5;
  stroke-dasharray: 2 10;
  animation: flow 50s linear infinite;
}
.branch-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 2.6px;
  opacity: 0.52;
  text-transform: uppercase;
}
.canopy-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 5px;
  fill: var(--cream);
  opacity: 0.26;
  text-anchor: middle;
}

/* Generated SVG — nodes */

.node {
  cursor: pointer;
  outline: none;
  pointer-events: bounding-box;
  transition: opacity 0.45s var(--ease);
}
.node-release {
  pointer-events: visiblePainted;
}
.release-stem {
  pointer-events: none;
}
.node-halo {
  fill: var(--s);
  opacity: 0.055;
  transition: opacity 0.35s var(--ease);
}
.node-ring {
  fill: #0a1020;
  stroke: var(--s);
  stroke-width: 1.6;
  transition: stroke-width 0.3s var(--ease), stroke-opacity 0.3s var(--ease);
}
.node-disc {
  fill: #0b1223;
  stroke: var(--s);
  stroke-opacity: 0.22;
  stroke-width: 0.8;
}
.node-icon {
  fill: none;
  stroke: var(--s);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.node:hover .node-halo {
  opacity: 0.16;
}
.node:hover .node-ring {
  stroke-width: 2.6;
}
.node:focus-visible .node-ring {
  stroke: var(--ink);
  stroke-width: 3;
}
.st-active .node-ring {
  animation: breathe 4.5s ease-in-out infinite;
}
.st-exploring .node-ring {
  stroke-dasharray: 3 5;
}
.st-planned .node-ring {
  stroke-opacity: 0.72;
}
.st-pruned .node-ring,
.st-pruned .feature-ring {
  stroke-dasharray: 2 3;
}

.m-code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 2.2px;
  fill: var(--s);
  text-anchor: middle;
  opacity: 0.82;
}
.m-title {
  font-family: var(--font-ui);
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  fill: var(--ink);
  text-anchor: middle;
}
.m-title-sm {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
  fill: var(--ink);
  text-anchor: middle;
}
.m-status {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  fill: var(--s);
  text-anchor: middle;
  opacity: 0.78;
  text-transform: uppercase;
}
.m-title,
.m-title-sm,
.f-label,
.ws-label,
.p-label,
.seed-title,
.seed-sub {
  paint-order: stroke fill;
  stroke: #070b16;
  stroke-width: 3.4px;
  stroke-linejoin: round;
}
.m-code,
.m-status,
.r-label,
.r-sub {
  paint-order: stroke fill;
  stroke: #070b16;
  stroke-width: 2.8px;
  stroke-linejoin: round;
}

.feature-halo {
  fill: var(--s);
  opacity: 0.11;
}
.feature-ring {
  fill: #0a1020;
  stroke: var(--s);
  stroke-width: 1.35;
}
.feature-core {
  fill: var(--s);
}
.f-label {
  font-family: var(--font-ui);
  font-size: 13.2px;
  letter-spacing: 0.05px;
  fill: #d5d0c4;
  transition: fill 0.2s;
}
.node-feature:hover .f-label {
  fill: #fff;
}
.node-feature:hover .feature-ring {
  stroke-width: 2.2;
}

.seed-halo {
  fill: var(--coral);
  opacity: 0.11;
  filter: url(#softGlow);
}
.seed-ring {
  fill: #0b1223;
  stroke: var(--coral);
  stroke-width: 1.5;
}
.seed-disc {
  fill: #0e1729;
  stroke: var(--coral);
  stroke-opacity: 0.3;
}
.is-seed .node-icon {
  stroke: var(--cream);
}
.seed-title {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.8px;
  fill: var(--ink);
}
.seed-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 2px;
  fill: var(--coral);
  text-transform: uppercase;
}

.fruit {
  fill: #0b1223;
  stroke: var(--gold);
  stroke-width: 1.4;
}
.fruit-core {
  fill: var(--cream);
}
.r-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  fill: var(--gold);
}
.r-sub {
  font-family: var(--font-ui);
  font-size: 9.5px;
  fill: var(--muted);
}
.release-stem {
  fill: none;
  stroke: var(--gold);
  stroke-opacity: 0.25;
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.node-release:hover .fruit {
  fill: rgba(255, 211, 122, 0.18);
}
.node-release:hover .r-sub {
  fill: var(--ink);
}

.mycelium-thread {
  fill: none;
  stroke: var(--teal);
  stroke-opacity: 0.18;
  stroke-width: 1.1;
  stroke-dasharray: 1 7;
}
.ws-halo {
  fill: var(--s);
  opacity: 0.14;
}
.ws-dot {
  fill: var(--s);
}
.ws-label {
  font-family: var(--font-ui);
  font-size: 11.8px;
  fill: #b7c1d3;
}
.node-workstream:hover .ws-label {
  fill: #fff;
}
.list-head {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.4px;
  fill: var(--teal);
  opacity: 0.72;
}
.list-sub {
  font-family: var(--font-ui);
  font-size: 10px;
  fill: var(--faint);
}
.compost-mound {
  fill: #0a0f1d;
  stroke: #697086;
  stroke-opacity: 0.22;
  stroke-width: 1;
}
.compost-contour {
  fill: none;
  stroke: #697086;
  stroke-opacity: 0.14;
  stroke-width: 1;
}
.pruned-x {
  stroke: #7b8296;
  stroke-width: 1.2;
  fill: none;
}
.pruned-halo {
  fill: var(--s);
  opacity: 0;
  transition: opacity 0.2s;
}
.node-pruned:hover .pruned-halo,
.node-pruned.is-selected .pruned-halo {
  opacity: 0.16;
}
.p-label {
  font-family: var(--font-ui);
  font-size: 11.4px;
  fill: #98a1b4;
  transition: fill 0.2s;
}
.node-pruned:hover .p-label {
  fill: #cbd2df;
  text-decoration: line-through;
}
.mushroom .cap {
  fill: var(--coral);
  opacity: 0.5;
}
.mushroom .stem {
  fill: var(--cream);
  opacity: 0.32;
}
.mushroom .spot {
  fill: #0a0f1d;
  opacity: 0.6;
}
.indy-egg {
  opacity: 0.5;
}
.indy-case {
  fill: none;
  stroke: #5d6a8c;
  stroke-width: 1.2;
}
.indy-screen {
  fill: #0d1830;
  stroke: #5d6a8c;
  stroke-width: 0.8;
}
.indy-detail {
  fill: none;
  stroke: #5d6a8c;
  stroke-width: 1;
}
.indy-text {
  font-family: var(--font-mono);
  font-size: 7px;
  fill: var(--teal);
  text-anchor: middle;
  opacity: 0.9;
}

/* Ancestry highlight, applied by JS */
#stage.has-hot .node:not(.is-hot):not(.is-ancestor) {
  opacity: 0.22;
}
#stage.has-hot .node.is-ancestor .node-ring {
  stroke-width: 2.4;
}
#stage.has-hot .node.is-hot .node-halo {
  opacity: 0.2;
}
#stage.has-hot .twig,
#stage.has-hot .bough,
#stage.has-hot .trunk {
  transition: opacity 0.4s;
}
#stage.has-hot #tree > #twigs {
  opacity: 0.4;
}
.node.is-selected .node-halo {
  opacity: 0.22;
}
.node-seed.is-selected .seed-halo,
.node-workstream.is-selected .ws-halo {
  opacity: 0.28;
}

/* Status filters, applied by JS */
#stage.off-done .node.st-done,
#stage.off-active .node.st-active,
#stage.off-planned .node.st-planned,
#stage.off-exploring .node.st-exploring,
#stage.off-pruned .node.st-pruned {
  opacity: 0.07;
  pointer-events: none;
}
#stage.off-done .bough,
#stage.off-active .bough,
#stage.off-planned .bough,
#stage.off-exploring .bough,
#stage.off-pruned .bough {
  transition: opacity 0.4s;
}

.panel code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #ded3c2;
}

#node-list:focus-within {
  position: fixed;
  left: 16px;
  top: 80px;
  z-index: 200;
  width: min(340px, calc(100vw - 32px));
  max-height: 60vh;
  margin: 0;
  padding: 14px 18px;
  overflow: auto;
  clip: auto;
  white-space: normal;
  background: #0c1323;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
#node-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#node-list:focus-within a {
  display: block;
  padding: 5px 0;
  font-size: 12px;
  color: var(--ink-dim);
}

/* ----------------------------------------------------------------- chrome */

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 26px 0;
  z-index: 30;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(4, 7, 15, 1) 0%,
    rgba(4, 7, 15, 1) 62%,
    rgba(4, 7, 15, 0) 100%
  );
  transition: opacity 0.7s var(--ease);
}
body.intro-open .topbar,
body.intro-open .hud,
body.intro-open .rail,
body.intro-open .now-growing {
  opacity: 0;
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  transition: background 0.25s;
}
.brand:hover {
  background: rgba(255, 255, 255, 0.04);
}
.prism {
  width: 31px;
  height: 31px;
  flex: none;
}
.prism-face {
  fill: rgba(255, 154, 114, 0.09);
  stroke: var(--coral);
  stroke-width: 1.2;
}
.prism-edge {
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.prism-cut {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.1;
  opacity: 0.85;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.6px;
}
.brand-sub {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-trigger,
.ghost-btn,
.icon-btn {
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(9, 14, 27, 0.62);
  color: var(--ink-dim);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.search-trigger:hover,
.ghost-btn:hover,
.icon-btn:hover {
  border-color: rgba(255, 183, 138, 0.5);
  background: rgba(20, 28, 50, 0.78);
  color: var(--ink);
}
.search-trigger {
  width: 205px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  font-size: 12px;
  text-align: left;
}
.search-trigger svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  flex: none;
}
.search-trigger span {
  flex: 1;
}
kbd {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
}
.ghost-btn {
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 12px;
}
.icon-btn {
  width: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  padding: 0;
}
.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* legend */

.hud {
  position: absolute;
  z-index: 25;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
}
.hud > * {
  pointer-events: auto;
}
.hud-left {
  left: 24px;
  bottom: 82px;
}
.legend {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 12, 24, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.hud-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 9px 0 10px;
}
.lg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 9px;
  font-size: 11px;
  color: #c8cfdd;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.lg-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s);
  box-shadow: 0 0 8px var(--s);
}
.lg-chip span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--faint);
  margin-left: 1px;
}
.lg-chip:hover {
  background: rgba(255, 255, 255, 0.06);
}
.lg-chip.is-off {
  opacity: 0.32;
}
.lg-pruned i {
  background: transparent;
  border: 1px solid var(--s);
  box-shadow: none;
}

/* zoom + minimap */

.hud-right {
  right: 24px;
  bottom: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transition: right 0.5s var(--ease), opacity 0.4s var(--ease);
}
@media (min-width: 821px) {
  body.panel-open .hud-right {
    right: 470px;
  }
  body.panel-open .minimap-wrap {
    opacity: 0;
    visibility: hidden;
  }
}
@media (max-width: 820px) {
  body.panel-open .hud-right {
    opacity: 0;
    pointer-events: none;
  }
}
.minimap-wrap {
  width: 188px;
  height: 144px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(5, 9, 18, 0.7);
  backdrop-filter: blur(12px);
  opacity: 0.82;
  transition: opacity 0.3s;
}
.minimap-wrap:hover {
  opacity: 1;
}
#minimap {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
#minimap .mini-bough {
  fill: none;
  stroke: var(--coral);
  stroke-opacity: 0.7;
  stroke-width: 34;
}
#minimap .mini-node {
  opacity: 0.95;
}
#mini-view {
  fill: rgba(255, 154, 114, 0.04);
  stroke: var(--coral);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.zoom {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: rgba(7, 12, 24, 0.7);
  backdrop-filter: blur(16px);
}
.zoom button {
  width: 38px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.zoom button:last-child {
  border-bottom: 0;
}
.zoom button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}
.zoom button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* milestone rail */

.rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  align-items: center;
  padding: 0 22px;
  z-index: 28;
  background: linear-gradient(to top, rgba(4, 7, 15, 0.94), rgba(4, 7, 15, 0));
  transition: opacity 0.7s var(--ease);
}
.rail::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 31px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 154, 114, 0.25) 8%,
    rgba(255, 154, 114, 0.25) 92%,
    transparent
  );
}
.rail-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--faint);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
  z-index: 1;
}
.rail-item i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--s);
  box-shadow: 0 0 0 3px var(--bg), 0 0 8px var(--s);
  flex: none;
}
.rail-item .code {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.6px;
}
.rail-item .name {
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rail-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
}
.rail-item.is-active {
  color: var(--ink);
  background: rgba(255, 154, 114, 0.08);
}
.rail-item.is-active i {
  box-shadow: 0 0 0 3px var(--bg), 0 0 12px var(--s);
}

/* now growing */

.now-growing {
  position: absolute;
  left: 26px;
  bottom: 128px;
  z-index: 26;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity 0.7s var(--ease);
}
.ng-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--faint);
  padding-left: 4px;
}
.ng-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 26, 0.65);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 8px 13px 8px 11px;
  font-size: 11px;
  color: var(--ink-dim);
  transition: border-color 0.25s, background 0.25s;
}
.ng-link i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s);
  box-shadow: 0 0 8px var(--s);
}
.ng-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ng-link:hover {
  border-color: rgba(255, 183, 138, 0.5);
  background: rgba(20, 28, 50, 0.8);
}

/* ------------------------------------------------------------------- intro */

.intro {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 5vw;
  padding: 108px 6vw 74px 7vw;
  background:
    linear-gradient(
      90deg,
      rgba(3, 6, 13, 0.99) 0%,
      rgba(3, 6, 13, 0.975) 36%,
      rgba(3, 6, 13, 0.86) 57%,
      rgba(3, 6, 13, 0.42) 78%,
      rgba(3, 6, 13, 0.08) 100%
    ),
    radial-gradient(110% 90% at 18% 110%, rgba(255, 122, 92, 0.1), transparent 55%);
  transition: opacity 0.7s var(--ease), visibility 0.7s, transform 0.7s var(--ease);
  overflow-y: auto;
}
.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    120% 100% at 50% 50%,
    transparent 48%,
    rgba(2, 4, 9, 0.35) 100%
  );
}
.intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
}
.intro-main {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--coral);
}
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 154, 114, 0.5);
  animation: ping 3s ease-out infinite;
}
.intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(62px, 8.2vw, 118px);
  font-weight: 320;
  font-optical-sizing: auto;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.intro h1 em {
  font-style: italic;
  font-weight: 340;
  background: linear-gradient(102deg, var(--cream) 0%, var(--coral) 55%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.intro-lead {
  max-width: 595px;
  margin: 34px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: #d9d5ca;
  letter-spacing: -0.1px;
}
.intro-copy {
  max-width: 545px;
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}
.intro-copy.muted {
  color: #7f889d;
}
.intro-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}
.enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 999px;
  padding: 15px 20px 15px 24px;
  background: var(--ink);
  color: #0a0f1c;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 14px 40px rgba(255, 233, 200, 0.12);
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}
.enter-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.enter-btn:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(255, 233, 200, 0.2);
}
.enter-btn:hover svg {
  transform: translateX(3px);
}
.intro-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.6px;
  color: var(--faint);
}
.intro-stats {
  display: flex;
  gap: 40px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  max-width: 560px;
}
.intro-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.intro-stats strong {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 420;
  line-height: 1;
  color: var(--ink);
}
.intro-stats span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--faint);
}
.intro-aside {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-bottom: 10px;
  padding-left: 26px;
  border-left: 1px solid var(--line-soft);
}
.aside-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 9px 4px;
  border-radius: 999px;
  background: rgba(4, 7, 15, 0.72);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--teal);
}
.aside-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 14, 28, 0.65);
  backdrop-filter: blur(18px);
  text-align: left;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.aside-card:hover {
  border-color: rgba(255, 183, 138, 0.45);
  background: rgba(16, 23, 43, 0.8);
  transform: translateY(-2px);
}
.aside-code {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--coral);
}
.aside-title {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 430;
  letter-spacing: -0.4px;
  line-height: 1.05;
}
.aside-copy {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}
.aside-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--coral);
}
.aside-cta svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.aside-note {
  margin: 16px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(4, 7, 15, 0.62);
  backdrop-filter: blur(8px);
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--faint);
}

/* ------------------------------------------------------------------- panel */

.panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 442px;
  height: 100%;
  z-index: 44;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(14, 21, 40, 0.975), rgba(6, 10, 20, 0.99));
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  transform: translateX(103%);
  transition: transform 0.62s var(--ease), visibility 0s linear 0.62s;
  visibility: hidden;
}
.panel.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.62s var(--ease), visibility 0s linear 0s;
}
.panel-grip {
  display: none;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 27px 0;
  flex: none;
}
.panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--coral);
}
.panel-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.3s;
}
.panel-close:hover {
  color: var(--ink);
  border-color: rgba(255, 183, 138, 0.45);
  transform: rotate(90deg);
}
.panel-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.panel-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 32px 38px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.panel-scroll::-webkit-scrollbar {
  width: 8px;
}
.panel-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}
.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--s) 45%, transparent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--s);
}
.panel-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--s);
  box-shadow: 0 0 8px var(--s);
}
.panel-title {
  margin: 15px 0 16px;
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 380;
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.panel-summary {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: #c9d0de;
}
.panel-body h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 11px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
}
.panel-body h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.panel-demo {
  margin: 0;
  padding-left: 15px;
  border-left: 1px solid var(--coral);
  font-family: var(--font-display);
  font-size: 16.5px;
  font-style: italic;
  font-weight: 350;
  line-height: 1.5;
  color: #e5ddcf;
}
.panel-note {
  margin: 20px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 154, 114, 0.18);
  border-radius: 10px;
  background: rgba(255, 154, 114, 0.055);
  font-size: 12px;
  line-height: 1.6;
  color: #d9c7ba;
}
.panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel-list li {
  position: relative;
  padding: 0 0 0 18px;
  margin: 0 0 9px;
  font-size: 12.6px;
  line-height: 1.6;
  color: #bdc5d4;
}
.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--s);
  border-radius: 50%;
  opacity: 0.8;
}
.panel-list.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.panel-list.tags li {
  padding: 5px 9px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--muted);
}
.panel-list.tags li::before {
  display: none;
}
.panel-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin: 0;
}
.panel-meta div {
  min-width: 0;
}
.panel-meta dt {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.panel-meta dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #c3cada;
}
.panel-parent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.5px;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.panel-parent:hover {
  border-color: rgba(255, 183, 138, 0.45);
  color: var(--ink);
}
.panel-parent i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--s);
}
.panel-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 154, 114, 0.26);
  border-radius: 12px;
  background: rgba(255, 154, 114, 0.055);
  font-size: 11.5px;
  color: var(--coral);
  transition: background 0.2s, border-color 0.2s;
}
.panel-doc:hover {
  background: rgba(255, 154, 114, 0.1);
  border-color: rgba(255, 154, 114, 0.5);
}
.panel-doc svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.panel-foot {
  margin: 26px 0 0;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.6px;
  color: #5f687d;
}

/* ------------------------------------------------------------------ search */

.search-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  justify-items: center;
  align-items: start;
  padding-top: 13vh;
  background: rgba(2, 4, 9, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.search-layer[hidden] {
  display: none;
}
.search-box {
  width: min(620px, calc(100vw - 28px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #0c1323;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  transform: translateY(-8px);
  animation: pop 0.3s var(--ease) forwards;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.search-field > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.6;
  flex: none;
}
#search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
}
#search-input::placeholder {
  color: #6d768c;
}
#search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.search-results {
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 54vh;
  overflow-y: auto;
}
.search-results li {
  margin: 0;
}
.search-result {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background 0.15s;
}
.search-result:hover,
.search-result.is-active {
  background: rgba(255, 154, 114, 0.08);
}
.search-result .sr-code {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.6px;
  color: var(--faint);
  white-space: nowrap;
}
.search-result .sr-title {
  display: block;
  font-size: 12.5px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result .sr-branch {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.search-result .sr-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--s);
  box-shadow: 0 0 6px var(--s);
}
.search-empty {
  padding: 26px 18px 30px;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}
.search-hint {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 10px 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.4px;
  color: #5f687d;
}

/* ------------------------------------------------------------------- about */

.about {
  width: min(780px, calc(100vw - 28px));
  max-height: 88vh;
  padding: 34px 38px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: linear-gradient(160deg, #0e162a, #080d19);
  color: var(--ink);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}
.about::backdrop {
  background: rgba(2, 4, 9, 0.74);
  backdrop-filter: blur(8px);
}
.about-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.about-head .eyebrow {
  margin: 4px 0 0;
}
.about h2 {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 380;
  letter-spacing: -0.035em;
}
.about-lead {
  max-width: 580px;
  margin: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #c6cedc;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.about-grid h3 {
  margin: 0 0 7px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
}
.about-grid p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.about-grid code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #d9c7ba;
}
.about-grid a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.about-grid a code {
  color: inherit;
}
.about-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.about-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.about-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--s);
}
.about-foot {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
  line-height: 1.6;
  color: #5f687d;
}
.about-foot a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------- grain */

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.028;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ motion */

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.9;
  }
}
@keyframes flow {
  to {
    stroke-dashoffset: -240;
  }
}
@keyframes breathe {
  0%,
  100% {
    stroke-opacity: 1;
  }
  50% {
    stroke-opacity: 0.55;
  }
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 154, 114, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(255, 154, 114, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 154, 114, 0);
  }
}
@keyframes pop {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ----------------------------------------------------------------- respond */

@media (max-width: 1180px) {
  .intro {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 4vw;
  }
  .rail-item .name {
    display: none;
  }
  .search-trigger {
    width: 176px;
  }
  .now-growing {
    display: none;
  }
}

@media (max-width: 980px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
    background:
      linear-gradient(90deg, rgba(3, 6, 13, 0.98) 0%, rgba(3, 6, 13, 0.9) 55%, rgba(3, 6, 13, 0.58) 100%),
      radial-gradient(110% 90% at 18% 110%, rgba(255, 122, 92, 0.1), transparent 55%);
  }
  .intro-aside {
    display: none;
  }
  .intro-main {
    max-width: 680px;
  }
  .minimap-wrap {
    display: none;
  }
  .panel {
    width: 400px;
  }
}

@media (max-width: 820px) {
  #stage::after {
    background: linear-gradient(
      90deg,
      rgba(4, 7, 15, 1) 0,
      rgba(4, 7, 15, 1) 14px,
      rgba(4, 7, 15, 0) 38px,
      rgba(4, 7, 15, 0) calc(100% - 38px),
      rgba(4, 7, 15, 1) calc(100% - 14px),
      rgba(4, 7, 15, 1) 100%
    );
  }
  .topbar {
    height: 96px;
    padding: 16px 14px 0;
  }
  .brand {
    gap: 9px;
  }
  .prism {
    width: 27px;
    height: 27px;
  }
  .brand-name {
    font-size: 13px;
    letter-spacing: 2px;
  }
  .brand-sub {
    font-size: 8px;
  }
  .ghost-btn {
    display: none;
  }
  .search-trigger {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }
  .icon-btn,
  .search-trigger {
    height: 36px;
  }
  .icon-btn {
    width: 36px;
  }
  .hud-left {
    left: 10px;
    right: 10px;
    bottom: 66px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .hud-left::-webkit-scrollbar {
    display: none;
  }
  .legend {
    width: max-content;
    padding: 4px;
  }
  .hud-label {
    display: none;
  }
  .lg-chip {
    padding: 6px 8px;
    font-size: 10.5px;
  }
  .hud-right {
    right: 12px;
    bottom: 118px;
  }
  .zoom {
    flex-direction: row;
  }
  .zoom button {
    width: 36px;
    height: 34px;
    border-bottom: 0;
    border-right: 1px solid var(--line-soft);
  }
  .zoom button:last-child {
    border-right: 0;
  }
  .rail {
    height: 54px;
    padding: 0 8px;
    background: linear-gradient(to top, rgba(4, 7, 15, 0.98), rgba(4, 7, 15, 0.2));
  }
  .rail::before {
    left: 14px;
    right: 14px;
    top: 26px;
  }
  .rail-item {
    gap: 3px;
    padding: 0;
    height: 32px;
  }
  .rail-item .name {
    display: none;
  }
  .rail-item .code {
    font-size: 8px;
  }
  .intro {
    padding: 88px 22px 34px;
    align-items: start;
  }
  .intro h1 {
    font-size: clamp(50px, 13.5vw, 78px);
  }
  .intro-lead {
    margin-top: 26px;
    font-size: 16px;
  }
  .intro-copy {
    font-size: 12.5px;
  }
  .intro-actions {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
  }
  .intro-stats {
    gap: 28px;
    margin-top: 26px;
  }
  .intro-stats strong {
    font-size: 25px;
  }
  .panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 79vh;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px 22px 0 0;
    transform: translateY(103%);
    box-shadow: 0 -30px 90px rgba(0, 0, 0, 0.6);
  }
  .panel-grip {
    display: block;
    width: 38px;
    height: 4px;
    margin: 9px auto 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
    flex: none;
  }
  .panel-head {
    padding: 10px 20px 0;
  }
  .panel-scroll {
    padding: 6px 24px 30px;
  }
  .panel-title {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .search-layer {
    padding-top: 10vh;
  }
  .brand-sub {
    display: none;
  }
  .top-actions {
    gap: 6px;
  }
  .intro {
    padding-top: 82px;
  }
  .intro h1 {
    font-size: clamp(46px, 13vw, 62px);
  }
  .intro-lead {
    font-size: 15px;
  }
  .intro-copy.muted {
    display: none;
  }
  .intro-hint {
    display: none;
  }
  .intro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 260px;
  }
  .intro-stats div:nth-child(3),
  .intro-stats div:nth-child(4) {
    display: none;
  }
  .enter-btn {
    width: 100%;
    justify-content: space-between;
    padding: 15px 18px;
  }
  .legend {
    gap: 0;
  }
  .lg-chip span {
    display: none;
  }
  .hud-right {
    bottom: 112px;
  }
  .about {
    padding: 26px 22px;
  }
  .about h2 {
    font-size: 32px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .search-result .sr-branch {
    display: none;
  }
  .search-result {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .search-hint {
    gap: 12px;
    font-size: 8px;
  }
}

@media (max-height: 720px) {
  .intro {
    padding-top: 80px;
    padding-bottom: 24px;
  }
  .intro h1 {
    font-size: clamp(46px, 7vw, 78px);
  }
  .intro-lead {
    margin-top: 20px;
  }
  .intro-stats {
    display: none;
  }
  .intro-aside {
    margin-bottom: 0;
  }
}

@media (max-height: 560px) {
  .hud-left,
  .now-growing {
    display: none;
  }
  .topbar {
    height: 76px;
    padding: 10px 16px 0;
  }
  .brand-name {
    font-size: 13px;
  }
  .brand-sub {
    display: none;
  }
  .icon-btn,
  .search-trigger {
    height: 34px;
  }
  .icon-btn {
    width: 34px;
  }
  .search-trigger {
    width: 160px;
  }
  .hud-right {
    bottom: 58px;
  }
  .rail {
    height: 48px;
  }
  .intro {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 62px 24px 20px;
  }
  .intro-aside {
    display: none;
  }
  .intro h1 {
    font-size: clamp(40px, 8vh, 58px);
  }
  .intro-lead {
    max-width: 640px;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.45;
  }
  .intro-copy,
  .intro-hint,
  .intro-stats {
    display: none;
  }
  .intro-actions {
    margin-top: 16px;
  }
}

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