:root {
  --ink: #11100e;
  --muted: #6d6a63;
  --paper: #ffffff;
  --line: rgba(17, 16, 14, 0.16);
  --accent: #b7ff4a;
  --orange: #ff7a1a;
  --blue: #1438ff;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mx: 50%;
  --my: 50%;
  --dx: 0;
  --dy: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-anchor: none;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  overflow-anchor: none;
}

main {
  overflow-anchor: none;
}

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

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

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

body.is-leaving .page-transition {
  transform: translateY(0);
}

body.welcome-active .site-header {
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.welcome-active {
  overflow: hidden;
}

body.welcome-active .brand-mark img {
  filter: invert(1);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(94px, 8.8vw, 142px);
  padding: 18px clamp(24px, 4vw, 72px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 16, 14, 0.08);
}

.site-nav a {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: clamp(76px, 6vw, 112px);
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 680;
  letter-spacing: 0.01em;
  text-transform: none;
  overflow: hidden;
  line-height: 1.15;
}

.site-nav a::after {
  content: attr(data-zh);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.site-nav a span {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.site-nav a:hover span {
  opacity: 0;
  transform: translateY(-100%);
}

.site-nav a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.brand-mark {
  display: block;
  width: clamp(138px, 11.5vw, 210px);
  height: clamp(72px, 6.4vw, 108px);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.36);
  transform-origin: left center;
  background: transparent;
}

.site-nav {
  display: flex;
  gap: clamp(28px, 4.2vw, 72px);
}

.home-hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: minmax(460px, 72vh) auto;
  gap: 0;
  padding: 92px clamp(18px, 4vw, 64px) 0;
  border-bottom: 1px solid var(--line);
  overflow-anchor: none;
}

.welcome-section {
  position: fixed;
  inset: 0;
  z-index: 18;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: clamp(110px, 11vw, 176px) clamp(18px, 4vw, 64px) clamp(30px, 4.5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06) 23%, rgba(255, 255, 255, 0) 48%),
    #030303;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.welcome-active .welcome-section {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

body.welcome-dismissed .welcome-section {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-18px);
}

.welcome-video {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(1) contrast(1.5) brightness(0.54);
  mix-blend-mode: screen;
  transform: translate(calc(var(--dx) * -10px), calc(var(--dy) * -10px)) scale(1.05);
  pointer-events: none;
  z-index: -2;
}

.welcome-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 8vw 8vw;
  mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0 34%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0 34%, transparent 72%);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.welcome-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), transparent 0 12%, rgba(0, 0, 0, 0.62) 62%, rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
  z-index: -1;
}

.welcome-orbit {
  position: absolute;
  left: var(--mx);
  top: var(--my);
  width: clamp(170px, 24vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  pointer-events: none;
}

.welcome-orbit::before,
.welcome-orbit::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.welcome-orbit::after {
  inset: 42%;
  background: #fff;
  border: 0;
}

.welcome-content {
  max-width: min(1520px, 100%);
  transform: translate(calc(var(--dx) * 18px), calc(var(--dy) * 10px));
}

.welcome-kicker {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 680;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.welcome-content h1 {
  display: grid;
  gap: clamp(6px, 0.65vw, 14px);
  margin: clamp(28px, 4vw, 62px) 0 0;
  font-size: clamp(34px, 7.1vw, 128px);
  line-height: 0.9;
  font-weight: 820;
  letter-spacing: 0;
}

.welcome-word {
  display: block;
  width: fit-content;
  color: inherit;
  transform: translateX(calc(var(--dx) * var(--shift, 18px)));
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.welcome-word:nth-child(2) {
  --shift: -24px;
  color: rgba(255, 255, 255, 0.88);
}

.welcome-word:nth-child(3) {
  --shift: 30px;
}

.welcome-word:nth-child(4) {
  --shift: -14px;
  color: rgba(255, 255, 255, 0.78);
}

.welcome-word:hover,
.welcome-word:focus-visible {
  color: #fff;
  opacity: 0.72;
}

.welcome-enter {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(118px, 11vw, 184px);
  aspect-ratio: 1;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 122, 26, 0.1) 42%, rgba(255, 122, 26, 0.36) 100%),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 22px 70px rgba(255, 122, 26, 0.22),
    0 0 100px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transform: translate(-50%, -50%) translate(calc(var(--dx) * -24px), calc(var(--dy) * -18px));
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
  animation: enterPulse 3.8s ease-in-out infinite;
}

.welcome-enter::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 120deg, transparent, rgba(255, 214, 183, 0.86), rgba(255, 122, 26, 0.82), transparent 58%);
  opacity: 0.78;
  animation: enterGradient 5.4s linear infinite;
}

.welcome-enter::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: rgba(4, 4, 4, 0.74);
  backdrop-filter: blur(12px);
}

.welcome-enter-label {
  position: relative;
  z-index: 1;
  font-size: clamp(15px, 1.18vw, 21px);
  font-weight: 760;
  letter-spacing: 0.03em;
  line-height: 1;
}

.welcome-enter:hover,
.welcome-enter:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 26px 88px rgba(255, 122, 26, 0.34),
    0 0 140px rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -50%) translate(calc(var(--dx) * -24px), calc(var(--dy) * -18px)) scale(1.06);
}

@keyframes enterGradient {
  to {
    transform: rotate(1turn);
  }
}

@keyframes enterPulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.18);
  }
}

.hero-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #f3f3f3;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: clamp(20px, 4vw, 72px);
  align-items: end;
  min-height: clamp(166px, 15vw, 232px);
  padding: 24px 0 34px;
  background: #fff;
  overflow-anchor: none;
}

.hero-index,
.hero-note,
.section-label,
.project-kicker,
.project-meta,
.site-footer,
.filter-row button {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-panel h1 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: clamp(28px, 4.2vw, 76px);
  line-height: 0.95;
  font-weight: 760;
  height: 1.9em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-panel p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 680px;
  height: 4.65em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 20px);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hero-panel a,
.mail-link {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
}

.works-section,
.studio-section,
.contact-section {
  padding: clamp(56px, 8vw, 118px) clamp(18px, 4vw, 64px);
}

.section-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.project-card {
  display: grid;
  gap: 14px;
}

.project-card figure,
.project-cover,
.case-image {
  margin: 0;
  overflow: hidden;
  background: #f3f3f3;
}

.project-card figure {
  aspect-ratio: 808 / 632;
}

.project-preview {
  position: relative;
  isolation: isolate;
}

.project-preview .preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.18s ease, transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-preview .preview-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.project-card:hover .preview-image.is-active {
  transform: scale(1.018);
}

.card-meta {
  display: grid;
  grid-template-columns: clamp(40px, 4vw, 64px) minmax(0, 1fr) max-content;
  gap: clamp(10px, 1.3vw, 18px);
  align-items: start;
  min-height: clamp(74px, 6vw, 96px);
  font-size: 13px;
  line-height: 1.35;
}

.card-meta span,
.card-meta small {
  justify-self: end;
  text-align: right;
  color: var(--muted);
}

.card-meta strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(18px, 1.55vw, 27px);
  font-weight: 650;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.archive-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.archive-head h2,
.studio-title h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 112px);
  line-height: 0.95;
  font-weight: 760;
}

.archive-title {
  display: grid;
  gap: clamp(6px, 0.8vw, 12px);
}

.archive-title small {
  color: var(--muted);
  font-size: clamp(16px, 1.65vw, 26px);
  font-weight: 650;
  line-height: 1;
}

.studio-title p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 650;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-row button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.filter-row button.is-active {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 808px));
  gap: clamp(34px, 4.5vw, 72px) clamp(18px, 2.2vw, 36px);
  justify-content: center;
}

.project-card.is-hidden {
  display: none;
}

.project-card {
  width: 100%;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(34px, 7vw, 110px);
  padding-top: 36px;
}

.studio-grid p,
.project-copy p,
.contact-copy p {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.65;
}

.awards-list {
  display: grid;
  gap: 11px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.awards-list li {
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 7vw, 120px);
  border-top: 1px solid var(--line);
}

.contact-copy span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.contact-copy strong {
  display: block;
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 22px);
}

.contact-copy p {
  white-space: pre-line;
  font-weight: 650;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
}

.qr-grid figure {
  margin: 0;
  display: grid;
  width: min(100%, 300px);
  justify-items: center;
  justify-self: center;
  align-content: start;
}

.qr-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.qr-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.qr-grid figure:nth-child(2) img {
  transform: scale(1.13);
}

.qr-grid figcaption {
  width: 100%;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 38px) clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
}

.site-footer > span {
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.icp-link {
  justify-self: center;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 650;
}

.social-links {
  display: flex;
  align-items: center;
  justify-self: end;
  justify-content: flex-end;
  gap: 12px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: clamp(42px, 3.5vw, 58px);
  aspect-ratio: 1;
  border-radius: 12px;
  background: #050505;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.social-links a:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.social-links img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  background: transparent;
}

.project-hero {
  min-height: 78vh;
  display: grid;
  align-content: end;
  gap: 22px;
  padding: 120px clamp(18px, 4vw, 64px) 46px;
}

.project-hero h1 {
  max-width: 1200px;
  margin: 0;
  font-size: clamp(42px, 9vw, 146px);
  line-height: 0.95;
}

.project-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 24px);
  line-height: 1.5;
}

.project-cover {
  margin: 0 clamp(18px, 4vw, 64px);
}

.project-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr;
  gap: clamp(30px, 6vw, 110px);
  padding: clamp(46px, 7vw, 96px) clamp(18px, 4vw, 64px);
}

.project-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 22px;
  align-content: start;
}

.project-meta strong {
  color: var(--ink);
}

.case-stack {
  display: grid;
  gap: clamp(10px, 1.5vw, 20px);
  padding: 0 clamp(18px, 4vw, 64px) clamp(56px, 8vw, 120px);
}

.case-image {
  max-width: 1440px;
  margin-inline: auto;
}

.next-project {
  display: grid;
  gap: 12px;
  padding: clamp(44px, 7vw, 88px) clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
}

.next-project span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.next-project a {
  font-size: clamp(32px, 6vw, 86px);
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .home-hero,
  .archive-head,
  .studio-grid,
  .contact-section,
  .project-layout {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 88vh;
    grid-template-rows: minmax(360px, 58vh) auto;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

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

  .filter-row {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 70px;
    padding: 12px 18px;
  }

  .brand-mark {
    width: 108px;
    height: 58px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    min-width: 54px;
    font-size: 12px;
  }

  .home-hero {
    min-height: 82vh;
    grid-template-rows: minmax(320px, 52vh) auto;
    padding-top: 68px;
  }

  .hero-panel h1 {
    font-size: clamp(30px, 12vw, 58px);
  }

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

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

  .card-meta {
    grid-template-columns: 38px 1fr;
    min-height: 0;
  }

  .card-meta small {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .site-footer {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .icp-link {
    justify-self: start;
  }

  .social-links {
    justify-self: start;
    justify-content: flex-start;
  }
}
