:root {
  --bg: #FAFAF7;
  --ink: #141414;
  --ink-soft: #575751;
  --line: #E4E4DE;
  --white: #FFFFFF;
  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --font-display: "Archivo", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Space Grotesk", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

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

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
  color: #fff;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.logo-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  align-self: center;
}

.logo-en {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  opacity: 0.75;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 4vw, 44px);
}

.site-nav a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.14em;
  cursor: pointer;
  padding: 6px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 64px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 9.5vw, 8.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-title span {
  display: block;
}

.hero-title em {
  font-style: normal;
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}

.hero-desc {
  max-width: 34em;
  margin-top: 32px;
  font-size: 17px;
  color: var(--ink-soft);
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.hero-cta svg {
  transition: transform 0.25s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.hero-cta:hover svg {
  transform: translateY(2px);
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
}

.hero-stats div {
  text-align: right;
}

.hero-stats dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-stats dd {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-top: 4px;
}

.works {
  padding: clamp(72px, 12vh, 140px) 0 40px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vh, 72px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.works-count {
  font-size: 0.38em;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  vertical-align: super;
  margin-left: 10px;
}

.filters {
  display: flex;
  gap: 6px;
}

.filter-btn {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
}

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.grid {
  columns: 3;
  column-gap: clamp(24px, 3vw, 44px);
}

.work {
  break-inside: avoid;
  margin: 0 0 clamp(40px, 5vw, 64px);
}

.work.hidden {
  display: none;
}

.work-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.work-frame {
  display: block;
  overflow: hidden;
  background: #ECECE7;
}

.work-img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.001);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.5s ease;
}

.work-img.loaded {
  opacity: 1;
  transform: scale(1);
}

.work-trigger:hover .work-img,
.work-trigger:focus-visible .work-img {
  filter: grayscale(0.85) brightness(1.06) contrast(1.04);
  transform: scale(1.03);
}

.work figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.work-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.work-title sup {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-right: 10px;
}

.work figcaption em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.about {
  padding: clamp(80px, 14vh, 160px) 0;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about-photo {
  max-width: 420px;
}

.about-photo img {
  width: 100%;
  filter: grayscale(1) contrast(1.04);
}

.about-caption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.about-body p {
  max-width: 36em;
  margin-top: 20px;
  color: var(--ink-soft);
}

.about-body .section-title {
  margin-bottom: 12px;
}

.about-quote {
  margin-top: 36px;
  padding-left: 24px;
  border-left: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.contact {
  padding: clamp(80px, 14vh, 160px) 0 clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.contact-title em {
  font-style: normal;
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}

.contact-mail {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  transition: opacity 0.25s ease;
}

.contact-mail:hover,
.contact-mail:focus-visible {
  opacity: 0.55;
}

.socials {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 44px;
  list-style: none;
}

.socials a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.25s ease;
}

.socials a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--ink);
}

.socials a:hover::after,
.socials a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 64px);
  background: rgba(12, 12, 11, 0.96);
  color: #FAFAF7;
  animation: lbFade 0.3s ease;
}

.lightbox[hidden] {
  display: none;
}

@keyframes lbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb-figure {
  max-width: min(1100px, 92vw);
  text-align: center;
}

.lb-figure img {
  max-width: 100%;
  max-height: 78svh;
  width: auto;
  height: auto;
  margin: 0 auto;
  filter: grayscale(1);
  background: #1C1C1A;
  animation: lbFade 0.35s ease;
}

.lb-figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(250, 250, 247, 0.2);
}

.lb-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.lb-meta {
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0.65;
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(250, 250, 247, 0.3);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.lb-btn:hover,
.lb-btn:focus-visible {
  background: rgba(250, 250, 247, 0.14);
  border-color: rgba(250, 250, 247, 0.6);
}

.lb-close {
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
}

.lb-prev {
  left: clamp(12px, 3vw, 40px);
  top: 50%;
  translate: 0 -50%;
}

.lb-next {
  right: clamp(12px, 3vw, 40px);
  top: 50%;
  translate: 0 -50%;
}

.lb-count {
  position: absolute;
  bottom: clamp(18px, 3vw, 32px);
  left: 50%;
  translate: -50% 0;
  font-size: 12px;
  letter-spacing: 0.3em;
  opacity: 0.65;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.anim {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.15s; }
.anim-3 { animation-delay: 0.28s; }
.anim-4 { animation-delay: 0.42s; }
.anim-5 { animation-delay: 0.56s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .grid {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 320px;
  }

  .hero-stats {
    width: 100%;
    justify-content: space-between;
  }

  .hero-stats div {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .grid {
    columns: 1;
  }

  .site-header {
    padding: 18px var(--pad);
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .logo-en {
    display: none;
  }

  .filters {
    width: 100%;
  }

  .filter-btn {
    flex: 1;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 56px;
    translate: 0 0;
  }

  .lb-count {
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .anim {
    opacity: 1;
    transform: none;
  }
}
