/* 04 第一次进入 — map, nodes, archive sheet */

.chapter--space { padding: 0; }
.space { position: absolute; inset: 0; }

.space__copy {
  position: absolute;
  left: 120px;
  top: 118px;
  width: 500px;
  z-index: 8;
}
.space__copy > * {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.chapter--space.is-active .space__copy > * { opacity: 1; transform: none; }
.space__copy > *:nth-child(1) { transition-delay: 40ms; }
.space__copy > *:nth-child(2) { transition-delay: 100ms; }
.space__copy > *:nth-child(3) { transition-delay: 180ms; }
.space__copy > *:nth-child(4) { transition-delay: 260ms; }
.space__copy > *:nth-child(5) { transition-delay: 320ms; }

.space__title {
  margin-top: 26px;
  font-size: 50px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: .015em;
}
.space__lede {
  margin-top: 24px;
  font-size: 26px;
  line-height: 1.72;
  color: var(--ink-2);
}
.space__switch { margin-top: 36px; }
.space__switch-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--muted);
}
.space__switch .seg__btn { min-width: 190px; padding: 0 14px; font-size: 15px; }
.space__switch-note {
  margin-top: 12px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  transition: opacity 180ms var(--ease-out);
}
.space__credit {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: .03em;
  color: var(--faint);
}
.space__credit a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}
.space__credit a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.space__credit a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.space__world {
  position: absolute;
  left: 640px;
  top: 72px;
  width: 1160px;
  height: 800px;
  z-index: 4;
}

.space__ghost {
  position: absolute;
  left: -22px;
  top: 8px;
  z-index: 0;
  font-family: var(--font-display);
  font-size: 300px;
  font-weight: 500;
  line-height: .8;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 242, 240, .05);
  opacity: 0;
  transition: opacity 900ms var(--ease-out) 140ms;
  pointer-events: none;
}
.chapter--space.is-active .space__ghost { opacity: 1; }

.space__map {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 900px;
  height: 523px;
  z-index: 1;
  border: 1px solid rgba(214, 230, 226, .16);
  background: rgba(9, 14, 18, .78);
  box-shadow: -16px 16px 0 rgba(214, 230, 226, .025), 0 54px 110px rgba(0, 0, 0, .5);
  transform-origin: 50% 85%;
  transform: translate3d(0, 38px, 0) scale(.985) rotate(-2.4deg);
  opacity: 0;
  transition: opacity 760ms var(--ease-out) 120ms, transform 900ms var(--ease-out) 120ms,
              width 640ms var(--ease-out), height 640ms var(--ease-out);
  overflow: hidden;
}
.chapter--space.is-active .space__map { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(-2.4deg); }

.space__map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(7, 10, 13, .55), transparent 26%, transparent 74%, rgba(7, 10, 13, .55)),
    linear-gradient(to right, rgba(7, 10, 13, .3), transparent 18%, transparent 82%, rgba(7, 10, 13, .3));
}
.space__map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 520ms var(--ease-out);
  filter: saturate(.38) brightness(1.95) contrast(1.1);
}
.space[data-mode="landscape"] .space__map-img--landscape { opacity: .95; }
.space[data-mode="portrait"] .space__map-img--portrait { opacity: .95; }

.space__map-corner { position: absolute; width: 16px; height: 16px; border-color: rgba(32, 227, 201, .55); border-style: solid; z-index: 2; }
.space__map-corner--tl { left: 10px; top: 10px; border-width: 1px 0 0 1px; }
.space__map-corner--tr { right: 10px; top: 10px; border-width: 1px 1px 0 0; }
.space__map-corner--bl { left: 10px; bottom: 10px; border-width: 0 0 1px 1px; }
.space__map-corner--br { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }

.space__map-label {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(238, 242, 240, .54);
  white-space: nowrap;
}
.space__map-label--a { left: 18px; bottom: 16px; }
.space__map-label--b { right: 18px; top: 16px; }

.space__nodes { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.node {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 560ms var(--ease-out) var(--d, 0ms), transform 560ms var(--ease-out) var(--d, 0ms),
              left 520ms var(--ease-out), top 520ms var(--ease-out);
  will-change: left, top;
}
.chapter--space.is-active .node { opacity: 1; transform: none; }
.node[data-node="1"] { --d: 180ms; }
.node[data-node="2"] { --d: 250ms; }
.node[data-node="3"] { --d: 320ms; }
.node[data-node="4"] { --d: 390ms; }
.node[data-node="5"] { --d: 460ms; }

.node__card {
  position: relative;
  z-index: 2;
  min-width: 144px;
  padding: 10px 13px 11px;
  border: 1px solid rgba(214, 230, 226, .38);
  background: rgba(8, 13, 18, .96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .45);
}
.node__id { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--teal); }
.node__name { display: block; margin-top: 2px; font-size: 22px; line-height: 1.3; color: var(--ink); font-weight: 500; }
.node__meta { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--faint); }
.node__stem {
  position: absolute;
  left: 14px;
  top: calc(100% + 4px);
  width: 1px;
  height: var(--stem, 80px);
  background: linear-gradient(to bottom, rgba(32, 227, 201, .62), rgba(32, 227, 201, .12));
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 520ms var(--ease-out) calc(var(--d, 0ms) + 120ms);
}
.chapter--space.is-active .node__stem { transform: scaleY(1); }
.node__dot {
  position: absolute;
  left: 12px;
  top: calc(100% + var(--stem, 80px) + 2px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  background: var(--bg);
}
.space[data-mode="landscape"] .node[data-node="1"] { left: 86px; top: 218px; }
.space[data-mode="landscape"] .node[data-node="2"] { left: 300px; top: 148px; }
.space[data-mode="landscape"] .node[data-node="3"] { left: 424px; top: 304px; }
.space[data-mode="landscape"] .node[data-node="4"] { left: 236px; top: 408px; }
.space[data-mode="landscape"] .node[data-node="5"] { left: 140px; top: 610px; }
.space[data-mode="portrait"] .node[data-node="1"] { left: 24px; top: 132px; }
.space[data-mode="portrait"] .node[data-node="2"] { left: 188px; top: 62px; }
.space[data-mode="portrait"] .node[data-node="3"] { left: 38px; top: 334px; }
.space[data-mode="portrait"] .node[data-node="4"] { left: 232px; top: 430px; }
.space[data-mode="portrait"] .node[data-node="5"] { left: 26px; top: 646px; }

.space[data-mode="portrait"] .space__map {
  width: 458px;
  height: 760px;
  transform: translate3d(0, 38px, 0) scale(.985) rotate(-1deg);
}
.chapter--space.is-active .space[data-mode="portrait"] .space__map { transform: rotate(-1deg); }
.space[data-mode="portrait"] .space__map-label--b { display: none; }

.space__sheet {
  position: absolute;
  right: 0;
  top: 2px;
  z-index: 7;
  width: 560px;
  min-height: 424px;
  padding: 24px 28px 20px;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: -12px 12px 0 rgba(0, 0, 0, .28), 0 60px 110px rgba(0, 0, 0, .52), 0 1px 0 rgba(255, 255, 255, .5) inset;
  transform: translate3d(0, 30px, 0) rotate(1.8deg);
  opacity: 0;
  transition: opacity 760ms var(--ease-out) 220ms, transform 900ms var(--ease-out) 220ms;
  overflow: hidden;
}
.chapter--space.is-active .space__sheet { opacity: 1; transform: translate3d(0, 0, 0) rotate(1.8deg); }
.space__sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../assets/noise.png");
  background-size: 160px 160px;
  opacity: .08;
  mix-blend-mode: multiply;
}
.space__sheet > * { position: relative; z-index: 1; }

.sheet__top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--paper-line); }
.sheet__logo { width: 30px; height: 30px; }
.sheet__brand { font-size: 20px; font-weight: 700; letter-spacing: .06em; }

.sheet__brand span { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; color: rgba(20, 26, 27, .55); }
.sheet__fig { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: rgba(20, 26, 27, .5); }

.sheet__nav {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 13px;
  font-size: 14px;
  color: rgba(20, 26, 27, .68);
}
.sheet__nav span { position: relative; }
.sheet__nav span[aria-current="page"] { color: var(--paper-ink); font-weight: 500; }
.sheet__nav span[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: #087f9a;
}

.sheet__title { margin-top: 20px; font-size: 42px; line-height: 1.16; font-weight: 700; letter-spacing: .02em; }
.sheet__title span { color: #087f9a; }
.sheet__sub { margin-top: 10px; font-size: 17px; line-height: 1.4; color: rgba(20, 26, 27, .78); }
.sheet__copy { margin-top: 10px; max-width: 470px; font-size: 16px; line-height: 1.62; color: rgba(20, 26, 27, .68); }
.sheet__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--paper-line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: rgba(20, 26, 27, .6);
}
.sheet__dot { width: 4px; height: 4px; border-radius: 50%; background: #087f9a; }
.sheet__note { margin-left: auto; letter-spacing: .04em; }

.space__axis {
  position: absolute;
  right: -38px;
  top: 0;
  width: 30px;
  height: 100%;
  z-index: 3;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
}
.space__axis-cap { position: absolute; right: 0; top: -26px; color: var(--teal); font-size: 11px; }
.space__axis-line { position: absolute; right: 6px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.space__axis-tick { position: absolute; right: 2px; width: 9px; height: 1px; background: var(--line-strong); }
.space__axis-num { position: absolute; right: 18px; transform: translateY(-50%); }

.space__sr-status { position: absolute; }

@media (max-width: 0px) { /* stage is fixed; responsive handled by scale */ }
/* real live page inset — clearly separated from the concept sheet */
.space__live {
  position: absolute;
  right: 0;
  top: 448px;
  z-index: 8;
  width: 540px;
  margin: 0;
  border: 1px solid rgba(214, 230, 226, .3);
  background: #0a1014;
  box-shadow: -12px 12px 0 rgba(0, 0, 0, .32), 0 42px 80px rgba(0, 0, 0, .5);
  transform: translate3d(0, 26px, 0) rotate(-1.2deg);
  opacity: 0;
  transition: opacity 760ms var(--ease-out) 320ms, transform 900ms var(--ease-out) 320ms;
  overflow: hidden;
}
.chapter--space.is-active .space__live { opacity: 1; transform: translate3d(0, 0, 0) rotate(-1.2deg); }
.space__live-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
}
.space__live-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); margin-right: 7px; vertical-align: 1px; }
.space__live-zoom { border: 0; background: transparent; color: var(--teal); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; cursor: pointer; }
.space__live-zoom:hover { border-bottom: 1px solid var(--teal); }
.space__live-zoom:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.space__live-imgbtn { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.space__live-imgbtn:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.space__live img { width: 100%; height: 268px; object-fit: cover; object-position: top center; opacity: .98; }
.space__live-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 10px; font-size: 11px; line-height: 1.5; color: var(--faint); }
.space__live-foot a { color: var(--teal); text-decoration: none; white-space: nowrap; }
.space__live-foot a:hover { border-bottom: 1px solid var(--teal); }
.space__live-foot a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.live-lightbox {
  position: absolute; inset: 0; z-index: 130;
  display: flex; flex-direction: column;
  padding: 32px 56px 32px;
  background: rgba(4,6,8,.97);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 220ms var(--ease-out), visibility 0s linear 220ms;
}
.live-lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 220ms var(--ease-out), visibility 0s; }
.live-lightbox__head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.live-lightbox__head strong { display: block; font-size: 24px; font-weight: 500; }
.live-lightbox__head span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.live-lightbox__fig { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin: 18px 0 0; }
.live-lightbox__fig img { max-width: 100%; max-height: calc(100% - 30px); object-fit: contain; border: 1px solid var(--line-strong); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.live-lightbox__fig figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.space[data-mode="portrait"] .space__live { right: 10px; top: 446px; width: 520px; }
.space[data-mode="portrait"] .space__live img { height: 250px; }
.space__live { max-height: 342px; }
.space__live img { display: block; }