*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light;
}

:root {
  --sidebar-width: 210px;
  --color-text: #1a1a1a;
  --color-muted: #999;
  --color-light: #ccc;
  --color-bg: #fff;
  --color-border: #f0f0f0;
  --color-surface: #fff;
  --color-surface-soft: #f1f1f1;
  --color-surface-subtle: #ebebeb;
  --color-intro: #2b2b2b;
  --color-soft-text: #333;
  --color-heading-soft: #666;
  --color-copy-soft: #8b8b8b;
  --color-book-stage-start: rgba(255, 255, 255, 0.95);
  --color-book-stage-mid: rgba(244, 241, 236, 0.7);
  --color-book-stage-end: rgba(231, 225, 217, 0.95);
  --color-book-border: #eee8df;
  --color-book-page: #fff;
  --color-book-nav: #1f1f1f;
  --color-bio-heading: #2a2a2a;
  --color-bio-copy: #222;
  --color-portrait-bg: #e9edf5;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-text: #e9e5de;
    --color-muted: #9e978d;
    --color-light: #6f685f;
    --color-bg: #11100f;
    --color-border: #262321;
    --color-surface: #171514;
    --color-surface-soft: #1d1a18;
    --color-surface-subtle: #1a1715;
    --color-intro: #cbc4bb;
    --color-soft-text: #c7c0b6;
    --color-heading-soft: #d7d0c6;
    --color-copy-soft: #9f988e;
    --color-book-stage-start: rgba(46, 40, 36, 0.98);
    --color-book-stage-mid: rgba(28, 25, 23, 0.88);
    --color-book-stage-end: rgba(19, 17, 16, 0.98);
    --color-book-border: #312b27;
    --color-book-page: #1a1715;
    --color-book-nav: #d9d1c7;
    --color-bio-heading: #ece5dc;
    --color-bio-copy: #cec6bc;
    --color-portrait-bg: #1d2028;
  }

  .sidebar-logo-image {
    mix-blend-mode: normal;
    opacity: 0.94;
  }
}

html {
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  display: flex;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  padding: 40px 30px 40px 32px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
}

.sidebar-logo {
  width: 112px;
  height: 112px;
  margin-bottom: 14px;
  margin-left: 0;
  position: relative;
  align-self: flex-start;
  transition: opacity 0.18s ease;
}

.sidebar-logo.is-switching {
  opacity: 0;
}

.sidebar-logo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left top;
  mix-blend-mode: multiply;
  padding: 0;
  background: transparent;
}

.sidebar-name {
  margin-bottom: 20px;
  width: 112px;
}

.sidebar-name .en {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.sidebar-name .zh {
  font-size: 14px;
  color: var(--color-muted);
  margin-top: 5px;
  letter-spacing: 0.05em;
}

.sidebar-bio {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 155px;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}


.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 32px;
}

.nav-group {
  display: flex;
  flex-direction: column;
}

.sidebar-nav a {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 2;
  transition: color 0.15s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--color-text);
}

.sidebar-subnav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease, margin-top 0.22s ease;
  margin-top: 0;
}

.sidebar-subnav a {
  display: block;
  font-size: 11.5px;
  line-height: 1.8;
  padding-left: 12px;
}

.nav-group:hover .sidebar-subnav,
.nav-group:focus-within .sidebar-subnav {
  max-height: 88px;
  margin-top: 2px;
}

.nav-group:has(.sidebar-subnav a.active) .sidebar-subnav {
  max-height: 88px;
  margin-top: 2px;
}

.main {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 40px 36px;
  min-height: 100vh;
}

.page {
  display: none;
  animation: fadein 0.25s ease;
}

.page.active {
  display: block;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cell {
  aspect-ratio: 1 / 1;
  background: var(--color-surface-subtle);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.project-group {
  position: relative;
  margin-bottom: 5px;
}

.project-entry {
  cursor: pointer;
}

.project-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.project-photos-double {
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  height: clamp(150px, 18vw, 235px);
}

.cell-clock-wide,
.cell-clock-square {
  aspect-ratio: auto;
  height: 100%;
}

.cell-clock-wide {
  min-width: 0;
}

.cell-clock-square {
  min-width: 0;
  background: #05010e;
}

.clock-cover-img {
  width: 100%;
  height: 100%;
  display: block;
}

.clock-cover-img-glitter {
  object-fit: cover;
  object-position: center center;
}

.clock-cover-img-purple {
  object-fit: contain;
  object-position: center center;
  background: #05010e;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-group:hover .project-overlay {
  opacity: 1;
}

.project-group:hover .cell img {
  transform: scale(1.02);
}

.project-title {
  color: #d9d9d9;
  font-size: 85px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.project-title-clock {
  font-size: 74px;
  letter-spacing: -0.02em;
}

.project-book-cover {
  position: relative;
  height: clamp(150px, 18vw, 235px);
  background: var(--color-surface);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--color-border);
  padding: clamp(6px, 0.8vw, 10px);
}

.project-book-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  transition: transform 0.35s ease;
}

.project-group:hover .project-book-cover img {
  transform: scale(1.02);
}

.project-title-book {
  font-size: 82px;
}

.project-detail {
  max-width: 1100px;
}

.project-back {
  border: none;
  background: none;
  padding: 0;
  margin-bottom: 28px;
  font: inherit;
  font-size: 12px;
  color: var(--color-muted);
  cursor: pointer;
}

.project-back:hover {
  color: var(--color-text);
}

.project-detail-header {
  max-width: 700px;
  margin-bottom: 40px;
}

.project-detail-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.project-detail-header h1 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 18px;
}

.project-detail-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-intro);
  max-width: 620px;
}

.project-writing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 18px;
  width: 100%;
}

.project-writing-card {
  width: 100%;
}

.project-writing-card img,
.project-writing-card video,
.project-writing-card iframe {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  margin-bottom: 16px;
  background: var(--color-surface-soft);
}

.project-video-link-card {
  display: block;
  margin-bottom: 16px;
}

.project-writing-card img {
  object-fit: cover;
  cursor: zoom-in;
}

.project-video-gif {
  object-fit: cover;
  cursor: pointer;
}

.project-writing-card video {
  object-fit: cover;
  cursor: default;
  pointer-events: none;
}

.project-writing-card iframe {
  border: 0;
}

.project-video-card-wide img,
.project-video-card-wide video,
.project-video-card-wide iframe {
  aspect-ratio: auto;
  background: var(--color-surface);
}

.project-writing-text {
  width: 100%;
}

.project-writing-text h2 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 6px;
}

#unchanged-project .project-writing-text h2 {
  font-size: 15px;
  color: var(--color-heading-soft);
  margin-bottom: 4px;
}

#unchanged-project .project-writing-text p {
  font-size: 11px;
  line-height: 1.55;
  color: var(--color-copy-soft);
}

.project-writing-medium {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.project-writing-text p:last-child {
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-soft-text);
}

.project-video-link,
.project-video-link:last-child {
  font-size: 10px;
  line-height: 1.5;
  color: var(--color-muted);
  margin-top: 8px;
}

.project-video-link a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.project-writing-text p:empty {
  display: none;
}

.book-detail {
  max-width: 1180px;
}

.book-reader-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.book-reader-header h1 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.05;
}

.book-open-pdf {
  font-size: 12px;
  color: var(--color-muted);
  border-bottom: 1px solid currentColor;
  margin-bottom: 3px;
}

.book-open-pdf:hover {
  color: var(--color-text);
}

.book-reader {
  width: 100%;
}

.book-stage {
  position: relative;
  min-height: 74vh;
  background:
    radial-gradient(circle at 50% 18%, var(--color-book-stage-start), var(--color-book-stage-mid) 34%, var(--color-book-stage-end) 100%);
  border: 1px solid var(--color-book-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px) clamp(54px, 7vw, 92px);
  overflow: hidden;
}

.book-page-shell {
  position: relative;
  width: 100%;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
}

.book-spread {
  position: relative;
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.18));
  transform-style: preserve-3d;
}

.book-spread::after {
  content: "";
  position: absolute;
  top: 1.5%;
  bottom: 1.5%;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.28), transparent);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
  pointer-events: none;
}

.book-spread.single-page {
  width: min(100%, 430px);
  grid-template-columns: minmax(0, 1fr);
}

.book-spread.single-page::after {
  display: none;
}

.book-image-page {
  position: relative;
  background: var(--color-book-page);
  min-width: 0;
}

.book-image-page[hidden] {
  display: none;
}

.book-image-page img {
  width: 100%;
  max-height: 72vh;
  aspect-ratio: 366 / 565;
  object-fit: contain;
  display: block;
  background: var(--color-book-page);
}

.book-image-page img[hidden] {
  display: none;
}

.book-image-page.missing-page {
  aspect-ratio: 366 / 565;
  min-height: min(72vh, 565px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 12px;
}

.book-image-page.missing-page::before {
  content: attr(data-missing);
}

.book-left-page img {
  box-shadow: inset -18px 0 24px rgba(0, 0, 0, 0.08);
}

.book-right-page img {
  box-shadow: inset 18px 0 24px rgba(0, 0, 0, 0.08);
}

.book-spread.turn-right {
  animation: pageTurnRight 0.34s ease;
}

.book-spread.turn-left {
  transform-origin: right center;
  animation: pageTurnLeft 0.34s ease;
}

@keyframes pageTurnRight {
  from {
    opacity: 0.2;
    transform: rotateY(-16deg) translateX(18px);
  }

  to {
    opacity: 1;
    transform: rotateY(0) translateX(0);
  }
}

@keyframes pageTurnLeft {
  from {
    opacity: 0.2;
    transform: rotateY(16deg) translateX(-18px);
  }

  to {
    opacity: 1;
    transform: rotateY(0) translateX(0);
  }
}

.book-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 12px;
  text-align: center;
}

.book-loading[hidden] {
  display: none;
}

.book-page-turn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--color-book-nav);
  font-size: 58px;
  line-height: 1;
  cursor: pointer;
  padding: 12px 16px;
}

.book-page-prev {
  left: 10px;
}

.book-page-next {
  right: 10px;
}

.book-page-turn:disabled,
.book-control:disabled {
  opacity: 0.22;
  cursor: default;
}

.book-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 18px;
}

.book-control {
  border: none;
  background: none;
  color: var(--color-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.book-control:hover:not(:disabled) {
  color: var(--color-text);
}

.book-page-count {
  min-width: 92px;
  text-align: center;
  color: var(--color-soft-text);
  font-size: 12px;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 96px;
}

.lightbox.active {
  display: flex;
}

.lightbox-panel {
  width: min(100%, 1100px);
}

.lightbox-figure {
  margin: 0;
}

.lightbox-figure img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: transparent;
}

.lightbox-caption {
  color: #f2f2f2;
  padding-top: 18px;
}

.lightbox-caption h2 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 8px;
}

.lightbox-caption p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(242, 242, 242, 0.76);
}

.lightbox-close,
.lightbox-nav {
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 42px;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  line-height: 1;
  padding: 12px 16px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.gallery-page {
  max-width: 1180px;
}

.gallery-header {
  margin-bottom: 30px;
}

.gallery-header h1 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 10px;
}

.gallery-header p {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.gallery-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 100%;
}

.gallery-category-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg);
}

.gallery-category-swatch,
.gallery-category-overlay {
  position: absolute;
  inset: 0;
}

.gallery-category-swatch {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-category-swatch-bw {
  background: #050505;
}

.gallery-category-swatch-color {
  background:
    linear-gradient(115deg, rgba(255, 42, 42, 0.9), rgba(255, 225, 70, 0.82) 24%, rgba(51, 213, 101, 0.84) 47%, rgba(46, 139, 255, 0.86) 70%, rgba(162, 72, 255, 0.84));
}

.gallery-category-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

.gallery-category-overlay span {
  color: var(--color-text);
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.gallery-category-card:hover .gallery-category-swatch,
.gallery-category-card:focus-visible .gallery-category-swatch {
  opacity: 1;
}

.gallery-category-card:first-child .gallery-category-overlay span {
  color: var(--color-text);
}

.gallery-category-card:first-child:hover .gallery-category-overlay span,
.gallery-category-card:first-child:focus-visible .gallery-category-overlay span {
  color: #fff;
}

.gallery-category-card:nth-child(2) .gallery-category-overlay span {
  color: var(--color-text);
}

.gallery-category-card:nth-child(2):hover .gallery-category-overlay span,
.gallery-category-card:nth-child(2):focus-visible .gallery-category-overlay span {
  color: #fff;
  text-shadow: none;
}

@media (prefers-color-scheme: dark) {
  .gallery-category-swatch-bw {
    background: #f5f5f5;
  }

  .gallery-category-card:first-child:hover .gallery-category-overlay span,
  .gallery-category-card:first-child:focus-visible .gallery-category-overlay span {
    color: #050505;
  }

  .gallery-category-card:nth-child(2):hover .gallery-category-overlay span,
  .gallery-category-card:nth-child(2):focus-visible .gallery-category-overlay span {
    color: #050505;
  }
}

.gallery-section {
  margin-top: 44px;
}

.gallery-section:first-of-type {
  margin-top: 0;
}

.gallery-section h2 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-soft-text);
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.gallery-grid + .gallery-grid {
  margin-top: 16px;
}

.gallery-grid-black-white {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid-color {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item {
  background: var(--color-surface-soft);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.bio-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 360px);
  gap: 56px;
  align-items: start;
  max-width: 1280px;
  width: 100%;
}

.bio-contact-main {
  min-width: 0;
  max-width: 760px;
}

.bio-heading {
  margin-bottom: 18px;
}

.bio-name-en {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-bio-heading);
}

.bio-name-zh {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.3;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

.about-tagline {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 10px;
}

.artist-statement-link {
  font-size: 12px;
  color: var(--color-soft-text);
  margin-bottom: 24px;
}

.artist-statement-link a {
  border-bottom: 1px solid currentColor;
}

.artist-statement-link a:hover {
  color: var(--color-text);
}

.about-bio {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--color-bio-copy);
  margin-bottom: 18px;
  max-width: 760px;
}

.about-section {
  margin-top: 34px;
  margin-bottom: 28px;
}

.about-section h3,
.contact-card h3 {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-light);
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--color-border);
}

.about-section ul,
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-section ul li {
  display: flex;
  gap: 20px;
  line-height: 1.6;
}

.about-section ul li .year {
  font-size: 12px;
  color: var(--color-muted);
  min-width: 92px;
  flex-shrink: 0;
  padding-top: 0.05em;
}

.about-section ul li .detail {
  font-size: 13px;
  color: var(--color-soft-text);
}

.bio-contact-side {
  position: sticky;
  top: 40px;
  justify-self: end;
  width: 100%;
  max-width: 340px;
}

.bio-portrait {
  width: 100%;
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--color-portrait-bg);
}

.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.contact-list {
  gap: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-soft-text);
  line-height: 1.6;
  transition: opacity 0.2s ease;
}

.contact-link:hover {
  opacity: 0.72;
}

.contact-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  display: block;
}

@media (max-width: 900px) {
  .project-photos {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-photos-double {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    height: clamp(140px, 24vw, 220px);
  }

  .bio-contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-writing-grid {
    grid-template-columns: 1fr;
  }

  .gallery-category-grid,
  .gallery-grid-black-white,
  .gallery-grid-color {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item-wide {
    grid-column: auto;
  }

  .book-stage {
    min-height: 68vh;
    padding: 32px 62px;
  }

  .bio-contact-side {
    position: static;
    justify-self: start;
    max-width: 360px;
  }

  .lightbox {
    padding: 40px 72px;
  }
}

@media (max-width: 640px) {
  :root {
    --sidebar-width: 0px;
  }

  body {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 24px 20px 20px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
  }

  .sidebar-bio {
    margin-bottom: 0;
  }

  .sidebar-nav {
    flex-direction: row;
    gap: 16px;
    padding-top: 0;
    width: 100%;
  }

  .main {
    margin-left: 0;
    padding: 24px 20px;
  }

  .project-title {
    font-size: 52px;
  }

  .project-title-clock {
    font-size: 42px;
  }

  .project-title-book {
    font-size: 44px;
  }

  .project-book-cover {
    height: clamp(140px, 24vw, 220px);
  }

  .project-detail-header h1 {
    font-size: 28px;
  }

  .gallery-header h1 {
    font-size: 28px;
  }

  .gallery-section {
    margin-top: 34px;
  }

  .gallery-category-grid,
  .gallery-grid-black-white,
  .gallery-grid-color {
    grid-template-columns: 1fr;
  }

  .gallery-item-wide {
    grid-column: auto;
  }

  .gallery-item {
    margin-bottom: 0;
  }

  .project-detail-intro {
    font-size: 14px;
  }

  .project-writing-text h2 {
    font-size: 17px;
  }

  .book-reader-header {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .book-reader-header h1 {
    font-size: 28px;
  }

  .book-stage {
    min-height: 62vh;
    padding: 24px 34px;
  }

  .book-page-shell {
    min-height: 52vh;
  }

  .book-spread {
    width: min(100%, 720px);
  }

  .book-spread.single-page {
    width: min(100%, 360px);
  }

  .book-image-page img {
    max-height: 58vh;
  }

  .book-image-page.missing-page {
    min-height: min(58vh, 565px);
  }

  .book-page-turn {
    font-size: 42px;
    padding: 8px 8px;
  }

  .book-page-prev {
    left: 2px;
  }

  .book-page-next {
    right: 2px;
  }

  .book-controls {
    gap: 12px;
  }

  .project-photos-double {
    grid-template-columns: 1fr;
    height: auto;
  }

  .cell-clock-wide {
    aspect-ratio: 2 / 1;
    height: auto;
  }

  .cell-clock-square {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .bio-name-en {
    font-size: 22px;
  }

  .bio-name-zh {
    font-size: 15px;
  }

  .about-section ul li {
    flex-direction: column;
    gap: 4px;
  }

  .about-section ul li .year {
    min-width: 0;
  }

  .bio-portrait {
    aspect-ratio: 3 / 4;
  }

  .lightbox {
    padding: 72px 20px 28px;
  }

  .lightbox-figure img {
    max-height: 62vh;
  }

  .lightbox-caption h2 {
    font-size: 22px;
  }

  .lightbox-nav {
    font-size: 44px;
    padding: 8px 10px;
  }

  .lightbox-prev {
    left: 4px;
  }

  .lightbox-next {
    right: 4px;
  }

  .lightbox-close {
    top: 14px;
    right: 18px;
    font-size: 38px;
  }
}
