:root {
  --ink: #f5f5f2;
  --bg: #000;
  --edge: 12px;
  --grid-line: #333333;
}

@font-face {
  font-family: "SF Pro";
  src: url("assets/fonts/SF-Pro.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro";
  src: url("assets/fonts/SF-Pro-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "SF Pro", Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: -0.02em;
}

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

.site-header,
.site-footer {
  position: fixed;
  z-index: 2;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.site-header { top: 0; padding: 0; pointer-events: none; }
.site-footer {
  z-index: 100;
  bottom: 0;
  padding: var(--edge);
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  color: #aaaaaa;
  text-transform: none;
  font-size: 7.5pt;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.icp-link {
  color: inherit;
  font-family: "PingFang SC", "苹方-简", "Hiragino Sans GB", sans-serif;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: inherit;
  text-transform: none;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0;
  width: calc(100vw - 32px);
  min-height: 0;
  padding: 0;
  color: inherit;
  font-family: "SF Pro", Arial, Helvetica, sans-serif;
  font-size: 24pt;
  font-weight: 700;
  letter-spacing: .256em;
  line-height: 1;
  text-align: left;
  transform: translate(2px, 37px);
}

.wordmark-a {
  --about-trigger-top: -1px;
  --about-trigger-left: -2px;
  position: relative;
  z-index: 0;
  display: inline-block;
  width: auto;
  height: auto;
  color: #000;
  font-family: "SF Pro", Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.04;
  flex: 0 0 auto;
  align-self: baseline;
  background: transparent;
  padding: 0 .12em;
  pointer-events: auto;
}

.wordmark-a > .a-letter {
  display: inline-block;
  line-height: 1;
  transform: translate(4px, calc(-4px + .04em));
}

.wordmark-a::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: var(--about-trigger-top);
  left: var(--about-trigger-left);
  width: 36px;
  height: 36px;
  background: #fff;
}

.about-trigger {
  position: absolute;
  z-index: 1;
  top: var(--about-trigger-top);
  left: var(--about-trigger-left);
  width: 36px;
  height: 36px;
}

.about-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100vw - 62px);
  margin: 0;
  padding-left: 4px;
  letter-spacing: .275em;
  font-family: "SF Pro", Arial, Helvetica, sans-serif;
  font-weight: 700;
  align-self: baseline;
  line-height: 1.04;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  transform: translate(-2px, -2.5px);
}

.about-text.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-2px, -2.5px);
}

.about-text > .about-copy {
  color: #000;
  background: linear-gradient(#fff 0 0) 0 4px / 100% calc(100% - 4px) no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 .12em 4px;
}

.about-english,
.about-chinese {
  letter-spacing: 0;
}

.about-english {
  font-family: "SF Pro", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-variation-settings: "wght" 300;
}

.about-chinese {
  font-family: "PingFang SC", "苹方-简", "Hiragino Sans GB", sans-serif;
  font-size: 20pt;
  font-weight: 300;
}

.about-email {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  color: #aaaaaa;
  background: transparent;
  font-family: "SF Pro", Arial, Helvetica, sans-serif;
  font-size: inherit;
  font-weight: 300;
  font-variation-settings: "wght" 300;
  line-height: inherit;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.about-email:hover,
.about-email:focus-visible {
  color: #000000;
}


.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 1px;
  min-height: 100svh;
  background: var(--grid-line);
}

.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg);
}

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

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

.project-page {
  min-height: 100svh;
  padding: 72px var(--edge) 64px;
}

.project-nav {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--edge);
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr);
  gap: 1px;
  background: var(--grid-line);
}

.project-visual {
  min-height: calc(100svh - 136px);
  display: grid;
  place-items: center;
  background: #000;
}

.project-visual img {
  width: 100%;
  height: 100%;
  max-height: calc(100svh - 136px);
  object-fit: contain;
  display: block;
}

.project-info {
  min-height: 100%;
  padding: 12px;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.project-info h1,
.project-info p { margin: 0; }
.project-info h1 { font-size: 14px; font-weight: 400; }
.project-info p { max-width: 24ch; font-size: 12px; line-height: 1.25; }
.project-index { font-size: 10px; color: #8a8a8a; }

.project-detail-page {
  --project-edge: 36px;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.project-detail-page::before {
  content: "";
  position: fixed;
  z-index: 15;
  top: 0;
  right: 0;
  left: 0;
  height: 36px;
  background: #000000;
  pointer-events: none;
}

.project-detail-page .site-header { z-index: 100; }

.project-title,
.project-counter {
  position: fixed;
  z-index: 10;
  top: 10px;
  margin: 0;
  color: #aaaaaa;
  font-family: "SF Pro", Arial, Helvetica, sans-serif;
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.04;
  pointer-events: none;
}

.project-title {
  z-index: 40;
  left: var(--project-edge);
  letter-spacing: 0;
}

.project-pagination {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: calc(66.6667% + 4px);
  display: flex;
  align-items: center;
  column-gap: 10px;
}

.project-counter {
  position: static;
  flex: 0 0 auto;
  font-family: "SF Pro", Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  text-align: center;
  white-space: nowrap;
  transform: none;
}

.project-direction {
  display: grid;
  place-items: center;
  width: 7.78px;
  height: 14.14px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.project-direction-icon {
  display: block;
  width: 7.78px;
  height: 14.14px;
  background: #ffffff;
}

.project-direction-previous .project-direction-icon {
  -webkit-mask: url("assets/svg/L.svg") center / contain no-repeat;
  mask: url("assets/svg/L.svg") center / contain no-repeat;
}

.project-direction-next .project-direction-icon {
  -webkit-mask: url("assets/svg/R.svg") center / contain no-repeat;
  mask: url("assets/svg/R.svg") center / contain no-repeat;
}

.project-direction:hover .project-direction-icon,
.project-direction:focus-visible .project-direction-icon {
  background: #aaaaaa;
}

.project-copy-open .project-pagination {
  visibility: hidden;
}

.project-plus {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 2px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.project-plus-icon {
  position: relative;
  top: 0.5px;
  display: block;
  width: 14px;
  height: 14px;
  background: #ffffff;
  -webkit-mask: url("assets/svg/plus_1.svg") center / contain no-repeat;
  mask: url("assets/svg/plus_1.svg") center / contain no-repeat;
  transform-origin: center;
  transition: transform 160ms ease;
}

.project-plus:hover .project-plus-icon,
.project-plus:focus-visible .project-plus-icon {
  background: #aaaaaa;
}

.project-plus[aria-expanded="true"] .project-plus-icon {
  transform: rotate(45deg);
}

.project-copy-overlay {
  position: fixed;
  z-index: 30;
  inset: 0;
  background: #000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.project-copy-overlay::before {
  content: "";
  position: fixed;
  z-index: 35;
  top: 0;
  right: 0;
  left: 0;
  height: 36px;
  background: #000000;
  pointer-events: none;
}

.project-copy-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.project-copy-languages {
  position: fixed;
  z-index: 40;
  top: 10px;
  left: calc(66.6667% + 4px);
  display: flex;
  align-items: baseline;
  gap: 0;
  transform: none;
}

.project-copy-language-separator {
  color: #aaaaaa;
  font-family: "PingFang SC", "苹方-简", "Hiragino Sans GB", sans-serif;
  font-size: 10pt;
  font-weight: 400;
  line-height: 1.04;
}

.project-copy-language {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 10pt;
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.04;
  cursor: pointer;
}

.project-copy-language[data-language="zh"] {
  font-family: "PingFang SC", "苹方-简", "Hiragino Sans GB", sans-serif;
  font-size: 10pt;
  letter-spacing: 0;
}

.project-copy-language[data-language="en"] {
  font-family: "SF Pro", Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: .05em;
}

.project-copy-language.is-active,
.project-copy-language:hover,
.project-copy-language:focus-visible {
  color: #aaaaaa;
}

.project-copy-content {
  --project-copy-line-height: 1.6;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: 48px;
  width: calc(100vw - 72px);
  margin: 0 36px 0 var(--project-edge);
  padding: 82px 0 96px;
  color: #aaaaaa;
  font-family: "SF Pro", "PingFang SC", "苹方-简", "Hiragino Sans GB", Arial, Helvetica, sans-serif;
  font-size: 10pt;
  font-weight: 400;
  line-height: var(--project-copy-line-height);
  letter-spacing: 0;
}

.project-copy-content.is-english {
  font-family: "SF Pro", Arial, Helvetica, sans-serif;
}

.project-copy-text {
  margin: 0;
  font-family: "PingFang SC", "苹方-简", "Hiragino Sans GB", sans-serif;
  font-size: 20pt;
  font-weight: 300;
  line-height: 1.25;
  white-space: pre-wrap;
}

.project-copy-details {
  display: grid;
  align-self: start;
  align-content: start;
  grid-auto-rows: max-content;
  row-gap: 0;
  margin: 0;
  line-height: inherit;
}

.project-copy-detail {
  display: grid;
  grid-template-columns: minmax(96px, 160px) minmax(0, 1fr);
  column-gap: 36px;
}

.project-copy-detail dt,
.project-copy-detail dd {
  margin: 0;
  line-height: inherit;
}

.project-tag {
  color: #ffffff;
  text-decoration: none;
}

.project-tag-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-tag:hover,
.project-tag:focus-visible {
  color: #aaaaaa;
}

.project-title.is-chinese {
  font-family: "SF Pro", "PingFang SC", "苹方-简", "Hiragino Sans GB", Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.project-gallery {
  display: flex;
  width: 100%;
  height: 100svh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.project-gallery::-webkit-scrollbar { display: none; }

.project-slide {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 64px 5vw;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.project-media {
  display: block;
  width: auto;
  height: auto;
  max-width: min(88vw, 1600px);
  max-height: calc(100svh - 128px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  cursor: pointer;
}

.video-play-button {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.video-play-icon {
  display: block;
  width: 20px;
  height: 23.09px;
  background: #ffffff;
  -webkit-mask: url("assets/svg/play.svg") center / contain no-repeat;
  mask: url("assets/svg/play.svg") center / contain no-repeat;
}

.video-play-button:hover .video-play-icon,
.video-play-button:focus-visible .video-play-icon {
  background: #aaaaaa;
}

.project-slide.is-playing .video-play-button {
  visibility: hidden;
  pointer-events: none;
}

.project-missing {
  margin: auto;
  font-size: 12px;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  :root { --edge: 9px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-page { padding: 58px var(--edge) 52px; }
  .project-layout { grid-template-columns: 1fr; }
  .project-visual { min-height: auto; aspect-ratio: 3 / 4; }
  .project-visual img { max-height: none; }
  .project-info { min-height: 180px; }
  .project-copy-content {
    display: block;
  }
  .project-copy-details {
    margin-top: 32px;
  }
  .project-slide { padding: 52px 16px; }
  .project-media {
    max-width: calc(100vw - 32px);
    max-height: calc(100svh - 104px);
  }
}
