/* ─── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Celattin';
  src: url('../fonts/Celattin.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'nzgrkangxi';
  src: url('../fonts/nzgrkangxi.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f5f2ed;
  --text:        #1a1714;
  --muted:       #8a857e;
  --border:      #e3ddd6;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Inter', system-ui, sans-serif;
  --display:     'Celattin', 'Cormorant Garamond', Georgia, serif;
  --nav-h:       72px;
}

html { scroll-behavior: smooth; }

h2 { font-family: var(--display) !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { color: inherit; text-decoration: none; }

/* ─── Navigation ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.3s, border-color 0.3s;
}

nav.solid {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text);
  transition: opacity 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a:hover { opacity: 0.6; }
.nav-links a.active { opacity: 1; }

/* Language toggle */
.lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text);
  padding: 0;
  white-space: nowrap;
}
nav.transparent .lang-toggle { color: #f5f2ed; }
.lang-inactive { opacity: 0.35; }
.lang-sep { opacity: 0.35; }

/* transparent nav over hero */
nav.transparent {
  background: transparent;
  border-bottom: 1px solid transparent;
}
nav.transparent .nav-logo,
nav.transparent .nav-links a {
  color: #f5f2ed;
}
nav.transparent .nav-links a::after {
  background: #f5f2ed;
}

/* ─── Mobile Menu ───────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  color: var(--text);
}

nav.transparent .nav-toggle {
  color: #f5f2ed;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s;
}

/* X state when open */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.45) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 64px;
  left: 56px;
  color: #f5f2ed;
}

.hero-content h1 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 12px;
  opacity: 0.85;
}

.hero-content .hero-name {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: 0.02em;
}

.hero-content .hero-subtitle {
  font-family: 'nzgrkangxi', serif;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 300;
  font-style: normal;
  margin-top: 12px;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 56px;
  color: rgba(245,242,237,0.6);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
  writing-mode: vertical-rl;
}

.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: currentColor;
}

/* ─── Section Layout ────────────────────────────────────────── */
.section {
  padding: 120px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 48px;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}

/* ─── Home — Works Preview ──────────────────────────────────── */
.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  padding: 120px 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.home-intro-text h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

[lang="zh-CN"] .home-intro-text h2 {
  font-family: 'nzgrkangxi', serif !important;
  margin-bottom: 28px;
}

.home-intro-text p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 440px;
}

.home-intro-ch {
  font-family: 'nzgrkangxi', serif;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

.home-intro-cta {
  display: flex;
  justify-content: flex-end;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--text);
  padding-bottom: 4px;
  transition: opacity 0.2s;
}
.btn-link:hover { opacity: 0.5; }
.btn-link::after {
  content: '→';
  font-size: 14px;
  letter-spacing: 0;
}

/* ─── Home — Featured Grid ──────────────────────────────────── */
.featured-header {
  padding: 80px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.featured-header-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.featured-header-title {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: normal;
  line-height: 1;
  color: var(--text);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
  padding: 0 0 120px;
}

.featured-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.featured-item:first-child {
  grid-row: 1 / 3;
  height: 700px;
}

.featured-item:not(:first-child) {
  height: 348px;
}

.featured-item img {
  transition: transform 0.7s ease;
}

.featured-item:hover img {
  transform: scale(1.03);
}

.featured-item-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: #f5f2ed;
  z-index: 2;
}

.featured-item-label::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.featured-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
  pointer-events: none;
}

.featured-item-label .item-num {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
  position: relative;
  z-index: 3;
}

.featured-item-label .item-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 3;
}

.featured-item-label .item-ch {
  font-family: 'nzgrkangxi', serif;
  font-size: 16px;
  opacity: 0.7;
  margin-left: 8px;
  position: relative;
  z-index: 3;
}

/* ─── Works Page ────────────────────────────────────────────── */
.works-header {
  padding: calc(var(--nav-h) + 80px) 48px 80px;
  border-bottom: 1px solid var(--border);
  max-width: 1400px;
  margin: 0 auto;
}

.works-header h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.0;
}

.project-list {
  max-width: 1400px;
  margin: 0 auto;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.project-item:nth-child(even) .project-image {
  order: 2;
}
.project-item:nth-child(even) .project-info {
  order: 1;
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  transition: transform 0.8s ease;
}

.project-item:hover .project-image img {
  transform: scale(1.04);
}

.project-info {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-num {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.project-ch {
  font-family: 'nzgrkangxi', serif;
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  color: var(--border);
  margin-bottom: 16px;
}

.project-title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.project-subtitle {
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 20px);
  font-style: italic;
  color: var(--muted);
  margin-bottom: 32px;
}

.project-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 400px;
}

/* ─── About Page ────────────────────────────────────────────── */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}

.about-photo {
  position: relative;
  overflow: hidden;
}

.about-photo img {
  object-position: center top;
}

.about-text {
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: 48px;
  letter-spacing: 0.01em;
}

.about-text p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 520px;
}

.about-text p:last-of-type { margin-bottom: 0; }

.about-details {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 48px 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  border-top: 1px solid var(--border);
}

.about-detail-item h3 {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.about-detail-item p {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ─── Contact Page ──────────────────────────────────────────── */
.contact-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-h) 48px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: 0.01em;
  margin-bottom: 64px;
}

.contact-block {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.contact-block:last-of-type {
  border-bottom: 1px solid var(--border);
}

.contact-block-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.contact-block-value {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.contact-block-value:hover { opacity: 0.5; }

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ─── Fade-in Animation ─────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Works Page — Image Link Hover ────────────────────────── */
a.project-image {
  display: block;
}

.project-image-hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s;
  z-index: 2;
  pointer-events: none;
}

.project-image-hover span {
  color: #f5f2ed;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
  border-bottom: 1px solid rgba(245,242,237,0.55);
  padding-bottom: 4px;
}

.project-item:hover .project-image-hover {
  background: rgba(0,0,0,0.22);
}

.project-item:hover .project-image-hover span {
  opacity: 1;
}

/* ─── Project Detail Page ───────────────────────────────────── */
.project-detail-hero {
  position: relative;
  height: 55vh;
  min-height: 360px;
  margin-top: var(--nav-h);
  overflow: hidden;
}

.project-detail-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  border-bottom: 1px solid var(--border);
}

.detail-meta-num {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.detail-meta-ch {
  font-family: 'nzgrkangxi', serif;
  font-size: 96px;
  font-weight: 300;
  line-height: 1;
  color: var(--border);
  margin-bottom: 16px;
}

.detail-meta-title {
  font-family: var(--display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.detail-meta-subtitle {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 40px;
}

.detail-meta-facts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-fact-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.detail-fact-value {
  font-size: 14px;
  line-height: 1.7;
}

.detail-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8px;
}

.detail-description p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 600px;
}

.detail-description p:last-child { margin-bottom: 0; }

/* Gallery */
.project-gallery {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3px 0 120px;
  display: grid;
  gap: 3px;
}

.project-gallery.cols-1 { grid-template-columns: 1fr; }
.project-gallery.cols-2 { grid-template-columns: 1fr 1fr; }
.project-gallery.cols-4 { grid-template-columns: 1fr 1fr; }

.gallery-img {
  overflow: hidden;
  height: 580px;
}

.gallery-img.span-2 {
  grid-column: 1 / -1;
  height: 640px;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-img:hover img {
  transform: scale(1.03);
}

/* Project prev / next nav */
.project-nav {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
}

.project-nav-item {
  padding: 48px;
  display: block;
  transition: background 0.2s;
  border-right: 1px solid var(--border);
}

.project-nav-item:last-child { border-right: none; text-align: right; }
.project-nav-item.empty     { pointer-events: none; }
.project-nav-item:hover     { background: rgba(0,0,0,0.025); }

.project-nav-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.project-nav-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #fff !important;
    text-align: center;
  }

  .nav-links li a::after { display: none; }

  .nav-links li:has(.lang-toggle) {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links li .lang-toggle {
    padding: 24px 0;
    font-size: 13px;
    color: #fff !important;
  }

  .nav-toggle { display: flex; }

  .hero-content { left: 24px; bottom: 48px; }
  .hero-scroll  { right: 24px; }

  .home-intro {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 24px 60px;
  }

  .home-intro-cta { justify-content: flex-start; }

  .featured-header { padding: 60px 24px 32px; }

  .featured-grid {
    grid-template-columns: 1fr;
    padding: 0 0 80px;
  }

  .featured-item:first-child { grid-row: auto; height: 60vw; }
  .featured-item:not(:first-child) { height: 56vw; }

  .project-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-item:nth-child(even) .project-image { order: 0; }
  .project-item:nth-child(even) .project-info  { order: 1; }

  .project-image { height: 70vw; }
  .project-info  { padding: 40px 24px; }

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

  .about-photo { height: 80vw; }
  .about-text  { padding: 48px 24px; }

  .about-details {
    grid-template-columns: 1fr;
    padding: 48px 24px 80px;
    gap: 40px;
  }

  .contact-wrap { padding: var(--nav-h) 24px 80px; }

  .works-header { padding: calc(var(--nav-h) + 48px) 24px 48px; }

  .section, .section-narrow { padding: 80px 24px; }

  footer { padding: 24px; flex-direction: column; gap: 8px; text-align: center; }

  .project-detail-hero { height: 60vw; min-height: 300px; }

  .project-detail-body {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px;
  }

  .project-gallery.cols-2,
  .project-gallery.cols-4 { grid-template-columns: 1fr; }

  .gallery-img { height: 70vw; }

  .project-nav { grid-template-columns: 1fr; }
  .project-nav-item { padding: 32px 24px; border-right: none; border-bottom: 1px solid var(--border); text-align: left !important; }
  .project-nav-title { font-size: 18px; }
}

/* ─── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 9, 8, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
  cursor: default;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  cursor: pointer;
  padding: 20px 32px;
  transition: color 0.2s;
  user-select: none;
}

.lightbox-btn:hover { color: rgba(255,255,255,1); }
.lightbox-btn.prev  { left: 0; }
.lightbox-btn.next  { right: 0; }

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 36px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover { color: rgba(255,255,255,0.9); }

.lightbox-footer {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 88vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.lightbox-counter {
  color: rgba(255,255,255,0.35);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.gallery-img img { cursor: zoom-in; }

/* ─── Roost Series Grid ──────────────────────────────────────── */
.roost-series {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 3px;
  padding: 3px 0 120px;
}

.roost-series-item {
  position: relative;
  overflow: hidden;
  height: 560px;
  cursor: pointer;
  display: block;
  transition: opacity 0.4s ease;
}

.roost-series:hover .roost-series-item {
  opacity: 0.35;
}

.roost-series:hover .roost-series-item:hover {
  opacity: 1;
}

.roost-series-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.roost-series-item:hover img {
  transform: scale(1.03);
}

.roost-series-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
  pointer-events: none;
}

.roost-series-label {
  position: absolute;
  bottom: 28px;
  left: 28px;
  color: #fff;
  z-index: 2;
}

.roost-series-label .series-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  display: block;
  letter-spacing: 0.02em;
}

.roost-series-label .series-sub {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .roost-series { grid-template-columns: 1fr 1fr; }
  .roost-series-item { height: 50vw; }
}

/* ─── Roost Sub-page Back Nav ───────────────────────────────── */
.roost-back-nav {
  margin-top: var(--nav-h);
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}

.roost-back-nav a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.roost-back-nav a:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .roost-back-nav { padding: 16px 24px; }
}

/* ─── Roost Sub-page Nav Strip ───────────────────────────────── */
.roost-sub-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 3px;
  padding: 3px 0 0;
}

.roost-sub-nav-item {
  position: relative;
  height: 300px;
  overflow: hidden;
  display: block;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

.roost-sub-nav:hover .roost-sub-nav-item {
  opacity: 0.35;
}

.roost-sub-nav:hover .roost-sub-nav-item:hover,
.roost-sub-nav:hover .roost-sub-nav-item.active {
  opacity: 1;
}

.roost-sub-nav-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.roost-sub-nav-item:not(.active):hover img {
  transform: scale(1.03);
}

.roost-sub-nav-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 55%);
  pointer-events: none;
}

.roost-sub-nav-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  z-index: 2;
  letter-spacing: 0.02em;
}

.roost-sub-nav-item.active .roost-sub-nav-label::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.85);
  margin-top: 5px;
}

@media (max-width: 768px) {
  .roost-sub-nav { grid-template-columns: 1fr 1fr; }
  .roost-sub-nav-item { height: 45vw; }
}
