
@font-face {
  font-family: 'Vujahday Script';
  src: url('./8e226b9e230cc92b.woff2') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('./9f97396d5bd587cf.woff2') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('./d3218e53694ffe2a.woff2') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('./e439a784b5bb505a.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Slab';
  src: url('./86db74acaa27ab1a.woff2') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'HYQiHei Display';
  src: url('./51d3b1e2fd6285f8.woff2') format('truetype');
  font-weight: 700;
}

@font-face {
  font-family: 'HYQiHei Text';
  src: url('./77d4959b44c0036f.woff2') format('truetype');
  font-weight: 400;
}

:root {
  color-scheme: dark;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: #0d0d0d;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

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

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background: #0d0d0d;
}

html {
  scroll-behavior: smooth;
}

.site-header {
  position: absolute;
  inset: 16px 40px auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  font: 500 14px/20px Inter, sans-serif;
  letter-spacing: -0.28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  text-decoration: none;
}

.site-brand img {
  display: block;
}

@property --contact-orbit {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.contact-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 32px;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.contact-button span {
  opacity: 0.7;
  transition: opacity 160ms ease;
}

.contact-button::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--contact-orbit),
    transparent 0deg 240deg, rgb(255 255 255 / 18%) 280deg,
    #fff 315deg, rgb(255 255 255 / 18%) 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  animation: contact-orbit 2.4s linear infinite paused;
  transition: opacity 160ms ease;
}

.contact-button:is(:hover, :focus-visible) span {
  opacity: 1;
}

.contact-button:is(:hover, :focus-visible)::before {
  opacity: 1;
  animation-play-state: running;
}

.contact-button:focus-visible,
.site-brand:focus-visible,
.contact-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@keyframes contact-orbit {
  to { --contact-orbit: 360deg; }
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.background-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 900ms;
}

.background-layer.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s, 0s;
}

.background-layer.default-background::after {
  content: none;
}

.default-background { background: #0d0d0d; }

.default-background-media {
  position: absolute;
  inset: 0 20px auto;
}

.default-background-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* The wide blur is baked into tiny WebP files before browser rendering. */
.background-cover {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  pointer-events: none;
}

.background-tint {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.background-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 12%,
    rgb(0 0 0 / 24%), rgb(0 0 0 / 0%) 72%);
}

.background-layer[data-foreground='dark']::after {
  background: radial-gradient(ellipse at 50% 12%,
    rgb(255 255 255 / 8%), rgb(255 255 255 / 0%) 72%);
}

body.is-modal-open {
  overflow: hidden;
}

main {
  min-height: 100svh;
  padding-block: 0 64px;
  display: flex;
  flex-direction: column;
  /* Clip edge cards without a scroll container that focus can move. */
  overflow: clip;
}

.project-header {
  --header-title-size: clamp(40px, calc(100vw / 22.5), 64px);
  --identity-height: calc(var(--header-title-size) * 2.625 + 16px);
  --project-stack-height: 132px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: 330px;
  flex: none;
  padding-inline: 24px;
  text-align: center;
}

.header-content {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  color: var(--project-foreground, #fff);
}

.default-identity-position,
.project-identity-position {
  display: grid;
  place-items: center;
  width: 100%;
  height: var(--identity-height);
  flex: none;
}

.header-content.is-project { padding-top: 80px; }

.default-identity-position { height: 330px; align-items: start; }

.identity-face {
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* One proportional coordinate system preserves the portrait/fact/title composition. */
.default-identity {
  position: relative;
  width: min(572px, calc(100vw - 48px));
  aspect-ratio: 572 / 330;
  container-type: inline-size;
  isolation: isolate;
}

.avatar-portrait {
  position: absolute;
  left: 23.951049%;
  top: 8.484848%;
  width: 52.272727%;
  aspect-ratio: 299 / 398;
  z-index: 0;
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-portrait.is-rendered .avatar { opacity: 0; }

.avatar-render {
  position: absolute;
  pointer-events: none;
}

.identity-fact {
  position: absolute;
  z-index: 1;
  color: rgb(255 255 255 / 85%);
  font: 500 2.797203cqw / 1 Inter, sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: left;
}

.identity-fact-role { left: 0; top: 46.363636%; }
.identity-fact-born { left: 65.384615%; top: 26.666667%; }
.identity-fact-base { left: 84.965035%; top: 51.515152%; }

.default-identity h1 {
  position: absolute;
  left: 25%;
  top: 75.151515%;
  z-index: 2;
  width: max-content;
  min-height: 0;
  font: 700 8.391608cqw / 10.13986cqw 'HYQiHei Display', 'PingFang SC', sans-serif;
  letter-spacing: -0.01em;
  text-align: center;
}

.default-identity .title-text {
  color: transparent;
  background: linear-gradient(to bottom, #fff 20.635%, rgb(255 255 255 / 60%));
  background-clip: text;
  -webkit-background-clip: text;
}

.default-identity .title-text > span { white-space: nowrap; }

.about-works {
  position: absolute;
  left: 34.615385%;
  top: 86.80013%;
  z-index: 3;
  color: #40efff;
  font: 400 5.594406cqw / 7.692308cqw 'Vujahday Script', cursive;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 16px rgb(64 239 255 / 60%);
  white-space: nowrap;
  transform: skewY(-4deg) scaleX(0.997564);
  transform-origin: top left;
}

.is-default .introduction { display: none; }

.project-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  justify-content: flex-end;
  padding-bottom: 12px;
}

.project-identity h1 { min-height: 0; }

.project-icon-space {
  width: 44px;
  height: 44px;
  flex: none;
}

.project-symbol-stage {
  position: absolute;
  inset: 80px 24px auto;
  display: flex;
  justify-content: center;
  height: var(--identity-height);
  padding-top: calc(var(--identity-height) - var(--project-stack-height));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backface-visibility: hidden;
}

.header-content.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-logo {
  display: block;
  width: 44px;
  height: 44px;
}

.title-text,
.header-content .introduction {
  backface-visibility: hidden;
  will-change: transform, opacity;
}

h1 {
  display: grid;
  place-items: center;
  min-height: 1.1em;
  max-width: 100%;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 64px);
  font-weight: 500;
  line-height: 60px;
  letter-spacing: -0.055em;
  text-align: center;
  text-wrap: balance;
}

.header-content.is-project h1 {
  font-family: 'HYQiHei Display', 'PingFang SC', sans-serif;
  font-weight: 700;
}

.header-content.is-project .introduction {
  font-family: 'HYQiHei Text', 'PingFang SC', sans-serif;
}

.collection {
  --card-width: clamp(216px, 18.611111vw, 360px);
  --card-height: var(--card-width);
  --arc-radius: calc(var(--card-width) * 17.1);
  --angle-step: 4deg;

  position: relative;
  width: 100%;
  height: calc(var(--card-height) + 10px);
  margin: 34px 0 0;
  flex: none;
  padding: 0;
  list-style: none;
}

/* A shared pivot and equal angles keep every adjacent gap consistent. */
.work-slot {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--card-width);
  height: var(--card-height);
  transform: translateX(-50%) rotate(calc(var(--offset) * var(--angle-step)));
  transform-origin: 50% calc(var(--arc-radius) + var(--card-height) / 2);
  will-change: transform;
}

.work-card {
  --card-corner: 14px;
  position: relative;
  container-type: inline-size;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--card-corner);
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
  will-change: transform;
  overflow: clip;
  color: #000;
  text-align: center;
}

.card-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  container-type: inline-size;
}

.card-image {
  position: absolute;
  left: 2.222222%;
  top: 2.222222%;
  width: 95.555556%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: max(0px, calc(var(--card-corner, 14px) - 2.222222cqw));
  object-fit: contain;
}

.card-number {
  position: absolute;
  top: 6.666667%;
  left: 6.666667%;
  font: 400 6.666667cqw / 7.777778cqw 'Roboto Slab', Georgia, serif;
  letter-spacing: -0.133333cqw;
  color: #fff;
}

.card-category {
  position: absolute;
  top: 6.666667%;
  right: 6.666667%;
  color: #fff;
  font: 500 3.333333cqw / 3.888889cqw Inter, sans-serif;
  letter-spacing: -0.066667cqw;
  text-align: right;
}

.card-category span,
.card-title span {
  display: block;
}

.card-subtitle,
.card-title {
  position: absolute;
  left: 5.555556%;
  width: 88.888889%;
  text-align: center;
  white-space: nowrap;
}

.card-subtitle {
  top: 61.666667%;
  color: #999;
  font: 400 3.888889cqw / 5.555556cqw Inter, sans-serif;
  letter-spacing: -0.038889cqw;
}

.card-title {
  top: 69.444444%;
  color: #000;
  font: 700 7.222222cqw / 9.444444cqw 'HYQiHei Display', 'PingFang SC', sans-serif;
  letter-spacing: -0.072222cqw;
}

.work-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

.project-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  /* The animated panel may begin outside the viewport. Never scroll it
     into view when the dialog or one of its controls receives focus. */
  overflow: clip;
  background: transparent;
}

.project-dialog::backdrop {
  background: transparent;
}

.dialog-shade {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 48%);
  opacity: 0;
}

.modal-panel {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 20px 20px 0 0;
  background: #f0f1f2;
  transform-origin: center;
  will-change: transform;
  overflow: clip;
}

.modal-project {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  overflow: hidden;
  scrollbar-width: none;
  overscroll-behavior: contain;
  contain: layout paint;
  color: #000;
  text-align: center;
}

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

.modal-project:focus {
  outline: none;
}

.modal-showcase {
  position: absolute;
  left: 12px;
  width: calc(100% - 24px);
  margin: 0;
  padding: 0 0 12px;
  background: #f0f1f2;
  opacity: 0;
}

.modal-showcase-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.modal-project-media {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.modal-project-image {
  position: absolute;
  display: block;
  width: 344px;
  height: 376px;
  max-width: none;
  transform-origin: 0 0;
  object-fit: cover;
  pointer-events: none;
}

.modal-project-number,
.modal-project-category {
  position: absolute;
  color: #fff;
  pointer-events: none;
}

.modal-project-number {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.modal-project-category {
  font-family: Inter, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: right;
}

.modal-project-category span {
  display: block;
}

.modal-project-subtitle,
.modal-project-title,
.modal-project-introduction {
  position: absolute;
}

.modal-project-subtitle {
  margin: 0;
  color: #999;
  font: 14px/20px Inter, sans-serif;
}

.modal-project-title {
  margin: 0;
  font: 700 26px/34px 'HYQiHei Display', 'PingFang SC', sans-serif;
  letter-spacing: -0.26px;
}

.modal-project-introduction {
  width: 240px;
  margin: 0;
  font: 400 12px/16px 'HYQiHei Text', 'PingFang SC', sans-serif;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  max-height: 64px;
  overflow: hidden;
}

.modal-close {
  z-index: 1;
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 90%);
  color: #000;
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
  opacity: 0;
}

.modal-close:hover {
  background: #eee;
}

.modal-close:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.introduction {
  width: 240px;
  max-width: 100%;
  min-height: 36px;
  max-height: 36px;
  margin: 12px auto 0;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  text-wrap: wrap;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.is-default .introduction {
  font-family: 'HYQiHei Text', 'PingFang SC', sans-serif;
  min-height: 36px;
  max-height: 36px;
  color: rgb(255 255 255 / 70%);
  line-height: 18px;
  letter-spacing: -0.66px;
  white-space: normal;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.is-default .introduction strong {
  color: #fff;
  font-weight: 500;
}

.contact-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 44px 24px 0;
  flex: none;
  font: 400 12px/16px Inter, sans-serif;
  letter-spacing: -0.42px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 160ms ease;
  white-space: nowrap;
}

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

.contact-footer > .contact-link:first-child { width: 106px; }
.contact-link[href^='mailto:'] { width: 157px; }
.contact-footer > .contact-link:last-child { width: 87px; }

.contact-link img {
  display: block;
  flex: none;
}

.wechat-icon {
  width: 16px;
  height: 16px;
}

.contact-divider {
  position: relative;
  width: 4px;
  height: 12px;
  margin-left: 24px;
  margin-right: 16px;
  flex: none;
}

.contact-divider img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  max-width: none;
  transform: translate(-50%, -50%) rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .contact-button::before { animation: none; }
  .background-layer {
    transition: none;
  }
}

@media (min-width: 768px) and (max-height: 780px) {
  main { padding-block: 0 36px; }
  .project-header { height: 280px; --header-title-size: clamp(38px, 4vw, 51.2px); --project-stack-height: 108px; }
  .default-identity-position { height: 280px; }
  .default-identity { width: min(457.6px, calc(100vw - 48px)); }
  .header-content.is-project { padding-top: 72px; }
  .project-symbol-stage { top: 72px; }
  .project-identity { gap: 12px; }
  .project-identity h1 { font-size: 40px; line-height: 40px; }
  .header-content .introduction { margin-top: 12px; }
  .is-default .introduction { margin-top: 12px; }
  .collection {
    --card-width: clamp(190px, min(18.611111vw, calc((100svh - 408px) / 1.5)), 268px);
    margin-top: 24px;
  }
  .contact-footer { padding-top: 32px; }
}

@media (max-width: 767px) {
  .site-header { inset-inline: 24px; }
  main {
    padding-block: 64px 32px;
  }

  .project-header { height: calc((100vw - 48px) * 330 / 572 + 28px); --header-title-size: clamp(26px, 7.5vw, 44px); --identity-height: 148px; --project-stack-height: 108px; }
  .default-identity-position { height: auto; }
  .header-content.is-project { padding-top: 36px; }
  .project-symbol-stage { top: 36px; }
  .project-identity { gap: 12px; }
  .project-identity h1 { line-height: 40px; }

  h1 {
    font-size: clamp(34px, 6.4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.045em;
    min-height: 0;
  }

  .header-content .introduction { margin-top: 12px; }
  .is-default .introduction { margin-top: 12px; }


  .collection {
    --card-width: clamp(156px, 39vw, 208px);
    margin-top: 34px;
  }

  .contact-footer { flex-wrap: wrap; gap: 12px 24px; }
  .contact-divider { display: none; }

  .work-card {
    --card-corner: 10px;
  }

}

