@import url("typography.css");

:root {
  color-scheme: light;
  --ink: #202020;
  --muted: #8a8a8a;
  --soft: #f5f5f2;
  --line: #deded8;
  --paper: #fbfbf8;
  --entry-overlay: rgba(122, 136, 150, 0.58);
  --main-content-max: 1180px;
  --main-content-gutter: 220px;
  --side-width: 246px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

html.project-lightbox-open {
  scrollbar-gutter: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line-height);
  letter-spacing: var(--type-body-letter-spacing);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.entry-page {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #202832;
}

.entry-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

.entry-slides,
.entry-slide {
  position: absolute;
  inset: 0;
}

.entry-slide {
  margin: 0;
  opacity: 0;
  transition: opacity 1200ms ease;
}

.entry-slide.is-active {
  opacity: 1;
}

.entry-slide img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.95) brightness(0.78);
  transform: scale(1.01);
}

.entry-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  padding: 12px 28px 12px 16px;
  color: #fff;
  background: var(--entry-overlay);
  transform: translate(-50%, -50%);
  transition: background 180ms ease, transform 180ms ease;
}

.entry-brand:hover {
  background: rgba(122, 136, 150, 0.72);
  transform: translate(-50%, -50%) scale(1.015);
}

.entry-logo {
  display: grid;
  grid-template-columns: repeat(2, 0.7em);
  place-content: center;
  place-items: center;
  gap: 2px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: var(--type-entry-logo-weight);
  line-height: var(--type-entry-logo-line-height);
  letter-spacing: 0;
}

.entry-name {
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
  font-size: var(--type-entry-name-size);
  font-weight: var(--type-entry-name-weight);
  letter-spacing: var(--type-entry-name-letter-spacing);
}

.entry-name span:last-child {
  font-size: var(--type-entry-name-sub-size);
  letter-spacing: var(--type-entry-name-sub-letter-spacing);
}

.inside-page {
  min-height: 100vh;
  padding-right: var(--side-width);
  background: var(--paper);
}

.home-page {
  overflow: hidden;
}

.side-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: var(--side-width);
  padding: 64px 40px 48px 34px;
  background: rgba(251, 251, 248, 0.94);
}

.side-brand {
  display: grid;
  gap: 14px;
  width: 112px;
  margin-bottom: 58px;
  color: var(--muted);
}

.side-brand-cn {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: #6f6f6b;
  font-size: var(--type-brand-cn-size);
  font-weight: var(--type-brand-cn-weight);
  line-height: var(--type-brand-cn-line-height);
}

.side-brand-en {
  width: 100%;
  font-size: var(--type-brand-en-size);
  font-weight: var(--type-brand-en-weight);
  letter-spacing: var(--type-brand-en-letter-spacing);
  white-space: nowrap;
}

.side-brand-logo {
  width: 154px;
}

.side-brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.side-links {
  display: grid;
  gap: 22px;
  color: var(--muted);
  font-size: var(--type-nav-size);
  font-weight: var(--type-nav-weight);
  letter-spacing: var(--type-nav-letter-spacing);
  line-height: var(--type-nav-line-height);
}

.side-links a {
  display: block;
  width: 3.6em;
  overflow: visible;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  transition: color 160ms ease;
}

.side-links a[data-spaced-nav] {
  display: flex;
  justify-content: space-between;
}

.side-links a[data-spaced-nav="true"] .nav-char {
  flex: 0 0 1em;
  text-align: center;
}

.side-links a[data-spaced-nav="language"] .nav-char {
  flex: 0 0 auto;
  text-align: left;
}

.side-links a[data-spaced-nav="language"] .nav-char-latin {
  letter-spacing: 0.02em;
}

body[data-lang="en"] .side-links a {
  letter-spacing: 0.055em;
}

.side-links a:hover,
.side-links a.is-active,
.stream-item:hover h2 {
  color: #3f3f3b;
}

.side-links a.is-active {
  font-weight: var(--type-nav-active-weight);
}

.content-flow,
.works-flow,
.project-detail-flow {
  width: min(calc(100% - var(--main-content-gutter)), var(--main-content-max));
  margin: 0 auto;
}

.content-flow {
  padding: 84px 0 86px;
}

.works-flow {
  padding: clamp(62px, 8vw, 96px) 0 clamp(86px, 10vw, 132px);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

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

.work-card img {
  height: 100%;
  object-fit: cover;
  transition: filter 240ms ease, transform 420ms ease;
}

.work-card::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
  opacity: 0;
  content: "";
  transition: opacity 220ms ease;
}

.work-title {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  z-index: 1;
  color: #fff;
  font-size: var(--type-work-title-size);
  font-weight: var(--type-work-title-weight);
  line-height: var(--type-work-title-line-height);
  text-align: center;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.work-title-name,
.work-title-meta,
.work-title-date,
.work-title-location {
  display: block;
}

.work-title-meta {
  position: absolute;
  top: calc(100% + 1em);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  font-size: calc(var(--type-work-title-size) - 3px);
  opacity: 0.72;
}

.work-card:hover img {
  filter: saturate(0.78) contrast(0.94);
  transform: scale(1.018);
}

.work-card:hover::after,
.work-card:hover .work-title,
.work-card:focus-visible::after,
.work-card:focus-visible .work-title {
  opacity: 1;
}

.work-card:hover .work-title,
.work-card:focus-visible .work-title {
  transform: translateY(-50%);
}

.home-carousel-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(36px, 5vw, 68px) 0;
}

.home-copyright {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  margin: 0;
  color: #777;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.home-carousel {
  position: relative;
  width: min(calc(100% - var(--main-content-gutter)), var(--main-content-max));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
}

.home-carousel-track,
.home-slide {
  position: absolute;
  inset: 0;
}

.home-slide {
  display: block;
  background: var(--soft) url("../../assets/reference/chunya-library-poster.jpg") center / cover no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 720ms ease;
}

.home-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-slide img,
.home-slide video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--soft) url("../../assets/reference/chunya-library-poster.jpg") center / cover no-repeat;
  object-fit: cover;
}

.home-slide::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0));
  content: "";
  pointer-events: none;
}

.home-page .home-slide::after {
  display: none;
}

.home-slide-title {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  bottom: clamp(22px, 4vw, 48px);
  z-index: 2;
  display: grid;
  gap: 4px;
  max-width: min(680px, calc(100% - 112px));
  color: #fff;
  font-size: var(--type-home-title-size);
  font-weight: var(--type-home-title-weight);
  line-height: var(--type-home-title-line-height);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.28);
}

.home-slide-title span:last-child {
  font-size: var(--type-home-subtitle-size);
  letter-spacing: var(--type-home-subtitle-letter-spacing);
}

.home-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 92px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.home-carousel-arrow span {
  display: block;
  width: 28px;
  height: 28px;
  border-top: 2px solid rgba(255, 255, 255, 0.82);
  border-left: 2px solid rgba(255, 255, 255, 0.82);
  transition: border-color 160ms ease;
}

.home-carousel-arrow:hover span {
  border-color: #fff;
}

.home-carousel-prev {
  left: 22px;
}

.home-carousel-prev span {
  transform: rotate(-45deg);
}

.home-carousel-next {
  right: 22px;
}

.home-carousel-next span {
  transform: rotate(135deg);
}

.intro-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(42px, 8vw, 112px);
  margin-bottom: 72px;
}

.page-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(42px, 8vw, 112px);
  margin-bottom: clamp(56px, 8vw, 96px);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-kicker-size);
  font-weight: var(--type-kicker-weight);
  letter-spacing: var(--type-kicker-letter-spacing);
}

.intro-panel h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: var(--type-section-title-size);
  font-weight: var(--type-section-title-weight);
  line-height: var(--type-section-title-line-height);
}

.page-head h1 {
  max-width: 820px;
  margin: 0;
  font-size: var(--type-page-title-size);
  font-weight: var(--type-page-title-weight);
  line-height: var(--type-page-title-line-height);
}

.page-head p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: #555;
  font-size: var(--type-body-copy-size);
}

.intro-panel p:not(.eyebrow),
.info-grid p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #555;
  font-size: var(--type-body-copy-size);
}

.project-stream {
  display: grid;
  gap: clamp(62px, 9vw, 118px);
  margin-bottom: clamp(74px, 11vw, 128px);
}

.stream-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: end;
}

.stream-item.is-large {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.stream-item figure {
  margin: 0;
  overflow: hidden;
  background: var(--soft);
}

.stream-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.stream-item:hover img {
  filter: saturate(0.94);
  transform: scale(1.018);
}

.stream-item:not(.is-large) figure {
  aspect-ratio: 16 / 9;
}

.stream-item.is-large figure {
  width: min(100%, 980px);
  margin: 0 auto;
  aspect-ratio: 16 / 10;
}

.stream-caption {
  padding-bottom: 4px;
}

.stream-caption span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: var(--type-kicker-size);
  font-weight: var(--type-section-title-weight);
}

.stream-caption h2 {
  margin: 0 0 4px;
  font-size: var(--type-card-title-size);
  font-weight: var(--type-card-title-weight);
  line-height: var(--type-card-title-line-height);
  transition: color 160ms ease;
}

.stream-caption p {
  margin: 0;
  color: #666;
  font-size: var(--type-small-copy-size);
  line-height: var(--type-small-copy-line-height);
}

.info-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(42px, 8vw, 112px);
  border-top: 1px solid var(--line);
  padding: 30px 0;
  scroll-margin-top: 42px;
}

.info-grid h2 {
  margin: 0 0 8px;
  font-size: var(--type-card-title-size);
  font-weight: var(--type-card-title-weight);
  line-height: var(--type-card-title-line-height);
}

.events-list {
  display: grid;
  gap: clamp(58px, 8vw, 96px);
}

.event-item {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

.event-item:nth-child(even) .event-thumb {
  grid-column: 3;
}

.event-item:nth-child(even) .event-copy {
  grid-column: 2;
  grid-row: 1;
}

.event-copy {
  grid-column: 2;
  text-align: center;
}

.event-date {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: var(--type-kicker-size);
  font-weight: var(--type-kicker-weight);
  letter-spacing: var(--type-kicker-letter-spacing);
}

.event-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--soft);
}

.event-thumb img {
  height: 100%;
  object-fit: cover;
  transition: filter 240ms ease, transform 420ms ease;
}

.event-title {
  margin: 0;
  font-size: 20px;
  font-weight: var(--type-card-title-weight);
  line-height: var(--type-card-title-line-height);
}

.event-title a {
  transition: color 160ms ease;
}

.event-item:hover .event-thumb img,
.event-thumb:focus-visible img {
  filter: saturate(0.88);
  transform: scale(1.018);
}

.event-title a:hover,
.event-title a:focus-visible {
  color: #3f3f3b;
}

.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(34px, 6vw, 78px);
  align-items: end;
}

.feature-block figure {
  margin: 0;
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 16 / 10;
}

.feature-block img {
  height: 100%;
  object-fit: cover;
}

.feature-block h2 {
  margin: 10px 0 10px;
  font-size: var(--type-section-title-size);
  font-weight: var(--type-section-title-weight);
  line-height: var(--type-section-title-line-height);
}

.feature-block p:not(.eyebrow) {
  margin: 0;
  color: #555;
  font-size: var(--type-body-size);
}

.lounge-flow {
  width: min(calc(100% - var(--main-content-gutter)), var(--main-content-max));
  margin: 0 auto;
  padding: 84px 0 86px;
}

.lounge-list {
  display: grid;
  gap: clamp(58px, 8vw, 92px);
}

.lounge-item {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 58px);
  align-items: start;
}

.lounge-thumb {
  display: block;
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 4 / 3;
}

.lounge-thumb img {
  height: 100%;
  object-fit: cover;
  transition: filter 260ms ease, transform 420ms ease;
}

.lounge-copy {
  display: flex;
  flex-direction: column;
  max-width: 680px;
  min-height: 225px;
}

.lounge-meta {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: var(--type-caption-size);
  line-height: 1.5;
}

.lounge-bottom {
  margin-top: auto;
}

.lounge-title {
  display: block;
}

.lounge-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: var(--type-card-title-weight);
  line-height: 1.5;
  transition: color 160ms ease;
}

.lounge-bottom p:not(.lounge-meta) {
  margin: 0;
  color: #555;
  font-size: var(--type-body-copy-size);
  line-height: 1.5;
}

.lounge-item:hover .lounge-title h2 {
  color: #3f3f3b;
}

.lounge-item:hover .lounge-thumb img {
  filter: saturate(0.88);
  transform: scale(1.018);
}

.about-flow {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  align-items: start;
  gap: clamp(42px, 7vw, 84px);
}

.about-copy-column {
  display: grid;
  gap: clamp(42px, 7vw, 84px);
}

.about-text-section {
  max-width: 760px;
}

.about-principals-section {
  max-width: 760px;
}

.about-section-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: var(--type-body-copy-size);
  font-weight: 500;
  line-height: var(--type-body-copy-line-height);
  letter-spacing: 0.12em;
}

.about-copy,
.about-principals {
  color: #444;
  font-size: var(--type-body-copy-size);
  line-height: 1.6;
}

.about-copy p,
.about-principals p {
  margin: 0;
}

.about-copy .about-spaced-copy {
  margin-top: 1.7em;
}

.about-principals {
  display: grid;
  gap: 28px;
}

.about-principals article {
  display: grid;
  gap: 2px;
}

.about-team-photo {
  max-width: 210px;
  margin: 0;
}

.about-team-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.contact-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 42%);
  grid-template-areas:
    "details map"
    "message message";
  align-items: start;
  column-gap: clamp(46px, 7vw, 84px);
  row-gap: clamp(42px, 6vw, 76px);
}

.contact-map {
  grid-area: map;
  width: 100%;
  max-width: 520px;
  margin: 0;
}

.contact-map svg {
  display: block;
  width: 100%;
  height: auto;
  background: #efefef;
}

.contact-map img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.contact-details {
  grid-area: details;
  max-width: 760px;
  color: #444;
  font-size: var(--type-body-copy-size);
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.contact-details h1 {
  margin: 0 0 28px;
  color: #444;
  font-size: var(--type-body-copy-size);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.contact-details p {
  margin: 0 0 12px;
}

.contact-details span {
  color: #444;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--ink);
}

.wechat-qr-trigger {
  position: relative;
  display: inline-block;
  color: inherit;
  cursor: default;
}

.wechat-qr-trigger:focus {
  outline: none;
}

.wechat-qr-trigger:focus-visible {
  outline: 1px solid #9d9d94;
  outline-offset: 3px;
}

.wechat-qr {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  z-index: 2;
  width: 156px;
  max-width: none;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(32, 32, 32, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.wechat-qr-trigger:hover .wechat-qr,
.wechat-qr-trigger:focus .wechat-qr {
  opacity: 1;
  transform: translateY(0);
}

.contact-message {
  grid-area: message;
  width: 100%;
  margin-top: 0;
}

.message-form {
  display: grid;
  justify-items: center;
  width: 100%;
}

.message-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.message-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
}

.message-contact-fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: var(--type-caption-size);
  letter-spacing: 0.06em;
}

.message-contact-fields input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: transparent;
  color: #444;
  font: inherit;
}

.message-contact-fields input:focus {
  outline: none;
  border-color: #9d9d94;
  background: rgba(255, 255, 255, 0.38);
}

.message-honeypot {
  position: absolute;
  left: -9999px;
}

.message-form textarea {
  display: block;
  width: 100%;
  min-height: clamp(168px, 22vw, 260px);
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: transparent;
  color: #444;
  font: inherit;
  font-size: var(--type-body-copy-size);
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.message-form textarea::placeholder {
  color: rgba(98, 103, 108, 0.42);
}

.message-form textarea:focus::placeholder {
  color: transparent;
}

.message-form textarea:focus {
  outline: none;
  border-color: #9d9d94;
  background: rgba(255, 255, 255, 0.38);
}

.message-submit {
  display: inline-grid;
  place-items: center;
  min-width: 112px;
  min-height: 38px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  background: #9d9d94;
  color: #fff;
  font: inherit;
  font-size: var(--type-body-copy-size);
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.message-submit:hover,
.message-submit:focus-visible {
  color: #fff;
  background: #85857d;
}

.message-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.message-status {
  min-height: 1.7em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--type-caption-size);
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 560px) {
  .message-contact-fields { grid-template-columns: 1fr; }
}

.project-detail-flow {
  padding: 8px 0 clamp(88px, 10vw, 132px);
}

.detail-head {
  display: block !important;
  margin-bottom: clamp(42px, 6vw, 64px);
}

.detail-head > .eyebrow {
  display: none;
}

.detail-head > div {
  margin-left: 0;
}

.detail-head h1 {
  max-width: 820px;
  margin: 0 0 6px;
  font-size: var(--type-detail-title-size);
  font-weight: var(--type-detail-title-weight);
  line-height: var(--type-detail-title-line-height);
}

.detail-title-en {
  display: none;
}

.detail-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  max-width: 760px;
  border-top: 0;
  border-bottom: 0;
  padding: 0;
  margin-bottom: clamp(52px, 7vw, 82px);
}

.detail-meta div {
  display: flex;
  gap: 0;
  align-items: baseline;
}

.detail-meta dt {
  flex: 0 0 auto;
  color: #777;
  font-size: 14px;
  line-height: 1.7;
}

.detail-meta dt::after {
  content: "：";
}

.detail-meta dt span,
.detail-intro-label span {
  display: block;
}

.detail-meta dt span:first-child {
  display: inline;
}

.detail-meta dt span:nth-child(2),
.detail-intro-label span:nth-child(2) {
  display: none;
}

body[data-lang="en"] .detail-meta dt span:first-child,
body[data-lang="en"] .detail-intro-label span:first-child {
  display: none;
}

body[data-lang="en"] .detail-meta dt span:nth-child(2),
body[data-lang="en"] .detail-intro-label span:nth-child(2) {
  display: block;
}

body[data-lang="en"] .detail-meta dt span:nth-child(2) {
  display: inline;
}

.detail-meta dd {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #777;
  font-size: 14px;
  line-height: 1.7;
}

.detail-copy {
  display: block;
  max-width: 760px;
  margin-bottom: clamp(54px, 8vw, 92px);
}

.detail-intro-label {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.detail-copy p {
  margin: 0 0 10px;
  color: #444;
  font-size: 14px;
  line-height: 1.6;
}

.detail-image-stack {
  display: grid;
  gap: clamp(34px, 6vw, 72px);
  margin-bottom: clamp(62px, 9vw, 108px);
}

.detail-image-stack figure {
  margin: 0;
}

.detail-image-stack img {
  max-height: 78vh;
  object-fit: contain;
  background: transparent;
}

.detail-image-stack figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--type-caption-size);
  line-height: var(--type-small-copy-line-height);
  text-align: center;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  appearance: none;
  cursor: zoom-in;
}

.gallery-button img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-button:hover img {
  filter: saturate(0.86);
  transform: scale(1.02);
}

.project-carousel {
  container-type: inline-size;
  margin-bottom: clamp(46px, 7vw, 86px);
}

.project-carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #fff;
}

.project-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.project-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.project-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  cursor: zoom-in;
}

.project-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: clamp(21px, 2.5vw, 31px);
  height: clamp(31px, 3.5vw, 46px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.project-carousel-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(12px, 1.5vw, 19px);
  height: clamp(12px, 1.5vw, 19px);
  border-top: 2px solid #8a8a8a;
  transition: border-color 160ms ease;
}

.project-carousel-arrow:hover::before {
  border-color: #444;
}

.project-carousel-prev {
  left: clamp(12px, 2vw, 26px);
}

.project-carousel-next {
  right: clamp(12px, 2vw, 26px);
}

.project-carousel-prev::before {
  left: 6px;
  border-left: 2px solid #8a8a8a;
  transform: translateY(-50%) rotate(-45deg);
}

.project-carousel-next::before {
  right: 6px;
  border-right: 2px solid #8a8a8a;
  transform: translateY(-50%) rotate(45deg);
}

.project-carousel-thumbs {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: calc(100cqw / 12);
  margin-top: 14px;
  overflow-x: auto;
  background: #fff;
  scrollbar-width: thin;
}

.project-carousel-thumb {
  display: block;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: #fff;
  cursor: pointer;
  opacity: 0.62;
  overflow: hidden;
  transition: opacity 160ms ease, border-color 160ms ease;
}

.project-carousel-thumb.is-active,
.project-carousel-thumb:hover {
  border-bottom-color: #8f8f88;
  opacity: 1;
}

.project-carousel-thumb img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.project-detail-page .detail-head {
  margin-bottom: 14px;
}

.project-detail-page .detail-head h1,
.project-detail-page .detail-copy,
.project-detail-page .detail-meta {
  max-width: 100%;
}

.project-detail-page .detail-copy {
  margin-bottom: clamp(58px, 7vw, 92px);
}

.project-detail-page .detail-meta {
  margin-bottom: 0;
  padding-top: 0;
  border-top: 0;
}

.project-detail-page .detail-head [lang="en"],
.project-detail-page .detail-copy [lang="en"],
.project-detail-page .detail-meta dd [lang="en"] {
  display: none;
}

body[data-lang="en"].project-detail-page .detail-head [lang="zh-CN"],
body[data-lang="en"].project-detail-page .detail-copy [lang="zh-CN"],
body[data-lang="en"].project-detail-page .detail-meta dd [lang="zh-CN"] {
  display: none;
}

body[data-lang="en"].project-detail-page .detail-head [lang="en"],
body[data-lang="en"].project-detail-page .detail-meta dd [lang="en"] {
  display: inline;
}

body[data-lang="en"].project-detail-page .detail-copy p[lang="en"] {
  display: block;
}

.project-detail-page .detail-copy p.detail-section-break {
  margin-top: 44.8px;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 7vh, 76px) clamp(60px, 6vw, 110px);
  background: #000;
  opacity: 0;
  transition: opacity 220ms ease;
}

.project-lightbox.is-open {
  display: flex;
  opacity: 1;
}

.project-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-lightbox.is-animating .project-lightbox-image {
  opacity: 0;
}

.project-lightbox-button {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease;
}

.project-lightbox-button:hover {
  color: #fff;
}

.project-lightbox-close {
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  font-size: 42px;
  line-height: 1;
}

.project-lightbox-prev,
.project-lightbox-next {
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translateY(-50%);
}

.project-lightbox-prev {
  left: 28px;
}

.project-lightbox-next {
  right: 28px;
}

.project-lightbox-prev::before,
.project-lightbox-next::before {
  content: "";
  width: 42px;
  height: 2px;
  background: currentColor;
}

.project-lightbox-prev::after,
.project-lightbox-next::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-top: 2px solid currentColor;
}

.project-lightbox-prev::after {
  left: 16px;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

.project-lightbox-next::after {
  right: 16px;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.project-lightbox-clone {
  position: fixed;
  z-index: 41;
  object-position: center;
  transition: left 360ms ease, top 360ms ease, width 360ms ease, height 360ms ease;
}

@media (max-width: 620px) {
  .project-lightbox {
    padding: 48px 18px;
  }

  .project-lightbox-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 34px;
  }

  .project-lightbox-prev,
  .project-lightbox-next {
    width: 48px;
    height: 58px;
  }

  .project-lightbox-prev {
    left: 0;
  }

  .project-lightbox-next {
    right: 0;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 86px;
  background: #000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1280px);
  max-height: 86vh;
  object-fit: contain;
}

.lightbox-button {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease;
}

.lightbox-button:hover {
  color: #fff;
}

.lightbox-close {
  top: 22px;
  right: 28px;
  font-size: var(--type-lightbox-close-size);
  line-height: var(--type-entry-logo-line-height);
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 64px;
  height: 64px;
  font-size: var(--type-lightbox-arrow-size);
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

@media (max-width: 980px) {
  :root {
    --main-content-gutter: 48px;
    --side-width: 100%;
  }

  .inside-page {
    padding-right: 0;
    padding-top: 134px;
  }

  .home-page {
    overflow: auto;
  }

  .side-nav {
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    min-height: 118px;
    padding: 26px 28px 24px;
    border-bottom: 1px solid rgba(222, 222, 216, 0.72);
  }

  .side-brand {
    margin-bottom: 20px;
  }

  .side-brand-logo {
    width: 174px;
  }

  .side-links {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .side-links a {
    width: auto;
    letter-spacing: 0;
  }

  .side-links a[data-spaced-nav] {
    display: block;
  }

  .content-flow {
    padding-top: 42px;
  }

  .lounge-flow {
    width: min(calc(100% - var(--main-content-gutter)), var(--main-content-max));
    margin: 0 auto;
    padding-top: 42px;
  }

  .works-flow {
    padding-top: 48px;
  }

  .project-detail-flow {
    padding-top: 8px;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px;
  }

  .home-carousel-shell {
    min-height: calc(100vh - 134px);
    padding: 28px 0 40px;
  }

  .intro-panel,
  .page-head,
  .detail-head,
  .detail-copy,
  .feature-block,
  .about-flow,
  .about-principals-section,
  .contact-flow,
  .info-grid,
  .lounge-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-flow {
    grid-template-areas:
      "details"
      "map"
      "message";
    row-gap: 28px;
  }

  .event-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .event-copy,
  .event-item:nth-child(even) .event-copy {
    grid-column: 2;
  }

  .event-item:nth-child(even) .event-thumb {
    grid-column: 1;
    grid-row: 1;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

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

  .stream-item,
  .stream-item.is-large {
    grid-template-columns: 1fr;
    gap: 16px;
  }

}

@media (max-width: 620px) {
  :root {
    --main-content-gutter: 36px;
  }

  .entry-shell {
    min-height: 100vh;
  }

  .entry-brand {
    width: calc(100% - 56px);
    justify-content: center;
    padding: 14px 16px;
  }

  .entry-name {
    display: grid;
    gap: 4px;
    font-size: var(--type-mobile-entry-name-size);
    letter-spacing: var(--type-mobile-entry-name-letter-spacing);
  }

  .works-flow {
    padding-top: 34px;
  }

  .lounge-flow {
    padding-top: 34px;
  }

  .lounge-copy {
    min-height: 0;
  }

  .project-detail-flow {
    padding-top: 8px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .lightbox {
    padding: 42px 18px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: var(--type-mobile-section-title-size);
  }

  .home-carousel-shell {
    padding: 22px 0 34px;
  }

  .home-carousel {
    aspect-ratio: 4 / 3;
  }

  .home-slide-title {
    max-width: calc(100% - 52px);
    font-size: var(--type-mobile-home-title-size);
  }

  .home-carousel-arrow {
    width: 42px;
    height: 70px;
  }

  .home-carousel-arrow span {
    width: 20px;
    height: 20px;
  }

  .home-carousel-prev {
    left: 8px;
  }

  .home-carousel-next {
    right: 8px;
  }

  .intro-panel h1 {
    font-size: var(--type-mobile-lightbox-arrow-size);
  }

  .stream-caption h2 {
    font-size: var(--type-mobile-card-title-size);
  }

  .lounge-title h2 {
    font-size: 20px;
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .event-copy,
  .event-item:nth-child(even) .event-copy,
  .event-item:nth-child(even) .event-thumb {
    grid-column: 1;
    grid-row: auto;
  }
}
