@font-face {
  font-family: NoemaLatin;
  src: url("./assets/fonts/CormorantGaramond.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: NoemaChinese;
  src: url("./assets/fonts/LXGWWenKaiGB-Regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --canvas: #f7f4ec;
  --surface: #fffdf7;
  --paper: #eee6d8;
  --ink: #171815;
  --muted: #6b675e;
  --green: #5f8f28;
  --green-deep: #244a16;
  --tape: #d9b85d;
  --ease-layer: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--ink);
  background-color: var(--canvas);
  background-image: url("./assets/surface/portfolio-cotton-paper-v1.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
a {
  font: inherit;
}

.viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  overflow: clip;
}

.stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
  touch-action: none;
}

.stage:active {
  cursor: grabbing;
}

body.is-asset-pressing .stage {
  cursor: grab;
}

body.is-asset-dragging .stage {
  cursor: grabbing;
}

.world {
  position: absolute;
  isolation: isolate;
  left: 0;
  top: 0;
  width: 1840px;
  height: 992px;
  transform-origin: 0 0;
  will-change: transform;
}

.semantic-plane {
  position: absolute;
  left: 0;
  top: 0;
  width: 1840px;
  height: 992px;
}

.home-layer {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transform-origin: 0 0;
  transition:
    opacity 220ms ease-out,
    filter 220ms ease-out;
}

.home-territory {
  position: absolute;
  z-index: -1;
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition:
    opacity 520ms ease-out,
    filter 520ms ease-out;
}

.home-territory-arcane {
  left: -170px;
  top: 0;
  width: 2200px;
  opacity: 0.92;
  filter: saturate(0.92);
}

body.is-semantic-bridging .stage {
  pointer-events: none;
}

body.is-semantic-forward .home-layer {
  opacity: var(--semantic-home-opacity, 1);
  filter: blur(var(--semantic-home-blur, 0px));
  transform:
    translate3d(
      var(--semantic-home-x, 0px),
      var(--semantic-home-y, 0px),
      0
    )
    scale(var(--semantic-home-scale, 1));
  transition: none;
  will-change: transform, opacity, filter;
}

body.is-semantic-forward .project-layer {
  visibility: visible;
  opacity: var(--semantic-project-opacity, 0);
  filter: blur(var(--semantic-project-blur, 8px));
  transform:
    translate3d(
      var(--semantic-project-x, 0px),
      var(--semantic-project-y, 0px),
      0
    )
    scale(var(--semantic-project-scale, 1));
  transform-origin: 0 0;
  transition: none;
  will-change: transform, opacity, filter;
}

body.mode-projects .home-layer {
  visibility: hidden;
  opacity: 0;
  filter: blur(7px);
  pointer-events: none;
}

body.mode-projects.is-semantic-reverse .home-layer {
  visibility: visible;
  opacity: var(--semantic-home-opacity, 0);
  filter: blur(var(--semantic-home-blur, 11px));
  transform:
    translate3d(
      var(--semantic-home-x, 0px),
      var(--semantic-home-y, 0px),
      0
    )
    scale(var(--semantic-home-scale, 1));
  transition: none;
  will-change: transform, opacity, filter;
}

body.mode-projects.is-semantic-reverse .project-layer {
  visibility: visible;
  opacity: var(--semantic-project-opacity, 1);
  filter: blur(var(--semantic-project-blur, 0px));
  transform:
    translate3d(
      var(--semantic-project-x, 0px),
      var(--semantic-project-y, 0px),
      0
    )
    scale(var(--semantic-project-scale, 1));
  transform-origin: 0 0;
  transition: none;
  will-change: transform, opacity, filter;
}

body.is-semantic-switching.mode-projects .project-layer {
  opacity: 0;
  filter: blur(6px);
}

.asset,
.asset-link,
.project-portal,
.project-layer {
  position: absolute;
  transition:
    opacity 520ms ease-out,
    transform 880ms var(--ease-layer),
    filter 620ms ease-out;
}

.asset,
.asset-link img,
.project-portal img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.asset-link,
.project-portal {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.asset-link[data-layout-id],
.asset[data-layout-id],
.life-object[data-layout-id],
.project-portal[data-layout-id],
.noema-object[data-layout-id],
[data-depth="projects"][data-layout-id]:not([data-fixed="true"]) {
  cursor: grab;
  touch-action: none;
  transition:
    opacity 520ms ease-out,
    transform 260ms var(--ease-layer),
    filter 260ms ease-out;
  will-change: transform, filter;
}

.is-pressing {
  cursor: grab;
  transform: translateY(-4px) scale(1.006) rotate(var(--hover-rotate, 0deg));
  filter:
    drop-shadow(0 14px 18px rgba(35, 34, 29, 0.12))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.78));
}

.is-dragging {
  cursor: grabbing;
}

.is-dragging {
  z-index: 9;
  transform: translateY(-10px) scale(1.018) rotate(var(--hover-rotate, 0deg));
  filter:
    drop-shadow(0 22px 30px rgba(35, 34, 29, 0.22))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.9));
}

.asset[data-layout-id]:hover:not(.is-pressing, .is-dragging),
.asset-link[data-layout-id]:hover:not(.is-pressing, .is-dragging),
.life-object[data-layout-id]:hover:not(.is-pressing, .is-dragging),
.project-portal[data-layout-id]:hover:not(.is-pressing, .is-dragging),
.noema-object[data-layout-id]:hover:not(.is-pressing, .is-dragging),
[data-depth="projects"][data-layout-id]:not([data-fixed="true"]):hover:not(
    .is-pressing,
    .is-dragging
  ) {
  transform: translateY(-3px) rotate(var(--hover-rotate, 0deg));
  filter:
    drop-shadow(0 12px 16px rgba(35, 34, 29, 0.1))
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.62));
}

.contact-email::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 20px);
  z-index: 2;
  padding: 7px 12px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow:
    0 8px 18px rgba(35, 34, 29, 0.14),
    inset 0 0 0 1px rgba(95, 143, 40, 0.18);
  color: var(--green-deep);
  content: attr(data-copy-label);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px) rotate(-2deg) scale(0.94);
  transition:
    opacity 180ms ease-out,
    transform 260ms var(--ease-layer);
  white-space: nowrap;
}

.contact-email.show-copy::after {
  opacity: 1;
  transform: translate(-50%, -2px) rotate(-2deg) scale(1);
}

.asset-link:focus-visible,
.life-object:focus-visible,
.life-object button:focus-visible,
.project-portal:focus-visible,
.nav-dot:focus-visible,
.project-children button:focus-visible,
.controls button:focus-visible {
  outline: 2px solid rgba(95, 143, 40, 0.8);
  outline-offset: 4px;
}

.contact-github {
  --hover-rotate: -1deg;
}

.contact-x {
  --hover-rotate: 1deg;
}

.contact-email {
  --hover-rotate: -1deg;
}

/* Homepage life clues are independent physical objects. Their layout stays
   deliberately loose because edit mode owns final placement and scale. */
.life-object {
  position: absolute;
  display: block;
  overflow: visible;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  isolation: isolate;
}

button.life-object {
  cursor: grab;
}

.life-object-image,
.music-player-base {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.music-player-base {
  transition:
    opacity 220ms ease-out,
    filter 180ms ease-out;
}

.music-player-idle {
  z-index: 1;
  opacity: 1;
}

.music-player-playing {
  z-index: 2;
  opacity: 0;
}

.life-music.is-playing .music-player-idle {
  opacity: 0;
}

.life-music.is-playing .music-player-playing {
  opacity: 1;
}

.life-object::after {
  position: absolute;
  inset: 10% 8%;
  z-index: -1;
  border-radius: 46%;
  box-shadow: 0 18px 24px rgba(35, 34, 29, 0.08);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.life-object:hover::after,
.life-object:focus-visible::after,
.life-object.is-open::after {
  opacity: 1;
}

.life-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 8px);
  z-index: 8;
  display: flex;
  width: max-content;
  max-width: 320px;
  padding: 10px 13px 11px;
  border: 1px solid rgba(52, 50, 43, 0.16);
  border-radius: 13px 13px 13px 4px;
  color: #24251f;
  background: rgba(255, 253, 247, 0.97);
  box-shadow:
    0 14px 32px rgba(36, 35, 29, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.94);
  transform-origin: 50% 100%;
  transition:
    opacity 160ms ease-out,
    transform 180ms var(--ease-layer);
  white-space: normal;
}

.life-popover b {
  font-size: 13px;
  line-height: 1.35;
}

.life-popover > span,
.life-popover em {
  color: #69675f;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.life-object:hover:not(.is-dragging) .life-popover,
.life-object:focus-visible .life-popover,
.life-object.is-open .life-popover,
.life-object:focus-within .life-popover {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.object-micro-label {
  position: absolute;
  right: 6%;
  bottom: 5%;
  z-index: 2;
  padding: 5px 8px 4px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(19, 21, 19, 0.83);
  box-shadow: 0 5px 12px rgba(31, 30, 25, 0.16);
  font-family: NoemaLatin, Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.object-micro-label-dark {
  right: 2%;
  bottom: 8%;
  color: #f4e6c4;
  background: rgba(20, 20, 19, 0.9);
}

.life-location {
  --hover-rotate: -1.4deg;
}

.life-location .life-object-image {
  left: 0;
  width: 100%;
  filter: drop-shadow(0 11px 15px rgba(35, 34, 29, 0.13));
}

.location-caption {
  position: absolute;
  right: 0;
  top: 29%;
  z-index: -1;
  display: flex;
  width: 50%;
  min-width: 102px;
  padding: 12px 12px 11px 20px;
  border: 1px solid rgba(60, 68, 48, 0.16);
  border-radius: 4px 15px 15px 4px;
  background: rgba(247, 243, 229, 0.94);
  box-shadow: 0 10px 20px rgba(39, 37, 30, 0.1);
  flex-direction: column;
  transform: rotate(1.2deg);
}

.location-caption small {
  color: #9c6037;
  font-family: NoemaLatin, Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.location-caption strong {
  margin-top: 1px;
  color: #20331d;
  font-family: NoemaChinese, "STKaiti", serif;
  font-size: 23px;
  line-height: 1;
}

.location-caption > span {
  margin-top: 4px;
  color: #716f65;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.life-glasses {
  --hover-rotate: 0.8deg;
}

.life-glasses .life-object-image,
.life-camera .life-object-image,
.life-reading .life-object-image {
  filter: drop-shadow(0 12px 17px rgba(35, 34, 29, 0.14));
}

.life-glasses .life-popover {
  left: 48%;
  bottom: 84%;
}

.life-camera {
  --hover-rotate: -1deg;
}

.life-camera .life-popover {
  left: 55%;
  bottom: 88%;
}

.life-reading {
  --hover-rotate: 1.2deg;
}

.reading-cover-stack {
  position: absolute;
  left: 16%;
  top: -1%;
  z-index: 2;
  width: 58%;
  height: 76%;
  pointer-events: none;
}

.reading-cover {
  position: absolute;
  top: 0;
  display: block;
  width: 52%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 6px 10px rgba(29, 30, 25, 0.2);
  object-fit: cover;
  transform-origin: bottom center;
}

.reading-cover-finished {
  left: 0;
  transform: rotate(-8deg) translateY(8%);
}

.reading-cover-current {
  right: 0;
  transform: rotate(7deg);
}

.reading-popover {
  left: 52%;
  bottom: 82%;
  width: 318px;
  padding: 13px 14px 12px;
  gap: 10px;
}

.reading-popover-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.reading-books-section {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(72, 72, 63, 0.12);
}

.reading-section-label {
  color: #7e6d50;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.reading-entry {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.reading-entry img {
  display: block;
  width: 31px;
  height: 42px;
  border-radius: 1px;
  box-shadow: 0 2px 5px rgba(35, 34, 29, 0.18);
  object-fit: cover;
}

.reading-entry > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.reading-entry em,
.screen-ticket em {
  color: #9c6037;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.reading-entry b,
.screen-ticket b {
  color: #24251f;
  font-family: NoemaChinese, "STKaiti", serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.reading-screen-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.reading-screen-section .reading-section-label {
  grid-column: 1 / -1;
}

.screen-ticket {
  position: relative;
  display: flex;
  min-height: 47px;
  padding: 7px 9px;
  border: 1px dashed rgba(90, 76, 53, 0.22);
  border-radius: 4px;
  background: rgba(244, 237, 217, 0.72);
  flex-direction: column;
  gap: 3px;
}

.screen-ticket-film {
  background: rgba(235, 229, 223, 0.78);
}

.reading-update-note {
  color: #938a78;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.life-music {
  --hover-rotate: -0.6deg;
  cursor: grab;
}

.life-music button {
  position: absolute;
  z-index: 3;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.music-main-hit {
  inset: 5% 3% 4%;
  z-index: 4 !important;
  border-radius: 22% !important;
}

.music-record-motion {
  position: absolute;
  left: 13.1%;
  top: 8.15%;
  z-index: 3;
  width: 58.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 18deg,
    transparent 0 42deg,
    rgba(255, 248, 222, 0.2) 58deg,
    transparent 78deg 208deg,
    rgba(255, 255, 255, 0.08) 226deg,
    transparent 246deg 360deg
  );
  opacity: 0;
  pointer-events: none;
  transform: scaleY(0.69) rotate(0deg);
  transform-origin: center;
  will-change: transform;
}

.life-music.is-playing .music-record-motion {
  animation: vinyl-spin 2.8s linear infinite;
  opacity: 0.16;
}

.life-codex {
  --hover-rotate: 1deg;
}

.codex-screen {
  position: absolute;
  left: 31%;
  top: 31%;
  z-index: 2;
  display: flex;
  width: 44%;
  height: 31%;
  color: rgba(250, 250, 246, 0.94);
  align-items: center;
  gap: 7px;
  pointer-events: none;
  transform: rotate(2.5deg);
}

.codex-screen > img {
  width: 27%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.codex-screen > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.codex-screen small {
  color: rgba(242, 242, 234, 0.62);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.codex-screen b {
  overflow: hidden;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-popover {
  left: 49%;
  bottom: 82%;
  width: 310px;
  max-width: none;
  padding: 13px;
  gap: 10px;
}

.codex-popover-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.codex-popover-head > img {
  width: 28px;
  height: 28px;
}

.codex-popover-head > span {
  display: flex;
  flex-direction: column;
}

.codex-popover-head small {
  color: #88857a;
  font-size: 9px;
}

.codex-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.codex-metrics > span {
  display: flex;
  min-height: 46px;
  padding: 7px 6px;
  border-radius: 8px;
  background: rgba(238, 234, 222, 0.66);
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.codex-metrics b {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
}

.codex-metrics small {
  margin-top: 2px;
  color: #7c786e;
  font-size: 8px;
}

.codex-heatmap {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 3px;
}

.codex-heatmap i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: #ecebe5;
}

.codex-heatmap i[data-level="1"] { background: #ccebd8; }
.codex-heatmap i[data-level="2"] { background: #81c99d; }
.codex-heatmap i[data-level="3"] { background: #36a965; }
.codex-heatmap i[data-level="4"] { background: #147a43; }

.life-warcraft {
  --hover-rotate: -1.1deg;
}

.warcraft-tag-copy {
  position: absolute;
  left: 31%;
  top: 37%;
  z-index: 2;
  display: flex;
  width: 49%;
  color: #e8e1ea;
  flex-direction: column;
  pointer-events: none;
  text-align: center;
  transform: rotate(7deg);
}

.warcraft-tag-copy small {
  color: #9c83b6;
  font-size: 7px;
  letter-spacing: 0.16em;
}

.warcraft-tag-copy b {
  margin-top: 3px;
  font-family: NoemaChinese, "STKaiti", serif;
  font-size: 22px;
  font-weight: 600;
}

.warcraft-tag-copy span {
  margin-top: 2px;
  color: #b8a9bf;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.life-badminton {
  --hover-rotate: 2deg;
}

.life-popover-compact {
  width: 176px;
}

@keyframes vinyl-spin {
  from { transform: scaleY(0.69) rotate(0deg); }
  to { transform: scaleY(0.69) rotate(360deg); }
}

.life-codex .life-object-image {
  filter: drop-shadow(0 12px 18px rgba(55, 66, 132, 0.18));
}

.life-warcraft .life-object-image {
  border-radius: 50%;
  clip-path: circle(49% at 50% 50%);
  filter: drop-shadow(0 12px 18px rgba(71, 49, 21, 0.2));
}

.life-badminton .life-object-image {
  filter: drop-shadow(0 10px 14px rgba(35, 34, 29, 0.16));
}

/* Life-clue information is rendered in a fixed viewport portal. It must not
   inherit canvas zoom; screen-level type stays readable at every camera scale. */
.life-panel-portal {
  position: fixed;
  inset: 0;
  z-index: 180;
  overflow: hidden;
  pointer-events: none;
}

.life-panel-portal .life-popover {
  --panel-enter-x: 0px;
  --panel-enter-y: 8px;
  position: fixed;
  left: -9999px;
  top: -9999px;
  bottom: auto;
  z-index: 1;
  display: flex;
  width: auto;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  color: #24251f;
  background: transparent;
  box-shadow: none;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--panel-enter-x), var(--panel-enter-y), 0) scale(0.97);
  transform-origin: 50% 50%;
  transition:
    opacity 130ms ease-out,
    transform 170ms var(--ease-layer);
  isolation: isolate;
  overscroll-behavior: contain;
  white-space: normal;
}

.life-panel-portal .life-popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.life-panel-portal .life-popover::after {
  display: none;
}

/* Object notes are annotations, not content panels. They reveal just enough
   context to identify the real object and keep the collage visually quiet. */
.life-panel-portal .object-note {
  width: max-content;
  max-width: min(230px, calc(100vw - 24px));
  padding: 8px 11px 10px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: #2d2a25;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 5px 7px rgba(45, 39, 31, 0.13));
  gap: 0;
}

.life-panel-portal .object-note::before {
  position: absolute;
  z-index: 0;
  right: 2px;
  bottom: 3px;
  left: 0;
  height: 24px;
  border-radius: 51% 18% 46% 14%;
  background: rgba(239, 228, 199, 0.78);
  clip-path: polygon(0 34%, 7% 17%, 19% 26%, 35% 8%, 54% 20%, 68% 5%, 83% 18%, 100% 4%, 96% 81%, 79% 91%, 63% 79%, 43% 96%, 24% 82%, 4% 94%);
  content: "";
  transform: rotate(-1deg);
}

.object-note b {
  position: relative;
  z-index: 1;
  font-family: NoemaLatin, Georgia, serif;
  font-size: 21px;
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.object-note small {
  position: relative;
  z-index: 1;
  margin-top: 3px;
  color: #655d52;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.life-panel-portal .meta-note {
  rotate: 4deg;
}

.meta-note b {
  color: #352a22;
  font-style: italic;
}

.meta-note::before {
  background: rgba(212, 184, 139, 0.72) !important;
  transform: rotate(1.5deg) !important;
}

.life-panel-portal .camera-note {
  rotate: -5deg;
}

.camera-note b {
  color: #252725;
}

.camera-note::after {
  display: block !important;
  position: absolute;
  right: 1px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c65a34;
  content: "";
}

.life-panel-portal .reading-popover {
  display: flex;
  width: min(448px, calc(100vw - 24px));
  padding: 0 0 7px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: #292c27;
  background: transparent;
  box-shadow: none;
  flex-direction: column;
  gap: 0;
  rotate: 0deg;
}

.life-panel-portal .reading-popover::before {
  display: none;
}

.life-panel-portal .reading-books-section {
  position: relative;
  z-index: 2;
  padding: 14px 15px 15px;
  border: 1px solid rgba(88, 72, 51, 0.2);
  border-radius: 15px 20px 17px 13px;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(103, 85, 62, 0.1) 50%, transparent 50.2%),
    linear-gradient(rgba(79, 86, 68, 0.04) 1px, transparent 1px),
    #f0e6d1;
  background-size: auto, 100% 23px, auto;
  box-shadow:
    0 16px 28px rgba(45, 39, 31, 0.2),
    inset 0 1px rgba(255, 253, 242, 0.72);
  gap: 11px;
}

.life-panel-portal .reading-section-label {
  color: #5e634f;
  font-family: NoemaLatin, ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.life-panel-portal .reading-books-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.life-panel-portal .reading-entry {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.life-panel-portal .reading-entry img {
  width: 44px;
  height: 61px;
  border-radius: 2px 4px 3px 2px;
  box-shadow: 0 4px 8px rgba(34, 33, 27, 0.22);
}

.life-panel-portal .reading-entry em {
  color: #a4513a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.life-panel-portal .reading-entry b {
  color: #282b25;
  font-family: NoemaChinese, "Songti SC", "STSong", serif;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.34;
  text-wrap: pretty;
}

.life-panel-portal .reading-screen-section {
  position: relative;
  z-index: 1;
  display: grid;
  width: calc(100% - 42px);
  margin-top: -5px;
  padding: 13px 13px 10px;
  border: 1px solid rgba(91, 43, 35, 0.24);
  border-radius: 0 0 16px 19px;
  background:
    linear-gradient(118deg, rgba(255, 232, 199, 0.08), transparent 38%),
    #995344;
  box-shadow:
    0 12px 22px rgba(72, 39, 31, 0.18),
    inset 0 1px rgba(255, 235, 207, 0.13);
  align-self: flex-end;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  transform: rotate(0.45deg);
}

.life-panel-portal .reading-screen-section .reading-section-label {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  color: rgba(255, 235, 207, 0.78);
}

.life-panel-portal .screen-ticket {
  min-height: 51px;
  padding: 7px 12px 5px;
  border: 0;
  border-radius: 0;
  color: #fff2dc;
  background: transparent;
  justify-content: center;
  gap: 4px;
}

.life-panel-portal .screen-ticket:first-of-type {
  padding-left: 1px;
  border-right: 1px dashed rgba(255, 228, 196, 0.34);
}

.life-panel-portal .screen-ticket-film {
  background: transparent;
}

.life-panel-portal .screen-ticket em {
  color: rgba(255, 225, 190, 0.72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.life-panel-portal .screen-ticket b {
  color: #fff4e2;
  font-family: NoemaChinese, "Songti SC", "STSong", serif;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
  text-wrap: pretty;
}

.life-panel-portal .codex-popover {
  width: min(404px, calc(100vw - 24px));
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: #f2f2f3;
  background:
    linear-gradient(140deg, rgba(110, 111, 116, 0.16), transparent 42%),
    rgba(30, 30, 32, 0.76);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow:
    0 22px 46px rgba(24, 23, 20, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.11),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  gap: 13px;
  clip-path: none;
}

.life-panel-portal .codex-popover-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  gap: 10px;
}

.life-panel-portal .codex-popover-head > img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  filter: drop-shadow(0 5px 9px rgba(5, 7, 24, 0.36));
}

.life-panel-portal .codex-popover-head b {
  color: #f1f1f2;
  font-family: NoemaLatin, ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.life-panel-portal .codex-summary {
  display: block;
}

.life-panel-portal .codex-summary > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.life-panel-portal .codex-summary small,
.life-panel-portal .codex-signal-row small {
  color: rgba(235, 235, 238, 0.54);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.life-panel-portal .codex-summary b {
  color: #f7f7f8;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.life-panel-portal .codex-total {
  min-height: 68px;
  padding: 11px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  justify-content: center;
}

.life-panel-portal .codex-total b {
  margin-top: 5px;
  font-size: 28px;
  line-height: 1;
}

.life-panel-portal .codex-signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  gap: 0;
}

.life-panel-portal .codex-signal-row > span {
  display: flex;
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  flex-direction: column;
  justify-content: center;
}

.life-panel-portal .codex-signal-row > span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.life-panel-portal .codex-signal-row b {
  margin-top: 4px;
  color: #f1f1f3;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.life-panel-portal .codex-heatmap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 1px;
}

.life-panel-portal .codex-heatmap-head b {
  color: rgba(245, 245, 247, 0.85);
  font-size: 11px;
}

.life-panel-portal .codex-heatmap-head small {
  color: rgba(235, 235, 238, 0.42);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.life-panel-portal .codex-heatmap {
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  height: 84px;
  column-gap: 4px;
  row-gap: 4px;
}

.life-panel-portal .codex-heatmap i {
  min-width: 0;
  border-radius: 2.5px;
  background: rgba(235, 235, 238, 0.075);
}

.life-panel-portal .codex-heatmap i[data-level="1"] { background: rgba(91, 183, 157, 0.28); }
.life-panel-portal .codex-heatmap i[data-level="2"] { background: #438f7b; }
.life-panel-portal .codex-heatmap i[data-level="3"] { background: #54b99a; }
.life-panel-portal .codex-heatmap i[data-level="4"] {
  background: #8be6bd;
  box-shadow: 0 0 8px rgba(100, 220, 174, 0.22);
}

.life-panel-portal .warcraft-popover {
  width: min(360px, calc(100vw - 24px));
  padding: 13px;
  border: 1px solid rgba(221, 172, 77, 0.72);
  border-radius: 16px 12px 20px 13px;
  color: #f5e7c5;
  background:
    radial-gradient(circle at 88% 3%, rgba(75, 116, 164, 0.46), transparent 31%),
    radial-gradient(circle at 5% 94%, rgba(126, 35, 44, 0.4), transparent 39%),
    linear-gradient(145deg, #101d2c, #221821 72%);
  box-shadow:
    0 18px 36px rgba(21, 20, 24, 0.29),
    inset 0 0 0 3px rgba(229, 184, 91, 0.07),
    inset 0 -28px 48px rgba(7, 8, 15, 0.22);
  gap: 9px;
  overflow: hidden;
}

.life-panel-portal .warcraft-popover::before {
  position: absolute;
  right: -25px;
  top: -38px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(235, 194, 106, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 13px rgba(211, 165, 75, 0.035),
    0 0 0 26px rgba(211, 165, 75, 0.025);
  content: "";
}

.life-panel-portal .warcraft-popover::after {
  display: block !important;
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #7b2630, #d0a44e 48%, #506f91);
  content: "";
}

.life-panel-portal .warcraft-hero {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  padding: 2px 1px 10px;
  border-bottom: 1px solid rgba(221, 177, 89, 0.36);
  gap: 10px;
}

.life-panel-portal .warcraft-hero > img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(222, 173, 78, 0.72),
    0 0 18px rgba(68, 126, 174, 0.25);
}

.life-panel-portal .warcraft-character,
.life-panel-portal .warcraft-specialization {
  display: flex;
  flex-direction: column;
}

.life-panel-portal .warcraft-character > small {
  color: #839ab2;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.life-panel-portal .warcraft-character > b {
  color: #ffe9ad;
  font-family: NoemaChinese, "STKaiti", serif;
  font-size: 18px;
  line-height: 1.1;
}

.life-panel-portal .warcraft-character > span {
  color: #b9c8d8;
  font-size: 9px;
}

.life-panel-portal .warcraft-specialization {
  align-items: flex-end;
  text-align: right;
}

.life-panel-portal .warcraft-faction-icon {
  display: block;
  width: 27px;
  height: 32px;
  filter: drop-shadow(0 3px 5px rgba(118, 28, 38, 0.5));
  object-fit: contain;
}

.life-panel-portal .warcraft-specialization b {
  margin-top: 4px;
  color: #d9c7a4;
  font-size: 9px;
  font-weight: 650;
}

.life-panel-portal .warcraft-identity {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.life-panel-portal .warcraft-identity > span {
  display: flex;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 7px 11px 8px 10px;
  background: rgba(225, 202, 158, 0.075);
  flex-direction: column;
}

.life-panel-portal .warcraft-identity small,
.life-panel-portal .warcraft-progress small {
  color: #91a3b4;
  font-size: 8px;
}

.life-panel-portal .warcraft-identity b {
  margin-top: 2px;
  color: #f2dfb5;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.life-panel-portal .warcraft-progress-label {
  color: #9d855b;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.life-panel-portal .warcraft-progress {
  display: grid;
  grid-template-columns: 1.35fr repeat(2, 0.8fr);
  gap: 5px;
}

.life-panel-portal .warcraft-progress > span {
  display: flex;
  min-height: 43px;
  padding: 6px 8px;
  border: 1px solid rgba(198, 165, 104, 0.16);
  border-radius: 10px 7px 11px 8px;
  background: rgba(8, 14, 24, 0.26);
  flex-direction: column;
  justify-content: center;
}

.life-panel-portal .warcraft-progress .warcraft-score-main {
  grid-row: span 2;
  min-height: 91px;
  background:
    radial-gradient(circle at 18% 20%, rgba(86, 130, 171, 0.2), transparent 48%),
    rgba(8, 14, 24, 0.34);
}

.life-panel-portal .warcraft-progress b {
  margin-top: 2px;
  color: #f2dfb5;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.life-panel-portal .warcraft-progress .warcraft-score-main b {
  color: #ffd572;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.life-panel-portal .music-popover {
  width: max-content;
  max-width: min(240px, calc(100vw - 24px));
  padding: 10px 15px 25px;
  overflow: visible;
  border: 0;
  border-radius: 19px 13px 18px 15px;
  color: #fff4df;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.08), transparent 35%),
    #8b4038;
  box-shadow:
    0 8px 15px rgba(72, 37, 31, 0.2),
    inset 0 0 0 1px rgba(255, 239, 213, 0.13);
  filter: none;
  gap: 0;
  rotate: -2deg;
}

.life-panel-portal .music-popover::before {
  position: absolute;
  top: -5px;
  right: 22px;
  width: 34px;
  height: 10px;
  border-radius: 2px;
  background: rgba(227, 193, 141, 0.8);
  box-shadow: 0 2px 4px rgba(62, 34, 28, 0.12);
  content: "";
  transform: rotate(3deg);
}

.music-track-copy {
  display: flex;
  position: relative;
  z-index: 1;
  min-width: 150px;
  flex-direction: column;
}

.music-track-copy small {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.music-track-copy b {
  overflow: hidden;
  color: #fff4df;
  font-family: NoemaChinese, "STKaiti", serif;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-track-copy > span {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 235, 207, 0.78);
  font-family: NoemaLatin, Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-inline-controls {
  position: fixed;
  left: -9999px;
  top: -9999px;
  bottom: auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
  transform-origin: center;
  transition:
    opacity 150ms ease-out,
    transform 180ms var(--ease-layer);
}

.life-panel-portal .music-inline-controls.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.life-panel-portal .music-inline-controls button {
  position: relative;
  display: grid;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #51473c;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  place-items: center;
  transition:
    color 130ms ease,
    background-color 130ms ease,
    transform 130ms var(--ease-layer);
  touch-action: manipulation;
}

.life-panel-portal .music-inline-controls button::before {
  position: absolute;
  inset: 2px;
  z-index: 0;
  border-radius: 50%;
  background: rgba(244, 236, 217, 0.9);
  box-shadow:
    0 7px 13px rgba(46, 40, 31, 0.19),
    inset 0 1px rgba(255, 255, 255, 0.58);
  content: "";
  transition:
    background-color 130ms ease,
    transform 130ms var(--ease-layer);
}

.life-panel-portal .music-inline-controls button:focus-visible {
  color: #302921;
  background: transparent;
  outline: 2px solid rgba(117, 84, 54, 0.62);
  outline-offset: 2px;
}

.life-panel-portal .music-inline-controls button:focus-visible::before {
  background: #fff7e6;
}

.life-panel-portal .music-inline-controls button:active {
  transform: scale(0.94);
}

.life-panel-portal .music-inline-controls .music-panel-toggle {
  width: 52px;
  height: 52px;
  color: #f8ecd3;
  background: transparent;
}

.life-panel-portal .music-inline-controls .music-panel-toggle::before {
  background: #744137;
}

.life-panel-portal .music-inline-controls .music-panel-toggle:focus-visible {
  color: #fff7e6;
  background: transparent;
}

.life-panel-portal .music-inline-controls .music-panel-toggle:focus-visible::before {
  background: #5f332c;
}

.music-inline-controls svg {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
  overflow: visible;
  fill: currentColor;
}

.music-inline-controls button:not(.music-panel-toggle) svg {
  width: 16px;
  height: 16px;
}

.music-control-pause,
.music-inline-controls.is-playing .music-control-play {
  display: none;
}

.music-inline-controls.is-playing .music-control-pause {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .life-panel-portal .music-inline-controls button:hover {
    color: #302921;
  }

  .life-panel-portal .music-inline-controls button:hover::before {
    background: #fff7e6;
  }

  .life-panel-portal .music-inline-controls .music-panel-toggle:hover {
    color: #fff7e6;
  }

  .life-panel-portal .music-inline-controls .music-panel-toggle:hover::before {
    background: #5f332c;
  }
}

@media (max-width: 560px) {
  .life-panel-portal .life-popover {
    max-width: calc(100vw - 20px);
    max-height: min(70vh, 560px);
  }

  .life-panel-portal .warcraft-hero {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .life-panel-portal .warcraft-specialization {
    display: none;
  }

  .life-panel-portal .warcraft-progress {
    grid-template-columns: 1.2fr repeat(2, 0.8fr);
  }

  .life-panel-portal .reading-popover {
    width: min(360px, calc(100vw - 20px));
  }

  .life-panel-portal .reading-books-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .life-panel-portal .reading-screen-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .life-panel-portal .reading-screen-section .reading-section-label {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .life-panel-portal .life-popover {
    transition: opacity 120ms ease-out;
  }

  .life-music.is-playing .music-record-motion,
  .music-inline-controls {
    animation: none;
  }
}

.project-portal {
  cursor: grab;
}

.float-nav {
  position: fixed;
  z-index: 100;
  left: clamp(12px, 1.45vw, 24px);
  top: 50%;
  width: 146px;
  pointer-events: auto;
  transform: translateY(-50%);
}

.nav-index-card {
  position: relative;
  padding: 10px 7px 9px;
  border: 1px solid rgba(49, 52, 41, 0.2);
  border-radius: 3px 11px 7px 4px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.2), transparent 45%),
    rgba(249, 247, 239, 0.97);
  box-shadow:
    0 18px 40px rgba(39, 37, 30, 0.14),
    0 3px 8px rgba(39, 37, 30, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  transform: rotate(-0.25deg);
  isolation: isolate;
}

.nav-index-card::before {
  position: absolute;
  z-index: -1;
  left: 10px;
  right: 5px;
  bottom: -7px;
  height: 18px;
  border: 1px solid rgba(49, 52, 41, 0.13);
  border-radius: 0 0 8px 4px;
  background: rgba(232, 228, 216, 0.94);
  box-shadow: 0 8px 18px rgba(39, 37, 30, 0.08);
  content: "";
  transform: rotate(0.8deg);
}

.nav-index-heading {
  display: flex;
  align-items: center;
  margin: 0 4px 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(49, 52, 41, 0.17);
  color: rgba(28, 30, 25, 0.48);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.nav-tree,
.project-children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-tree {
  display: grid;
  gap: 4px;
}

.nav-root {
  position: relative;
}

.nav-dot,
.project-children button,
.controls button {
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.controls button[aria-pressed="true"] {
  color: #fffef8;
  background: rgba(56, 78, 39, 0.92);
}

.size-controls {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 16px 36px rgba(35, 34, 29, 0.12);
}

.size-controls[hidden] {
  display: none;
}

.size-selection {
  width: 94px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.controls .size-step {
  width: 30px;
  min-height: 30px;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(54, 66, 45, 0.12);
  font-size: 17px;
}

.controls .size-step:disabled {
  cursor: default;
  opacity: 0.32;
}

#sizeRange {
  width: 118px;
  accent-color: var(--green-deep);
}

#sizeValue {
  width: 42px;
  color: var(--green-deep);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

body.is-size-editing [data-layout-id]:not([data-fixed="true"]) {
  cursor: pointer;
}

body.is-size-editing .is-size-selected {
  outline: 2px dashed rgba(70, 103, 45, 0.74);
  outline-offset: 5px;
}

.nav-dot {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 17px;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 8px;
  border-radius: 3px 8px 5px 3px;
  color: var(--ink);
  transition:
    color 160ms ease-out,
    background 180ms ease-out,
    transform 180ms var(--ease-layer),
    box-shadow 180ms ease-out;
}

.nav-dot:hover,
.nav-dot:focus-visible {
  background: rgba(64, 78, 50, 0.08);
  transform: translateX(2px);
}

.nav-dot:active,
.controls button:active,
.project-children button:active {
  transform: scale(0.96);
}

.label {
  color: rgba(23, 24, 21, 0.72);
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition:
    color 160ms ease-out,
    transform 220ms var(--ease-layer);
}

.nav-dot.active .label,
.nav-dot:hover .label,
.nav-dot:focus-visible .label {
  color: var(--ink);
}

.nav-dot.active .label {
  color: #fffdf6;
  font-size: 17px;
  transform: translateX(1px);
}

.nav-dot.active {
  color: #fffdf6;
  background: #293621;
  box-shadow: 0 7px 16px rgba(35, 49, 27, 0.2);
}

.nav-state {
  color: rgba(23, 24, 21, 0.38);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  text-align: center;
  transition: transform 220ms var(--ease-layer);
}

.nav-dot.active .nav-state {
  color: rgba(255, 253, 246, 0.82);
  transform: translate(1px, 1px);
}

.project-children {
  position: relative;
  display: grid;
  gap: 2px;
  max-height: 0;
  margin: 5px -3px -2px 5px;
  padding: 0 6px;
  border: 1px solid rgba(49, 52, 41, 0.14);
  border-radius: 3px 8px 6px 3px;
  background: rgba(238, 234, 223, 0.97);
  box-shadow:
    0 12px 22px rgba(39, 37, 30, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  opacity: 0;
  transform: translate(7px, -8px) rotate(0.5deg) scaleY(0.94);
  transform-origin: top left;
  transition:
    max-height 320ms var(--ease-layer),
    padding 320ms var(--ease-layer),
    opacity 180ms ease-out,
    transform 300ms var(--ease-layer);
}

.project-children[hidden] {
  display: none;
}

body.mode-projects .project-children {
  max-height: 210px;
  padding-top: 7px;
  padding-bottom: 7px;
  opacity: 1;
  transform: translate(0, 0) rotate(0.5deg) scaleY(1);
}

.project-children-heading {
  display: flex;
  align-items: center;
  margin: 0 3px 4px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(49, 52, 41, 0.13);
  color: rgba(23, 24, 21, 0.38);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project-children li {
  opacity: 0;
  transform: translateX(-7px);
  transition:
    opacity 180ms ease-out,
    transform 260ms var(--ease-layer);
}

body.mode-projects .project-children li {
  opacity: 1;
  transform: translateX(0);
}

body.mode-projects .project-children li:nth-child(2) {
  transition-delay: 35ms;
}

body.mode-projects .project-children li:nth-child(3) {
  transition-delay: 70ms;
}

body.mode-projects .project-children li:nth-child(4) {
  transition-delay: 105ms;
}

.project-children button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 8px;
  width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  padding: 2px 6px 2px 8px;
  border-radius: 3px 6px 4px 3px;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 180ms var(--ease-layer);
}

.child-swatch {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #678a45;
  box-shadow: 0 0 0 2px rgba(255, 253, 247, 0.55);
  transition: transform 180ms var(--ease-layer);
}

button[data-project="zhiqi"] .child-swatch {
  background: #b86540;
}

button[data-project="readio"] .child-swatch {
  background: #df765e;
}

button[data-project="futureProjects"] .child-swatch {
  background: #9c8d6b;
}

.child-label {
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: 0.035em;
  transition:
    color 160ms ease-out,
    transform 220ms var(--ease-layer);
}

.project-children button:hover,
.project-children button:focus-visible {
  color: var(--ink);
  background: rgba(255, 253, 247, 0.72);
  transform: translateX(3px);
}

body[data-project-focus="noema"] .project-children button[data-project="noema"],
body[data-project-focus="zhiqi"] .project-children button[data-project="zhiqi"],
body[data-project-focus="readio"] .project-children button[data-project="readio"],
body[data-project-focus="futureProjects"]
  .project-children
  button[data-project="futureProjects"] {
  color: var(--ink);
  background: rgba(255, 253, 247, 0.82);
  transform: translateX(3px);
}

.project-children button[aria-current="location"] .child-swatch {
  transform: scale(1.45);
}

.project-children button[aria-current="location"] .child-label {
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.project-layer {
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  filter: blur(8px);
  transform: none;
  transform-origin: 0 0;
  transition:
    opacity 320ms ease-out,
    filter 320ms ease-out,
    visibility 0ms linear 320ms;
}

.project-route-scrap,
.project-artifact,
.project-zone {
  position: absolute;
  touch-action: none;
  transition:
    opacity 520ms ease-out,
    transform 620ms var(--ease-layer),
    filter 260ms ease-out;
  will-change: transform, filter;
}

.project-route-scrap {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(95, 143, 40, 0.86);
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 30px;
  transform: rotate(-4deg);
  pointer-events: none;
}

.project-route-scrap i {
  display: block;
  width: 170px;
  border-top: 2px dashed rgba(95, 143, 40, 0.32);
}

.project-zone {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px 34px;
  border: 1.5px dashed rgba(95, 143, 40, 0.54);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.42), rgba(255, 253, 247, 0.1)),
    repeating-linear-gradient(
      -8deg,
      rgba(95, 143, 40, 0.05) 0 1px,
      transparent 1px 18px
    );
  color: rgba(23, 24, 21, 0.86);
  cursor: grab;
  transform: translateY(34px) scale(0.96) rotate(var(--zone-rotate, 0deg));
}

.project-zone::before,
.project-zone::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.project-zone::before {
  inset: 14px;
  border: 1px solid rgba(255, 253, 247, 0.74);
  border-radius: inherit;
}

.project-zone::after {
  right: 26px;
  top: 22px;
  width: 62px;
  border-top: 2px solid rgba(95, 143, 40, 0.5);
  transform: rotate(-4deg);
}

.project-zone:hover:not(.is-pressing, .is-dragging),
.project-zone:focus-visible:not(.is-pressing, .is-dragging) {
  transform: translateY(22px) scale(0.982) rotate(var(--zone-rotate, 0deg));
  filter:
    drop-shadow(0 18px 26px rgba(35, 34, 29, 0.12))
    drop-shadow(0 0 9px rgba(255, 255, 255, 0.66));
}

.project-zone:focus-visible {
  outline: 2px solid rgba(95, 143, 40, 0.76);
  outline-offset: 8px;
}

.project-zone h2,
.project-zone p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.project-zone h2 {
  margin-top: 11px;
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: clamp(34px, 4.2vw, 66px);
  line-height: 0.96;
  letter-spacing: 0;
}

.project-zone p {
  max-width: 520px;
  margin-top: 14px;
  color: rgba(23, 24, 21, 0.7);
  font-size: 20px;
  line-height: 1.52;
}

.project-zone small {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 530px;
  margin-top: 18px;
  color: rgba(36, 74, 22, 0.68);
  font-size: 15px;
  line-height: 1.45;
}

.zone-kicker {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 5px 12px 6px;
  border-radius: 999px;
  color: rgba(36, 74, 22, 0.86);
  background: rgba(255, 253, 247, 0.7);
  box-shadow: inset 0 0 0 1px rgba(95, 143, 40, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.project-zone-noema {
  --zone-rotate: -1.2deg;
  border-radius: 52px 34px 64px 38px;
  background:
    radial-gradient(circle at 74% 26%, rgba(95, 143, 40, 0.16), transparent 11rem),
    linear-gradient(135deg, rgba(255, 253, 247, 0.54), rgba(255, 253, 247, 0.12)),
    repeating-linear-gradient(
      -8deg,
      rgba(95, 143, 40, 0.05) 0 1px,
      transparent 1px 18px
    );
}

.project-zone-zhiqi {
  --zone-rotate: 1.8deg;
  border-color: rgba(162, 95, 49, 0.44);
  border-radius: 36px 52px 34px 46px;
  background:
    radial-gradient(circle at 72% 28%, rgba(217, 184, 93, 0.18), transparent 8rem),
    linear-gradient(135deg, rgba(255, 253, 247, 0.48), rgba(255, 253, 247, 0.08));
}

.project-zone-future {
  --zone-rotate: 0deg;
  isolation: isolate;
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
  clip-path: none;
  filter: none;
  opacity: 1;
  transform: none;
}

.project-zone-future::before,
.project-zone-future::after {
  display: none;
}

.future-gadget-lab-piece {
  position: absolute;
  display: block;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  object-fit: contain;
  object-position: left top;
}

.future-gadget-lab-device {
  z-index: 1;
  overflow: visible;
  filter: drop-shadow(7px 10px 8px rgba(52, 45, 36, 0.13));
}

.future-gadget-lab-tray {
  z-index: 3;
  filter: drop-shadow(5px 7px 6px rgba(52, 45, 36, 0.16));
}

.future-gadget-lab-note {
  z-index: 0;
  filter: drop-shadow(4px 6px 5px rgba(52, 45, 36, 0.13));
}

.future-gadget-lab-copy {
  z-index: 4;
  filter: drop-shadow(4px 6px 5px rgba(52, 45, 36, 0.12));
}

.future-gadget-lab-state {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  transition: none;
  pointer-events: none;
  user-select: none;
}

.future-gadget-lab-state-idle {
  opacity: 1;
}

.future-gadget-lab-state-powered {
  opacity: 0;
}

.project-zone-future.is-lab-powered .future-gadget-lab-state-idle {
  opacity: 0;
}

.project-zone-future.is-lab-powered .future-gadget-lab-state-powered {
  opacity: 1;
}

.project-zone-future:hover .future-gadget-lab-state-idle,
.project-zone-future:focus .future-gadget-lab-state-idle,
.project-zone-future:focus-visible .future-gadget-lab-state-idle {
  opacity: 0;
}

.project-zone-future:hover .future-gadget-lab-state-powered,
.project-zone-future:focus .future-gadget-lab-state-powered,
.project-zone-future:focus-visible .future-gadget-lab-state-powered {
  opacity: 1;
}

.project-zone-future:focus-visible {
  outline: none;
}

.project-zone-future:focus-visible .future-gadget-lab-device {
  filter:
    drop-shadow(0 0 2px rgba(255, 253, 247, 0.94))
    drop-shadow(0 0 7px rgba(123, 75, 58, 0.44))
    drop-shadow(7px 10px 8px rgba(52, 45, 36, 0.13));
}

.project-zone-future:hover:not(.is-pressing, .is-dragging),
.project-zone-future:focus-visible:not(.is-pressing, .is-dragging) {
  transform: none;
  filter: none;
}

.project-zone-zhiqi p {
  max-width: 330px;
  font-size: 18px;
}

.project-artifact {
  isolation: isolate;
  cursor: grab;
  transform: translateY(34px) scale(0.96);
}

.project-artifact:hover:not(.is-pressing, .is-dragging),
.project-artifact:focus-visible:not(.is-pressing, .is-dragging) {
  transform: translateY(22px) scale(0.982) rotate(var(--artifact-rotate, 0deg));
  filter:
    drop-shadow(0 18px 26px rgba(35, 34, 29, 0.14))
    drop-shadow(0 0 9px rgba(255, 255, 255, 0.66));
}

.project-artifact:focus-visible {
  outline: 2px solid rgba(95, 143, 40, 0.76);
  outline-offset: 8px;
}

.project-artifact img,
.project-artifact svg,
.project-artifact .project-copy {
  position: absolute;
}

.project-copy {
  z-index: 5;
}

.project-collage-img {
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.project-copy h2,
.project-copy p {
  margin: 0;
}

.project-copy h2 {
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: 42px;
  line-height: 0.98;
  letter-spacing: 0;
}

.project-copy small {
  display: block;
  margin-top: 7px;
  font-size: 19px;
  font-weight: 400;
}

.project-copy p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.project-copy a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-top: 16px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(255, 253, 247, 0.82);
  box-shadow: inset 0 0 0 1px rgba(95, 143, 40, 0.18);
  font-size: 13px;
  text-decoration: none;
}

.status-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 13px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.status-chip.completed {
  color: #dff2d7;
  background: rgba(95, 143, 40, 0.38);
  box-shadow: inset 0 0 0 1px rgba(212, 238, 196, 0.2);
}

.status-chip.building {
  color: #704d08;
  background: rgba(217, 184, 93, 0.34);
  box-shadow: inset 0 0 0 1px rgba(122, 81, 20, 0.08);
}

.project-noema {
  --artifact-rotate: -2deg;
}

.project-noema-workbench {
  --artifact-rotate: -1.2deg;
  color: #151712;
  overflow: visible;
  background: transparent;
}

.project-noema-workbench,
.project-noema-workbench * {
  letter-spacing: 0;
}

.project-noema-workbench .noema-piece {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.noema-piece-main {
  left: 100px;
  top: 82px;
  z-index: 3;
  width: 710px;
  height: auto;
  filter:
    drop-shadow(0 18px 22px rgba(35, 34, 29, 0.12))
    saturate(0.98)
    contrast(1.02);
}

.noema-piece-camera-decor {
  left: 548px;
  top: 428px;
  z-index: 2;
  width: 226px;
  height: auto;
  transform: rotate(5deg);
  filter:
    drop-shadow(0 15px 18px rgba(35, 34, 29, 0.14))
    saturate(0.96)
    contrast(1.01);
}

.noema-piece-camera {
  right: -6px;
  top: 30px;
  z-index: 1;
  width: 585px;
  height: auto;
  filter:
    drop-shadow(0 18px 22px rgba(35, 34, 29, 0.14))
    saturate(0.98)
    contrast(1.02);
}

.noema-piece-title {
  left: 0;
  top: 12px;
  z-index: 3;
  width: 540px;
  height: auto;
  filter: drop-shadow(0 14px 16px rgba(35, 34, 29, 0.12));
}

.noema-piece-evidence {
  left: 22px;
  top: 248px;
  z-index: 4;
  width: 235px;
  height: auto;
  filter: drop-shadow(0 16px 20px rgba(35, 34, 29, 0.12));
}

.noema-piece-flow {
  left: 300px;
  top: 466px;
  z-index: 5;
  width: 420px;
  height: auto;
  filter: drop-shadow(0 12px 14px rgba(35, 34, 29, 0.09));
}

.noema-workbench-base {
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  filter: saturate(0.98) contrast(1.02);
  pointer-events: none;
}

.noema-photo-scrap {
  z-index: 2;
  object-fit: cover;
  border: 5px solid rgba(243, 238, 226, 0.92);
  background: #ede5d6;
  box-shadow:
    0 14px 22px rgba(35, 34, 29, 0.16),
    inset 0 0 0 1px rgba(36, 30, 20, 0.08);
  filter: saturate(0.58) contrast(1.05);
  pointer-events: none;
}

.noema-photo-scrap-top {
  left: 32px;
  top: 72px;
  width: 122px;
  height: 88px;
  transform: rotate(-7deg);
}

.noema-photo-scrap-bottom {
  left: 92px;
  bottom: 44px;
  width: 132px;
  height: 92px;
  transform: rotate(-9deg);
}

.noema-identity-note {
  position: absolute;
  left: 58px;
  top: 52px;
  z-index: 7;
  display: flex;
  width: 336px;
  height: 112px;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 18px 26px;
  color: #171815;
  text-decoration: none;
  transform: rotate(-2.8deg);
  isolation: isolate;
}

.noema-identity-note::before {
  display: none;
}

.noema-identity-paper {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: drop-shadow(0 14px 20px rgba(45, 36, 22, 0.14));
  pointer-events: none;
}

.noema-identity-note .noema-app-icon {
  position: static;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 18px;
  box-shadow: 0 12px 20px rgba(12, 14, 11, 0.24);
}

.noema-identity-note span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.noema-identity-note strong {
  font-family: NoemaLatin, Georgia, serif;
  font-size: 46px;
  font-weight: 600;
  line-height: 0.82;
}

.noema-identity-note em {
  color: #547424;
  font-family: NoemaChinese, "Songti SC", serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
}

.noema-identity-note small {
  margin-top: 4px;
  color: rgba(23, 24, 21, 0.72);
  font-family: NoemaChinese, "PingFang SC", sans-serif;
  font-size: 13px;
  line-height: 1.2;
}

.noema-copy-note {
  position: absolute;
  left: 74px;
  top: 162px;
  z-index: 6;
  width: 278px;
  padding: 13px 18px 15px;
  color: #1e201a;
  transform: rotate(-2.5deg);
  isolation: isolate;
}

.noema-copy-note::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 246, 236, 0.91);
  box-shadow: 0 10px 17px rgba(45, 36, 22, 0.1);
  clip-path: polygon(2% 10%, 16% 5%, 33% 9%, 51% 4%, 72% 9%, 98% 6%, 97% 87%, 82% 94%, 63% 90%, 45% 98%, 24% 91%, 3% 95%);
  content: "";
}

.noema-copy-note p,
.noema-copy-note small {
  margin: 0;
  font-family: NoemaChinese, "PingFang SC", sans-serif;
}

.noema-copy-note p {
  color: rgba(23, 24, 21, 0.86);
  font-size: 16px;
  line-height: 1.44;
}

.noema-copy-note small {
  display: block;
  margin-top: 8px;
  color: #547424;
  font-size: 12px;
  font-weight: 800;
}

.noema-camera-screen {
  position: absolute;
  left: 330px;
  top: 181px;
  z-index: 5;
  width: 236px;
  height: 132px;
  overflow: hidden;
  border-radius: 7px;
  background: #080b08;
  box-shadow:
    inset 0 0 0 1px rgba(255, 253, 247, 0.12),
    inset 0 -22px 38px rgba(0, 0, 0, 0.42);
  transform: rotate(6.2deg) skewX(-1.2deg);
  pointer-events: none;
}

.noema-camera-screen::after {
  position: absolute;
  right: 15px;
  bottom: 9px;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: #6fae4d;
  box-shadow: -13px 0 0 rgba(111, 174, 77, 0.38);
  content: "";
}

.screen-grid {
  position: absolute;
  left: 12px;
  top: 24px;
  display: grid;
  width: 90px;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.screen-grid img,
.noema-camera-screen .screen-preview {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-grid img {
  aspect-ratio: 1 / 0.72;
  border-radius: 2px;
  opacity: 0.74;
}

.noema-camera-screen .screen-preview {
  position: absolute;
  right: 12px;
  top: 24px;
  width: 108px;
  height: 72px;
  border-radius: 3px;
  opacity: 0.9;
}

.noema-camera-screen span {
  position: absolute;
  left: 12px;
  top: 8px;
  color: rgba(255, 253, 247, 0.66);
  font-family: NoemaLatin, Georgia, serif;
  font-size: 12px;
}

.noema-ui-evidence {
  position: absolute;
  z-index: 8;
  display: grid;
  width: 160px;
  height: 240px;
  justify-items: center;
  padding: 0;
  color: #171815;
  isolation: isolate;
}

.noema-ui-evidence::before {
  display: none;
}

.noema-ui-evidence span {
  position: absolute;
  left: 12px;
  top: 11px;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #f6efe0;
  background: rgba(9, 12, 9, 0.9);
  font-family: NoemaChinese, "Songti SC", serif;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.18);
}

.noema-ui-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: drop-shadow(0 16px 24px rgba(43, 34, 20, 0.16));
  pointer-events: none;
}

.noema-ui-shot {
  position: absolute;
  left: 34px;
  top: 42px;
  z-index: 1;
  width: 93px;
  height: 146px;
  border-radius: 16px;
  object-fit: cover;
  object-position: top center;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.1);
}

.noema-ui-evidence p {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  margin: 0;
  color: rgba(23, 24, 21, 0.76);
  font-family: NoemaChinese, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.noema-ui-zhen {
  left: 38px;
  top: 246px;
  transform: rotate(-4deg);
}

.noema-ui-jian {
  left: 196px;
  top: 236px;
  transform: rotate(3deg);
}

.noema-status-tags {
  position: absolute;
  left: 336px;
  top: 378px;
  z-index: 9;
  display: flex;
  gap: 8px;
  transform: rotate(-2deg);
}

.noema-status-tags span {
  min-height: 24px;
  padding: 5px 10px 6px;
  border-radius: 999px;
  color: #3f5f20;
  background: rgba(241, 232, 207, 0.92);
  box-shadow:
    0 9px 14px rgba(45, 36, 22, 0.1),
    inset 0 0 0 1px rgba(95, 143, 40, 0.12);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.noema-flow {
  position: absolute;
  right: 24px;
  bottom: 34px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 372px;
  height: 84px;
  padding: 17px 18px 18px;
  transform: rotate(1.8deg);
}

.noema-flow::before {
  display: none;
}

.noema-flow img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: drop-shadow(0 10px 14px rgba(45, 36, 22, 0.12));
  pointer-events: none;
}

.noema-flow span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #486a23;
  background: transparent;
  box-shadow: none;
  font-family: NoemaChinese, "Songti SC", serif;
  font-size: 19px;
  font-weight: 900;
}

.noema-copy {
  left: 184px;
  top: 74px;
  width: 252px;
  padding: 10px 15px 12px;
  border-radius: 20px 16px 22px 14px;
  background: rgba(9, 17, 10, 0.68);
  box-shadow:
    0 12px 20px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(212, 238, 196, 0.12);
  color: rgba(255, 253, 247, 0.92);
  transform: rotate(-1.5deg);
}

.noema-copy h2,
.noema-copy p {
  color: rgba(255, 253, 247, 0.92);
}

.noema-copy h2 {
  font-size: 36px;
}

.noema-copy small {
  margin-top: 5px;
  font-size: 17px;
}

.noema-copy p {
  color: rgba(255, 253, 247, 0.72);
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.25;
}

.noema-copy a {
  min-height: 26px;
  margin-top: 10px;
  padding: 0 10px;
  color: #d6eec7;
  background: rgba(255, 253, 247, 0.1);
  box-shadow: inset 0 0 0 1px rgba(212, 238, 196, 0.18);
}

.project-noema-composition {
  position: absolute;
  isolation: isolate;
  opacity: 0;
  transform: translateY(28px) scale(0.71);
  transition:
    opacity 520ms ease-out,
    transform 620ms var(--ease-layer),
    filter 260ms ease-out;
  will-change: transform, filter;
}

.project-territory {
  position: absolute;
  z-index: -1;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.noema-territory {
  left: -118px;
  top: -104px;
  width: 1390px;
  opacity: 0.72;
  filter: contrast(1.05) saturate(1.04);
}

.readio-territory {
  left: -134px;
  top: -112px;
  width: 720px;
  opacity: 1;
  filter: contrast(1.05) saturate(1.1);
}

.cueday-territory {
  left: -142px;
  top: -126px;
  width: 1080px;
  opacity: 0.98;
  filter: contrast(1.04) saturate(1.06);
}

.noema-composition-piece {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  transition:
    transform 220ms ease,
    filter 220ms ease;
  transform-origin: center;
}

.noema-composition-identity-icon {
  left: 58px;
  top: 28px;
  width: 230px;
}

.noema-composition-identity-icon {
  z-index: 3;
  filter:
    drop-shadow(2px 3px 1px rgba(42, 36, 29, 0.4))
    drop-shadow(10px 14px 9px rgba(48, 41, 32, 0.28))
    drop-shadow(16px 22px 16px rgba(48, 41, 32, 0.14));
}

.noema-composition-identity-copy {
  left: 48px;
  top: 243px;
  z-index: 3;
  width: 430px;
}

.noema-composition-camera {
  left: 430px;
  top: 0;
  z-index: 2;
  width: 690px;
  filter:
    drop-shadow(3px 4px 2px rgba(38, 32, 25, 0.28))
    drop-shadow(12px 16px 11px rgba(46, 39, 30, 0.19))
    drop-shadow(18px 24px 18px rgba(46, 39, 30, 0.08));
}

.noema-composition-workflow {
  left: 58px;
  top: 430px;
  z-index: 4;
  width: 560px;
  filter:
    drop-shadow(2px 3px 1px rgba(36, 31, 25, 0.34))
    drop-shadow(10px 14px 9px rgba(43, 37, 29, 0.22))
    drop-shadow(16px 21px 15px rgba(43, 37, 29, 0.1));
}

body.mode-projects .project-noema-composition,
body.is-semantic-forward .project-noema-composition {
  opacity: 1;
  transform: translateY(0) scale(0.76);
  transform-origin: top left;
}

.project-noema-composition:focus-visible {
  outline: none;
  filter:
    drop-shadow(0 18px 24px rgba(35, 34, 29, 0.08))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.72));
}

.project-cueday-composition {
  position: absolute;
  isolation: isolate;
  opacity: 0;
  transform: translateY(28px) scale(0.69);
  transition:
    opacity 520ms ease-out,
    transform 620ms var(--ease-layer),
    filter 260ms ease-out;
  transition-delay: 170ms;
  will-change: transform, filter;
}

.cueday-composition-piece {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  transition:
    transform 220ms ease,
    filter 220ms ease;
  transform-origin: center;
}

.cueday-composition-identity {
  left: 36px;
  top: 0;
  z-index: 3;
  width: 450px;
  filter:
    drop-shadow(2px 3px 1px rgba(89, 55, 40, 0.28))
    drop-shadow(10px 14px 9px rgba(96, 60, 43, 0.19))
    drop-shadow(16px 22px 16px rgba(96, 60, 43, 0.08));
}

.cueday-composition-calendar-group {
  left: 400px;
  top: 0;
  z-index: 4;
  width: 360px;
  height: 327px;
}

.cueday-calendar-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.cueday-composition-calendar-shadow {
  z-index: 0;
  pointer-events: none;
}

.cueday-composition-calendar-foreground {
  z-index: 1;
  pointer-events: none;
}

.cueday-composition-workflow {
  left: 118px;
  top: 276px;
  z-index: 2;
  width: 520px;
  filter:
    drop-shadow(2px 3px 1px rgba(89, 55, 40, 0.3))
    drop-shadow(9px 13px 8px rgba(96, 60, 43, 0.2))
    drop-shadow(15px 20px 15px rgba(96, 60, 43, 0.08));
}

body.mode-projects .project-cueday-composition,
body.is-semantic-forward .project-cueday-composition {
  opacity: 1;
  transform: translateY(0) scale(0.82);
  transform-origin: top left;
}

.project-cueday-composition:focus-visible {
  outline: none;
  filter:
    drop-shadow(0 18px 24px rgba(73, 46, 33, 0.09))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
}

.project-readio-composition {
  position: absolute;
  isolation: isolate;
  opacity: 0;
  transform: translateY(28px) scale(0.9);
  transition:
    opacity 520ms ease-out,
    transform 620ms var(--ease-layer),
    filter 260ms ease-out;
  transition-delay: 240ms;
  will-change: transform, filter;
}

.readio-composition-piece {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  transition:
    transform 220ms ease,
    filter 220ms ease;
  transform-origin: center;
}

.readio-composition-identity-icon {
  left: 4px;
  top: 8px;
  z-index: 3;
  width: 110px;
  filter:
    drop-shadow(2px 3px 1px rgba(76, 48, 38, 0.34))
    drop-shadow(9px 13px 9px rgba(82, 52, 41, 0.22))
    drop-shadow(15px 21px 16px rgba(82, 52, 41, 0.1));
}

.readio-composition-identity-copy {
  left: 0;
  top: 113px;
  z-index: 3;
  width: 145px;
}

.readio-composition-book {
  left: 118px;
  top: 0;
  z-index: 2;
  width: 302px;
  filter:
    drop-shadow(3px 4px 2px rgba(82, 48, 38, 0.28))
    drop-shadow(11px 15px 10px rgba(88, 54, 42, 0.19))
    drop-shadow(17px 23px 17px rgba(88, 54, 42, 0.08));
}

.readio-composition-workflow {
  left: 14px;
  top: 208px;
  z-index: 4;
  width: 400px;
  filter:
    drop-shadow(2px 3px 1px rgba(82, 48, 38, 0.3))
    drop-shadow(9px 13px 8px rgba(88, 54, 42, 0.2))
    drop-shadow(15px 20px 15px rgba(88, 54, 42, 0.08));
}

body.mode-projects .project-readio-composition,
body.is-semantic-forward .project-readio-composition {
  opacity: 1;
  transform: translateY(0) scale(1.05);
  transform-origin: top left;
}

.project-readio-composition:focus-visible {
  outline: none;
  filter:
    drop-shadow(0 18px 24px rgba(82, 48, 38, 0.08))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.72));
}

.noema-composition-piece:hover:not(.is-pressing, .is-dragging),
.cueday-composition-piece:hover:not(.is-pressing, .is-dragging),
.readio-composition-piece:hover:not(.is-pressing, .is-dragging) {
  transform: translateY(-4px) scale(1.025);
  filter: drop-shadow(0 12px 14px rgba(48, 39, 29, 0.12));
}

.noema-composition-identity-icon:hover:not(.is-pressing, .is-dragging) {
  transform: translateY(-5px) scale(1.025);
  filter:
    drop-shadow(2px 4px 2px rgba(42, 36, 29, 0.3))
    drop-shadow(15px 21px 13px rgba(48, 41, 32, 0.28))
    drop-shadow(22px 30px 22px rgba(48, 41, 32, 0.13));
}

.noema-composition-workflow:hover:not(.is-pressing, .is-dragging) {
  transform: translateY(-5px) scale(1.025);
  filter:
    drop-shadow(2px 4px 2px rgba(36, 31, 25, 0.28))
    drop-shadow(15px 21px 13px rgba(43, 37, 29, 0.24))
    drop-shadow(22px 29px 21px rgba(43, 37, 29, 0.11));
}

.readio-composition-identity-icon:hover:not(.is-pressing, .is-dragging) {
  transform: translateY(-5px) scale(1.025);
  filter:
    drop-shadow(2px 4px 2px rgba(76, 48, 38, 0.28))
    drop-shadow(14px 20px 13px rgba(82, 52, 41, 0.24))
    drop-shadow(21px 29px 21px rgba(82, 52, 41, 0.11));
}

.noema-composition-camera:hover:not(.is-pressing, .is-dragging) {
  filter:
    drop-shadow(3px 5px 2px rgba(38, 32, 25, 0.24))
    drop-shadow(17px 23px 15px rgba(46, 39, 30, 0.22))
    drop-shadow(25px 33px 24px rgba(46, 39, 30, 0.1));
}

.cueday-composition-identity:hover:not(.is-pressing, .is-dragging),
.cueday-composition-workflow:hover:not(.is-pressing, .is-dragging) {
  filter:
    drop-shadow(2px 4px 2px rgba(89, 55, 40, 0.24))
    drop-shadow(15px 21px 13px rgba(96, 60, 43, 0.22))
    drop-shadow(22px 29px 21px rgba(96, 60, 43, 0.1));
}

.readio-composition-workflow:hover:not(.is-pressing, .is-dragging) {
  filter:
    drop-shadow(2px 4px 2px rgba(82, 48, 38, 0.24))
    drop-shadow(14px 20px 13px rgba(88, 54, 42, 0.22))
    drop-shadow(21px 28px 21px rgba(88, 54, 42, 0.1));
}

.readio-composition-book:hover:not(.is-pressing, .is-dragging) {
  filter:
    drop-shadow(3px 5px 2px rgba(82, 48, 38, 0.24))
    drop-shadow(16px 22px 14px rgba(88, 54, 42, 0.22))
    drop-shadow(24px 32px 23px rgba(88, 54, 42, 0.1));
}

.project-zhiqi {
  --artifact-rotate: 2deg;
}

.zhiqi-copy {
  left: 86px;
  bottom: 48px;
  width: 304px;
  padding: 18px 22px 22px;
  border-radius: 24px 18px 28px 20px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow:
    0 18px 32px rgba(70, 54, 38, 0.13),
    inset 0 0 0 1px rgba(134, 90, 53, 0.08);
  transform: rotate(-2deg);
}

.zhiqi-copy p {
  font-size: 17px;
  line-height: 1.6;
}

.project-readio {
  --artifact-rotate: -1deg;
}

.readio-copy {
  z-index: 5;
  right: 28px;
  top: 88px;
  width: 218px;
  transform: rotate(1deg);
}

.readio-copy p {
  font-size: 17px;
  line-height: 1.52;
}

.controls {
  position: fixed;
  z-index: 100;
  right: clamp(18px, 3vw, 44px);
  bottom: clamp(18px, 4vw, 44px);
  display: flex;
  max-width: min(760px, calc(100vw - 72px));
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0.72;
  transform-origin: right bottom;
  transition:
    opacity 180ms ease-out,
    transform 180ms ease-out;
}

.controls {
  display: none;
}

html.is-editor-mode .controls {
  display: flex;
}

body.is-visitor-preview .controls > :not(#visitorPreviewBtn) {
  display: none;
}

html.is-editor-mode body.is-visitor-preview .controls {
  right: clamp(18px, 3vw, 44px);
  bottom: clamp(18px, 4vw, 44px);
  max-width: none;
  opacity: 0.86;
  transform: none;
}

body.is-visitor-preview .visitor-preview-toggle {
  color: var(--ink);
  background: rgba(255, 253, 247, 0.88);
}

.controls[hidden] {
  display: none;
}

.controls:hover {
  opacity: 1;
}

.controls button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.72);
  box-shadow: 0 16px 36px rgba(35, 34, 29, 0.09);
}

body.mode-projects .controls {
  top: 18px;
  right: 18px;
  bottom: auto;
  opacity: 0.42;
  transform: scale(0.84);
  transform-origin: right top;
}

body.mode-projects .controls:hover {
  opacity: 1;
  transform: scale(1);
}

html.is-editor-mode body.mode-projects .controls {
  opacity: 0.96;
  transform: scale(1);
}

.controls:focus-within {
  opacity: 0.86;
}

.layout-status {
  min-width: 92px;
  color: var(--green-deep);
  font-size: 13px;
  text-align: right;
}

body.is-semantic-armed:not(.mode-projects) .project-portal {
  transform: translateY(-4px) scale(1.018);
  filter:
    drop-shadow(3px 6px 4px rgba(47, 40, 31, 0.2))
    drop-shadow(18px 24px 18px rgba(47, 40, 31, 0.12));
}

body.mode-projects .project-layer {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition-delay: 0ms;
}

body.mode-projects .project-artifact,
body.is-semantic-forward .project-artifact {
  transform: translateY(0) scale(1) rotate(var(--artifact-rotate, 0deg));
}

body.mode-projects .project-zone,
body.is-semantic-forward .project-zone {
  transform: translateY(0) scale(1) rotate(var(--zone-rotate, 0deg));
}

body.is-semantic-forward .project-noema-composition,
body.is-semantic-forward .project-cueday-composition,
body.is-semantic-forward .project-readio-composition,
body.is-semantic-forward .project-artifact,
body.is-semantic-forward .project-zone {
  transition: none;
}

body.mode-projects [data-depth="projects"].is-pressing {
  cursor: grab;
  transform: translateY(-5px) scale(1.012) rotate(var(--zone-rotate, 0deg));
  filter:
    drop-shadow(3px 5px 3px rgba(47, 40, 31, 0.24))
    drop-shadow(16px 22px 16px rgba(47, 40, 31, 0.16))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.76));
}

body.mode-projects [data-depth="projects"].is-dragging {
  z-index: 20;
  cursor: grabbing;
  transform: translateY(-10px) scale(1.025) rotate(var(--zone-rotate, 0deg));
  filter:
    drop-shadow(4px 7px 4px rgba(47, 40, 31, 0.28))
    drop-shadow(22px 30px 22px rgba(47, 40, 31, 0.2))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.86));
}

body.mode-projects .project-noema {
  transition-delay: 120ms;
}

body.mode-projects .project-noema-workbench {
  transition-delay: 120ms;
}

body.mode-projects .project-zhiqi {
  transition-delay: 190ms;
}

body.mode-projects .project-readio {
  transition-delay: 260ms;
}

body.mode-projects .project-zone-noema {
  transition-delay: 120ms;
}

body.mode-projects .project-zone-zhiqi {
  transition-delay: 190ms;
}

body.mode-projects .project-zone-readio {
  transition-delay: 240ms;
}

body.mode-projects .project-zone-future {
  transition-delay: 300ms;
}

@media (min-width: 721px) and (max-width: 1300px) {
  .float-nav {
    left: 10px;
    top: 50%;
    transform: translateY(-50%) scale(0.94);
    transform-origin: left center;
  }

  .noema-territory {
    left: -8px;
  }

  body.mode-projects .project-cueday-composition {
    transform: translateY(0) scale(0.72);
  }
}

@media (max-width: 720px) {
  .float-nav {
    left: 8px;
    top: 50%;
    transform: translateY(-50%) scale(0.84);
    transform-origin: left center;
  }

  .controls {
    right: 14px;
    bottom: 14px;
    flex-direction: column;
  }
}

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