:root {
  color-scheme: light;
  --ink: #111;
  --muted: #9c9c9c;
  --line: #323232;
  --page: #fff;
  --gutter: clamp(20px, 4vw, 48px);
  --content: 1280px;
  font-family: "Helvetica Neue", Arial, SimHei, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--page); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: relative;
  z-index: 20;
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  height: 52px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding-top: 9px;
}

.brand {
  width: fit-content;
  font-family: "Helvetica Neue", Arial, SimHei, "Microsoft YaHei", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  text-decoration: none;
}

.primary-nav { display: flex; gap: 27px; padding-top: 2px; }
.primary-nav a,
.mobile-menu a,
.menu-toggle,
.site-footer {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.primary-nav a { text-decoration: none; }
.primary-nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: 3px;
  background: currentColor;
  transition: width .2s ease;
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { width: 100%; }

.menu-toggle {
  justify-self: end;
  width: 24px;
  height: 24px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 1px; margin: 5px 0; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 44px;
  right: 0;
  min-width: 150px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--ink);
}
.mobile-menu a { display: block; padding: 7px 0; text-decoration: none; }

main,
.site-footer { width: min(calc(100% - (var(--gutter) * 2)), var(--content)); margin-inline: auto; }

.work-intro {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  margin-top: clamp(150px, 18vh, 210px);
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.work-intro::before {
  content: "";
  position: absolute;
  left: -29px;
  top: -1px;
  width: 1px;
  height: 12px;
  background: var(--ink);
}
.work-intro h1 { margin: 0; font-size: clamp(1.65rem, 2.1vw, 2rem); line-height: 1.07; font-weight: 400; letter-spacing: -.04em; }
.filter-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.filter-column { display: flex; flex-direction: column; align-items: flex-start; }
.filter {
  width: fit-content;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: #aaa;
  background: none;
  font-size: .76rem;
  line-height: 1.05;
  cursor: pointer;
}
.filter:hover, .filter.is-active { color: var(--ink); }
.filter > span { display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--ink); vertical-align: 1px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 62px) clamp(18px, 2vw, 28px);
  margin-top: clamp(110px, 13vh, 150px);
}
.project { min-width: 0; margin: 0; }
.project a { display: block; text-decoration: none; }
.project-media { position: relative; overflow: hidden; background: #f1f1f1; aspect-ratio: 3 / 2; }
.project img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .25s; }
.project-index { position: absolute; left: 10px; top: 9px; z-index: 1; padding: 3px 5px; color: #fff; background: rgba(0,0,0,.65); font-size: .64rem; opacity: 0; transition: opacity .2s; }
.project a:hover img { transform: scale(1.018); }
.project a:hover .project-index { opacity: 1; }
.project figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 8px; font-size: .72rem; line-height: 1.35; }
.project figcaption span:last-child { color: #858585; text-align: right; }
.project.is-filtered { display: none; }
.empty-state { margin: 100px 0; color: var(--muted); font-size: .875rem; }

.simple-page { min-height: 70vh; padding-top: clamp(150px, 18vh, 210px); }
.simple-heading { display: grid; grid-template-columns: 42px 1fr; padding-top: 17px; border-top: 1px solid var(--line); }
.simple-heading span { font-size: .7rem; }
.simple-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 4.5rem); font-weight: 400; letter-spacing: -.05em; }
.simple-page > p { margin: 70px 0 0 42px; color: var(--muted); }

.about-page {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  padding: 12px var(--gutter) 60px;
  color: #111;
  background: #efefed;
}
.about-toolbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; padding: 0 0 12px; border-bottom: 1px solid #222; background: #efefed; font-size: .72rem; font-weight: 600; }
.about-toolbar button { border: 0; padding: 0; background: none; cursor: pointer; }
.about-layout { width: min(100%, var(--content)); margin: clamp(60px, 9vh, 110px) auto 0; display: grid; grid-template-columns: .93fr 1.07fr; gap: clamp(42px, 8vw, 130px); }
.about-portrait { margin: 0; align-self: start; }
.about-portrait img { display: block; width: 100%; height: auto; }
.about-portrait figcaption { margin-top: 8px; font-size: .68rem; color: #6d6d6d; }
.about-copy .eyebrow { margin: 0 0 70px; font-size: .72rem; }
.about-copy > h1 { margin: 0 0 45px; font-size: clamp(3.3rem, 7vw, 7.7rem); line-height: .87; font-weight: 400; letter-spacing: -.075em; }
.about-lead { max-width: 540px; margin: 0 0 70px; font-size: clamp(1.15rem, 1.8vw, 1.6rem); line-height: 1.45; }
.about-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; padding-top: 12px; border-top: 1px solid #222; }
.about-details h2, .experience > h2 { margin: 0 0 22px; font-size: .72rem; text-transform: uppercase; }
.about-details p { margin: 0; font-size: .88rem; line-height: 1.65; }
.about-details a { text-underline-offset: 3px; }
.experience { margin-top: 80px; }
.experience article { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 11px 0 18px; border-top: 1px solid #aaa; font-size: .78rem; line-height: 1.5; }
.experience article time, .experience article p { margin: 0; }

.project-detail { padding-top: clamp(82px, 10vh, 120px); }
.detail-heading { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }
.detail-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.detail-heading a, .detail-back { font-size: .72rem; text-decoration: none; }
.project-intro {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(460px, 1.05fr);
  gap: clamp(70px, 9vw, 150px);
  min-height: calc(100svh - clamp(140px, 16vh, 190px));
  padding: clamp(36px, 5vh, 62px) clamp(14px, 3vw, 42px) 44px;
  margin-bottom: 28px;
  background: #f6f6f4;
}
.project-intro-aside {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
}
.project-intro-aside > h1 {
  margin: 0;
  max-width: 500px;
  font-size: clamp(1.55rem, 2.15vw, 2rem);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -.035em;
}
.project-intro-body { min-height: 100%; }
.project-intro-body > p { max-width: 690px; margin: 0 0 32px; font-size: clamp(1.02rem, 1.38vw, 1.35rem); line-height: 1.62; letter-spacing: -.018em; }
.project-meta { width: min(100%, 430px); margin: 46px 0 0; font-size: .7rem; line-height: 1.45; }
.project-meta div { margin-bottom: 18px; }
.project-meta dt, .project-meta dd { margin: 0; }
.project-meta dt { margin-bottom: 2px; color: #9a9a9a; }
.project-meta dt::after { content: ""; }
.project-detail > img { display: block; width: 100%; height: auto; margin-bottom: 22px; background: #f1f1f1; }
.detail-back { display: block; width: fit-content; margin: 60px 0 0 auto; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: clamp(100px, 14vh, 170px); padding: 13px 0 20px; border-top: 1px solid var(--line); }
.site-footer a { text-decoration: none; }
body.overlay-open { overflow: hidden; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

@media (max-width: 820px) {
  :root { --gutter: 18px; }
  .site-header { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .work-intro { grid-template-columns: 1fr; gap: 48px; margin-top: 110px; }
  .work-intro::before { left: 0; top: -13px; height: 12px; }
  .filter-panel { grid-template-columns: repeat(3, 1fr); }
  .project-grid { margin-top: 85px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-portrait { max-width: 560px; }
  .about-copy .eyebrow { margin-bottom: 42px; }
  .project-intro { grid-template-columns: 1fr; gap: 52px; min-height: auto; padding: 32px 22px 40px; }
  .project-intro-aside { min-height: auto; }
  .project-meta { margin-top: 36px; }
  .project-intro-body { min-height: auto; }
}

@media (max-width: 580px) {
  .project-grid { grid-template-columns: 1fr; gap: 46px; }
  .filter-panel { grid-template-columns: 1fr 1fr; gap: 20px 38px; }
  .filter-panel > .filter { grid-column: 1 / -1; }
  .project-index { opacity: 1; }
  .about-page { padding-inline: 18px; }
  .about-copy > h1 { font-size: clamp(3.25rem, 17vw, 5.7rem); }
  .about-details, .experience article { grid-template-columns: 1fr; gap: 8px; }
  .site-footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
