:root {
  --site-gutter: clamp(22px, 5vw, 88px);
  --site-max: 1480px;
}

body.site-page {
  display: block;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% -8%, rgba(207, 224, 228, 0.34), transparent 31rem),
    #fff;
}

.site-shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: transparent;
}

.site-shell::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: calc(50% + min(31vw, 470px));
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(16, 16, 16, 0.075) 15%, rgba(16, 16, 16, 0.075) 85%, transparent);
}

.app-content {
  height: 100dvh;
  padding-bottom: 112px;
}

.home,
.detail,
.simple-page {
  width: min(100%, var(--site-max));
  max-width: var(--site-max);
  margin: 0 auto;
  padding-right: var(--site-gutter);
  padding-left: var(--site-gutter);
}

.topbar,
.detail-bar {
  height: 88px;
  padding-top: max(12px, env(safe-area-inset-top));
}

.top-brand strong {
  font-size: clamp(15px, 1.2vw, 18px);
}

.hero {
  min-height: min(640px, calc(100dvh - 172px));
  padding: clamp(52px, 8vh, 108px) 0 clamp(42px, 7vh, 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  column-gap: clamp(36px, 8vw, 140px);
}

.hero-title {
  align-self: center;
}

.artist {
  font-size: clamp(92px, 15vw, 210px);
  letter-spacing: 0.12em;
  line-height: 0.98;
}

.artist-en {
  margin-top: clamp(16px, 2vw, 28px);
  font-size: clamp(10px, 0.9vw, 13px);
}

.hero-copy {
  width: min(100%, 410px);
  align-self: end;
  padding-bottom: clamp(16px, 4vh, 58px);
}

.home-manifesto {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(24px, 4vw, 68px);
  padding: 30px 0 46px;
  border-top: 1px solid rgba(16, 16, 16, 0.075);
  opacity: 0;
  animation: site-rise 780ms cubic-bezier(0.16, 0.74, 0.24, 1) 260ms forwards;
}

.manifesto-number {
  padding-top: 5px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.home-manifesto p {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 300;
  letter-spacing: 0.09em;
  line-height: 1.8;
}

.home-manifesto small {
  align-self: end;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.11em;
  line-height: 1.8;
}

.tagline-zh {
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.9;
}

.tagline-en {
  margin-top: 12px;
  font-size: clamp(10px, 0.86vw, 12px);
  line-height: 1.85;
}

.hero-contact {
  margin-top: 30px;
  font-size: 10px;
}

.subscribe-button {
  margin-top: 20px;
}

.category-strip {
  width: calc(100% + var(--site-gutter) * 2);
  margin-right: calc(var(--site-gutter) * -1);
  margin-left: calc(var(--site-gutter) * -1);
  padding-right: var(--site-gutter);
  padding-left: var(--site-gutter);
  border-top: 1px solid rgba(16, 16, 16, 0.075);
}

.category {
  min-height: 68px;
  padding-right: clamp(24px, 3vw, 44px);
}

.category span:first-child {
  font-size: clamp(15px, 1.25vw, 19px);
}

.works-heading {
  padding: clamp(72px, 10vh, 126px) 0 38px;
}

.works-heading h1 {
  font-size: clamp(50px, 5vw, 76px);
}

.works-guide {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.works-guide > span:first-child {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.collection-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 92px) clamp(18px, 2.4vw, 34px);
  align-items: start;
}

.collection-card {
  min-width: 0;
}

.collection-card:nth-child(1) {
  grid-column: span 7;
  padding-top: 34px;
}

.collection-card:nth-child(2) {
  grid-column: span 5;
  align-self: end;
}

.collection-card:nth-child(3) {
  grid-column: span 5;
  margin-top: 44px;
}

.collection-card:nth-child(4) {
  grid-column: span 7;
  padding-top: 54px;
}

.collection-card:nth-child(5) {
  grid-column: 2 / span 6;
}

.collection-card:nth-child(1) .cover-wrap,
.collection-card:nth-child(4) .cover-wrap,
.collection-card:nth-child(5) .cover-wrap {
  aspect-ratio: 4 / 3;
}

.collection-card:nth-child(2) .cover-wrap {
  aspect-ratio: 3 / 4;
}

.collection-card:nth-child(3) .cover-wrap {
  aspect-ratio: 4 / 5;
}

.cover-wrap {
  border-radius: 0;
}

.cover-wrap img {
  transition: transform 900ms cubic-bezier(0.16, 0.74, 0.24, 1), opacity 500ms ease;
  animation: site-image-reveal 980ms cubic-bezier(0.16, 0.74, 0.24, 1) both;
}

.collection-card:hover .cover-wrap img {
  transform: scale(1.022);
  opacity: 0.94;
}

.card-title {
  font-size: clamp(16px, 1.35vw, 21px);
}

.card-title-en {
  font-size: clamp(8px, 0.72vw, 10px);
}

.card-meta {
  margin-top: 14px;
  font-size: 8px;
}

.home-footer {
  padding-top: clamp(110px, 17vh, 200px);
}

.simple-head {
  padding-top: clamp(90px, 14vh, 150px);
}

.simple-head h1 {
  font-size: clamp(58px, 7vw, 104px);
}

.about-intro {
  width: min(760px, 80%);
  margin-left: auto;
}

.about-intro p {
  font-size: clamp(17px, 1.65vw, 24px);
}

.about-section {
  width: min(100%, 920px);
  margin-left: auto;
}

.about-intro p,
.about-intro p.en,
.about-section {
  animation: site-rise 760ms cubic-bezier(0.16, 0.74, 0.24, 1) both;
}

.about-intro p.en {
  animation-delay: 80ms;
}

.about-section:nth-of-type(2) {
  animation-delay: 140ms;
}

.about-section:nth-of-type(3) {
  animation-delay: 200ms;
}

.photo-stack {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  width: min(100%, 1120px);
  min-height: 84px;
  padding: 18px var(--site-gutter) max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
}

.nav-link strong {
  font-size: 14px;
}

.overlay-root {
  position: fixed;
}

.preview-toast {
  position: fixed;
}

@keyframes site-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes site-image-reveal {
  from {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .home,
  .detail,
  .simple-page {
    padding-right: 28px;
    padding-left: 28px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.5fr);
    column-gap: 36px;
  }

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

  .collection-card:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
    padding-top: 0;
  }

  .collection-card:nth-child(n) .cover-wrap {
    aspect-ratio: 4 / 5;
  }

  .home-manifesto {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .home-manifesto small {
    display: none;
  }

  .site-shell::before {
    display: none;
  }
}

@media (max-width: 700px) {
  .home,
  .detail,
  .simple-page {
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero {
    min-height: 620px;
    display: flex;
    padding-top: 74px;
  }

  .artist {
    font-size: clamp(82px, 25vw, 118px);
  }

  .hero-copy {
    width: min(82vw, 410px);
    margin-top: auto;
  }

  .home-manifesto {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0 34px;
  }

  .home-manifesto p {
    font-size: 19px;
    line-height: 1.9;
  }

  .works-guide > span:first-child {
    display: none;
  }

  .tagline-zh {
    font-size: 17px;
  }

  .category-strip {
    width: calc(100% + 44px);
    margin-right: -22px;
    margin-left: -22px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .bottom-nav {
    padding-right: 24px;
    padding-left: 24px;
  }

  .about-intro,
  .about-section {
    width: 100%;
  }
}

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