:root {
  --bg: #f4f4f1;
  --paper: #fbfbf8;
  --ink: #11110f;
  --muted: #6f706a;
  --line: #d8d8d1;
  --line-dark: #2b2c29;
  --accent: #8b7f69;
  --black: #10100e;
  --header-h: 88px;
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

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

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

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

body.preview-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 44px;
  background: rgba(251, 251, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  letter-spacing: 0;
}

.brand-wordmark {
  display: grid;
  gap: 4px;
  line-height: 1.1;
}

.brand-wordmark strong {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-wordmark small {
  color: var(--muted);
  font-size: 13px;
}

.brand-mark {
  width: 64px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.nav span {
  color: var(--muted);
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after,
.text-link::after {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transition: width 220ms ease;
}

.nav a:hover::after,
.text-link:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(520px, 1.28fr);
  align-items: stretch;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  padding: 70px 6vw 90px;
}

.domain {
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(76px, 9.4vw, 136px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero h2 {
  margin: 26px 0 34px;
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 400;
  line-height: 1.15;
}

.hero p:not(.domain) {
  max-width: 470px;
  margin: 0 0 46px;
  color: #3f403b;
  font-size: 16px;
}

.text-link {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 52px;
  min-width: 172px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 15px;
}

.text-link span {
  font-size: 24px;
  line-height: 1;
}

.hero-media {
  position: relative;
  min-height: 620px;
  margin: 0;
  background: #ddd;
}

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

.scroll-mark {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(16, 16, 14, 0.28);
}

.category-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.category-tile {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 3px;
  padding: 28px 42px;
  background: transparent;
  border-right: 1px solid var(--line);
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.category-tile:last-child {
  border-right: 0;
}

.category-tile span {
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.05;
}

.category-tile small {
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease;
}

.category-tile small::after {
  display: block;
  width: 34px;
  height: 1px;
  margin-top: 13px;
  content: "";
  background: currentColor;
}

.category-tile:hover,
.category-tile.is-active {
  color: var(--paper);
  background: var(--black);
}

.category-tile:hover small,
.category-tile.is-active small {
  color: #c9c8bf;
}

.works,
.updates {
  padding: 84px 44px 70px;
  background: var(--paper);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.section-heading p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.section-heading h2 {
  margin: 0 0 24px;
  font-size: clamp(27px, 3vw, 44px);
  font-weight: 400;
}

.section-heading .text-link {
  min-width: 136px;
  margin-bottom: 22px;
  gap: 34px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 68px;
}

.featured-card {
  min-height: 320px;
  background: #e8e8e2;
}

.featured-card--large {
  grid-row: span 2;
}

.featured-card .image-preview-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: transparent;
  cursor: zoom-in;
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.86);
  transition: transform 700ms ease, filter 700ms ease;
}

.featured-card:hover img {
  transform: scale(1.035);
  filter: saturate(1);
}

.featured-card .image-preview-trigger > span {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--paper);
  font-size: 13px;
}

.featured-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 58px 22px 22px;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(16, 16, 14, 0), rgba(16, 16, 14, 0.76));
}

.featured-card small {
  display: block;
  margin-bottom: 6px;
  color: #d7d4cb;
  font-size: 12px;
}

.featured-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
}

.featured-card p {
  margin: 4px 0 0;
  color: #dedbd2;
  font-size: 13px;
}

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

.empty-projects {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.empty-projects p {
  margin: 0;
}

.project-row {
  display: grid;
  grid-template-columns: 50px minmax(160px, 240px) minmax(200px, 1.15fr) 110px 90px minmax(260px, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.project-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.82);
}

.project-image-button {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.project-image-button img {
  transition: transform 420ms ease, filter 420ms ease;
}

.project-image-button:hover img {
  transform: scale(1.035);
  filter: saturate(1);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 32px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

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

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 14, 0.82);
  backdrop-filter: blur(8px);
}

.image-lightbox__figure {
  position: relative;
  z-index: 1;
  width: min(1160px, 94vw);
  max-height: 90svh;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  color: var(--paper);
  background: #10100e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  transform: scale(0.975);
  transition: transform 180ms ease;
}

.image-lightbox.is-open .image-lightbox__figure {
  transform: scale(1);
}

.image-lightbox__figure img {
  width: 100%;
  max-height: calc(90svh - 82px);
  object-fit: contain;
  background: #151511;
}

.image-lightbox__figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border-top: 1px solid rgba(244, 244, 241, 0.16);
}

.image-lightbox__figure strong {
  font-size: 18px;
  font-weight: 400;
}

.image-lightbox__figure span {
  color: #c7c6bd;
  font-size: 13px;
  text-align: right;
}

.image-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper);
  border: 1px solid rgba(244, 244, 241, 0.4);
  background: rgba(16, 16, 14, 0.68);
  font-size: 28px;
  line-height: 1;
}

.project-number,
.project-row > p {
  color: var(--muted);
  font-size: 14px;
}

.project-title h3 {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 400;
}

.project-title p,
.project-row > p {
  margin: 0;
}

.project-title p {
  color: var(--muted);
  font-size: 13px;
}

.studio {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(360px, 1fr);
  background: #ecece7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.studio figure {
  min-height: 520px;
  margin: 0;
}

.studio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86);
}

.studio-copy {
  align-self: center;
  max-width: 640px;
  padding: 78px 7vw;
}

.studio-copy > p:first-child {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.studio-copy h2 {
  margin: 0 0 34px;
  font-size: clamp(31px, 4vw, 56px);
  font-weight: 400;
}

.studio-copy p {
  margin: 0 0 24px;
  color: #383934;
}

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

.update-strip article {
  min-height: 184px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 26px 28px 22px 0;
  border-right: 1px solid var(--line);
}

.update-strip article + article {
  padding-left: 28px;
}

.update-strip article:last-child {
  border-right: 0;
}

.update-strip time {
  color: var(--muted);
  font-size: 13px;
}

.update-strip h3 {
  max-width: 260px;
  margin: 0;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.45;
}

.update-strip a {
  justify-self: end;
  font-size: 24px;
}

.footer {
  display: grid;
  grid-template-columns: 1.8fr 1fr 0.75fr 0.75fr;
  gap: 44px;
  padding: 58px 44px 50px;
  color: #f0f0ea;
  background: var(--black);
}

.footer > div,
.footer address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
}

.footer strong {
  font-size: 22px;
  font-weight: 400;
}

.footer span,
.footer a {
  color: #c7c6bd;
  font-size: 14px;
}

.footer > div:first-child span {
  color: #f0f0ea;
  font-size: 24px;
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    min-height: 78px;
    align-items: flex-start;
    padding: 18px 22px;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

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

  .hero-copy {
    min-height: 430px;
    padding: 48px 24px 52px;
  }

  .domain {
    margin-bottom: 34px;
  }

  .hero-media {
    min-height: 46svh;
  }

  .scroll-mark {
    left: auto;
    right: 20px;
  }

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

  .category-tile {
    min-height: 132px;
    padding: 22px;
  }

  .works,
  .updates {
    padding: 58px 22px;
  }

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

  .featured-card--large {
    grid-column: span 2;
  }

  .project-row {
    grid-template-columns: 38px 120px 1fr;
    gap: 14px;
  }

  .image-lightbox {
    padding: 18px;
  }

  .image-lightbox__figure {
    width: min(100%, 94vw);
  }

  .image-lightbox__figure figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
  }

  .image-lightbox__figure span {
    text-align: left;
  }

  .project-row > p {
    display: none;
  }

  .studio,
  .footer {
    grid-template-columns: 1fr;
  }

  .studio figure {
    min-height: 360px;
  }

  .studio-copy {
    padding: 48px 22px;
  }

  .update-strip {
    grid-template-columns: 1fr 1fr;
  }

  .update-strip article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    display: grid;
    gap: 18px;
  }

  .nav {
    flex-wrap: wrap;
  }

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

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 56px;
  }

  .hero h1 {
    font-size: 76px;
  }

  .hero h2 {
    font-size: 25px;
  }

  .category-band,
  .featured-grid,
  .update-strip {
    grid-template-columns: 1fr;
  }

  .featured-card--large {
    grid-column: auto;
  }

  .featured-card,
  .featured-card .image-preview-trigger,
  .featured-card img {
    min-height: 280px;
  }

  .project-row {
    grid-template-columns: 32px 1fr;
    align-items: start;
  }

  .project-image-button {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .project-number {
    grid-column: 1;
  }

  .project-title {
    grid-column: 2;
  }

  .update-strip article,
  .update-strip article + article {
    min-height: 150px;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
