.project-document h1 {
  font-size: clamp(36px, 4vw, 62px);
  overflow-wrap: anywhere;
}
.project-document .page-heading h1 {
  max-width: 720px;
}
.project-document .page-heading > p {
  font-size: 12px;
  max-width: 280px;
}
.project-overview {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 35px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin: 30px 0 35px;
}
.project-overview h2,
.project-operation h2,
.project-inventory h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  font-weight: 400;
  margin: 0 0 18px;
}
.project-overview p {
  font-size: 13px;
  line-height: 1.9;
  margin: 0 0 17px;
  color: #bac0ad;
}
.project-overview p:last-child {
  margin-bottom: 0;
}
.system-map {
  margin: 0;
  border: 1px solid #c5b27b30;
  background: #1d221ab3;
}
.map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.map-toolbar figcaption {
  font-size: 11px;
  color: #d7caa7;
}
.map-scroll-hint {
  font-size: 8px;
  letter-spacing: 0.5px;
  color: #8b987f;
  display: none;
}
.map-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: #807550 #22271d;
  scrollbar-width: thin;
}
.map-scroll > svg {
  width: 100%;
  min-width: 760px;
  display: block;
  font-family: Manrope, sans-serif;
}
.map-boundary {
  fill: #c5b27b03;
  stroke: #c5b27b38;
  stroke-dasharray: 5 6;
}
.map-boundary-label {
  font-size: 10px;
  fill: #879278;
  letter-spacing: 1.1px;
}
.map-box rect {
  fill: #242c20;
  stroke: #8b9b645e;
  stroke-width: 1;
}
.map-box.client rect {
  fill: #2c3023;
  stroke: #b9aa765e;
}
.map-box.store rect {
  fill: #202c25;
  stroke: #8baf8a66;
}
.map-box.broker rect {
  fill: #332f21;
  stroke: #c5b27b88;
}
.map-box.external rect {
  fill: #24251f;
  stroke: #89947b55;
  stroke-dasharray: 5 4;
}
.map-box.integration rect {
  fill: #29271e;
  stroke: #b7a27866;
  stroke-dasharray: 5 4;
}
.map-box.shared rect {
  fill: #20271c;
  stroke: #8b9b643d;
}
.map-title {
  font-size: 14px;
  font-weight: 500;
  fill: #e0d0a2;
  text-anchor: middle;
}
.map-sub {
  font-size: 11px;
  fill: #a0ae92;
  text-anchor: middle;
}
.map-edge path {
  fill: none;
  stroke: #aab58a90;
  stroke-width: 1.2;
}
.map-edge.event path {
  stroke: #d2b77e99;
  stroke-dasharray: 5 5;
  animation: diagram-stream 22s linear infinite;
}
.map-edge.integration path {
  stroke: #929ca580;
  stroke-dasharray: 2 4;
}
.map-edge text {
  font-size: 10px;
  fill: #b4b99d;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #1d221a;
  stroke-width: 5px;
  stroke-linejoin: round;
}
.arrow-request {
  fill: #aab58a;
}
.arrow-event {
  fill: #d2b77e;
}
.arrow-integration {
  fill: #929ca5;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 25px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}
.map-legend > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  color: #a1ad91;
}
.map-legend i {
  display: block;
  width: 20px;
  border-top: 1px solid #aab58a;
}
.map-legend i.event {
  border-top: 1px dashed #d2b77e;
}
.map-legend i.boundary {
  width: 18px;
  height: 10px;
  border: 1px dashed #8b987f;
}
.map-caption {
  font-size: 11px;
  line-height: 1.9;
  margin: 0;
  padding: 0 24px 22px;
  color: #a5af97;
}
@keyframes diagram-stream {
  to {
    stroke-dashoffset: -220;
  }
}
.project-operation {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.project-operation > .tiny-label {
  display: block;
  margin-bottom: 12px;
}
.project-operation ol {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: operation;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.project-operation li {
  counter-increment: operation;
  border-top: 1px solid #c5b27b30;
  padding-top: 15px;
  font-size: 12px;
  line-height: 1.9;
  color: #adb8a0;
}
.project-operation li:before {
  content: '0' counter(operation);
  display: block;
  font:
    22px Georgia,
    serif;
  color: var(--gold);
  margin-bottom: 10px;
}
.project-inventory {
  padding-top: 30px;
}
.project-inventory > div:first-child > .tiny-label {
  display: block;
  margin-bottom: 12px;
}
.inventory-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}
.inventory-columns h3 {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 16px;
}
.inventory-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.inventory-columns li {
  padding: 9px 0 9px 15px;
  border-bottom: 1px solid #c5b27b13;
  position: relative;
  font-size: 11px;
  color: #b2bda4;
  line-height: 1.8;
}
.inventory-columns li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 3px;
  height: 3px;
  background: #c5b27b80;
  border-radius: 50%;
}
.skills-page > .page-heading {
  margin-bottom: 30px;
}
.skill-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  margin-bottom: 30px;
}
.skill-categories button {
  padding: 18px 15px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  border-right: 1px solid var(--line);
  transition:
    background 0.25s,
    color 0.25s;
}
.skill-categories button:last-child {
  border-right: 0;
}
.skill-categories button > span {
  font:
    17px Georgia,
    serif;
  color: #849176;
}
.skill-categories button > small {
  margin-left: auto;
  color: #819175;
  font-size: 8px;
}
.skill-categories button.selected {
  background: #d2b77e0a;
  color: var(--gold);
  box-shadow: inset 0 -1px var(--gold);
}
.skill-categories button.selected > span {
  color: var(--gold);
}
.skill-workspace {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: start;
}
.skill-category-description {
  font-size: 11px;
  line-height: 1.8;
  color: #aeb99e;
  margin: 0 0 20px;
  min-height: 22px;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.skill-tile {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  text-align: left;
  padding: 16px;
  border: 1px solid #c5b27b26;
  background: #1a211755;
  transition:
    border-color 0.25s,
    background 0.25s,
    translate 0.25s;
}
.skill-tile:hover {
  translate: 0 -3px;
  border-color: #c5b27b77;
}
.skill-tile.selected {
  border-color: #d2b77e9c;
  background: #d2b77e08;
}
.skill-tile-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #c5b27b35;
  color: #d3bd89;
  font-family: Georgia, serif;
  font-size: 20px;
}
.skill-tile strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #dedacb;
}
.skill-tile small {
  display: block;
  font-size: 8px;
  color: #8b9d7d;
  line-height: 1.6;
  margin-top: 5px;
}
.skill-tile-arrow {
  color: var(--gold);
  margin-left: auto;
  font-size: 14px;
  opacity: 0.45;
}
.skill-tile.selected .skill-tile-arrow {
  opacity: 1;
}
.skill-catalog-note {
  display: block;
  font-size: 9px;
  color: #7f9073;
  margin-top: 18px;
}
.skill-catalog-note > b {
  font-weight: 400;
  color: #c1ad7f;
}
.skill-detail {
  min-height: 480px;
  border: 1px solid #c5b27b35;
  background:
    radial-gradient(ellipse at 50% 20%, #c5b27b0b, transparent 70%), #1b221966;
  padding: 25px 27px;
}
.skill-detail-content {
  animation: skill-enter 0.35s ease both;
}
.skill-detail h2 {
  font-size: 30px;
  font-weight: 400;
  margin: 9px 0 15px;
  letter-spacing: -0.7px;
}
.skill-detail p {
  font-size: 12px;
  line-height: 1.9;
  margin: 0 0 18px;
  color: #b5c0a8;
}
.skill-orbit {
  width: 142px;
  height: 142px;
  margin: 0 auto 24px;
  position: relative;
  display: grid;
  place-items: center;
}
.skill-orbit > span {
  font:
    43px Georgia,
    serif;
  color: var(--gold);
  border: 1px solid #c5b27b50;
  display: grid;
  place-items: center;
  width: 77px;
  height: 77px;
  background: #c5b27b05;
}
.skill-orbit > i {
  position: absolute;
  inset: 0;
  border: 1px solid #c5b27b30;
  border-radius: 50%;
  transform: rotate(-30deg) scaleY(0.6);
}
.skill-orbit > i:nth-child(2) {
  transform: rotate(50deg) scaleY(0.65);
}
.skill-orbit > b {
  position: absolute;
  inset: 8px;
  border: 1px solid #c5b27b18;
  border-radius: 50%;
  animation: skill-revolve 18s linear infinite;
}
.skill-orbit > b:after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  top: 18px;
  left: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 15px #d2b77e70;
}
.skill-uses {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}
.skill-uses li {
  font-size: 8px;
  border: 1px solid var(--line);
  padding: 5px 7px;
  color: #a3b195;
  line-height: 1.5;
}
.skill-evidence {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.skill-evidence > .tiny-label {
  display: block;
  margin-bottom: 12px;
}
.skill-evidence > a {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  line-height: 1.6;
  color: #c7b98d;
  padding: 6px 0;
}
.skill-evidence > a:hover {
  color: #eed6a0;
}
.skill-evidence > a span {
  font-size: 15px;
}
@keyframes skill-revolve {
  to {
    transform: rotate(360deg);
  }
}
@keyframes skill-enter {
  from {
    opacity: 0.65;
    translate: 0 5px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (max-width: 1000px) {
  .project-overview {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 25px;
  }
  .skill-workspace {
    gap: 24px;
    grid-template-columns: 1.1fr 1fr;
  }
  .skill-categories button {
    font-size: 10px;
    padding: 16px 10px;
  }
  .skill-tile {
    padding: 12px;
    gap: 9px;
  }
  .skill-tile-icon {
    width: 30px;
    height: 34px;
    font-size: 17px;
  }
  .skill-tile strong {
    font-size: 11px;
  }
  .skill-tile-arrow {
    display: none;
  }
}
@media (max-width: 800px) {
  .project-overview {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .project-overview h2 {
    margin-bottom: 17px;
  }
  .project-operation ol {
    gap: 20px;
  }
  .map-scroll-hint {
    display: inline;
  }
  .inventory-columns {
    gap: 25px;
  }
  .skill-workspace {
    grid-template-columns: 1fr 1fr;
  }
  .skill-grid {
    grid-template-columns: 1fr;
  }
  .skill-tile {
    min-height: 75px;
  }
  .skill-detail {
    padding: 22px;
    min-height: 460px;
  }
  .skill-categories button {
    font-size: 9px;
    gap: 7px;
  }
  .skill-categories button > small {
    display: none;
  }
}
@media (max-width: 580px) {
  .chapter-rail > a {
    max-width: 20%;
  }
  .project-document .page-heading > p {
    font-size: 12px;
    max-width: none;
    margin-top: 20px;
  }
  .project-document h1 {
    font-size: clamp(34px, 9vw, 43px);
  }
  .project-overview {
    margin: 25px 0;
  }
  .project-overview p {
    font-size: 12px;
  }
  .project-operation ol {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .project-operation li {
    font-size: 12px;
    padding-left: 37px;
    position: relative;
  }
  .project-operation li:before {
    position: absolute;
    left: 0;
    top: 17px;
    font-size: 20px;
  }
  .inventory-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .inventory-columns li {
    font-size: 11px;
  }
  .map-toolbar {
    padding: 16px;
    display: block;
  }
  .map-toolbar figcaption {
    font-size: 10px;
    line-height: 1.7;
  }
  .map-scroll-hint {
    display: block;
    font-size: 8px;
    margin-top: 7px;
  }
  .map-scroll > svg {
    min-width: 820px;
  }
  .map-legend {
    padding: 15px 16px;
    gap: 10px;
  }
  .map-legend > span {
    font-size: 7px;
  }
  .map-caption {
    padding: 0 16px 18px;
    font-size: 10px;
  }
  .skill-categories {
    grid-template-columns: 1fr 1fr;
  }
  .skill-categories button {
    padding: 15px 10px;
    font-size: 9px;
    min-height: 53px;
    gap: 8px;
  }
  .skill-categories button:nth-child(2) {
    border-right: 0;
  }
  .skill-categories button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .skill-categories button > span {
    font-size: 16px;
  }
  .skill-workspace {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .skill-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .skill-tile {
    padding: 12px;
    min-height: 95px;
    display: block;
  }
  .skill-tile-icon {
    margin-bottom: 10px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  .skill-tile strong {
    font-size: 11px;
  }
  .skill-tile small {
    font-size: 7px;
  }
  .skill-detail {
    min-height: 0;
    padding: 24px;
  }
  .skill-orbit {
    width: 125px;
    height: 125px;
    margin-bottom: 22px;
  }
  .skill-orbit > span {
    width: 67px;
    height: 67px;
    font-size: 36px;
  }
  .skill-detail h2 {
    font-size: 28px;
  }
  .skill-category-description {
    font-size: 10px;
    margin-bottom: 15px;
  }
  .skill-catalog-note {
    font-size: 8px;
  }
}
.skill-detail {
  scroll-margin-top: 20px;
}
.inventory-matrix {
  border: 1px solid var(--line);
  background: #1d221a70;
}
.inventory-matrix-head,
.inventory-row {
  display: grid;
  grid-template-columns: 170px 1.5fr 1fr;
  gap: 24px;
  padding: 20px 24px;
}
.inventory-matrix-head {
  padding-block: 13px;
  background: #c5b27b07;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #a59672;
}
.inventory-row {
  border-top: 1px solid var(--line);
  align-items: start;
}
.inventory-row h3 {
  display: flex;
  gap: 13px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #d5c298;
  line-height: 1.8;
}
.inventory-row h3 small {
  font:
    13px Georgia,
    serif;
  color: #7e8d71;
  padding-top: 4px;
}
.inventory-row p {
  margin: 0;
  font-size: 11px;
  line-height: 1.9;
  color: #b2bda4;
}
.inventory-row .inventory-tech {
  font-size: 10px;
  color: #95a486;
}
.orbital-study .orb-caption {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}
.orb-compass {
  position: absolute;
  inset: 13%;
  border: 1px dashed #c5b27b25;
  border-radius: 50%;
  pointer-events: none;
}
.orb-compass > i {
  position: absolute;
  background: #c5b27b75;
  width: 13px;
  height: 1px;
  top: 50%;
  left: -7px;
}
.orb-compass > i:nth-child(2) {
  left: auto;
  right: -7px;
}
.orb-compass > i:nth-child(3) {
  left: 50%;
  top: -1px;
  width: 1px;
  height: 13px;
  translate: 0 -50%;
}
.orb-compass > i:nth-child(4) {
  left: 50%;
  top: auto;
  bottom: -7px;
  width: 1px;
  height: 13px;
}
.orb-satellite {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  animation: orbital-satellite 32s linear infinite;
  pointer-events: none;
}
.orb-satellite > i {
  position: absolute;
  left: 14%;
  top: 14%;
  width: 7px;
  height: 7px;
  border: 1px solid #d2b77e;
  border-radius: 50%;
  box-shadow: 0 0 18px #d2b77e50;
}
.satellite-b {
  inset: 19%;
  animation-duration: 47s;
  animation-direction: reverse;
}
.satellite-b > i {
  width: 4px;
  height: 4px;
  background: #a7b392;
  border: 0;
}
@keyframes orbital-satellite {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1000px) {
  .inventory-matrix-head,
  .inventory-row {
    grid-template-columns: 135px 1.4fr 1fr;
    gap: 18px;
    padding-inline: 18px;
  }
}
@media (max-width: 650px) {
  .inventory-matrix-head {
    display: none;
  }
  .inventory-row {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 20px;
  }
  .inventory-row:first-child {
    border-top: 0;
  }
  .inventory-row h3 {
    margin-bottom: 2px;
  }
  .inventory-row .inventory-tech {
    padding-top: 10px;
    border-top: 1px solid #c5b27b15;
  }
  .orb-compass {
    inset: 16%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .orb-satellite {
    animation: none !important;
  }
}
body.motion-paused .orb-satellite {
  animation-play-state: paused !important;
}
.orbital-study #orb {
  cursor: grab;
  touch-action: none;
}
.orbital-study #orb.dragging {
  cursor: grabbing;
}
.orbital-study #orb:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: -16px;
  border-radius: 50%;
}
@media (prefers-reduced-motion: reduce) {
  .map-edge.event path,
  .skill-orbit > b,
  .skill-detail-content {
    animation: none !important;
  }
}
