/* Project shell: project hierarchy from mature work-management products,
   with glass reserved for navigation and controls. */
body[data-page="home"] {
  background:
    radial-gradient(circle at 77% 8%, rgba(218, 231, 244, .82), transparent 28%),
    radial-gradient(circle at 32% 92%, rgba(225, 236, 220, .76), transparent 30%),
    radial-gradient(circle at 96% 78%, rgba(247, 225, 207, .58), transparent 26%),
    #eef0ef !important;
}

body[data-page="home"]::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .42;
  background-image: linear-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px);
  background-size: 100% 56px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 76%, transparent);
}

body[data-page="home"] .sidebar {
  inset: 14px auto 14px 14px;
  width: 228px;
  padding: 22px 14px 18px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 18px;
  background: rgba(248, 250, 249, .7) !important;
  box-shadow: 0 18px 46px rgba(41, 49, 55, .09), inset 0 1px rgba(255, 255, 255, .84);
  backdrop-filter: blur(22px) saturate(128%);
  -webkit-backdrop-filter: blur(22px) saturate(128%);
}

body[data-page="home"] .shell { margin-left: 242px; }
body[data-page="home"] .workspace-layout { display: block; }
body[data-page="home"] #evidence-rail,
body[data-page="home"] .footer,
body[data-page="home"] .topbar { display: none; }
body[data-page="home"] #workspace { max-width: none; padding: 14px 22px 46px; }
body[data-page="home"] .nav-caption { visibility: hidden; height: 9px; margin: 2px 0; }

.nav-project-label {
  margin: 18px 10px 8px;
  color: #7d8582;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.nav-project-divider {
  height: 1px;
  margin: 14px 8px;
  background: rgba(34, 43, 40, .09);
}

.nav-project {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 52px;
  margin: 3px 0;
  padding: 8px 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #343c39;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}

.nav-project > svg {
  grid-row: 1 / span 2;
  width: 17px;
  height: 17px;
  color: #66716d;
}

.nav-project > span {
  grid-column: 2;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-project > small {
  grid-column: 2;
  margin-top: 2px;
  color: #8b918f;
  font-size: 10px;
}

.nav-project-short { display: none; }
.nav-project:hover { background: rgba(255, 255, 255, .5); }
.nav-project.active {
  border-color: rgba(57, 76, 68, .08);
  background: rgba(225, 232, 228, .8);
  box-shadow: inset 0 1px rgba(255, 255, 255, .72);
  color: #1f2724;
}

body[data-page="home"] .nav-link {
  min-height: 42px;
  margin-bottom: 2px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #59635f;
}

body[data-page="home"] .nav-link:hover,
body[data-page="home"] .nav-link.active {
  border-color: rgba(57, 76, 68, .06);
  background: rgba(255, 255, 255, .5) !important;
  box-shadow: none;
  color: #26302c !important;
}

.project-hub {
  --hub-ink: #202724;
  --hub-muted: #6f7874;
  --hub-line: rgba(56, 67, 62, .12);
  max-width: 1240px;
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: clamp(22px, 3.5vw, 48px);
  color: var(--hub-ink);
  animation: hub-enter .22s cubic-bezier(.22, 1, .36, 1) both;
}

.hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hub-command {
  display: grid;
  grid-template-columns: 26px minmax(180px, 390px) auto;
  width: min(510px, 54vw);
  min-height: 46px;
  padding: 0 10px 0 13px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 14px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 12px 30px rgba(45, 53, 59, .07), inset 0 1px rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.hub-command__icon { display: grid; color: #75807b; }
.hub-command__icon svg { width: 17px; height: 17px; }
.hub-command input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hub-ink);
  font: inherit;
}
.hub-command input::placeholder { color: #848c89; }
.hub-command kbd {
  padding: 4px 7px;
  border: 1px solid rgba(60, 69, 65, .1);
  border-radius: 7px;
  background: rgba(255, 255, 255, .5);
  color: #7d8582;
  font: 10px/1.1 inherit;
}

.hub-top__actions { display: flex; align-items: center; gap: 10px; }
.project-presence {
  display: inline-flex;
  min-height: 34px;
  padding: 0 11px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 10px;
  background: rgba(255, 255, 255, .48);
  color: var(--hub-muted);
  font-size: 12px;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.project-presence::before { width: 7px; height: 7px; border-radius: 50%; background: #c98b4a; content: ""; }
.project-presence--ready::before { background: #4c9b76; }
.project-continue {
  display: grid;
  min-height: 38px;
  padding: 0 17px;
  place-items: center;
  border-radius: 10px;
  background: #252c29;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, background-color .16s ease;
}
.project-continue:hover { background: #111512; transform: translateY(-1px); }

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  margin-top: clamp(46px, 7vh, 76px);
  align-items: end;
}
.hub-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #668072;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .12em;
}
.hub-hero h1 {
  margin: 0;
  font: 730 clamp(34px, 4.4vw, 58px)/1.04 "Noto Serif SC", "Songti SC", "STSong", serif;
  letter-spacing: -.045em;
}
.hub-hero p {
  max-width: 610px;
  margin: 15px 0 0;
  color: var(--hub-muted);
  font-size: 15px;
  line-height: 1.75;
}
.hub-stage {
  min-width: 132px;
  padding: 0 0 7px 24px;
  border-left: 1px solid var(--hub-line);
}
.hub-stage small,
.hub-stage strong,
.hub-stage span { display: block; }
.hub-stage small { color: var(--hub-muted); font-size: 11px; }
.hub-stage strong { margin-top: 7px; font-size: 18px; }
.hub-stage span { margin-top: 4px; color: #668072; font-size: 12px; }

.hub-focus {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 20px;
  min-height: 154px;
  margin-top: 34px;
  padding: 28px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 17px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .76), rgba(249, 251, 249, .42)),
    radial-gradient(circle at 12% 40%, rgba(197, 221, 210, .36), transparent 32%);
  box-shadow: 0 22px 50px rgba(42, 53, 48, .08), inset 0 1px rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}
.hub-focus::after {
  position: absolute;
  top: -58px;
  right: 10%;
  width: 230px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 50%;
  content: "";
  transform: rotate(-13deg);
}
.hub-focus__mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  background: rgba(215, 231, 222, .82);
  color: #3f6f59;
}
.hub-focus__mark svg { width: 22px; height: 22px; }
.hub-focus__copy { position: relative; z-index: 1; min-width: 0; }
.hub-focus__copy small { color: #668072; font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.hub-focus__copy h2 { margin: 8px 0 0; font-size: clamp(20px, 2.4vw, 29px); line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.hub-focus__copy p { margin: 7px 0 0; color: var(--hub-muted); font-size: 13px; }
.hub-focus__action {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 74px;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(53, 66, 60, .12);
  border-radius: 11px;
  background: rgba(255, 255, 255, .62);
  color: #28322d;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.hub-section-title {
  display: flex;
  margin: 38px 2px 14px;
  align-items: center;
  justify-content: space-between;
}
.hub-section-title h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.hub-section-title a { color: var(--hub-muted); font-size: 12px; text-decoration: none; }
.hub-section-title a:hover { color: var(--hub-ink); text-decoration: underline; }

.project-shelf {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}
.project-block {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  grid-column: span 4;
  min-height: 112px;
  padding: 18px;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 14px;
  background: rgba(252, 252, 250, .62);
  box-shadow: 0 12px 28px rgba(45, 52, 49, .055), inset 0 1px rgba(255, 255, 255, .84);
  color: var(--hub-ink);
  text-decoration: none;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), background-color .18s ease, border-color .18s ease;
  backdrop-filter: blur(12px) saturate(112%);
  -webkit-backdrop-filter: blur(12px) saturate(112%);
}
.project-block:nth-child(4) { grid-column: span 3; }
.project-block:nth-child(5) { grid-column: span 5; }
.project-block:nth-child(6) { grid-column: span 4; }
.project-block:hover { border-color: rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .78); transform: translateY(-3px); }
.project-block::after {
  position: absolute;
  inset: auto 18px 0;
  height: 2px;
  border-radius: 2px;
  background: var(--tile-edge, #a9beb4);
  content: "";
  opacity: .64;
}
.project-block__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--tile, #e5eee8);
  color: var(--tile-ink, #4b7560);
}
.project-block__icon svg { width: 20px; height: 20px; }
.project-block__copy strong,
.project-block__copy small { display: block; }
.project-block__copy strong { font-size: 14px; }
.project-block__copy small { margin-top: 5px; color: var(--hub-muted); font-size: 11px; line-height: 1.35; }
.project-block__arrow { display: grid; color: #9ba09e; }
.project-block__arrow svg { width: 15px; height: 15px; }
.project-block--mint { --tile: #e1eee7; --tile-ink: #47715d; --tile-edge: #90b3a2; }
.project-block--blue { --tile: #e3ebf2; --tile-ink: #4d6d89; --tile-edge: #9bb3c7; }
.project-block--apricot { --tile: #f3e8db; --tile-ink: #835f3e; --tile-edge: #cfad88; }
.project-block--lilac { --tile: #ebe7f1; --tile-ink: #685f7c; --tile-edge: #b1a5c4; }
.project-block--sage { --tile: #e7ecdf; --tile-ink: #5d704e; --tile-edge: #a5b397; }
.project-block--paper { --tile: #eeeae3; --tile-ink: #706555; --tile-edge: #bcb09e; }

.project-continue:focus-visible,
.hub-focus__action:focus-visible,
.project-block:focus-visible,
.nav-project:focus-visible,
.hub-section-title a:focus-visible {
  outline: 2px solid var(--xy-focus);
  outline-offset: 3px;
}

.dark body[data-page="home"] {
  background:
    radial-gradient(circle at 74% 8%, rgba(58, 78, 93, .56), transparent 30%),
    radial-gradient(circle at 30% 90%, rgba(55, 76, 65, .52), transparent 32%),
    #171c1a !important;
}
.dark body[data-page="home"] .sidebar { border-color: rgba(255, 255, 255, .08); background: rgba(26, 33, 30, .72) !important; }
.dark .nav-project,
.dark body[data-page="home"] .nav-link { color: #c8cfcb; }
.dark .nav-project.active,
.dark body[data-page="home"] .nav-link.active,
.dark body[data-page="home"] .nav-link:hover { background: rgba(255, 255, 255, .08) !important; color: #f2f5f3 !important; }
.dark .project-hub { --hub-ink: #edf1ef; --hub-muted: #9ca6a1; --hub-line: rgba(255, 255, 255, .12); }
.dark .hub-command,
.dark .project-presence,
.dark .hub-focus,
.dark .project-block { border-color: rgba(255, 255, 255, .1); background: rgba(34, 43, 39, .68); }
.dark .hub-command input { color: #edf1ef; }
.dark .hub-command kbd,
.dark .hub-focus__action { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .08); color: #edf1ef; }
.dark .hub-focus__mark { background: rgba(87, 128, 105, .32); color: #9bd0b3; }

@keyframes hub-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .project-hub { animation: none; }
  .project-block,
  .project-continue { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  body[data-page="home"] .sidebar,
  .hub-command,
  .project-presence,
  .hub-focus,
  .project-block { background: #f8f9f7 !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dark body[data-page="home"] .sidebar,
  .dark .hub-command,
  .dark .project-presence,
  .dark .hub-focus,
  .dark .project-block { background: #252c29 !important; }
}

@media (max-width: 980px) {
  .project-block { grid-column: span 6 !important; }
}

@media (max-width: 720px) {
  body[data-page="home"] .sidebar {
    position: fixed;
    inset: auto 8px 8px;
    z-index: 20;
    display: flex;
    width: auto;
    height: 68px;
    padding: 6px;
    align-items: center;
    flex-direction: row;
    border-radius: 16px;
  }
  body[data-page="home"] .brand,
  body[data-page="home"] .nav-caption,
  body[data-page="home"] .sidebar-foot,
  body[data-page="home"] .nav-project-label,
  body[data-page="home"] .nav-project-divider { display: none; }
  body[data-page="home"] #navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  body[data-page="home"] .nav-project,
  body[data-page="home"] .nav-link {
    display: flex;
    min-width: 0;
    min-height: 54px;
    margin: 0;
    padding: 5px 3px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border-radius: 10px;
    font-size: 10px;
  }
  body[data-page="home"] .nav-project > svg,
  body[data-page="home"] .nav-link > svg { width: 18px; height: 18px; }
  body[data-page="home"] .nav-project > span,
  body[data-page="home"] .nav-project > small { display: none; }
  body[data-page="home"] .nav-project-short {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body[data-page="home"] .shell { margin-left: 0; padding-bottom: 88px; }
  body[data-page="home"] #workspace { padding: 5px 12px 28px; }
  body[data-page="home"] #xiaoyu-float { display: none; }
  .project-hub { min-height: auto; padding: 20px 4px 36px; }
  .hub-top { align-items: stretch; flex-direction: column-reverse; gap: 12px; }
  .hub-top__actions { justify-content: space-between; }
  .hub-command { width: auto; grid-template-columns: 26px minmax(0, 1fr); }
  .hub-command kbd { display: none; }
  .hub-hero { grid-template-columns: 1fr; gap: 22px; margin-top: 38px; }
  .hub-hero h1 { font-size: 33px; }
  .hub-stage { padding: 14px 0 0; border-top: 1px solid var(--hub-line); border-left: 0; }
  .hub-stage small,
  .hub-stage strong,
  .hub-stage span { display: inline; margin-right: 8px; }
  .hub-focus { grid-template-columns: 42px minmax(0, 1fr); min-height: 0; padding: 22px 18px; }
  .hub-focus__mark { width: 40px; height: 40px; border-radius: 11px; }
  .hub-focus__copy h2 { font-size: 20px; }
  .hub-focus__action { grid-column: 2; width: 100%; margin-top: 2px; }
  .project-shelf { grid-template-columns: 1fr 1fr; gap: 9px; }
  .project-block {
    display: flex;
    grid-column: auto !important;
    min-height: 132px;
    padding: 16px 13px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
  }
  .project-block__copy strong { font-size: 13px; }
  .project-block__arrow { position: absolute; top: 18px; right: 13px; }
}

/* 2026-09-22 · illustrated memory-kit home
   The generated portrait is the interface scene itself, not only a palette. */
body[data-page="home"] {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, .72), transparent 24%),
    repeating-linear-gradient(0deg, rgba(96, 75, 50, .025) 0 1px, transparent 1px 5px),
    #ece3d2 !important;
}

body[data-page="home"]::before {
  opacity: .34;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(102, 79, 54, .13) 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 60%, rgba(255, 255, 255, .7) 0 1px, transparent 1.5px);
  background-size: 26px 26px, 31px 31px;
}

body[data-page="home"] .sidebar {
  border-right-color: rgba(94, 78, 61, .24) !important;
  background:
    linear-gradient(rgba(247, 242, 232, .94), rgba(232, 239, 231, .94)),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(78, 65, 50, .025) 5px 6px) !important;
  box-shadow: inset -1px 0 rgba(255, 255, 255, .7), 8px 0 28px rgba(69, 52, 36, .09) !important;
}

.project-hub {
  --hub-ink: #322b25;
  --hub-muted: #74695e;
  --hub-line: rgba(80, 64, 48, .2);
  max-width: 1380px;
}

.hub-command,
.project-presence {
  border-color: rgba(91, 73, 55, .19);
  background: rgba(255, 251, 241, .9);
  box-shadow: 0 7px 18px rgba(76, 56, 37, .08), inset 0 1px white;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.project-continue {
  border: 1px solid #a94628;
  background: linear-gradient(180deg, #e85c35, #bd3f23);
  box-shadow: inset 0 1px rgba(255, 255, 255, .28), 0 6px 14px rgba(130, 50, 27, .2);
}

.project-continue:hover { background: linear-gradient(180deg, #dc512d, #aa351d); }

.hub-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, .76fr) minmax(430px, 1.34fr);
  min-height: 590px;
  margin-top: clamp(28px, 4vh, 48px);
  padding: clamp(30px, 3.4vw, 52px);
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  overflow: hidden;
  border: 9px double #7a736a;
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .2), transparent 34%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, .04) 0 2px, rgba(0, 0, 0, .025) 2px 4px),
    #706e67;
  box-shadow:
    inset 0 0 0 3px #b9b5ad,
    inset 0 0 36px rgba(29, 23, 17, .38),
    0 28px 54px rgba(73, 52, 34, .2);
}

.hub-hero::before,
.hub-hero::after {
  position: absolute;
  z-index: 3;
  width: 13px;
  height: 13px;
  border: 1px solid #665f56;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f5f0e7 0 13%, #a8a199 35%, #625d56 72%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  content: "";
}

.hub-hero::before { top: 18px; left: 20px; }
.hub-hero::after { right: 20px; bottom: 18px; }

.hub-hero__copy {
  position: relative;
  z-index: 4;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid #c7b99f;
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 253, 245, .94), rgba(248, 239, 218, .96)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(112, 92, 65, .08) 25px 26px);
  box-shadow: 0 15px 28px rgba(35, 25, 16, .25), inset 0 0 22px rgba(147, 112, 69, .08);
  transform: rotate(-1.4deg);
}

.hub-hero__copy::before {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 82px;
  height: 25px;
  background: rgba(225, 207, 173, .72);
  box-shadow: 0 2px 4px rgba(73, 55, 36, .12);
  content: "";
  transform: translateX(-50%) rotate(1deg);
}

.hub-eyebrow { color: #a1472e; letter-spacing: .14em; }

.hub-hero h1 {
  color: #342a22;
  font-size: clamp(38px, 4.7vw, 66px);
  line-height: 1.03;
  text-shadow: 0 1px #fff;
}

.hub-hero p { color: #6e6054; font-size: 15px; }

.hub-stage {
  position: absolute;
  z-index: 6;
  top: 33px;
  left: 39px;
  min-width: 128px;
  padding: 13px 16px;
  border: 1px solid #c5aa7d;
  border-radius: 5px;
  background: #f4d995;
  box-shadow: 0 7px 12px rgba(42, 31, 20, .2);
  color: #4a3828;
  transform: rotate(-3deg);
}

.hub-stage small { color: #856b48; }
.hub-stage strong { margin-top: 4px; }

.hub-illustration {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: -30px -18px -36px -8px;
  align-self: stretch;
}

.hub-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: contain;
  filter: drop-shadow(0 22px 18px rgba(25, 18, 12, .34));
  transform: rotate(1deg) scale(1.07);
}

.hub-illustration figcaption {
  position: absolute;
  right: 5%;
  bottom: 7%;
  display: grid;
  padding: 10px 14px 11px;
  border: 1px solid #bcad91;
  border-radius: 4px;
  background: #fbf4e3;
  box-shadow: 0 8px 16px rgba(41, 29, 18, .2);
  color: #55483b;
  transform: rotate(2.2deg);
}

.hub-illustration figcaption span { color: #a44a2e; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.hub-illustration figcaption strong { margin-top: 3px; font-family: "Noto Serif SC", serif; font-size: 12px; }

.hub-focus {
  z-index: 7;
  width: min(850px, calc(100% - 56px));
  min-height: 142px;
  margin: -42px auto 0;
  border: 1px solid #b8aa91;
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(96, 129, 119, .11) 27px 28px),
    #faf4e5;
  box-shadow: 0 18px 35px rgba(76, 54, 34, .2), inset 0 1px white;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: rotate(.35deg);
}

.hub-focus::after {
  top: -15px;
  right: 18%;
  width: 76px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: rgba(218, 198, 159, .58);
  transform: rotate(-3deg);
}

.hub-focus__mark {
  border: 1px solid #d8b64d;
  background: radial-gradient(circle at 35% 30%, #fff5a4, #e5a925 70%);
  box-shadow: inset 0 1px white, 0 5px 9px rgba(113, 73, 19, .18);
  color: #6a4a16;
  transform: rotate(-6deg);
}

.hub-focus__copy small { color: #9d4a31; }
.hub-focus__action { border-color: #b7a17b; background: #fffaf0; box-shadow: 0 4px 8px rgba(66, 47, 29, .1); }

.hub-section-title { margin-top: 46px; }
.hub-section-title h2 { font-family: "Noto Serif SC", serif; font-size: 18px; }

.project-shelf { gap: 16px; }

.project-block {
  min-height: 128px;
  border: 1px solid #cfc0a9;
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .74), transparent 45%),
    #f8f0df;
  box-shadow: 0 12px 21px rgba(78, 56, 35, .13), inset 0 1px white;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.project-block:nth-child(2n) { transform: rotate(.45deg); }
.project-block:nth-child(3n) { transform: rotate(-.4deg); }
.project-block:hover { border-color: #a9875f; background: #fff7e7; transform: translateY(-4px) rotate(0); }

.project-block::before {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #baad98 40%, #6f675d 80%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  content: "";
}

.project-block__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px 10px 15px 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .74), transparent 68%),
    var(--tile);
  box-shadow: inset 0 1px rgba(255, 255, 255, .94), 0 5px 9px rgba(72, 54, 36, .12);
  transform: rotate(-4deg);
}

.project-block__icon svg {
  width: 48px;
  height: 48px;
  overflow: visible;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1);
}
.project-glyph [data-xy-part="paper"] { fill: rgba(255, 255, 255, .84); }
.project-glyph [data-xy-part="wash"] { fill: color-mix(in srgb, var(--tile) 76%, white); }
.project-glyph [data-xy-part="accent"] { stroke: var(--tile-ink); }
.project-glyph [data-xy-part="detail"] { stroke: color-mix(in srgb, var(--tile-ink) 76%, #453c32); }
.project-glyph path { stroke-dashoffset: 0; }
@keyframes project-glyph-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.project-block:hover .project-glyph path,
.project-block:focus-visible .project-glyph path { animation: project-glyph-trace .24s cubic-bezier(.22, 1, .36, 1) both; }
.project-block:hover .project-block__icon,
.project-block:focus-visible .project-block__icon { transform: rotate(0) translateY(-1px); }
.project-block:hover .project-glyph,
.project-block:focus-visible .project-glyph { transform: scale(1.035); }
.project-block:active { transform: translateY(1px) scale(.992); }

.project-block { grid-template-columns: 64px minmax(0, 1fr) 18px; }

.project-block::after { height: 4px; opacity: .78; }

.dark body[data-page="home"] { background: #211f1b !important; }
.dark .hub-hero { filter: brightness(.84) saturate(.9); }
.dark .hub-hero__copy,
.dark .hub-focus,
.dark .project-block { color: #342a22; }
.dark .hub-hero h1 { color: #342a22; }
.dark .hub-command,
.dark .project-presence { background: rgba(44, 40, 34, .94); }

@media (max-width: 980px) {
  .hub-hero { grid-template-columns: minmax(230px, .72fr) minmax(360px, 1.28fr); min-height: 520px; }
  .hub-illustration { margin-right: -34px; }
}

@media (max-width: 720px) {
  .project-hub { padding-top: 14px; }
  .hub-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px 17px 30px;
    border-width: 7px;
    border-radius: 27px;
    gap: 10px;
  }
  .hub-illustration {
    grid-column: 1;
    grid-row: 1;
    height: 350px;
    margin: -8px -20px -30px;
    order: -1;
  }
  .hub-illustration img { max-height: 390px; transform: rotate(.5deg) scale(1.04); }
  .hub-illustration figcaption { right: 8%; bottom: 10%; }
  .hub-hero__copy { grid-row: 2; padding: 25px 21px; transform: rotate(-.7deg); }
  .hub-hero h1 { font-size: 36px; }
  .hub-stage { position: relative; top: auto; left: auto; grid-row: 3; width: fit-content; border: 1px solid #c5aa7d; padding: 10px 13px; }
  .hub-stage small,
  .hub-stage strong,
  .hub-stage span { display: inline; margin: 0 7px 0 0; }
  .hub-focus { width: calc(100% - 18px); margin-top: -22px; transform: rotate(.2deg); }
  .project-block:nth-child(n) { transform: none; }
  .project-block { grid-template-columns: none; }
  .project-block__icon {
    width: 54px;
    height: 54px;
  }
  .project-block__icon svg { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-block__icon,
  .project-block__icon svg { transition: none !important; }
  .project-block:hover .project-glyph path,
  .project-block:focus-visible .project-glyph path { animation: none !important; }
  .project-block:active { transform: none; }
}
