:root {
  --ink: #151412;
  --muted: #66645f;
  --paper: #f5f3ef;
  --panel: #fffef9;
  --line: rgba(21, 20, 18, 0.16);
  --dark: #12110f;
  --dark-soft: #1e1d1a;
  --radius: 8px;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial,
    sans-serif;
}

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

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

a {
  text-decoration: none;
}

button {
  border: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 239, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  width: 26px;
  height: 10px;
  background: var(--ink);
}

.top-nav a {
  font-size: 13px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  max-width: 1440px;
  min-height: 700px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) clamp(18px, 4vw, 56px) 72px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.title-lockup {
  display: grid;
  gap: 10px;
  max-width: 760px;
  padding: 18px 0 20px;
  margin: 0;
  border-top: 8px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: clamp(52px, 7.2vw, 100px);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
}

.title-lockup span {
  display: block;
  white-space: nowrap;
}

.title-lockup span:last-child {
  padding-left: clamp(76px, 9vw, 132px);
}

.hero-summary {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin-top: 26px;
}

.hero-summary p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.78;
}

.hero-stage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 78px;
  gap: 10px;
  min-height: 560px;
}

.hero-tile {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  place-items: center;
  border-radius: var(--radius);
  background: var(--dark-soft);
  cursor: pointer;
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.hero-tile:hover img {
  transform: scale(1.035);
}

.hero-tile span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.78);
}

.tile-1 {
  grid-column: 1 / span 3;
  grid-row: 1 / span 4;
}

.tile-2 {
  grid-column: 4 / span 3;
  grid-row: 1 / span 3;
}

.tile-3 {
  grid-column: 4 / span 3;
  grid-row: 4 / span 4;
}

.tile-4 {
  grid-column: 1 / span 3;
  grid-row: 5 / span 3;
}

.overview {
  display: grid;
  grid-template-columns: 0.68fr 0.68fr 1.64fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.overview div {
  min-height: 108px;
  padding: 22px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.overview div:last-child {
  border-right: 0;
}

.overview span {
  display: block;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 950;
  line-height: 1;
}

.overview p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.work-section,
.case-study,
.archive {
  padding: clamp(64px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.work-section > *,
.case-study > *,
.archive > * {
  max-width: var(--content);
  margin-right: auto;
  margin-left: auto;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(280px, 0.72fr);
  gap: clamp(22px, 4vw, 64px);
  align-items: end;
  margin-bottom: 34px;
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.case-row {
  min-width: 0;
}

.case-row button {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: 0 0 18px;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.case-cover {
  display: grid;
  overflow: hidden;
  min-height: 178px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ece9e2;
}

.case-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-text {
  display: grid;
  align-content: start;
  gap: 10px;
}

.case-meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.case-text strong {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 950;
  line-height: 1.08;
}

.case-text > span:not(.case-meta):not(.case-tags) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.case-study {
  background: var(--dark);
  color: #fff;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: center;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.case-hero-copy h2 {
  color: #fff;
}

.case-subtitle {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 950;
}

.case-hero-copy p:not(.eyebrow):not(.case-subtitle) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.82;
}

.case-hero .case-tags span {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.72);
}

.case-hero-media {
  display: grid;
  min-height: 380px;
  max-height: 560px;
  overflow: hidden;
  place-items: center;
  border-radius: var(--radius);
  background: var(--dark-soft);
}

.case-hero-media img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}

.case-brief {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.case-brief section {
  min-height: 220px;
  padding: 20px;
  background: var(--dark);
}

.brief-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.case-brief p:not(.brief-label),
.case-brief li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.72;
}

.case-brief ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.featured-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.featured-shot,
.archive-item {
  display: grid;
  position: relative;
  overflow: hidden;
  place-items: center;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.featured-shot {
  grid-column: span 3;
  min-height: 240px;
  padding: 10px;
  background: var(--dark-soft);
}

.featured-shot.is-wide {
  grid-column: span 6;
  aspect-ratio: 16 / 9;
}

.featured-shot.is-landscape {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}

.featured-shot.is-portrait,
.featured-shot.is-tall {
  aspect-ratio: 3 / 4;
}

.featured-shot.is-balanced {
  aspect-ratio: 1 / 1;
}

.featured-shot.is-compact-source {
  min-height: 210px;
}

.featured-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.archive {
  background: var(--panel);
}

.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.archive-tabs button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.archive-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.archive-item {
  grid-column: span 3;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: transparent;
}

.archive-item.is-wide {
  grid-column: span 3;
  aspect-ratio: 1 / 1;
}

.archive-item.is-landscape {
  grid-column: span 3;
  aspect-ratio: 1 / 1;
}

.archive-item.is-balanced {
  grid-column: span 3;
  aspect-ratio: 1 / 1;
}

.archive-item.is-portrait,
.archive-item.is-tall {
  grid-column: span 3;
  aspect-ratio: 1 / 1;
}

.archive-frame {
  display: grid;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #cfc8bd;
  border-radius: inherit;
  background: #f0eee8;
}

.archive-frame::after {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #b8b0a3;
  content: "";
  pointer-events: none;
}

.archive-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.archive-number {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(21, 20, 18, 0.08);
  font-size: 12px;
  font-weight: 950;
}

.lightbox {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  min-width: 0;
  max-height: calc(100vh - 48px);
  margin: 0;
}

.lightbox img {
  max-height: calc(100vh - 92px);
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox figcaption {
  min-height: 24px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.lightbox-close,
.lightbox-step {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.lightbox-step {
  width: 52px;
  height: 72px;
  border-radius: 999px;
  font-size: 42px;
}

.error-state {
  padding: 40px;
}

@media (max-width: 1180px) {
  .hero,
  .case-hero {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 460px;
  }

  .case-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-intro,
  .case-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-shot,
  .archive-item {
    grid-column: span 4;
  }

  .featured-shot.is-wide,
  .archive-item.is-wide {
    grid-column: span 8;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 16px;
  }

  .top-nav {
    gap: 10px;
  }

  .top-nav a {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 42px 16px 56px;
  }

  .title-lockup {
    font-size: clamp(42px, 15vw, 68px);
  }

  .title-lockup span:last-child {
    padding-left: 0;
  }

  .hero-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    min-height: 0;
  }

  .tile-1,
  .tile-2,
  .tile-3,
  .tile-4 {
    grid-column: auto;
    grid-row: auto;
  }

  .overview,
  .section-intro,
  .case-brief {
    grid-template-columns: 1fr;
  }

  .overview div {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .work-section,
  .case-study,
  .archive {
    padding: 56px 16px;
  }

  .case-list {
    grid-template-columns: 1fr;
  }

  .case-cover {
    min-height: 220px;
  }

  .case-hero-media {
    min-height: 260px;
  }

  .featured-gallery,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-shot,
  .featured-shot.is-wide,
  .featured-shot.is-landscape,
  .archive-item,
  .archive-item.is-wide,
  .archive-item.is-landscape {
    grid-column: span 1;
  }

  .featured-shot {
    min-height: 190px;
  }

  .lightbox {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .lightbox-step {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 58px;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}
