@charset "UTF-8";
:root {
  --ink: #28325f;
  --muted: #7c88a3;
  --paper: #f4f7fd;
  --line: #dfe6f0;
  --accent: #4385f5;
  --font-sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
}
button:disabled {
  opacity: 0.25;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #dfeaff;
}
:focus-visible {
  outline: 3px solid #4385f5;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  padding: 12px 18px;
  z-index: 100;
  background: var(--ink);
  color: white;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.4px;
  line-height: 1.5;
}
.work-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 16px 0 20px;
  background: #f4f7fdf2;
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filters button {
  padding: 9px 17px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition:
    background 0.2s,
    color 0.2s;
}
.filters button[aria-pressed="true"] {
  background: #e5edff;
  color: #4077cc;
  font-weight: 600;
}
.filters button:hover {
  background: #eaf1ff;
  color: #4077cc;
}
.result-count {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}
.grid[data-masonry="ready"] {
  display: block;
}
.grid[data-masonry="ready"] > .project-card {
  position: absolute;
  left: 0;
  top: 0;
}
.project-card,
.related-card {
  display: block;
  min-width: 0;
}
.card-image {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: #e7ecf6;
  isolation: isolate;
  border-radius: 18px;
}
[data-ratio="16:9"] > .card-image {
  aspect-ratio: 16/9;
}
[data-ratio="3:2"] > .card-image {
  aspect-ratio: 3/2;
}
[data-ratio="1:1"] > .card-image {
  aspect-ratio: 1;
}
[data-ratio="3:4"] > .card-image {
  aspect-ratio: 3/4;
}
[data-ratio="2:3"] > .card-image {
  aspect-ratio: 2/3;
}
[data-ratio="9:16"] > .card-image {
  aspect-ratio: 9/16;
}
.card-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.project-card:hover .card-image > img,
.related-card:hover .card-image > img {
  transform: scale(1.035);
}
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 144px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    180deg,
    transparent 0%,
    #00000070 50%,
    #000000bc 100%
  );
  color: white;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.project-card:hover .card-overlay,
.project-card:focus-visible .card-overlay,
.related-card:hover .card-overlay,
.related-card:focus-visible .card-overlay {
  opacity: 1;
}
.card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-shadow: 0 1px 8px #0004;
}
.card-category {
  margin: 0 0 5px;
  color: #ffffffe0;
  font-size: 10px;
  letter-spacing: 1px;
}
.cover-text {
  position: absolute;
  inset: 0;
  padding: 24px;
  overflow: hidden;
  background: #e5edfc;
  color: #556a98;
}
.cover-text > strong {
  display: block;
  font-size: 25px;
  line-height: 1.4;
}
.cover-text > p {
  font-size: 12px;
  line-height: 1.9;
}
.cover-text > p:first-child {
  font-size: 9px;
  letter-spacing: 2px;
}
.endnote {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 36px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: #929db4;
  font-size: 11px;
}
.endnote span {
  font-size: 9px;
  letter-spacing: 1px;
}
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 13px;
  border: 1px solid #8a9cc242;
  border-radius: 50%;
  background: #f8fbffbd;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px #49678e12;
}
.back-top svg {
  width: 22px;
  height: 22px;
}
.project-open {
  overflow: hidden;
}
.project-modal {
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.project-modal::backdrop {
  background: #080b10bf;
}
.project-modal-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 56px 84px;
  scrollbar-gutter: stable;
}
.project-sheet {
  width: min(1120px, 100%);
  margin: 0 auto;
  background: #fff;
  min-height: 240px;
  box-shadow: 0 20px 100px #0003;
}
.project-close,
.viewer-close {
  position: fixed;
  right: 22px;
  top: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 11px;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: #24272ca6;
  color: white;
  backdrop-filter: blur(10px);
  transition: background 0.2s;
}
.project-close:hover,
.viewer-close:hover {
  background: #ffffff30;
}
.project-close svg,
.viewer-close svg {
  width: 22px;
  height: 22px;
}
.project-close:focus-visible,
.viewer-close:focus-visible {
  outline-color: #fff;
}
.project-message {
  min-height: 360px;
  padding: 100px 30px;
  text-align: center;
  color: var(--muted);
}
.project-message button {
  padding: 10px 20px;
  background: #e5edff;
  color: #4077cc;
}
.detail-heading {
  padding: 42px 48px 30px;
}
.detail-heading .eyebrow {
  color: #8997b3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.detail-heading .eyebrow span {
  white-space: nowrap;
  letter-spacing: 1px;
}
.detail-heading h2 {
  margin: 0 0 18px;
  font-size: 34px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -1px;
}
.detail-description {
  max-width: 780px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.95;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.detail-tags span {
  padding: 5px 10px;
  background: #eef2f9;
  color: #7c88a3;
  font-size: 10px;
}
.gallery-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 48px 14px;
  font-size: 9px;
  color: #929db4;
}
.project-gallery {
  overflow: hidden;
}
.gallery-image {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #edf2f9;
  cursor: zoom-in;
}
.gallery-image img {
  width: 100%;
  height: auto;
}
.gallery-image:focus-visible {
  outline-offset: -4px;
}
.project-gallery > :is(h2, h3, h4, p, ul, ol, blockquote, pre) {
  padding: 20px 48px;
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}
.project-gallery > :is(h2, h3, h4) {
  font-size: 24px;
}
.project-gallery > :is(ul, ol) {
  padding-left: 70px;
}
.project-gallery > blockquote {
  border-left: 3px solid #b9cff6;
  color: var(--muted);
}
.project-gallery a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.project-gallery pre {
  overflow-x: auto;
  background: #eef2f9;
  white-space: pre;
}
.project-gallery hr {
  border: 0;
  border-top: 1px solid var(--line);
}
.project-finish {
  padding: 42px 30px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.project-finish .eyebrow {
  color: #8997b3;
  font-size: 9px;
}
.project-finish > p:last-child {
  font-size: 20px;
  margin: 0;
}
.related-projects {
  padding: 30px 32px 36px;
  background: #f4f7fd;
}
.related-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.related-heading h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}
.related-heading p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.related-card > .card-image {
  aspect-ratio: 4/3;
  border-radius: 12px;
}
.related-card .card-overlay {
  opacity: 1;
  height: 100px;
  padding: 12px;
}
.related-card .card-title {
  font-size: 12px;
}
.related-card .card-category {
  font-size: 8px;
  margin-bottom: 3px;
}
.image-failed {
  min-height: 80px;
  color: #7c88a3;
  background: #e7ecf6;
}
.image-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #171c2afa;
  color: white;
  overflow: hidden;
}
.image-viewer::backdrop {
  background: #171c2aed;
}
.viewer-canvas {
  position: relative;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}
.viewer-canvas.can-pan {
  cursor: grab;
}
.viewer-canvas.is-dragging {
  cursor: grabbing;
}
.viewer-canvas img {
  max-width: none;
  height: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform-origin: center;
  user-select: none;
}
.viewer-hint {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 24px;
  text-align: center;
  font-size: 10px;
  color: #a8b4cc;
  pointer-events: none;
}
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .project-modal-scroll {
    padding: 56px 64px;
  }
  .detail-heading {
    padding: 34px 32px 26px;
  }
  .gallery-note {
    padding-left: 32px;
    padding-right: 32px;
  }
  .detail-heading h2 {
    font-size: 29px;
  }
}
@media (max-width: 760px) {
  .project-card .card-image {
    border-radius: 14px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px;
  }
.work-tools {
    padding: 12px 0 16px;
    gap: 0;
  }
  .filters {
    gap: 3px;
  }
  .filters button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .result-count {
    display: none;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card-overlay {
    padding: 12px;
  }
  .card-title {
    font-size: 12px;
    line-height: 1.5;
  }
  .card-category {
    font-size: 8px;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
  }
  .endnote {
    font-size: 9px;
    gap: 12px;
    margin-top: 24px;
  }
  .endnote span {
    font-size: 7px;
  }
  .cover-text {
    padding: 16px;
  }
  .cover-text > strong {
    font-size: 18px;
  }
  .cover-text > p {
    font-size: 10px;
  }
  .project-modal-scroll {
    padding: 62px 16px 20px;
    scrollbar-gutter: auto;
  }
  .project-close,
  .viewer-close {
    width: 44px;
    height: 44px;
    right: 16px;
    top: 12px;
    padding: 11px;
  }
  .detail-heading {
    padding: 26px 22px 22px;
  }
  .detail-heading h2 {
    font-size: 24px;
    letter-spacing: -0.7px;
  }
  .detail-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .detail-description {
    font-size: 12px;
  }
  .gallery-note {
    padding: 0 22px 12px;
    font-size: 8px;
  }
  .detail-tags {
    margin-top: 16px;
  }
  .detail-tags span {
    font-size: 9px;
  }
  .project-gallery > :is(h2, h3, h4, p, ul, ol, blockquote, pre) {
    padding: 16px 22px;
    font-size: 12px;
  }
  .project-gallery > :is(h2, h3, h4) {
    font-size: 20px;
  }
  .project-gallery > :is(ul, ol) {
    padding-left: 42px;
  }
  .related-projects {
    padding: 24px 18px;
  }
  .related-heading p {
    display: none;
  }
  .related-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 4px 2px 12px;
  }
  .project-finish {
    padding: 32px 20px;
  }
  .viewer-hint {
    font-size: 9px;
    padding: 0 16px;
  }
  .back-top {
    width: 42px;
    height: 42px;
    padding: 10px;
    right: 16px;
    bottom: 16px;
  }
}
@media (hover: none) {
  .project-card .card-overlay {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
.project-media{margin:0;width:100%;background:#f5f7fb}.project-media video{display:block;width:100%;height:auto;max-height:90vh;background:#121827}.project-media audio{display:block;width:100%;padding:22px 16px;box-sizing:border-box}.project-card .card-image{overflow:hidden}
.project-gallery .task-list-item{list-style:none}.project-gallery .task-list-item label{display:inline-flex;align-items:baseline;gap:8px}.project-gallery .task-list-item-checkbox{width:15px;height:15px;accent-color:#6395dc}.project-gallery u{text-underline-offset:3px}.project-gallery s{text-decoration:line-through}.project-gallery code{font-family:Consolas,monospace}.project-gallery hr{border:0;border-top:1px solid #dce2ed;margin:25px 0}

.project-gallery table{border-collapse:collapse;width:100%;margin:24px 0;table-layout:fixed}.project-gallery td,.project-gallery th{border:1px solid #dce3ee;padding:12px 14px;vertical-align:top;overflow-wrap:anywhere}.project-gallery th{background:#f3f6fb;font-weight:650;text-align:left}
.project-gallery .portfolio-indent>:is(h1,h2,h3,h4,p,ul,ol,blockquote,pre){padding:20px 48px;margin:0;font-size:14px;line-height:1.9}
.project-gallery .portfolio-indent>:is(h1,h2,h3,h4){font-size:24px}
.project-gallery .portfolio-indent>:is(ul,ol){padding-left:70px}
@media(max-width:600px){.project-gallery .portfolio-indent>:is(h1,h2,h3,h4,p,ul,ol,blockquote,pre){padding:16px 24px}.project-gallery .portfolio-indent>:is(ul,ol){padding-left:46px}}
