@font-face {
  font-family: "Boundary Sans";
  src: url("fonts/boundary-cjk.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --lime: #d7fb79;
  --ink: #f1f3e9;
  --muted: #a4ada5;
  --line: #354039;
  --panel: #151c17;
  --paper: #0d110f;
  --mono: "Space Mono", "Cascadia Mono", "Liberation Mono", monospace;
  --sans:
    "Boundary Sans", "Noto Sans CJK SC", "Microsoft YaHei", "PingFang SC",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-color: #515f4b #111613;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.32;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
button svg,
[data-icon] svg {
  height: 19px;
  width: 19px;
  vertical-align: middle;
  display: block;
  flex: none;
}
button [data-icon] {
  display: inline-flex;
}
button {
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}
.mono,
.eyebrow {
  font-family: var(--mono);
}
.sr-only {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.masthead {
  background: #0d110f;
  border-bottom: 1px solid #28302b;
}
.mastinner,
.main-shell {
  max-width: 1640px;
  margin: auto;
  width: calc(100% - clamp(46px, 8vw, 146px));
}
.mastinner {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  padding: 0;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  min-width: 218px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: var(--lime);
  border-radius: 8px;
  color: #172013;
  transform: rotate(-3deg);
}
.brand-icon svg {
  width: 34px;
  height: 34px;
}
.brand strong {
  font-size: 17px;
  letter-spacing: 0.09em;
  font-weight: 800;
  display: block;
  line-height: 1.3;
}
.brand small {
  display: block;
  font: 8px/1.45 var(--mono);
  letter-spacing: 0.18em;
  color: #aeb8a9;
  margin-top: 2px;
}
.mastinner nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 31px;
}
.mastinner nav button {
  font-size: 13px;
  padding: 8px 0;
  color: #adb5ae;
}
.mastinner nav button:hover,
.mastinner nav .nav-current {
  color: var(--ink);
}
.mastinner nav .nav-current:before {
  content: "";
  display: inline-block;
  vertical-align: 3px;
  background: var(--lime);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 8px;
}
.top-tools {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: end;
  min-width: 218px;
}
.tool-icon,
.full-button,
.close {
  border: 1px solid #3b453e;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
}
.tool-icon {
  width: 34px;
  border-color: transparent;
  color: #bec8be;
}
.tool-icon svg {
  width: 19px;
}
.full-button {
  padding: 0 13px;
  font-size: 12px;
  font-weight: 600;
}
.full-button svg {
  height: 14px;
  width: 14px;
}
.top-tools button:hover,
.turn button:hover:not(:disabled),
.close:hover,
#reset-view:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.main-shell {
  padding-top: clamp(20px, 2.25vw, 36px);
}
.screen-group {
  border: 1px solid #38433b;
  background: #151c17;
  border-radius: 15px;
  overflow: hidden;
}
.screen-group:has(#intro:not([hidden])) {
  border-color: #3b463b;
}
#screen {
  position: relative;
  isolation: isolate;
  min-width: 0;
  container-type: inline-size;
}
#intro {
  height: clamp(405px, 34vw, 550px);
  background: radial-gradient(
    ellipse at 75% 65%,
    #202c1c 0%,
    #19241c 29%,
    #172019 52%,
    #151c17 80%
  );
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
#intro:before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#8ea9820c 1px, transparent 1px),
    linear-gradient(90deg, #8ea9820c 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, #0001 0%, #0008 35%, #000e 70%, #0007);
}
#intro:after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.19' d='M0 0h140v140H0z'/%3E%3C/svg%3E");
  opacity: 0.115;
  mix-blend-mode: screen;
}
.hero-copy {
  position: relative;
  z-index: 2;
  margin-left: clamp(33px, 4.55vw, 81px);
  pointer-events: none;
  max-width: 54%;
}
.hero-copy button {
  pointer-events: auto;
}
.overline,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
}
.overline {
  color: #d4ddca;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 21px;
}
.overline > .mono {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #a1af9e;
}
.overline i {
  height: 10px;
  width: 1px;
  background: #64725b;
}
.signal-line {
  width: 22px;
  height: 3px;
  background: var(--lime);
  display: block;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(53px, 5.15vw, 89px);
  line-height: 1.17;
  letter-spacing: -0.055em;
  font-weight: 850;
  text-shadow: 0 1px 15px #11150e1a;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--lime);
}
.hero-comma {
  font-size: 0.72em;
  margin-left: -0.08em;
}
.end-mark {
  font-family: Arial, sans-serif;
  margin-left: 0.055em;
  color: var(--lime);
  font-size: 1.03em;
}
.subtitle {
  font-size: clamp(15px, 1.16vw, 20px);
  letter-spacing: 0.095em;
  color: #b9c2b8;
  margin: 20px 0 0;
}
.hero-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 32px;
}
.primary,
.secondary {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  font-weight: 650;
  font-size: 13px;
}
.primary {
  background: var(--lime);
  color: #20291b;
}
.primary:hover {
  background: #ebffa5;
  box-shadow: 0 0 24px #d7fb7925;
}
.primary svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.secondary {
  border: 1px solid #596353;
  color: #e0e6d9;
  background: #17201888;
}
.secondary:hover {
  border-color: #a8bf8b;
}
.secondary svg {
  width: 15px;
  height: 15px;
}
.secondary .end-icon svg {
  width: 12px;
  height: 12px;
  color: #98a58b;
}
#art-home {
  position: absolute;
  inset: 0 0 0 46%;
  z-index: 1;
}
#art {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}
.art-field {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    closest-side at 52% 60%,
    #939f3811,
    transparent 92%
  );
  pointer-events: none;
}
#stage-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: 0;
}
.specimen-label {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 18px;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #c3cfb8;
  pointer-events: none;
}
.specimen-label b,
.model-id {
  font: 8px var(--mono);
  letter-spacing: 0.14em;
}
.specimen-label i {
  font-style: normal;
  color: #6a7e60;
}
.specimen-label b {
  color: #95a68b;
}
.specimen-mark {
  border: 1px solid #9ba986;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #233222;
  background: #c6de9a;
}
.model-id {
  position: absolute;
  display: flex;
  gap: 7px;
  align-items: center;
  top: 24px;
  right: 25px;
  color: #9ea98f;
}
.model-id i {
  width: 5px;
  height: 5px;
  background: #b5d777;
  border-radius: 50%;
  box-shadow: 0 0 7px #d7fb7950;
}
.corner {
  position: absolute;
  pointer-events: none;
  opacity: 0.4;
}
.corner.left {
  top: 14px;
  left: 14px;
  width: 9px;
  height: 9px;
  border-top: 1px solid #b7c5a0;
  border-left: 1px solid #b7c5a0;
}
.corner.right {
  bottom: 14px;
  left: 14px;
  width: 9px;
  height: 9px;
  border-bottom: 1px solid #b7c5a0;
  border-left: 1px solid #b7c5a0;
}
#scene {
  position: relative;
  min-height: clamp(405px, 34vw, 550px);
  height: clamp(450px, 35.5vw, 570px);
  overflow: auto;
  background: #151c17;
}
#wipe {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  background: linear-gradient(
    98deg,
    transparent 35%,
    #d7fb7917 49%,
    #e8ffa838 50%,
    transparent 51%
  );
  transform: translateX(-100%);
}
#wipe.sweep {
  animation: sweep 0.43s cubic-bezier(0.25, 0.6, 0.5, 1);
}
@keyframes sweep {
  0% {
    opacity: 0.6;
    transform: translateX(-100%);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}
#scene.entered {
  animation: arrive 0.28s ease-out;
}
@keyframes arrive {
  from {
    opacity: 0.68;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3.3vw, 60px);
  padding: 0 clamp(16px, 2.6vw, 43px);
  height: 62px;
  background: #131915;
  border-top: 1px solid #374137;
}
.counter {
  display: flex;
  gap: 7px;
  align-items: baseline;
  font: 11px var(--mono);
  color: #909c91;
  white-space: nowrap;
}
.counter #page-num {
  font-size: 22px;
  color: var(--lime);
  letter-spacing: -0.08em;
}
.counter i {
  font-style: normal;
  color: #71806e;
}
.transport-title {
  display: inline-block;
  padding-left: 13px;
  border-left: 1px solid #495345;
  margin-left: 7px;
  font: 12px var(--sans);
  color: #c0c8bc;
  min-width: 50px;
}
.turn {
  display: flex;
  gap: 7px;
}
.turn button {
  border: 1px solid #3a443a;
  border-radius: 6px;
  display: grid;
  place-items: center;
  width: 33px;
  height: 30px;
}
.turn svg {
  width: 15px;
  height: 15px;
}
#segments {
  display: flex;
  gap: 5px;
  flex: 1;
  align-items: center;
}
#segments button {
  display: block;
  flex: 1;
  height: 28px;
  padding: 0;
  position: relative;
}
#segments button:before {
  content: "";
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #354035;
  transition: background 0.25s;
}
#segments button.done:before {
  background: #6d8957;
}
#segments button.current:before {
  background: var(--lime);
}
#segments button:hover:before {
  background: #b4cc94;
}
.atlas {
  margin-top: clamp(24px, 2.45vw, 43px);
}
.atlas-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.eyebrow {
  color: #9eac93;
  font-size: 9px;
  letter-spacing: 0.15em;
  gap: 7px;
}
.eyebrow i {
  display: inline-block;
  background: var(--lime);
  width: 5px;
  height: 5px;
}
.atlas h2 {
  font-size: clamp(21px, 1.65vw, 29px);
  line-height: 1.3;
  margin: 5px 0 0;
  letter-spacing: 0.01em;
  font-weight: 730;
}
.atlas-head > button {
  padding: 8px 0 4px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b1bcad;
  font-size: 12px;
}
.atlas-head > button:hover,
footer button:hover {
  color: var(--lime);
}
.atlas-head svg {
  width: 14px;
  height: 14px;
}
.rail {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  scroll-snap-type: x proximity;
  padding: 2px 2px 7px;
}
.rail:hover {
  scrollbar-color: #435142 transparent;
}
.chapter-card {
  display: block;
  position: relative;
  flex: 0 0 calc((100% - 52px) / 5);
  padding: 0;
  text-align: left;
  overflow: hidden;
  border: 1px solid #343e35;
  border-radius: 8px;
  background: #151a16;
  scroll-snap-align: start;
  transition:
    border-color 0.18s,
    transform 0.18s;
}
.chapter-card:hover {
  border-color: #8a9b7f;
  transform: translateY(-2px);
}
.chapter-card.active {
  border-color: #b9d773;
}
.thumb {
  position: relative;
  overflow: hidden;
  display: block;
  background: #1a241c;
  aspect-ratio: 3.15;
}
.thumb > svg {
  width: 100%;
  height: 100%;
  display: block;
}
.thumb .number {
  position: absolute;
  left: 10px;
  top: 9px;
  font: 9px var(--mono);
  border: 1px solid #85947d68;
  border-radius: 3px;
  padding: 2px 5px;
  color: #d7e0ce;
  background: #192019db;
}
.chapter-card.active .number {
  background: var(--lime);
  color: #21291b;
  border-color: transparent;
}
.card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #343e35;
  padding: 11px 12px;
  font-size: 13px;
  color: #d8dfd5;
  line-height: 1.4;
}
.card-label b {
  font-weight: 550;
}
.card-label svg {
  width: 12px;
  height: 12px;
  color: #81917d;
}
.chapter-card.active .card-label {
  color: var(--lime);
}
.chapter-card.active .card-label svg {
  color: var(--lime);
}
footer {
  margin: 14px 0 18px;
  padding-top: 15px;
  border-top: 1px solid #262e27;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #738072;
}
.foot-mark {
  font: 8px var(--mono);
  letter-spacing: 0.19em;
}
footer > div {
  display: flex;
  gap: 15px;
}
footer button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #a0ab9d;
}
footer svg {
  width: 13px !important;
  height: 13px !important;
}
dialog {
  color: var(--ink);
  background: #151d18;
  border: 1px solid #4a584a;
  border-radius: 14px;
  max-width: calc(100% - 28px);
  max-height: calc(100% - 34px);
  padding: 0;
  overflow: auto;
  box-shadow: 0 22px 100px #0008;
}
dialog::backdrop {
  background: #060a08c9;
  backdrop-filter: blur(8px);
}
dialog[open] {
  animation: dialog-in 0.22s ease-out;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(9px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-top,
.media-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 25px 18px;
  border-bottom: 1px solid #354037;
}
.dialog-top h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 6px 0 0;
}
.close {
  width: 35px;
  flex: none;
  background: #1b241d;
}
.close svg {
  height: 16px;
  width: 16px;
}
#panel {
  width: min(850px, 92vw);
}
#panel-body {
  padding: 22px 25px 25px;
}
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sourcelead {
  font-size: 15px;
  color: #cdd4c9;
  margin: 0 0 17px;
  line-height: 1.8;
}
.sourcegroup {
  border-top: 1px solid #394339;
  padding: 13px 0;
}
.sourcegroup > h3 {
  font-size: 14px;
  color: var(--lime);
  margin: 0 0 7px;
}
.sourcegroup p,
.sourcegroup a {
  color: #cdd5c9;
  font-size: 14px;
  line-height: 1.8;
}
.sourcegroup a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  text-decoration: none;
}
.sourcegroup a:hover {
  color: var(--lime);
}
.keylines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 28px;
}
.keylines > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #354138;
  font-size: 14px;
}
.keylines kbd {
  font: 12px var(--mono);
  border: 1px solid #515e51;
  border-radius: 4px;
  padding: 3px 6px;
  color: var(--lime);
}
#lab {
  width: min(1250px, 94vw);
  overflow: hidden;
}
#lab .dialog-top {
  padding: 15px 22px 12px;
}
#lab .dialog-top h2 {
  font-size: 21px;
}
.lab-tabs {
  display: flex;
  gap: 8px;
  padding: 9px 20px;
  background: #121a15;
  border-bottom: 1px solid #344034;
}
.lab-tabs button {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 4px;
  color: #a4b09d;
}
.lab-tabs button[aria-pressed="true"] {
  color: var(--lime);
  background: #263020;
}
.lab-tabs button:hover {
  color: var(--lime);
}
#lab-viewport {
  height: clamp(200px, 58dvh, 680px);
  position: relative;
  isolation: isolate;
  background-color: #101712;
  background-image:
    linear-gradient(#8da7870d 1px, transparent 1px),
    linear-gradient(90deg, #8da7870d 1px, transparent 1px),
    radial-gradient(ellipse at center, #243125 2%, #111914 74%);
  background-size:
    40px 40px,
    40px 40px,
    100% 100%;
}
.lab-corner {
  position: absolute;
  z-index: 2;
  width: 13px;
  height: 13px;
  border-color: #829975;
  pointer-events: none;
}
.lc1 {
  left: 14px;
  top: 14px;
  border-left: 1px solid;
  border-top: 1px solid;
}
.lc2 {
  right: 14px;
  bottom: 14px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}
#lab-viewport canvas {
  cursor: grab;
  touch-action: none;
}
#lab-viewport canvas:active {
  cursor: grabbing;
}
#network-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.lab-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid #354237;
}
.lab-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  color: #c4cebf;
  padding: 6px 9px;
  min-height: 31px;
  border-radius: 4px;
}
.mode-switch {
  display: flex;
  background: #0e140f;
  border: 1px solid #3e4c3c;
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}
.mode-switch button {
  font-size: 12px;
  padding: 5px 12px;
}
.mode-switch [aria-pressed="true"],
#signal-fire {
  background: var(--lime);
  color: #1e2619;
}
.lab-hint {
  margin-left: auto;
  font-size: 12px;
  color: #9aab95;
}
.lab-tools svg {
  width: 15px;
  height: 15px;
}
.lab-tools input {
  width: 74px;
  accent-color: var(--lime);
  vertical-align: middle;
}
.lab-tools label {
  font-size: 12px;
  color: #b7c6ad;
}
.lab-tools button:hover {
  color: #fff;
  background: #405031;
}
.lab-tools button[aria-pressed="true"]:hover,
#signal-fire:hover {
  background: var(--lime);
  color: #23311c;
}
#net-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}
#media-view {
  width: min(980px, 94vw);
  background: #080d0a;
}
.media-top {
  padding: 11px 15px;
  font-size: 14px;
  background: #101712;
}
#media-body {
  display: grid;
  place-items: center;
}
#media-body > video,
#media-body > img {
  max-height: 74dvh;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}
#media-body > video {
  width: 100%;
}
#media-body > video:fullscreen {
  background: black;
  width: 100vw;
  height: 100vh;
  max-height: none;
}
#toast {
  position: fixed;
  z-index: 20;
  bottom: 18px;
  left: 50%;
  transform: translate(-50%, 10px);
  background: #283222;
  color: #e4f5cb;
  border: 1px solid #62734e;
  padding: 9px 15px;
  font-size: 13px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
}
#toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
:is(:fullscreen, .immersive) .main-shell {
  width: calc(100% - 36px);
  padding-top: 12px;
  max-width: none;
}
:is(:fullscreen, .immersive) .mastinner {
  height: 48px;
  width: calc(100% - 44px);
  max-width: none;
}
:is(:fullscreen, .immersive) .atlas,
:is(:fullscreen, .immersive) footer {
  display: none;
}
:is(:fullscreen, .immersive) #intro,
:is(:fullscreen, .immersive) #scene {
  height: calc(100dvh - 132px);
  min-height: 0;
}
:is(:fullscreen, .immersive) .hero-copy h1 {
  font-size: clamp(70px, 7.1vw, 139px);
}
:is(:fullscreen, .immersive) .screen-group {
  border-radius: 8px;
}
:is(:fullscreen, .immersive) .transport {
  height: 55px;
}
@media (min-width: 1550px) {
  .hero-actions button {
    min-height: 48px;
    font-size: 15px;
  }
  .card-label {
    font-size: 15px;
  }
  .overline,
  .overline > .mono,
  .eyebrow,
  .specimen-label b,
  .model-id {
    font-size: 11px;
  }
}
@media (max-width: 920px) {
  .mastinner,
  .main-shell {
    width: calc(100% - 40px);
  }
  .mastinner {
    height: 64px;
  }
  .brand,
  .top-tools {
    min-width: 0;
  }
  .mastinner nav {
    gap: 17px;
  }
  .mastinner nav button {
    font-size: 12px;
  }
  .hero-copy {
    margin-left: 31px;
  }
  .hero-copy h1 {
    font-size: clamp(48px, 6.2vw, 63px);
  }
  #art-home {
    left: 47%;
  }
  .overline {
    gap: 6px;
  }
  .overline > .mono {
    font-size: 8px;
  }
  .hero-actions {
    gap: 8px;
  }
  .primary,
  .secondary {
    padding: 0 11px;
  }
  .chapter-card {
    flex-basis: calc((100% - 36px) / 3.7);
  }
  .atlas-grid .chapter-card {
    width: 100%;
  }
  .rail {
    gap: 10px;
  }
  .lab-hint {
    font-size: 10px;
  }
}
@media (max-width: 670px) {
  .mastinner,
  .main-shell {
    width: calc(100% - 24px);
  }
  .mastinner {
    height: 57px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand small {
    font-size: 7px;
  }
  .brand-icon {
    height: 32px;
    width: 32px;
  }
  .brand-icon svg {
    height: 28px;
    width: 28px;
  }
  .brand {
    gap: 8px;
  }
  .mastinner nav {
    margin-left: auto;
    gap: 13px;
  }
  .mastinner nav button {
    font-size: 11px;
  }
  .mastinner nav .nav-current {
    display: none;
  }
  .top-tools {
    gap: 3px;
  }
  .top-tools .tool-icon {
    display: none;
  }
  .full-button {
    width: 31px;
    height: 31px;
    padding: 0;
  }
  .full-button > span:last-child {
    display: none;
  }
  .main-shell {
    padding-top: 12px;
  }
  #intro {
    display: block;
    min-height: 578px;
    height: auto;
  }
  .hero-copy {
    margin: 0;
    padding: 31px 24px 0;
    max-width: 100%;
  }
  .overline {
    margin-bottom: 15px;
    font-size: 9px;
  }
  .hero-copy h1 {
    font-size: clamp(43px, 9.3vw, 60px);
    line-height: 1.11;
  }
  .subtitle {
    margin: 13px 0 0;
    font-size: 14px;
    letter-spacing: 0.04em;
  }
  .hero-actions {
    margin-top: 16px;
  }
  .primary,
  .secondary {
    min-height: 35px;
    font-size: 12px;
    padding: 0 12px;
  }
  .model-id {
    font-size: 7px;
    top: 12px;
    right: 14px;
  }
  .specimen-label {
    right: 15px;
    bottom: 10px;
    font-size: 9px;
  }
  .specimen-label b {
    font-size: 7px;
  }
  #art-home {
    position: relative;
    inset: auto;
    height: 265px;
    margin: 7px 4px 0;
  }
  #scene {
    height: auto;
    min-height: 460px;
  }
  .transport {
    height: 49px;
    padding: 0 12px;
    gap: 9px;
  }
  .counter {
    font-size: 9px;
    gap: 3px;
  }
  .counter #page-num {
    font-size: 18px;
  }
  .transport-title {
    display: none;
  }
  .turn {
    gap: 4px;
  }
  .turn button {
    width: 28px;
    height: 26px;
  }
  #segments {
    gap: 3px;
  }
  .atlas {
    margin-top: 20px;
  }
  .atlas h2 {
    font-size: 20px;
  }
  .atlas-head {
    margin-bottom: 10px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .atlas-head > button {
    font-size: 11px;
  }
  .rail {
    gap: 8px;
  }
  .chapter-card {
    flex-basis: calc((100% - 13px) / 2.15);
  }
  .card-label {
    padding: 9px;
    font-size: 12px;
  }
  .atlas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .dialog-top,
  #panel-body {
    padding: 15px;
  }
  .dialog-top h2 {
    font-size: 19px;
  }
  .lab-tools {
    flex-wrap: wrap;
    padding: 8px;
    gap: 4px;
  }
  .lab-hint {
    display: none;
  }
  .lab-tabs {
    padding: 7px;
  }
  .lab-tools button {
    padding: 4px 6px;
  }
  .mode-switch button {
    padding: 4px 7px;
  }
  .lab-tools input {
    width: 48px;
  }
  #lab-viewport {
    height: 45dvh;
  }
  .keylines {
    grid-template-columns: 1fr;
  }
  .foot-mark {
    display: none;
  }
  footer {
    justify-content: flex-end;
  }
  :is(:fullscreen, .immersive) #intro,
  :is(:fullscreen, .immersive) #scene {
    min-height: 0;
    height: auto;
  }
  :is(:fullscreen, .immersive) .main-shell {
    width: calc(100% - 12px);
  }
  :is(:fullscreen, .immersive) .hero-copy h1 {
    font-size: clamp(43px, 9.3vw, 60px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.primary svg {
  fill: none;
}
.primary:hover svg {
  transform: rotate(-5deg);
}
.web-player {
  border: 0;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 72dvh;
  background: #080b09;
  display: block;
}
.web-player-bar {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: #121a14;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.web-player-bar a {
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.web-player-bar a:hover {
  text-decoration: underline;
}
.web-player-bar svg {
  width: 14px;
  height: 14px;
}
