@font-face {
  font-family: "Portfolio Serif SC";
  src: url("./assets/fonts/portfolio-serif-sc-title.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #151515;
  --ink-soft: #343331;
  --paper: #f5f3ef;
  --paper-deep: #ebe7df;
  --mist: #c9c7c0;
  --line: rgba(21, 21, 21, 0.16);
  --muted: rgba(21, 21, 21, 0.62);
  --inverse: #f7f4ed;
  --accent: #6f756f;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms var(--ease);
  --slow: 520ms var(--ease);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px) 0 0 / 8.333vw 100%,
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.is-scroll-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--inverse);
  mix-blend-mode: difference;
}

.site-header::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.46) 58%, transparent);
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.brand-logo {
  display: block;
  width: auto;
  height: 18px;
  object-fit: contain;
  transform: translateY(2px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 34px);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  min-width: 46px;
  text-align: center;
}

.site-nav a,
.brand,
.language-toggle {
  opacity: 0.86;
  transition: opacity var(--fast);
}

.site-nav a:hover,
.brand:hover,
.language-toggle:hover {
  opacity: 1;
}

.language-toggle {
  --language-icon: url("./assets/icons/英文.svg");
  display: inline-grid;
  place-items: center;
  border: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

html[lang="en"] .language-toggle {
  --language-icon: url("./assets/icons/中文.svg");
}

.language-toggle::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background: currentColor;
  -webkit-mask: var(--language-icon) center / contain no-repeat;
  mask: var(--language-icon) center / contain no-repeat;
}

.cover {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--inverse);
  background: #0e0e0d;
}

.cover-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.015);
  transition: transform 1400ms var(--ease), opacity 900ms var(--ease);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.72));
}

.cover-copy {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22vh 0 11vh;
}

.issue-label,
.section-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cover h1,
.works h2,
.about h2 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
}

.cover h1,
.about h2 {
  font-family: "Portfolio Serif SC", Georgia, "Times New Roman", "Songti SC", "STSong", serif;
}

.works h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.cover h1 {
  max-width: 820px;
  font-size: clamp(56px, 10vw, 148px);
  line-height: 0.9;
}

.cover-note {
  max-width: 420px;
  margin: 28px 0 0;
  color: rgba(247, 244, 237, 0.78);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 4vw, 54px);
  bottom: 34px;
  width: 38px;
  height: 58px;
  border: 1px solid rgba(247, 244, 237, 0.55);
  display: grid;
  place-items: center;
}

.scroll-cue span {
  width: 1px;
  height: 22px;
  background: rgba(247, 244, 237, 0.72);
}

.works,
.about {
  padding: clamp(72px, 10vw, 140px) clamp(18px, 4vw, 54px);
}

.section-summary,
.about-contact p {
  color: var(--muted);
  line-height: 1.75;
}

.photo-card picture,
.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
}

.photo-card img {
  object-fit: cover;
  transition: transform var(--slow), opacity var(--slow);
}

.photo-card:hover img {
  transform: scale(1.025);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 0.45fr);
  gap: 24px;
  align-items: end;
  max-width: 1320px;
  margin: 0 auto 34px;
}

.works h2,
.about h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.98;
}

.about h2 {
  max-width: 1320px;
  font-size: clamp(40px, 3.2vw, 58px);
  line-height: 1.18;
}

html[lang="en"] .about h2 {
  max-width: 1180px;
  font-size: clamp(34px, 2.75vw, 48px);
  line-height: 1.16;
}

.filter-bar {
  position: sticky;
  z-index: 5;
  top: 68px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1320px;
  margin: 0 auto 12px;
  padding: 10px 0;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
}

.filter-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
  color: var(--ink-soft);
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.08em;
  font-size: 11px;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}

.filter-button:hover:not([aria-selected="true"]) {
  background: rgba(21, 21, 21, 0.1);
}

.filter-label {
  min-width: 0;
}

.filter-label-split {
  display: grid;
  gap: 2px;
}

.filter-button[aria-selected="true"] {
  background: var(--ink);
  color: var(--inverse);
  border-color: var(--ink);
}

.photo-grid {
  max-width: 1320px;
  margin: 0 auto;
  column-count: 3;
  column-gap: clamp(12px, 1.6vw, 22px);
  transition: opacity var(--slow), transform var(--slow);
  will-change: opacity, transform;
}

.photo-grid.is-transitioning {
  opacity: 0;
  transform: translateY(8px);
}

.photo-grid.is-page-slide-reset {
  transition: none;
}

.photo-grid.is-page-slide-out-next,
.photo-grid.is-page-slide-out-prev,
.photo-grid.is-page-slide-in-next,
.photo-grid.is-page-slide-in-prev {
  opacity: 0;
}

.photo-grid.is-page-slide-out-next {
  transform: translateX(-38px);
}

.photo-grid.is-page-slide-out-prev {
  transform: translateX(38px);
}

.photo-grid.is-page-slide-in-next {
  transform: translateX(38px);
}

.photo-grid.is-page-slide-in-prev {
  transform: translateX(-38px);
}

.photo-card {
  display: block;
  width: 100%;
  margin: 0 0 clamp(12px, 1.6vw, 22px);
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  break-inside: avoid;
  color: inherit;
  transition: opacity 680ms var(--ease), filter 680ms var(--ease);
}

body.is-opening-lightbox .photo-card:not(.is-focus-source) {
  opacity: 0.22;
  filter: saturate(0.55) brightness(0.62);
}

body.is-closing-lightbox .photo-card:not(.is-focus-source) {
  opacity: 1;
  filter: none;
  transition-duration: 160ms;
}

body.has-lightbox-open .photo-card {
  opacity: 0.22;
  filter: saturate(0.55) brightness(0.62);
}

body.is-opening-lightbox .photo-card.is-focus-source img {
  opacity: 0;
}

body.is-closing-lightbox .photo-card.is-focus-source img {
  opacity: 0;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}

.photo-card.portrait .photo-frame {
  aspect-ratio: 4 / 5;
}

.photo-card.landscape .photo-frame {
  aspect-ratio: 5 / 3.4;
}

.photo-card.square .photo-frame {
  aspect-ratio: 1;
}

.photo-caption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.about {
  background: var(--ink);
  color: var(--inverse);
}

.about-rule {
  height: 1px;
  background: rgba(247, 244, 237, 0.2);
  max-width: 1720px;
  margin: 0 auto clamp(34px, 6vw, 72px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.6vw, 48px);
  max-width: 1720px;
  margin: 0 auto;
}

.about-heading {
  min-width: 0;
}

.about .section-kicker,
.about-contact p {
  color: rgba(247, 244, 237, 0.66);
}

.about-contact {
  max-width: 960px;
  padding-bottom: 0;
}

.about-contact p {
  margin: 0;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.contact-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: rgba(247, 244, 237, 0.62);
}

.contact-icon-frame {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.contact-icon {
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  opacity: 0.9;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.contact-text {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.about-title-line {
  display: block;
  white-space: nowrap;
}

.about-title-line:last-child {
  color: #b59b6b;
}

.legal-footer {
  position: relative;
  padding: 14px clamp(18px, 4vw, 54px) 18px;
  background: #12110f;
  color: rgba(247, 244, 237, 0.46);
}

.legal-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(247, 244, 237, 0.12);
}

.legal-footer-text {
  max-width: 1720px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 20px;
}

.legal-footer-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(247, 244, 237, 0.72);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(181, 155, 107, 0.78);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--fast), text-decoration-color var(--fast);
}

.legal-footer-link:hover,
.legal-footer-link:focus-visible {
  color: #b59b6b;
  text-decoration-color: currentColor;
}

.legal-modal {
  position: fixed;
  z-index: 95;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(7, 7, 6, 0.78);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--slow);
}

.legal-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal-panel {
  position: relative;
  width: min(1120px, calc(100vw - clamp(36px, 8vw, 108px)));
  max-height: min(1080px, calc(100svh - 48px));
  border: 1px solid rgba(247, 244, 237, 0.16);
  background:
    linear-gradient(180deg, rgba(24, 23, 21, 0.98), rgba(13, 13, 12, 0.98)),
    #12110f;
  color: var(--inverse);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.52);
  overflow: hidden;
}

.legal-modal-scroll {
  max-height: inherit;
  overflow: auto;
  padding: clamp(30px, 4vw, 52px);
  scrollbar-color: rgba(181, 155, 107, 0.62) rgba(247, 244, 237, 0.08);
}

.legal-modal-kicker {
  margin: 0 0 12px;
  color: #b59b6b;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-modal h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.legal-modal-date {
  margin: 16px 0 32px;
  color: rgba(247, 244, 237, 0.52);
  font-size: 12px;
  line-height: 1.7;
}

.legal-section {
  padding: 24px 0;
  border-top: 1px solid rgba(247, 244, 237, 0.1);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-section h3 {
  margin: 0 0 12px;
  color: rgba(247, 244, 237, 0.86);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.legal-section p {
  margin: 0;
  color: rgba(247, 244, 237, 0.62);
  font-size: 14px;
  line-height: 1.82;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-section strong {
  color: rgba(247, 244, 237, 0.9);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(181, 155, 107, 0.72);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-modal-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(247, 244, 237, 0.54);
  cursor: pointer;
  transition: color var(--fast);
}

.legal-modal-close:hover {
  color: #b59b6b;
}

.lightbox {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(54px, 0.12fr) minmax(0, 1fr) minmax(54px, 0.12fr);
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(14px, 3vw, 42px);
  color: var(--inverse);
  background: rgba(9, 9, 8, 0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 680ms var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox.is-open.is-closing {
  opacity: 0;
  pointer-events: auto;
  transition-duration: 300ms;
  transition-timing-function: linear;
}

.lightbox-frame {
  position: fixed;
  left: var(--lightbox-image-left, 50%);
  top: var(--lightbox-image-top, 50%);
  width: var(--lightbox-image-width, 72vw);
  height: var(--lightbox-image-height, 78svh);
  margin: 0;
  display: block;
  opacity: 1;
  transform: scale(1);
  transition: transform 680ms var(--ease);
}

.lightbox-frame img,
.lightbox-frame figcaption {
  opacity: 0;
}

.lightbox.is-revealing .lightbox-frame {
  transform: scale(0.996);
}

.lightbox.is-presenting .lightbox-frame img {
  opacity: 1;
}

.lightbox.is-presenting .lightbox-frame figcaption {
  opacity: 1;
}

.lightbox.is-closing .lightbox-frame img,
.lightbox.is-closing .lightbox-frame figcaption,
.lightbox.is-closing .lightbox-close {
  opacity: 0;
  pointer-events: none;
  transition-duration: 80ms;
  transition-delay: 0ms;
}

.lightbox.is-revealing .lightbox-close {
  opacity: 0;
  pointer-events: none;
}

.lightbox.is-swapping .lightbox-frame {
  opacity: 0;
  transform: scale(0.992);
}

.lightbox-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  -webkit-user-drag: none;
  user-select: none;
  transition: opacity 680ms var(--ease);
}

.lightbox-frame img.is-loading-highres {
  opacity: 0;
}

.lightbox-highres-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.lightbox-highres-image.is-visible {
  opacity: 1;
}

.lightbox-flying-image {
  position: fixed;
  z-index: 80;
  display: block;
  object-fit: contain;
  pointer-events: none;
  filter: saturate(0.94) contrast(1.03);
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.5);
  transition:
    left 680ms var(--ease),
    top 680ms var(--ease),
    width 680ms var(--ease),
    height 680ms var(--ease),
    filter 680ms var(--ease),
    box-shadow 680ms var(--ease);
}

.lightbox-flying-image.is-closing {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  transition-duration: 520ms;
}

.lightbox-frame figcaption {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(247, 244, 237, 0.72);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.08em;
  z-index: 2;
  pointer-events: none;
  transition: opacity 680ms var(--ease) 340ms;
}

.lightbox-frame figcaption [data-lightbox-title] {
  display: none;
}

.lightbox-palette {
  position: absolute;
  left: calc(100% + 36px);
  bottom: 36px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  color: rgba(247, 244, 237, 0.52);
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.58);
  pointer-events: auto;
}

.lightbox-palette[hidden] {
  display: none;
}

.lightbox-like {
  position: absolute;
  left: calc(100% + 36px);
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(247, 244, 237, 0.52);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.58);
  transition: color var(--fast), opacity var(--fast);
}

.lightbox-like:hover,
.lightbox-like:focus-visible {
  color: #b59b6b;
}

.lightbox-like:disabled {
  cursor: default;
}

.lightbox-like.is-loading {
  opacity: 0.58;
}

.lightbox-like-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  -webkit-mask: url("./assets/icons/心,心形,心脏,爱心,实心 (1).svg") center / contain no-repeat;
  mask: url("./assets/icons/心,心形,心脏,爱心,实心 (1).svg") center / contain no-repeat;
}

.lightbox-like.is-liked .lightbox-like-icon {
  -webkit-mask-image: url("./assets/icons/心,心形,心脏,爱心,实心.svg");
  mask-image: url("./assets/icons/心,心形,心脏,爱心,实心.svg");
}

.lightbox-like-count {
  min-width: 1ch;
}

.lightbox-share {
  position: absolute;
  left: calc(100% + 36px);
  top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 20px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(247, 244, 237, 0.52);
  font-family: var(--sans);
  font-size: inherit;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.58);
  -webkit-tap-highlight-color: transparent;
  transition: color var(--fast), opacity var(--fast);
}

.lightbox-share:hover,
.lightbox-share:focus-visible {
  color: #b59b6b;
}

.lightbox-share:focus,
.lightbox-share:active {
  outline: 0;
  box-shadow: none;
}

.lightbox-share-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  background: currentColor;
  -webkit-mask: url("./assets/icons/分享,共享,转发.svg") center / contain no-repeat;
  mask: url("./assets/icons/分享,共享,转发.svg") center / contain no-repeat;
}

.lightbox-share-label {
  display: block;
  white-space: nowrap;
}

.lightbox-share-status {
  position: absolute;
  left: calc(100% + 36px);
  top: 64px;
  width: 120px;
  color: rgba(247, 244, 237, 0.52);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition:
    opacity var(--fast),
    transform var(--fast);
}

.lightbox-share-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-palette-item {
  display: inline-flex;
  align-items: center;
  position: relative;
  white-space: nowrap;
}

.lightbox-palette-swatch {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid rgba(247, 244, 237, 0.52);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 1px 8px rgba(0, 0, 0, 0.28);
  cursor: default;
}

.lightbox-palette-swatch::after {
  content: attr(data-hex);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  display: block;
  width: max-content;
  max-width: 92px;
  color: rgba(247, 244, 237, 0.52);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.68);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition:
    opacity var(--fast),
    transform var(--fast);
}

.lightbox-palette-swatch:hover::after,
.lightbox-palette-swatch:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lightbox-frame figcaption [data-lightbox-meta] {
  position: absolute;
  left: calc(100% + 36px);
  bottom: 6px;
  color: rgba(247, 244, 237, 0.52);
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.58);
}

.lightbox-exif {
  position: absolute;
  left: 0;
  top: calc(100% + 18px);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  color: rgba(247, 244, 237, 0.52);
  line-height: 1.6;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.06em;
  word-spacing: 0;
}

.lightbox-exif-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.lightbox-exif-icon {
  width: 14px;
  height: 14px;
  display: block;
  background: currentColor;
  opacity: 0.9;
  -webkit-mask: var(--exif-icon) center / contain no-repeat;
  mask: var(--exif-icon) center / contain no-repeat;
}

.lightbox-exif-icon.is-iso {
  width: 20px;
  height: 20px;
}

.lightbox-exif-icon.is-focal-length {
  width: 16px;
  height: 16px;
}

.lightbox-close {
  border: 0;
  background: transparent;
  color: rgba(247, 244, 237, 0.52);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--fast), opacity var(--fast);
  opacity: 1;
}

.lightbox-close:hover {
  color: #b59b6b;
}

.lightbox-close:focus,
.lightbox-close:focus-visible,
.lightbox-close:active {
  outline: 0;
  box-shadow: none;
}

.lightbox-close-icon {
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  -webkit-mask: url("./assets/icons/关闭.svg") center / contain no-repeat;
  mask: url("./assets/icons/关闭.svg") center / contain no-repeat;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav {
    gap: 12px;
  }

  .cover-copy {
    padding-bottom: 15vh;
  }

  .section-head,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .section-summary {
    justify-self: start;
    max-width: 720px;
    margin-bottom: 0;
  }

  html[lang="en"] .section-summary {
    text-align: left;
  }

  html[lang="en"] .works h2 {
    white-space: normal;
  }

  .about-grid {
    align-items: start;
  }

  .about-grid {
    padding-left: 0;
  }

  .about-contact {
    max-width: 620px;
    padding-bottom: 0;
  }

  .about-title-line {
    white-space: normal;
  }

  .photo-grid {
    column-count: 2;
  }

  .filter-bar {
    top: 62px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px;
    gap: 10px;
  }

  .site-nav {
    gap: 10px;
    font-size: 10px;
  }

  .brand-mark {
    display: none;
  }

  .brand-logo {
    height: 16px;
  }

  .cover h1 {
    font-size: clamp(48px, 18vw, 82px);
  }

  .scroll-cue {
    display: none;
  }

  .works,
  .about {
    padding-left: 14px;
    padding-right: 14px;
  }

  .photo-grid {
    column-count: 1;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    align-content: center;
  }

  .lightbox-frame {
    grid-column: 1 / -1;
  }

  .lightbox-frame figcaption {
    inset: 0;
  }

  .lightbox-frame figcaption [data-lightbox-meta] {
    left: auto;
    right: 0;
    bottom: 14px;
  }

  .lightbox-palette {
    display: none;
  }

  .lightbox-exif {
    top: calc(100% + 12px);
  }
}

/* Darkroom gallery + curator index direction */
html {
  background: #090908;
}

body {
  color: var(--inverse);
  background:
    linear-gradient(90deg, rgba(247, 244, 237, 0.04) 1px, transparent 1px) 0 0 / 8.333vw 100%,
    #090908;
}

.site-header {
  mix-blend-mode: normal;
  isolation: isolate;
}

:focus-visible {
  outline-color: var(--inverse);
}

.cover {
  grid-template-columns: minmax(280px, 0.68fr) minmax(440px, 1.32fr);
  gap: clamp(28px, 6vw, 104px);
  min-height: auto;
  align-items: end;
  align-content: start;
  padding: clamp(76px, 8vw, 112px) clamp(18px, 4vw, 56px) clamp(28px, 5vw, 70px);
  background:
    radial-gradient(circle at 73% 29%, rgba(255, 242, 205, 0.16), transparent 27%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 34%),
    #090908;
}

.cover-image-wrap {
  position: relative;
  z-index: 1;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  align-self: center;
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.48);
}

.cover-image {
  width: 100%;
  height: auto;
  object-fit: initial;
  opacity: 0.92;
  transform: none;
  filter: saturate(0.86) contrast(1.06);
}

.cover::after {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(247, 244, 237, 0.045) 1px, transparent 1px) 0 0 / 8.333vw 100%,
    radial-gradient(circle at 58% 42%, transparent 0 22%, rgba(0, 0, 0, 0.54) 66%);
}

.cover-copy {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  margin: 0;
  padding: 0;
}

.issue-label,
.section-kicker,
.archive-label {
  color: #b59b6b;
}

.cover h1 {
  max-width: 720px;
  font-size: clamp(46px, 4.35vw, 82px);
  line-height: 1.14;
}

.cover-title-line {
  display: block;
  white-space: nowrap;
}

.cover-note {
  max-width: 650px;
  margin-top: 18px;
  color: rgba(247, 244, 237, 0.62);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.75;
}

.cover-note-line {
  display: block;
}

.cover-note::before {
  content: "";
  display: block;
  width: var(--cover-rule-width, 292px);
  height: 1px;
  margin: 0 0 17px;
  background: rgba(181, 155, 107, 0.66);
}

html[lang="en"] .cover h1 {
  max-width: 980px;
  font-size: clamp(48px, 4.9vw, 92px);
  line-height: 1.08;
}

html[lang="en"] .cover-note {
  max-width: 900px;
}

.scroll-cue {
  width: auto;
  height: auto;
  border: 0;
  color: rgba(247, 244, 237, 0.48);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue span {
  width: auto;
  height: auto;
  background: transparent;
}

.scroll-cue span::before {
  content: attr(data-label);
}

.works {
  color: var(--inverse);
  background:
    linear-gradient(90deg, rgba(247, 244, 237, 0.04) 1px, transparent 1px) 0 0 / 8.333vw 100%,
    #090908;
  padding: clamp(44px, 5.4vw, 88px) clamp(14px, 2.4vw, 40px) clamp(46px, 5.8vw, 82px);
}

.section-head {
  max-width: 1720px;
  grid-template-columns: minmax(520px, 0.95fr) minmax(520px, 0.8fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 50px);
}

.works h2 {
  max-width: 720px;
  font-size: clamp(42px, 6vw, 92px);
  line-height: 0.94;
}

.section-summary {
  color: rgba(247, 244, 237, 0.62);
  justify-self: end;
  max-width: 760px;
  margin-bottom: 0.12em;
  text-align: left;
}

html[lang="en"] .works h2 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(48px, 5vw, 86px);
}

html[lang="en"] .section-summary {
  max-width: 850px;
  text-align: right;
}

.works-summary-line {
  display: block;
}

.works-archive {
  max-width: 1720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  border: 1px solid rgba(247, 244, 237, 0.16);
  background: #0d0d0c;
}

.works-index {
  min-height: 820px;
  padding: clamp(34px, 5vw, 72px) clamp(22px, 3vw, 38px) clamp(22px, 3vw, 38px);
  border-right: 1px solid rgba(247, 244, 237, 0.16);
  background: #171613;
}

.works-index h3 {
  margin: 16px 0 clamp(34px, 5vw, 70px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 400;
  line-height: 0.94;
}

.filter-bar {
  position: sticky;
  top: 72px;
  display: grid;
  gap: 1px;
  max-width: none;
  margin: 0 0 28px;
  padding: 0;
  background: rgba(247, 244, 237, 0.16);
  backdrop-filter: none;
}

.filter-button {
  width: 100%;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: #10100e;
  color: rgba(247, 244, 237, 0.68);
  padding: 0 24px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: none;
  transition: background 260ms var(--ease), color 260ms var(--ease);
}

.filter-button .filter-label {
  font-size: calc(1em + 3px);
  line-height: 1.12;
}

.filter-button:hover:not([aria-selected="true"]) {
  background: #24231f;
  color: rgba(247, 244, 237, 0.84);
}

.filter-button[aria-selected="true"] {
  background: #b59b6b;
  color: var(--inverse);
}

.works-content {
  min-width: 0;
  overflow-x: clip;
  background: #0d0d0c;
}

.photo-grid {
  max-width: none;
  margin: 0;
  padding: clamp(18px, 2.4vw, 34px) clamp(24px, 4vw, 54px) clamp(24px, 4vw, 54px);
  display: grid;
  row-gap: clamp(24px, 2.6vw, 42px);
  background: transparent;
  transition: opacity 460ms var(--ease), transform 520ms var(--ease);
}

.photo-card {
  flex: var(--photo-flex, 1) 1 0;
  min-width: 0;
  margin-bottom: 0;
}

.photo-row {
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 2.8vw, 44px);
}

.photo-row--vertical-stack {
  --module-gap: clamp(24px, 2.8vw, 44px);
  --module-caption-space: 32px;
  --vertical-column: 0.33fr;
  --stack-column: 0.67fr;
  display: grid;
  grid-template-columns: minmax(0, var(--vertical-column)) minmax(0, var(--stack-column));
  align-items: start;
  gap: var(--module-gap);
  padding-bottom: var(--module-caption-space);
}

.photo-row--vertical-stack.is-right {
  grid-template-columns: minmax(0, var(--stack-column)) minmax(0, var(--vertical-column));
}

.photo-row--vertical-stack.stack-count-2 {
  --vertical-column: 0.48fr;
  --stack-column: 0.52fr;
}

.photo-row--vertical-stack.stack-count-3 {
  --vertical-column: 0.56fr;
  --stack-column: 0.44fr;
}

.photo-row--vertical-stack .photo-card {
  position: relative;
  align-self: start;
  min-height: 0;
}

.photo-row--vertical-stack .photo-card.role-vertical {
  align-self: start;
}

.photo-row--vertical-stack .photo-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  align-content: start;
  gap: var(--module-gap);
  min-height: 0;
  align-self: start;
}

.photo-row--vertical-stack .photo-stack.stack-count-2,
.photo-row--vertical-stack .photo-stack.stack-count-3 {
  grid-template-columns: minmax(0, 1fr);
}

.photo-row--vertical-stack .photo-card.role-stack {
  min-width: 0;
}

.photo-frame {
  overflow: visible;
  background: transparent;
}

.photo-card.portrait .photo-frame,
.photo-card.landscape .photo-frame,
.photo-card.square .photo-frame {
  aspect-ratio: auto;
}

.photo-card picture,
.photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-row--vertical-stack .photo-frame,
.photo-row--vertical-stack picture {
  height: auto;
  min-height: 0;
}

.photo-row--vertical-stack .photo-caption {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-height: 0;
}

.photo-row--vertical-stack .photo-card.role-vertical img,
.photo-row--vertical-stack .photo-card.role-stack img {
  width: 100%;
  height: auto;
  object-fit: initial;
  object-position: left bottom;
}

.photo-row--vertical-stack.is-right .photo-card.role-vertical img {
  object-position: right bottom;
}

.photo-row--vertical-stack.is-right .photo-card.role-stack img {
  object-position: left bottom;
}

.photo-row--standard .photo-card.ratio-slender-portrait {
  flex: 0.72 1 0;
  max-width: min(34vw, 360px);
}

.photo-row--standard .photo-card.ratio-slender-landscape {
  flex: 1.85 1 0;
}

.photo-card img {
  object-fit: initial;
  filter: saturate(0.92) contrast(1.02);
  transition: filter var(--slow), opacity var(--slow);
}

.photo-card:hover img {
  transform: none;
  filter: saturate(1) contrast(1.04);
}

.photo-caption {
  color: rgba(247, 244, 237, 0.48);
  text-transform: none;
  letter-spacing: 0.12em;
}

.archive-pager {
  display: grid;
  grid-template-columns: 44px minmax(320px, 760px) 44px;
  gap: clamp(22px, 3.4vw, 56px);
  align-items: center;
  justify-content: center;
  margin: 0 clamp(24px, 4vw, 54px);
  padding: clamp(28px, 3.6vw, 48px) 0 clamp(12px, 1.8vw, 24px);
}

.archive-pager-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(247, 244, 237, 0.22);
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: rgba(247, 244, 237, 0.68);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
  transition: border-color var(--fast), color var(--fast), transform var(--fast);
}

.archive-pager-button:hover:not(:disabled) {
  border-color: rgba(181, 155, 107, 0.72);
  color: var(--inverse);
  transform: translateY(-1px);
}

.archive-pager-button:disabled {
  cursor: default;
  opacity: 0.22;
}

.archive-page-indicator {
  position: relative;
  width: 100%;
  justify-self: center;
  padding-bottom: 15px;
  color: rgba(247, 244, 237, 0.62);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.archive-page-indicator::before,
.archive-page-indicator::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 2px;
  pointer-events: none;
}

.archive-page-indicator::before {
  left: 0;
  width: 100%;
  background: rgba(247, 244, 237, 0.16);
}

.archive-page-indicator::after {
  left: var(--page-segment-left, 0%);
  width: var(--page-segment-width, 100%);
  background: rgba(181, 155, 107, 0.86);
  transition: left var(--fast), width var(--fast);
}

.about {
  background: #090908;
  padding-top: clamp(42px, 5vw, 72px);
}

@media (min-width: 1720px) {
  .cover {
    grid-template-columns: minmax(430px, 0.74fr) minmax(760px, 1.26fr);
    padding-left: clamp(56px, 5.6vw, 112px);
    padding-right: clamp(56px, 5.6vw, 112px);
  }

  .cover h1 {
    font-size: clamp(72px, 4.2vw, 104px);
  }

  .cover-note {
    font-size: 17px;
  }

  .section-head,
  .works-archive,
  .about-rule,
  .about-grid,
  .legal-footer-text {
    max-width: 1840px;
  }

  .works-archive {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  }
}

@media (max-width: 1439px) {
  .cover {
    grid-template-columns: minmax(300px, 0.74fr) minmax(500px, 1.18fr);
    gap: clamp(24px, 4.4vw, 64px);
    padding-top: clamp(70px, 7vw, 96px);
  }

  .cover h1 {
    font-size: clamp(44px, 4.1vw, 68px);
  }

  html[lang="en"] .cover h1 {
    font-size: clamp(44px, 4.45vw, 76px);
  }

  .cover-note {
    max-width: 560px;
  }

  html[lang="en"] .cover-note {
    max-width: 720px;
  }

  .section-head {
    grid-template-columns: minmax(430px, 0.95fr) minmax(360px, 0.78fr);
  }

  .works-archive {
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  }

  .filter-button {
    min-height: 74px;
    padding: 0 18px;
    font-size: 12px;
  }

  .photo-row--vertical-stack {
    --module-gap: clamp(20px, 2.4vw, 34px);
  }
}

@media (max-width: 1279px) {
  .site-header {
    padding: 16px 26px;
  }

  .cover {
    grid-template-columns: 1fr;
    gap: clamp(22px, 3.6vw, 48px);
    padding-left: 26px;
    padding-right: 26px;
  }

  .cover-image-wrap,
  .cover-copy {
    grid-column: 1;
  }

  .cover-copy {
    grid-row: 1;
  }

  .cover-image-wrap {
    grid-row: 2;
  }

  .cover h1 {
    font-size: clamp(38px, 4vw, 56px);
  }

  html[lang="en"] .cover h1 {
    font-size: clamp(38px, 4.2vw, 62px);
  }

  .cover-note-line,
  .works-summary-line,
  .about-title-line {
    display: inline;
  }

  .section-head {
    grid-template-columns: minmax(340px, 0.9fr) minmax(320px, 0.8fr);
    gap: 32px;
  }

  .works h2 {
    font-size: clamp(38px, 5.4vw, 68px);
  }

  html[lang="en"] .works h2 {
    white-space: normal;
    font-size: clamp(40px, 5vw, 64px);
  }

  .works-archive {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  }

  .works-index {
    padding: 28px 18px;
  }

  .filter-button {
    min-height: 64px;
    padding: 0 14px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .photo-grid {
    padding-left: 30px;
    padding-right: 30px;
  }

  .photo-row,
  .photo-row--vertical-stack {
    gap: 24px;
  }

  .photo-row--vertical-stack,
  .photo-row--vertical-stack.is-right {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .photo-row--vertical-stack.is-right .photo-card.role-vertical {
    grid-row: 1;
  }

  .photo-row--vertical-stack .photo-caption {
    position: static;
  }

  .photo-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-pager {
    grid-template-columns: 40px minmax(220px, 1fr) 40px;
  }
}

@media (max-width: 1023px) {
  .section-head,
  .works-archive {
    grid-template-columns: 1fr;
  }

  .cover {
    min-height: auto;
    padding-top: 86px;
  }

  .cover h1 {
    max-width: 760px;
    font-size: clamp(44px, 8vw, 78px);
  }

  html[lang="en"] .cover h1 {
    font-size: clamp(44px, 7.8vw, 78px);
  }

  .section-head {
    align-items: start;
  }

  .section-summary,
  html[lang="en"] .section-summary {
    justify-self: start;
    max-width: 720px;
    text-align: left;
  }

  .works-index {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(247, 244, 237, 0.16);
    padding: 22px;
  }

  .filter-bar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
  }

  .photo-grid {
    row-gap: 34px;
  }

  .photo-row {
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding: 14px 18px;
  }

  .site-nav {
    gap: 14px;
    font-size: 10px;
  }

  .cover {
    padding-left: 18px;
    padding-right: 18px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .photo-row,
  .photo-row--standard,
  .photo-row--vertical-stack {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .works {
    padding-left: 14px;
    padding-right: 14px;
  }

  .photo-grid {
    padding: 14px 18px 18px;
    row-gap: 28px;
  }

  .photo-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .photo-row--vertical-stack {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    gap: 24px;
  }

  .photo-row--vertical-stack.is-right {
    grid-template-columns: 1fr;
  }

  .photo-row--vertical-stack .photo-card,
  .photo-row--vertical-stack .photo-card.role-vertical,
  .photo-row--vertical-stack .photo-card.role-stack,
  .photo-row--vertical-stack .photo-stack {
    height: auto;
  }

  .photo-row--vertical-stack .photo-stack {
    grid-template-rows: none;
    gap: 24px;
  }

  .photo-row--vertical-stack .photo-frame,
  .photo-row--vertical-stack picture {
    height: auto;
  }

  .photo-row--vertical-stack .photo-card.role-vertical img,
  .photo-row--vertical-stack .photo-card.role-stack img {
    width: 100%;
    height: auto;
  }

  .photo-row--vertical-stack .photo-caption {
    flex-basis: auto;
    min-height: 0;
  }

  .photo-row--standard .photo-card.ratio-slender-portrait {
    max-width: none;
  }

  .archive-pager {
    grid-template-columns: 38px minmax(160px, 1fr) 38px;
    gap: 14px;
    margin: 0 18px;
    padding: 22px 0 10px;
  }

  .archive-pager-button {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
