:root {
  --black: #090909;
  --white: #f7f6f2;
  --paper: #e9e6de;
  --yellow: #f1e84d;
  --blue: #3057ff;
  --red: #ed4b3e;
  --line-dark: rgba(9, 9, 9, 0.22);
  --line-light: rgba(247, 246, 242, 0.24);
  --sans: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", STSong, SimSun, serif;
  --gutter: clamp(20px, 4vw, 72px);
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open,
body.viewer-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

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

h1,
h2,
h3,
p,
blockquote,
dl,
dd {
  margin: 0;
}

.page-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: 3px;
  background: transparent;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  color: var(--white);
  mix-blend-mode: difference;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  justify-self: start;
}

.brand strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
}

.brand span {
  font-size: 10px;
}

.desktop-nav {
  display: flex;
  gap: 32px;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 13px;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease);
}

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

.menu-button {
  display: grid;
  justify-self: end;
  gap: 6px;
  width: 44px;
  height: 44px;
  place-content: center;
  color: inherit;
}

.menu-button span {
  display: block;
  width: 25px;
  height: 1px;
  background: currentColor;
  transition: transform 350ms var(--ease);
}

body.menu-open .menu-button span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

body.menu-open .menu-button span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  align-items: end;
  padding: calc(var(--header-h) + 8vh) var(--gutter) 7vh;
  background: var(--yellow);
  color: var(--black);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 700ms var(--ease), visibility 700ms;
}

.menu-panel[aria-hidden="false"] {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.menu-panel nav {
  display: grid;
  align-self: center;
}

.menu-panel nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--serif);
  font-size: clamp(46px, 8vw, 116px);
  line-height: 1;
}

.menu-panel nav span,
.menu-panel > p {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.8;
}

.hero {
  position: relative;
  min-height: 94svh;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #a58b3c;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.04);
  transition: opacity 550ms var(--ease), transform 8s var(--ease);
}

.hero.is-switching .hero-media img {
  opacity: 0;
  transform: scale(1.08);
}

.hero-topline {
  position: absolute;
  top: calc(var(--header-h) + 42px);
  right: var(--gutter);
  left: var(--gutter);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  line-height: 1.4;
  mix-blend-mode: difference;
}

.hero-copy {
  position: absolute;
  right: var(--gutter);
  bottom: 14vh;
  left: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  align-items: end;
  gap: 24px;
  color: #fff;
  mix-blend-mode: difference;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(110px, 23vw, 340px);
  font-weight: 700;
  line-height: 0.75;
}

.hero-copy > p {
  padding-bottom: 12px;
  font-size: clamp(16px, 1.5vw, 23px);
  line-height: 1.65;
}

.hero-footer {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  left: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  mix-blend-mode: difference;
}

.hero-footer p {
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.hero-footer p span {
  opacity: 0.62;
  font-size: 9px;
}

.hero-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-switcher button {
  width: 34px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.hero-switcher button.is-active {
  background: #fff;
}

.hero-footer > a {
  justify-self: end;
  font-size: 11px;
}

.hero-footer > a span {
  display: inline-block;
  margin-left: 8px;
  animation: arrow-down 1.8s ease-in-out infinite;
}

@keyframes arrow-down {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(5px); }
}

.manifesto {
  overflow: hidden;
  padding: 8vh 0 14vh;
  background: var(--yellow);
}

.manifesto-line {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

.manifesto-line span {
  font-size: clamp(68px, 15vw, 220px);
  font-weight: 700;
  line-height: 0.9;
}

.manifesto-line i {
  font-family: var(--serif);
  font-size: clamp(46px, 8vw, 120px);
  font-style: normal;
}

@keyframes marquee {
  to { transform: translateX(-33.333%); }
}

.manifesto-body {
  display: grid;
  grid-template-columns: 0.55fr 1.55fr 0.9fr;
  gap: clamp(28px, 5vw, 90px);
  align-items: start;
  padding: 13vh var(--gutter) 0;
}

.section-number {
  font-size: 10px;
  line-height: 1.4;
}

.manifesto blockquote {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 76px);
  font-weight: 700;
  line-height: 1.22;
}

.manifesto-body > p:last-child {
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.9;
}

.works {
  padding: 15vh var(--gutter);
  background: var(--black);
  color: var(--white);
}

.section-header {
  display: grid;
  grid-template-columns: 0.45fr 1.45fr 0.7fr;
  gap: clamp(24px, 5vw, 90px);
  align-items: start;
  margin-bottom: 11vh;
}

.section-header h2,
.practice h2,
.contact h2,
.about h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 104px);
  font-weight: 700;
  line-height: 1.08;
}

.section-header > p:last-child {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.7;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 68px) clamp(12px, 2vw, 30px);
  align-items: start;
}

.work {
  position: relative;
  display: grid;
  gap: 14px;
  color: var(--white);
  text-align: left;
}

.work:nth-child(1) { grid-column: 1 / 6; }
.work:nth-child(2) { grid-column: 7 / 13; margin-top: 18vh; }
.work:nth-child(3) { grid-column: 2 / 6; margin-top: 4vh; }
.work:nth-child(4) { grid-column: 8 / 12; margin-top: 14vh; }
.work:nth-child(5) { grid-column: 1 / 7; margin-top: 12vh; }
.work:nth-child(6) { grid-column: 8 / 13; margin-top: 2vh; }
.work:nth-child(7) { grid-column: 2 / 6; margin-top: 14vh; }
.work:nth-child(8) { grid-column: 7 / 11; margin-top: 4vh; }
.work:nth-child(9) { grid-column: 4 / 10; margin-top: 15vh; }
.work:nth-child(10) { grid-column: 1 / 5; margin-top: 8vh; }
.work:nth-child(11) { grid-column: 8 / 12; margin-top: 18vh; }

.work img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #171717;
  filter: saturate(0.94);
  transition: transform 750ms var(--ease), filter 500ms ease;
}

.work-tall img { aspect-ratio: 0.76; }
.work-wide img { aspect-ratio: 1.38; }

.work:hover img,
.work:focus-visible img {
  filter: saturate(1.08);
  transform: scale(0.985);
}

.work > span {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line-light);
  padding-top: 10px;
}

.work strong {
  font-family: var(--serif);
  font-size: 18px;
}

.work em {
  font-size: 10px;
  font-style: normal;
  opacity: 0.55;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  min-height: 100svh;
  background: var(--paper);
}

.about-portrait {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100svh;
  overflow: hidden;
  background: #c9c5bc;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-portrait p {
  position: absolute;
  bottom: 18px;
  left: 20px;
  padding: 7px 10px;
  background: var(--yellow);
  font-size: 9px;
}

.about-copy {
  padding: 15vh var(--gutter);
}

.about-copy .section-number {
  margin-bottom: 8vh;
}

.about-copy h2 {
  margin-bottom: 8vh;
}

.about-copy > p:not(.section-number) {
  max-width: 690px;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.9;
}

.about-copy .lead {
  font-weight: 700;
}

.facts {
  margin-top: 8vh;
  border-top: 1px solid var(--line-dark);
}

.facts div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}

.facts dt {
  font-size: 12px;
  font-weight: 700;
}

.facts dd {
  font-family: var(--serif);
  font-size: 17px;
}

.practice {
  position: relative;
  min-height: 110svh;
  overflow: hidden;
  padding: 15vh var(--gutter);
  background: var(--blue);
  color: var(--white);
  isolation: isolate;
}

.practice-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.practice-field span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  transform: translate3d(var(--orbit-x, 0), var(--orbit-y, 0), 0);
  transition: transform 800ms var(--ease);
}

.practice-field span:nth-child(1) { top: -18vw; right: -8vw; width: 54vw; height: 54vw; }
.practice-field span:nth-child(2) { right: 18vw; bottom: -24vw; width: 68vw; height: 68vw; }
.practice-field span:nth-child(3) { top: 34%; left: -8vw; width: 26vw; height: 26vw; }

.practice header {
  display: grid;
  grid-template-columns: 0.45fr 1.9fr;
  gap: clamp(24px, 5vw, 90px);
  margin-bottom: 15vh;
}

.practice-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(44px, 8vw, 150px);
  align-items: end;
}

.practice-statement > p {
  max-width: 620px;
  margin-bottom: 48px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.8vw, 42px);
  line-height: 1.55;
}

.practice-statement a {
  display: inline-flex;
  gap: 40px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
}

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

.practice-stream li {
  display: grid;
  grid-template-columns: 44px 1fr 1.3fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
}

.practice-stream span,
.practice-stream em {
  font-size: 11px;
  font-style: normal;
}

.practice-stream strong {
  font-size: 17px;
}

.practice-stream em {
  opacity: 0.75;
}

.now {
  padding: 15vh var(--gutter);
  background: var(--white);
}

.now .section-header {
  grid-template-columns: 0.45fr 2.15fr;
}

.now-list {
  border-top: 1px solid var(--line-dark);
}

.now-list article {
  display: grid;
  grid-template-columns: 0.45fr 1fr 1fr;
  gap: clamp(24px, 5vw, 90px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line-dark);
}

.now-list time {
  font-size: 11px;
}

.now-list h3 {
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 48px);
  line-height: 1.2;
}

.now-list p {
  max-width: 580px;
  font-size: 14px;
  line-height: 1.9;
}

.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(48px, 9vw, 170px);
  min-height: 88svh;
  align-items: center;
  padding: 14vh var(--gutter);
  background: var(--red);
  color: var(--black);
}

.contact .section-number {
  margin-bottom: 7vh;
}

.contact-links {
  border-top: 1px solid var(--line-dark);
}

.contact-links a,
.contact-links p {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
}

.contact-links span,
.contact-links em {
  font-size: 9px;
  font-style: normal;
}

.contact-links strong {
  overflow-wrap: anywhere;
  font-size: clamp(15px, 1.5vw, 21px);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  padding: 22px var(--gutter);
  background: var(--black);
  color: var(--white);
  font-size: 9px;
}

.site-footer p:nth-child(2) {
  justify-self: center;
}

.site-footer a {
  justify-self: end;
}

.work-viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--black);
  color: var(--white);
}

.work-viewer::backdrop {
  background: var(--black);
}

.work-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.viewer-close {
  position: relative;
  z-index: 2;
  justify-self: end;
  margin: 20px var(--gutter) 0;
  padding: 10px 0;
  color: var(--white);
  font-size: 12px;
}

.viewer-stage {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 16px var(--gutter);
}

.viewer-stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 160px);
  object-fit: contain;
}

.viewer-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 16px var(--gutter) 24px;
}

.viewer-meta p {
  display: grid;
  grid-template-columns: 80px minmax(120px, 1fr) minmax(120px, 1fr);
  gap: 16px;
  align-items: baseline;
}

.viewer-meta span,
.viewer-meta em {
  font-size: 10px;
  font-style: normal;
  opacity: 0.62;
}

.viewer-meta strong {
  font-family: var(--serif);
  font-size: 22px;
}

.viewer-meta div {
  display: flex;
  gap: 10px;
}

.viewer-meta button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-light);
  color: var(--white);
  font-size: 20px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

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

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-panel { grid-template-columns: 1fr; }
  .menu-panel > p { display: none; }
  .hero-copy {
    bottom: 18vh;
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: clamp(108px, 35vw, 220px); }
  .hero-copy > p { max-width: 560px; }
  .manifesto-body,
  .section-header,
  .practice header {
    grid-template-columns: 1fr;
  }
  .manifesto-body { gap: 48px; }
  .section-header { gap: 32px; }
  .work-grid { gap: 52px 14px; }
  .work:nth-child(n) { margin-top: 0; }
  .about { grid-template-columns: 1fr; }
  .about-portrait { position: relative; height: 78svh; }
  .practice-layout { grid-template-columns: 1fr; }
  .now-list article { grid-template-columns: 110px 1fr; }
  .now-list article p { grid-column: 2; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .brand span { display: none; }
  .hero { min-height: 92svh; }
  .hero-topline { top: 84px; }
  .hero-topline p:last-child { display: none; }
  .hero-media img { object-position: 53% center; }
  .hero-copy { bottom: 17vh; }
  .hero h1 { font-size: 31vw; line-height: 0.82; }
  .hero-copy > p { font-size: 15px; }
  .hero-footer { grid-template-columns: 1fr auto; }
  .hero-footer > a { display: none; }
  .manifesto { padding-top: 7vh; }
  .manifesto-body { padding-top: 10vh; }
  .manifesto blockquote { font-size: 36px; }
  .works,
  .now,
  .practice { padding-top: 11vh; padding-bottom: 11vh; }
  .section-header { margin-bottom: 8vh; }
  .section-header h2,
  .practice h2,
  .contact h2,
  .about h2 { font-size: 45px; }
  .work-grid { display: block; }
  .work { width: 100%; margin: 0 0 68px !important; }
  .work img,
  .work-tall img,
  .work-wide img { aspect-ratio: auto; max-height: 76svh; object-fit: contain; }
  .about-portrait { height: 64svh; }
  .about-copy { padding-top: 11vh; padding-bottom: 11vh; }
  .about-copy .section-number,
  .about-copy h2 { margin-bottom: 6vh; }
  .about-copy > p:not(.section-number) { font-size: 18px; }
  .practice { min-height: 100svh; }
  .practice header { margin-bottom: 10vh; }
  .practice-statement > p { font-size: 26px; }
  .practice-stream li { grid-template-columns: 32px 1fr; }
  .practice-stream li em { grid-column: 2; }
  .now-list article { grid-template-columns: 1fr; gap: 12px; }
  .now-list article p { grid-column: auto; }
  .contact { min-height: 100svh; padding-top: 11vh; padding-bottom: 11vh; }
  .contact-links a,
  .contact-links p { grid-template-columns: 66px 1fr auto; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer p:nth-child(2),
  .site-footer a { justify-self: start; }
  .viewer-meta { align-items: start; }
  .viewer-meta p { grid-template-columns: 1fr; gap: 4px; }
  .viewer-meta div { align-self: end; }
}

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
