:root {
  --canvas: #f7f6f1;
  --paper: #fbfaf7;
  --ink: #0e0e0c;
  --muted: #77736b;
  --faint: #aaa59a;
  --line: rgba(14, 14, 12, .14);
  --accent: #8d1f12;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --sans: "Archivo", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --max: 1680px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

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

.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 3.2vw, 54px);
}

.wrap-narrow {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 3.2vw, 54px);
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 2vw, 30px) clamp(20px, 3.2vw, 54px);
  color: var(--paper);
  mix-blend-mode: difference;
}

.brand {
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .82;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 42px);
}

.nav a,
.nav button {
  color: currentColor;
}

.nav-links a,
.menu-toggle {
  position: relative;
  border: 0;
  background: transparent;
  padding: 4px 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
}

.display {
  margin: 0;
  font-size: clamp(54px, 13vw, 224px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .78;
  text-transform: lowercase;
}

.title-xl {
  margin: 0;
  font-size: clamp(42px, 8vw, 128px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .88;
  text-transform: uppercase;
}

.title-lg {
  margin: 0;
  font-size: clamp(30px, 5vw, 78px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .94;
  text-transform: uppercase;
}

.title-md {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}

.lead {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 300;
  line-height: 1.55;
  color: #252520;
}

.body-copy {
  margin: 0;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.9;
  color: #39362f;
}

.zh {
  letter-spacing: .01em;
}

.page-head {
  padding: clamp(140px, 24vh, 230px) 0 clamp(56px, 9vh, 110px);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: end;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #dbd8cf;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  transform: scale(1.03) translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 900ms var(--ease);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 246, 241, .72), rgba(247, 246, 241, .06) 48%, rgba(14, 14, 12, .28)),
    linear-gradient(180deg, rgba(14, 14, 12, .14), transparent 32%, rgba(14, 14, 12, .22));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(260px, .55fr);
  align-items: end;
  gap: clamp(28px, 6vw, 110px);
  padding: clamp(110px, 16vh, 180px) clamp(20px, 3.2vw, 54px) clamp(34px, 6vh, 72px);
}

.hero .display {
  color: var(--paper);
  mix-blend-mode: difference;
}

.hero-note {
  max-width: 34ch;
  justify-self: end;
  color: var(--paper);
  text-align: right;
  text-shadow: 0 1px 28px rgba(0, 0, 0, .25);
}

.hero-note p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.9;
}

.index-rail {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 3.2vw, 54px);
  right: clamp(20px, 3.2vw, 54px);
  bottom: clamp(18px, 3vh, 32px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  color: var(--paper);
  mix-blend-mode: difference;
}

.index-rail span {
  border-top: 1px solid currentColor;
  padding-top: 8px;
}

.section {
  padding: clamp(76px, 14vh, 160px) 0;
}

.section-line {
  border-top: 1px solid var(--line);
}

.statement {
  display: grid;
  grid-template-columns: .52fr 1fr;
  gap: clamp(30px, 6vw, 110px);
  align-items: start;
}

.statement .lead {
  max-width: 54ch;
}

.zh-note {
  margin-top: 28px;
  max-width: 44ch;
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}

.project-flow {
  display: grid;
  gap: clamp(72px, 12vh, 150px);
}

.project {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: end;
}

.project-media {
  overflow: hidden;
  background: #e7e3da;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease), filter 1200ms var(--ease);
}

.project-media:hover img {
  transform: scale(1.035);
  filter: saturate(.92) contrast(1.03);
}

.project.a .project-media {
  grid-column: 1 / 8;
  aspect-ratio: 3 / 4;
}

.project.a .project-copy {
  grid-column: 9 / 13;
}

.project.b .project-media {
  grid-column: 6 / 13;
  order: 2;
  aspect-ratio: 4 / 5;
}

.project.b .project-copy {
  grid-column: 1 / 5;
  order: 1;
  text-align: right;
}

.project-copy .title-md {
  margin: 12px 0 18px;
}

.project-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  gap: .6em;
  align-items: center;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform .45s var(--ease);
}

.text-link:hover span {
  transform: translateX(8px);
}

.archive-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.archive-strip a {
  display: block;
  overflow: hidden;
  background: #e8e5dd;
}

.archive-strip a:nth-child(odd) {
  aspect-ratio: 3 / 4;
}

.archive-strip a:nth-child(even) {
  aspect-ratio: 4 / 5;
}

.archive-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82);
  transition: transform 900ms var(--ease), filter 900ms var(--ease);
}

.archive-strip a:hover img {
  transform: scale(1.05);
  filter: saturate(1);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.method-item {
  padding: 28px clamp(18px, 2.4vw, 38px) 0 0;
  min-height: 220px;
  border-right: 1px solid var(--line);
}

.method-item:last-child {
  border-right: 0;
}

.method-item h3 {
  margin: 18px 0 12px;
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.method-item p {
  margin: 0;
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.work-toolbar {
  position: sticky;
  top: 78px;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(20px, 3.2vw, 54px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 241, .88);
  backdrop-filter: blur(18px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.filter:hover,
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.gallery {
  columns: 3;
  column-gap: 14px;
}

.gallery figure {
  position: relative;
  break-inside: avoid;
  margin: 0 0 14px;
  cursor: zoom-in;
  background: #e8e4dc;
}

.gallery figure.is-hidden {
  display: none;
}

.gallery img {
  width: 100%;
  height: auto;
  filter: saturate(.88);
  transition: filter .7s var(--ease), transform .7s var(--ease);
}

.gallery figure:hover img {
  filter: saturate(1);
}

figcaption {
  padding: 10px 0 18px;
}

.caption-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.caption-detail {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: clamp(32px, 7vw, 110px);
  align-items: start;
}

.rule-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.rule-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.rule-list p {
  margin: 0;
  max-width: 62ch;
  color: #39362f;
  line-height: 1.85;
}

.contact-panel {
  padding: clamp(52px, 9vw, 110px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-panel .title-xl {
  margin-bottom: 26px;
}

.footer {
  padding: clamp(58px, 10vh, 120px) 0 34px;
  border-top: 1px solid var(--line);
}

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

.footer-mark {
  font-size: clamp(64px, 16vw, 240px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .76;
  text-transform: lowercase;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 36px;
}

.footer-links h4 {
  margin: 0 0 12px;
}

.footer-links a,
.footer-links span {
  display: block;
  margin: 8px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
  background: rgba(10, 10, 9, .96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: 3vh;
  text-align: center;
  color: rgba(251, 250, 247, .82);
}

.lightbox button {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.lightbox-close {
  top: 3vh;
  right: 4vw;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  opacity: .72;
}

.lightbox-prev {
  left: 2vw;
}

.lightbox-next {
  right: 2vw;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(7px);
  transition: opacity 1100ms var(--ease), transform 1100ms var(--ease), filter 1100ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found p {
  margin: 24px auto 0;
}

@media (max-width: 980px) {
  .page-grid,
  .statement,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: end;
  }

  .hero-note {
    justify-self: start;
    text-align: left;
  }

  .project,
  .project.a .project-media,
  .project.a .project-copy,
  .project.b .project-media,
  .project.b .project-copy {
    display: block;
    text-align: left;
  }

  .project-copy {
    margin-top: 18px;
  }

  .archive-strip {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .method-item {
    min-height: 0;
    padding-bottom: 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-item:last-child {
    border-bottom: 0;
  }

  .gallery {
    columns: 2;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-100%);
    transition: transform .55s var(--ease);
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .index-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 10px;
    bottom: 18px;
    font-size: 9px;
    line-height: 1.25;
  }

  .index-rail span {
    padding-top: 6px;
  }

  .hero-content {
    min-height: 100svh;
    align-content: end;
    padding-top: 92px;
    padding-bottom: 154px;
  }

  .hero-note {
    max-width: 30ch;
  }

  .hero-note .meta {
    font-size: 9px;
    line-height: 1.45;
  }

  .hero-note p {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.55;
  }

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

  .archive-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-toolbar {
    position: relative;
    top: auto;
    flex-direction: column;
  }

  .gallery {
    columns: 1;
  }

  .rule-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-media img {
    transform: none;
  }
}
