:root {
  --bg: rgb(238, 234, 233);
  --accent: #37332e;
  --text: rgb(22, 20, 19);
  --muted: rgba(22, 20, 19, 0.56);
  --line: rgba(22, 20, 19, 0.14);
  --nav-h: 80px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 42px;
  background: rgba(238, 234, 233, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.logo { justify-self: start; font-size: 13px; text-transform: uppercase; }
.nav-links { display: flex; gap: 32px; padding: 0; margin: 0; list-style: none; }
.nav-links a, .back-link { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.back-link { justify-self: end; }

.project-hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #111;
}
.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.08), transparent 42%, rgba(10,10,10,0.6));
}
.hero-copy {
  position: absolute;
  z-index: 2;
  left: 38px;
  right: 38px;
  bottom: 34px;
  color: rgb(245, 242, 239);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
}
.hero-title {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-size: clamp(68px, 13vw, 210px);
  line-height: 0.76;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  font-weight: 500;
  overflow-wrap: normal;
}
.hero-meta {
  flex: 0 0 min(340px, 28vw);
  max-width: 340px;
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-intro {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 680px);
  gap: 80px;
  padding: 100px 8vw 120px;
  border-bottom: 1px solid var(--line);
}
.intro-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.intro-text {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: var(--accent);
}

.project-gallery {
  padding: 12vw 4vw;
  display: flex;
  flex-direction: column;
  gap: 15vw;
}
.gallery-frame {
  margin: 0;
  width: min(86vw, 1500px);
}
.gallery-frame:nth-child(even) { align-self: flex-end; width: min(72vw, 1220px); }
.gallery-frame.is-portrait { width: min(58vw, 880px); }
.gallery-frame img {
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
}

.project-video {
  padding: 4vw 4vw 12vw;
}
.project-video video {
  width: 100%;
  max-height: 90vh;
  background: #111;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 32px 42px 44px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
}

@media (max-width: 840px) {
  :root { --nav-h: 52px; }
  .site-nav { display: flex; justify-content: space-between; padding: 0 16px; }
  .nav-links { display: none; }
  .logo, .back-link { font-size: 10px; }
  .project-hero { min-height: 560px; }
  .hero-copy { left: 18px; right: 18px; bottom: 24px; display: block; }
  .hero-title { width: 100%; font-size: clamp(50px, 17vw, 82px); white-space: normal; }
  .hero-meta { max-width: 340px; }
  .hero-meta { margin-top: 26px; }
  .project-intro { display: block; padding: 70px 20px 84px; }
  .intro-label { margin-bottom: 28px; }
  .intro-text { font-size: 31px; }
  .project-gallery { padding: 70px 14px; gap: 90px; }
  .gallery-frame,
  .gallery-frame:nth-child(even),
  .gallery-frame.is-portrait { width: 100%; align-self: auto; }
  .project-video { padding: 0 14px 90px; }
  .project-footer { padding: 26px 18px 34px; }
}


/* Preserve Shanghai Gift main image without crop */
.project-hero--contain {
  background: #fff !important;
  display: grid !important;
  place-items: center !important;
}
.project-hero--contain img {
  width: auto !important;
  height: auto !important;
  max-width: min(100vw, 2048px) !important;
  max-height: 100svh !important;
  object-fit: contain !important;
  transform: none !important;
}
.project-hero--contain::after {
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0) 54%, rgba(255,255,255,0.56)) !important;
}
.project-hero--contain .hero-copy {
  color: rgb(22, 20, 19) !important;
  text-shadow: 0 1px 22px rgba(255,255,255,0.72) !important;
}
