:root {
  --paper: #f7f7f5;
  --ink: #252527;
  --muted: #737374;
  --soft: #e9e9e6;
  --blue: #3889ff;
  --green: #76d94f;
  --coral: #ff725e;
  --yellow: #ffd94c;
  --focus-x: 50%;
  --dock-shift: clamp(0px, calc((100vw - 980px) / 2), 92px);
  --ease-spring: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: hidden; background: var(--paper); }
body {
  min-height: 100svh;
  margin: 0;
  overflow: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at center, rgba(34, 34, 35, .055) 0 1px, transparent 1.2px) center 43% / 12px 12px no-repeat,
    var(--paper);
  font-family: "DM Sans", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.grain { position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}
.wordmark { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 10px; font-weight: 700; line-height: 1.05; }
.wordmark-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 2px solid var(--ink); border-radius: 11px; background: #fff; box-shadow: 2px 3px 0 var(--ink); font-size: 12px; }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a { font-size: 12px; font-weight: 600; text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.workspace { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 100svh; padding: 124px 24px 98px; }
.hello {
  align-self: start;
  justify-self: center;
  z-index: 3;
  margin: 5px 0 0;
  color: #565658;
  font-family: "Patrick Hand", "Microsoft YaHei", cursive;
  font-size: 35px;
  line-height: 1.08;
  text-align: center;
  transform: rotate(-2deg);
}

.object-stage { position: relative; min-height: 348px; display: grid; place-items: center; }
.object-dock { position: relative; z-index: 2; display: flex; align-items: end; justify-content: center; gap: 40px; width: min(1000px, 96vw); }
.project-object {
  position: relative;
  display: grid;
  justify-items: center;
  flex: 0 1 155px;
  min-width: 118px;
  border: 0;
  padding: 0 5px;
  background: transparent;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: filter 380ms var(--ease-spring), opacity 380ms var(--ease-spring), transform 380ms var(--ease-spring);
}
.object-icon { display: block; width: 128px; height: 128px; transition: transform 420ms var(--ease-spring), filter 420ms var(--ease-spring); transform-origin: center bottom; }
.sprite { background-image: url("assets/agent-object-sprite.png"); background-repeat: no-repeat; background-size: 200% 200%; filter: drop-shadow(0 15px 11px rgba(27, 31, 40, .18)); }
.sprite-ops { background-position: 0 0; }
.sprite-aaw { background-position: 100% 0; }
.sprite-sec { background-position: 0 100%; }
.sprite-resources { background-position: 100% 100%; }
.object-label { display: inline-flex; min-height: 32px; align-items: center; margin-top: 10px; border-radius: 18px; padding: 7px 13px; background: rgba(225, 225, 222, .88); box-shadow: inset 0 1px rgba(255,255,255,.7); font-size: 12px; font-weight: 600; white-space: nowrap; transition: background 200ms ease, transform 300ms var(--ease-spring); }
.project-object:focus-visible { outline: 2px dashed var(--blue); outline-offset: 8px; border-radius: 16px; }

.identity-object { position: relative; display: grid; place-items: center; width: 126px; height: 116px; margin: 10px 6px 6px; border: 4px solid #272a2e; border-radius: 42% 42% 28% 28%; background: linear-gradient(145deg, #b9deef, #659ab7); box-shadow: inset 5px 5px 7px rgba(255,255,255,.22), inset -6px -7px 8px rgba(41,91,121,.22), 0 6px 0 #37536a, 0 16px 18px rgba(27,31,40,.24); overflow: visible; }
.identity-object::before { content: ""; position: absolute; inset: 13px 18px 27px; border: 4px solid #b7bec7; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff 0 38%, #eceff1 72%); box-shadow: inset 0 0 0 3px #34383e, 0 4px 8px rgba(0,0,0,.35); }
.identity-object::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -8px; height: 17px; border: 3px solid #272a2e; border-radius: 5px 5px 10px 10px; background: linear-gradient(#3d9cff, #1768de); box-shadow: inset 0 3px rgba(255,255,255,.28), 0 4px 0 #24272b; }
.identity-object strong { position: relative; z-index: 2; margin-top: -9px; font-family: "Playfair Display", serif; font-size: 29px; }
.identity-object small { position: absolute; z-index: 2; bottom: 32px; font-size: 5px; font-weight: 700; line-height: 1; text-align: center; }
.identity-orbit { position: absolute; z-index: 3; right: -4px; top: 3px; width: 19px; height: 19px; border: 3px solid #272a2e; border-radius: 5px; background: linear-gradient(145deg, #9dff7e, #36c838); box-shadow: inset 3px 3px 3px rgba(255,255,255,.4), 2px 3px 0 #1c6824; transform: rotate(8deg); }

.intro { align-self: end; justify-self: center; z-index: 2; width: min(620px, 88vw); text-align: center; transition: opacity 260ms ease, filter 260ms ease, transform 420ms var(--ease-spring); }
.intro p { margin: 0; color: #63686b; font-size: 15px; line-height: 1.7; }
.intro-actions { display: flex; justify-content: center; gap: 18px; margin-top: 15px; }
.intro-actions a { color: #3e3e40; font-size: 12px; font-weight: 700; text-underline-offset: 4px; }
.intro-lab-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; color: #858b8d; font-size: 11px; font-weight: 600; text-decoration: none; text-underline-offset: 4px; transition: color 160ms ease; }
.intro-lab-link:hover, .intro-lab-link:focus-visible { color: #3e3e40; text-decoration: underline; }
.pager { position: fixed; z-index: 9; bottom: 17px; left: 50%; display: flex; gap: 5px; transform: translateX(-50%); border-radius: 20px; padding: 8px 11px; background: #e6e6e3; }
.pager span { width: 5px; height: 5px; border-radius: 50%; background: #8d8d8e; }
.pager span:nth-child(2) { background: #bebebc; }


.object-summary { display: none; }
.detail-layer { position: absolute; z-index: 5; left: var(--focus-x); top: var(--anchor-y,50%); width: 440px; height: 0; transform: translateX(-50%); opacity: 0; visibility: hidden; pointer-events: none; text-align: center; transition: opacity 170ms ease; }
.detail-art { position: absolute; left: 0; bottom: 66px; width: 100%; height: 248px; }
.detail-copy { position: absolute; top: 58px; width: 100%; padding: 0 16px; }
.detail-kicker { margin: 0 0 7px; color: #63686b; font-size: 11px; font-weight: 600; }
.detail-copy h1 { margin: 0; font: 700 42px/1.1 "Playfair Display", "Songti SC", serif; letter-spacing: 0; }
.detail-description { max-width: 380px; margin: 10px auto 0; color: #50565a; font-size: 14px; line-height: 1.6; }
.preview-window { position: absolute; left: 10px; top: 15px; width: 380px; height: 210px; overflow: hidden; border: 3px solid #2b2e32; border-radius: 14px; background: #fff; color: #252a2e; box-shadow: 5px 7px 0 #2b2e32, 0 20px 25px rgba(33,44,53,.16); text-align: left; transform: rotate(-4deg); }
.preview-ops { background: #292929; border-color: #343b40; }
.preview-ops img { display: block; width: 100%; height: 153px; object-fit: cover; object-position: center; }
.preview-caption { display: flex; flex-direction: column; justify-content: center; gap: 3px; height: 55px; padding: 8px 16px; background: #fff; color: #272e32; }
.preview-caption strong { font-size: 13px; }.preview-caption span { color: #647078; font-size: 11px; }
.preview-heading { display: flex; gap: 12px; align-items: center; height: 43px; padding: 0 20px; border-bottom: 1px solid #e5e8ea; font-size: 12px; font-weight: 700; }
.preview-heading small { font-size: 10px; color: #647078; font-weight: 400; }
.workflow-path { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 14px; }
.workflow-path > span { display: grid; gap: 5px; padding: 10px; background: #edf4fb; border-left: 2px solid #85b0d5; font-size: 13px; }
.workflow-path > span:nth-child(2) { background: #f5f0fb; border-color: #bc9bd6; }
.workflow-path > span:nth-child(3) { background: #edf6ed; border-color: #8bbc8b; }
.workflow-path b { color: #637583; font-size: 10px; font-weight: 500; }.workflow-path small { color: #67737c; font-size: 9px; }
.workflow-gate { display: flex; align-items: center; gap: 10px; margin: 0 14px; padding: 11px 0; border-top: 1px solid #dce7de; border-bottom: 1px solid #dce7de; font-size: 10px; }
.workflow-gate strong { color: #316648; font-size: 13px; }
.preview-footnote { padding: 12px 20px; font-size: 10px; color: #697078; }
.evidence-sources { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 20px 20px 14px; }
.evidence-sources span { padding: 10px 0; border: 1px solid #dce5eb; background: #f1f6fa; text-align: center; font-size: 13px; }
.evidence-foundation { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; margin: 0 20px; background: #e9f3e8; border-left: 3px solid #8bba83; }
.evidence-foundation strong { font-size: 15px; }.evidence-foundation span { color: #4b6651; font-size: 11px; }
.evidence-path { display: flex; justify-content: space-between; align-items: center; padding: 16px 23px; font-size: 12px; }.evidence-path i { color: #8b999f; font-style: normal; }
.library-shelves { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 14px; }
.library-shelves > div { display: flex; flex-direction: column; gap: 12px; height: 123px; padding: 12px 8px; background: #edf4fb; border-bottom: 3px solid #9eb9d2; }
.library-shelves > div:nth-child(2) { background: #f9f1e1; border-color: #d9bb80; }.library-shelves > div:nth-child(3) { background: #f0f6e9; border-color: #acc88c; }
.library-shelves b { color: #67747c; font-size: 11px; font-weight: 400; }.library-shelves strong { font-size: 14px; }.library-shelves span { font-size: 10px; color: #5d6972; }
.profile-name { display: flex; align-items: center; justify-content: space-between; margin: 14px 24px 0; font: 700 34px "Playfair Display","Songti SC",serif; }
.profile-name span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #e0eef8; color: #3c657e; font: 700 18px "Playfair Display",serif; }
.preview-profile p { margin: 10px 24px 14px; font-size: 15px; color: #59666e; }
.profile-topics { display: flex; gap: 18px; padding: 14px 24px; border-top: 1px solid #e5e8ea; font-size: 11px; color: #5b7060; }
body.has-selection .hello { opacity: 0; }
body.has-selection .intro { opacity: .18; }
body.has-selection .project-object { opacity: .42; filter: blur(1.5px); transform: scale(.9); }
body.has-selection .project-object.is-active { opacity: 1; filter: none; transform: scale(.58); z-index: 6; }
body.has-selection .project-object.is-active .object-label { visibility: hidden; }
body.has-selection .detail-layer { opacity: 1; visibility: visible; }
.scene-note { position: absolute; z-index: 2; right: 0; top: 181px; display: grid; gap: 7px; width: 155px; min-height: 89px; padding: 12px; border: 3px solid #2b2e32; border-radius: 12px; background: #bce2f5; color: #24292d; box-shadow: 4px 5px 0 #2b2e32, 0 12px 18px #24292d20; text-align: left; transform: rotate(7deg); }
.scene-note small { font-size: 9px; font-weight: 800; }.scene-note strong { font-size: 15px; }.scene-note span { font-size: 10px; }
.note-terminal { background: #252c32; color: #f4f7fa; }.note-terminal small { color: #9adefa; }.note-terminal i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #a6ee7a; }
.note-workflow { background: #c8e7fb; }.note-security { background: #eeddfa; }.note-library { background: #ffc7b6; }.note-profile { background: #c6eaaa; }
.scene-sticker { position: absolute; z-index: 3; display: grid; place-items: center; min-height: 35px; padding: 8px 12px; border: 2px solid #2b2e32; border-radius: 9px; color: #26292c; box-shadow: 3px 4px 0 #2b2e32; font-size: 10px; font-weight: 800; white-space: nowrap; }
.sticker-top { top: 0; right: 15px; background: #ffdb53; transform: rotate(8deg); }
.sticker-bottom { bottom: -20px; left: 12px; background: #a4e77a; transform: rotate(-7deg); }
body.has-selection .detail-art { animation: preview-arrive 350ms var(--ease-spring); }
body.has-selection .scene-note { animation: note-arrive 420ms var(--ease-spring); }
body.has-selection .scene-sticker { animation: sticker-arrive 480ms var(--ease-spring); }
@keyframes preview-arrive { from { translate: 0 14px; scale: .96; } to { translate: 0 0; scale: 1; } }
@keyframes note-arrive { from { translate: -15px -10px; rotate: -8deg; } to { translate: 0 0; rotate: 0deg; } }
@keyframes sticker-arrive { from { scale: .7; } to { scale: 1; } }

@media (min-width: 901px) {
  body.has-selection .detail-layer { pointer-events: none; }
  .object-dock:has(.project-object:nth-child(1).is-active) .project-object:not(.is-active) { transform: translateX(var(--dock-shift)) scale(.9); }
  .object-dock:has(.project-object:nth-child(2).is-active) .project-object:nth-child(1) { transform: translateX(calc(-1 * var(--dock-shift))) scale(.9); }
  .object-dock:has(.project-object:nth-child(2).is-active) .project-object:nth-child(n+3) { transform: translateX(var(--dock-shift)) scale(.9); }
  .object-dock:has(.project-object:nth-child(3).is-active) .project-object:nth-child(-n+2) { transform: translateX(calc(-1 * var(--dock-shift))) scale(.9); }
  .object-dock:has(.project-object:nth-child(3).is-active) .project-object:nth-child(n+4) { transform: translateX(var(--dock-shift)) scale(.9); }
  .object-dock:has(.project-object:nth-child(4).is-active) .project-object:nth-child(-n+3) { transform: translateX(calc(-1 * var(--dock-shift))) scale(.9); }
  .object-dock:has(.project-object:nth-child(4).is-active) .project-object:nth-child(5) { transform: translateX(var(--dock-shift)) scale(.9); }
  .object-dock:has(.project-object:nth-child(5).is-active) .project-object:not(.is-active) { transform: translateX(calc(-1 * var(--dock-shift))) scale(.9); }
}


@media (max-height: 760px) and (min-width: 901px) {
  .workspace { padding-top: 98px; padding-bottom: 65px; }
  .hello { font-size: 32px; }.object-stage { min-height: 335px; }
  .detail-art { height: 248px; bottom: 58px; }
  .workflow-path { margin: 12px 20px; }.preview-footnote { padding-top: 9px; }
  .evidence-sources { margin-top: 12px; }.evidence-foundation { padding: 10px; }
  .library-shelves { padding-top: 14px; }
  .profile-name { margin-top: 16px; }.preview-profile p { margin-bottom: 14px; }
}
@media (max-width: 900px) {
  .topbar { position: absolute; padding: 18px; }.topbar nav { gap: 14px; }.topbar nav a { font-size: 11px; }
  .topbar nav a:first-child, .topbar nav a:last-child { display: none; }
  .workspace { padding: 105px 16px 64px; gap: 28px; }
  .hello { font-size: 30px; line-height: 1.15; }
  .object-stage { min-height: 0; }
  .object-dock { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: min(440px,100%); gap: 30px 14px; }
  .project-object { min-width: 0; min-height: 198px; }
  .project-object:last-child { grid-column: 1 / -1; justify-self: center; width: 190px; }
  .object-icon { width: 116px; height: 116px; }.identity-object { width: 106px; height: 106px; margin: 5px; }
  .object-label { margin-top: 8px; font-size: 13px; }
  .object-summary { display: block; margin-top: 8px; color: #697078; font-size: 11px; line-height: 1.5; }
  .detail-layer { display: none; }
  .intro { width: min(530px,100%); }.intro p { font-size: 14px; }.intro p br { display: none; }
  .pager { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .detail-layer { display: none; }
  .object-summary { display: block; margin-top: 8px; font-size: 11px; line-height: 1.5; color: #697078; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
