:root {
  --bg: #20201e;
  --ink: #f1eadb;
  --muted: #bdb3a3;
  --quiet: #8e877d;
  --line: rgba(241, 234, 219, 0.16);
  --panel: rgba(241, 234, 219, 0.04);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: auto;
}

@view-transition {
  navigation: none;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

main,
.site-footer {
  animation: content-enter 240ms ease both;
  transition: opacity 180ms ease;
}

body.is-leaving main,
body.is-leaving .site-footer {
  opacity: 0;
}

@keyframes content-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

a,
button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 130ms ease,
    border-color 130ms ease,
    background 130ms ease,
    opacity 130ms ease,
    transform 130ms ease,
    filter 130ms ease;
}

a {
  display: inline-block;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(16px, 3.8vw, 56px) 0;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 26px);
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 23px);
}

.brand {
  flex: 0 0 auto;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 650;
  line-height: 1;
}

.site-nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: currentColor;
  outline: none;
}

.home-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px clamp(20px, 5vw, 72px) 52px;
}

.home-hero {
  width: min(980px, 100%);
  display: grid;
  justify-items: center;
  gap: clamp(34px, 6vh, 68px);
  text-align: center;
}

.home-image {
  width: min(760px, 82vw);
  max-height: 58vh;
  object-fit: contain;
  opacity: 0.94;
}

.home-work-button {
  position: relative;
  width: clamp(28px, 3.4vw, 42px);
  aspect-ratio: 1;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.home-work-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.home-work-button:hover,
.home-work-button:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  outline: none;
}

.page-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 124px 0 84px;
}

.page-title {
  padding: 72px 0 78px;
  border-bottom: 1px solid var(--line);
}

.page-title h1 {
  margin: 0;
  font-size: clamp(58px, 11vw, 142px);
  font-weight: 430;
  line-height: 0.9;
}

.work-year,
dt,
.info-list span,
.timeline time {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
  text-transform: uppercase;
}

.section-label {
  color: var(--quiet);
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 720;
  line-height: 1.15;
  text-transform: uppercase;
}

.works-list {
  display: grid;
  gap: 0;
}

.work {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.media-button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.media-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.88;
  transition:
    filter 180ms ease,
    opacity 180ms ease;
}

.media-button:hover img,
.media-button:focus-visible img {
  filter: grayscale(0%);
  opacity: 1;
}

.media-button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 6px;
}

.work-copy {
  min-width: 0;
}

.work h2,
.poster h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 430;
  line-height: 1.08;
}

.work-year {
  margin: 0 0 12px;
}

.work-copy > p:not(.work-year) {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

dl {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.work-video {
  width: min(520px, 100%);
  margin-top: 28px;
  border: 1px solid var(--line);
  background: #000000;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 48px 0 0;
}

.poster {
  min-width: 0;
}

.poster h2 {
  margin-top: 10px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 96px);
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
}

.section-label {
  align-self: start;
}

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

.profile-copy p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.profile-copy p + p {
  margin-top: 28px;
}

.timeline,
.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li,
.info-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline p,
.info-list p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.timeline strong,
.timeline em {
  color: var(--ink);
  font-style: normal;
  font-weight: 480;
}

.en,
.zh {
  display: block;
}

.zh {
  margin-top: 5px;
  color: var(--ink);
}

.about-footer {
  display: grid;
  gap: 26px;
  justify-items: end;
  padding: 76px 0 0;
}

.about-footer a {
  width: max-content;
  max-width: 100%;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.25;
  overflow-wrap: anywhere;
  border-bottom: 1px solid transparent;
}

.about-footer a:hover,
.about-footer a:focus-visible {
  color: var(--ink);
  border-bottom-color: currentColor;
  outline: none;
}

.site-footer {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.lightbox {
  width: min(1120px, calc(100% - 40px));
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: transparent;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.36);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header {
    padding: 20px 24px 0;
  }

  .home-main {
    padding-top: 42px;
  }

  .page-shell {
    width: min(720px, calc(100% - 40px));
    padding-top: 54px;
  }

  .page-title {
    padding-top: 30px;
  }

  .work,
  .about-section,
  .timeline li,
  .info-list div {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-label {
    position: static;
  }

  .work-video {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .site-header {
    display: flex;
    align-items: flex-start;
    min-height: 0;
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand {
    font-size: 19px;
  }

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

  .home-main {
    min-height: calc(100vh - 48px);
    padding-right: 22px;
    padding-left: 22px;
  }

  .home-image {
    width: 100%;
    max-height: 44vh;
  }

  .page-shell {
    width: min(326px, calc(100% - 64px));
    margin-right: 32px;
    margin-left: 32px;
  }

  .page-title h1 {
    font-size: 58px;
  }

  .work {
    padding: 36px 0;
  }

  .work h2,
  .poster h2,
  .about-copy h2 {
    font-size: 30px;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .poster-grid {
    grid-template-columns: 1fr;
  }

  .profile-copy p {
    font-size: 20px;
  }

  .about-footer {
    justify-items: start;
    padding-top: 58px;
  }

  .about-footer a {
    width: 100%;
    font-size: 17px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .site-footer {
    width: min(326px, calc(100% - 64px));
    padding-bottom: 22px;
    text-align: left;
  }
}
