/* V2 — a warm paper canvas and its graphite counterpart. */
:root {
  --soft-ink: #bdc5c0;
  --surface: #1b201d;
  --accent-line: #82eed252;
  --button-ink: #111a16;
  --control-bg: #ffffff06;
  --control-active: #353d37;
  --control-shadow: #0004;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f5f0;
  --ink: #222723;
  --muted: #68736b;
  --soft-ink: #4b5850;
  --accent: #227c61;
  --accent-line: #227c6145;
  --line: #243a271c;
  --surface: #fdfdf8;
  --button-ink: #fff;
  --control-bg: #242f2406;
  --control-active: #fff;
  --control-shadow: #26372b16;
  color-scheme: light;
}
body { transition: background-color .35s, color .35s; }
.skip-link { color: var(--button-ink); }
.site-header nav a, .site-header nav button { color: var(--soft-ink); }
.header-actions { display: flex; align-items: center; gap: 26px; }
.theme-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--control-bg);
}
.theme-switch button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: var(--muted);
  transition: background .25s, color .25s, box-shadow .25s;
}
.theme-switch button[aria-pressed="true"] {
  color: var(--accent);
  background: var(--control-active);
  box-shadow: 0 1px 5px var(--control-shadow);
}
.theme-switch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-switch button:focus-visible { outline-offset: 2px; }
.hero { isolation: isolate; }
.hero:before { border-color: var(--line); opacity: .18; }
.hero-copy { position: relative; z-index: 2; }
.hero-instrument { z-index: 2; }
.hero-sculpture {
  position: absolute;
  z-index: 0;
  width: clamp(380px, 34vw, 540px);
  height: clamp(380px, 34vw, 540px);
  left: 29%;
  top: 16%;
  pointer-events: none;
}
#liquid-orb { position: relative; width: 100%; height: 100%; }
.hero h1 { margin: 24px 0 25px; font-weight: 550; }
.greeting-hi { display: block; font-size: clamp(116px, 12.2vw, 180px); line-height: .91; letter-spacing: -.085em; padding-bottom: 19px; }
.greeting-comma { color: var(--accent); }
.greeting-name { display: block; font-size: clamp(56px, 5.8vw, 85px); line-height: 1.23; letter-spacing: -.085em; }
.greeting-name .outline-word { -webkit-text-stroke-width: 1.2px; }
.hero-period { letter-spacing: -.3em; }
.hero-description { color: var(--muted); }
.instrument-caption, .keyboard-hint, .desktop-hint, .hero-bottom { color: var(--muted); }
.hero-bottom a { color: var(--soft-ink); }
.hero-bottom { z-index: 3; }
.readout-index { border-color: var(--accent-line); }
.key-readout { position: relative; }
.work-divider em, .project-kicker, .project-description, .project-tags span,
.archive-heading h2 span, .archive-heading>p, .filters button, #result-count,
.archive-number, .archive-summary, .archive-status, .footer-top p>span,
.footer-bottom, .dialog-top, .dialog-note, .dialog-footer { color: var(--muted); }
.project-name, .archive-arrow, .close-dialog, .dialog-description { color: var(--soft-ink); }
.project-cta { border-color: var(--accent-line); }
.status-tag { color: var(--muted); border-color: var(--line); }
.filters button.active, .dialog-actions .primary { color: var(--button-ink); }
.back-top { border-color: var(--accent-line); }
.back-top:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.project-rail a { color: var(--muted); border-color: var(--line); }
.project-rail a.active { color: var(--accent); border-color: var(--accent); }
dialog { background: var(--surface); border-color: var(--line); }
.dialog-actions a, .dialog-actions button { border-color: var(--line); }
.dialog-actions .primary { border-color: var(--accent); }
:root[data-theme="light"] dialog { box-shadow: 0 30px 100px #192e2533; }
:root[data-theme="light"] dialog::backdrop { background: #6f7d7266; }
.pk-key:focus-visible { outline-color: var(--accent); }

/* The object keeps its own material, while the board changes with the room. */
:root[data-theme="light"] .pk-shell {
  border-color: #c2c7bd;
  background: linear-gradient(145deg, #f0f1e8 0%, #dfe3d9 50%, #d1d8cd 100%);
  box-shadow: 0 2px 0 #fff inset, 0 -1px 0 #a4aea1 inset,
    0 4px 0 #bdc5b8, 0 8px 0 #b8c1b2, 0 12px 0 #b0bbaa,
    0 16px 0 #a7b2a2, 7px 31px 24px #364a3624, 22px 53px 46px #35493616;
}
:root[data-theme="light"] .pk-shell::before,
:root[data-theme="light"] .pk-shell::after { background: #a3afa1; box-shadow: 0 1px 0 #f8f9f0; }
:root[data-theme="light"] .pk-board-header { color: #61735f; }
:root[data-theme="light"] .pk-board-footer { color: #6a7a66; }
:root[data-theme="light"] .pk-board-status i { background: #367e55; box-shadow: 0 0 7px #76af8d55; }
:root[data-theme="light"] .pk-key {
  --pk-cap: #f5f5ec;
  --pk-edge: #c1cab9;
  --pk-ink: #45533f;
  border-color: #fff;
  background: linear-gradient(150deg, #ffffffaa, #00000003), var(--pk-cap);
  box-shadow: 0 1px 1px #fff inset, 0 -2px 2px #5e785815 inset,
    0 2px 0 var(--pk-edge), 0 5px 0 var(--pk-edge), 0 8px 0 var(--pk-edge),
    0 9px 0 #91a086, 0 13px 7px #48584035;
}
:root[data-theme="light"] .pk-key[data-id="agentcrop"] { --pk-cap: #364e40; --pk-edge: #243a2d; --pk-ink: #edf6e8; border-color: #58745a; background: linear-gradient(145deg, #ffffff0a, #00000008), var(--pk-cap); }
:root[data-theme="light"] .pk-key[data-id="dna"] { --pk-cap: #b4cf9e; --pk-edge: #849f71; --pk-ink: #304326; background: linear-gradient(145deg, #ffffff33, #00000005), var(--pk-cap); border-color: #caddb5; }
:root[data-theme="light"] .pk-key[data-id="zhixing"] { --pk-cap: #cfdbb7; --pk-edge: #a4b28e; --pk-ink: #485336; background: linear-gradient(145deg, #ffffff33, #00000005), var(--pk-cap); border-color: #e1e9cf; }
:root[data-theme="light"] .pk-key[data-id="archive"] { --pk-ink: #347c54; }
:root[data-theme="light"] .pk-key:active,
:root[data-theme="light"] .pk-key.is-pressed {
  box-shadow: 0 1px 1px #ffffff55 inset, 0 -2px 2px #00000010 inset,
    0 2px 0 var(--pk-edge), 0 3px 0 #84947a, 0 5px 3px #48584035;
}
@media (hover: hover) and (pointer: fine) {
  :root[data-theme="light"] .pk-key:hover:not(:active):not(.is-pressed) {
    filter: brightness(1.015);
    border-color: #96b78d;
    box-shadow: 0 1px 1px #ffffff80 inset, 0 -2px 2px #00000008 inset,
      0 3px 0 var(--pk-edge), 0 6px 0 var(--pk-edge), 0 9px 0 var(--pk-edge),
      0 11px 0 #8e9d85, 0 17px 11px #48584033;
  }
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-unfold .65s cubic-bezier(.22,.61,.36,1) both; }
@keyframes theme-unfold { from { clip-path: circle(0px at var(--theme-x, 90vw) var(--theme-y, 44px)); } to { clip-path: circle(150vmax at var(--theme-x, 90vw) var(--theme-y, 44px)); } }
@media (min-width: 1600px) { .hero-sculpture { left: calc(50% - 280px); top: 17%; } }
@media (max-width: 1100px) {
  .header-actions { gap: 0; }
  .hero-sculpture { left: 26%; top: 17%; }
  .greeting-hi { font-size: 132px; }
  .greeting-name { font-size: 60px; }
}
@media (max-width: 760px) {
  .site-header { gap: 16px; }
  .site-header nav { margin-left: auto; gap: 17px; }
  .site-header nav [data-about] { display: none; }
  .site-header .wordmark-name>span { display: none; }
  .wordmark-name { margin-left: 2px; }
  .wordmark { gap: 9px; }
  .theme-switch { padding: 3px; gap: 2px; }
  .theme-switch button { width: 29px; height: 29px; }
  .theme-switch svg { width: 15px; height: 15px; }
  .hero { padding-top: 122px; gap: 8px; }
  .hero h1 { margin-top: 24px; margin-bottom: 21px; }
  .greeting-hi { font-size: 112px; padding-bottom: 16px; }
  .greeting-name { font-size: clamp(49px, 9.6vw, 68px); }
  .hero-sculpture { width: 300px; height: 300px; top: 102px; left: calc(100% - 190px); opacity: .92; }
  .hero-description { max-width: 300px; font-size: 11px; }
  .hero-instrument { padding-top: 30px; }
  .hero-cta { font-size: 11px; }
}
@media (max-width: 380px) {
  .site-header { gap: 11px; }
  .site-header nav { font-size: 9px; }
  .index-count { margin-left: 1px; font-size: 7px; }
  .greeting-hi { font-size: 104px; }
  .greeting-name { font-size: 49px; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) { animation: none; }
}
