/* ==========================================================================
   WANG — Personal Photography Monograph
   Warm Editorial Alabaster & Obsidian Darkroom Design System
   ========================================================================== */

:root {
  --bg: #f6f3ee;
  --bg-elevated: #eee9e0;
  --bg-mat: #fbf9f6;
  --ink: #171614;
  --ink-secondary: #58524a;
  --ink-muted: #847d73;
  --accent: #9a5b44;
  --hairline: rgba(23, 22, 20, 0.1);
  --hairline-strong: rgba(23, 22, 20, 0.22);
  --header-bg: rgba(246, 243, 238, 0.84);
  --shadow-plate: 0 28px 70px -28px rgba(23, 22, 20, 0.2), 0 4px 16px -6px rgba(23, 22, 20, 0.06);
  --shadow-plate-hover: 0 38px 90px -28px rgba(23, 22, 20, 0.28), 0 8px 22px -8px rgba(23, 22, 20, 0.09);

  --font-serif: 'Cormorant Garamond', 'Songti SC', 'STSong', 'Noto Serif SC', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container-max: 1320px;
  --header-h: 72px;
}

[data-theme="dark"] {
  --bg: #10100f;
  --bg-elevated: #181715;
  --bg-mat: #151412;
  --ink: #f1ede6;
  --ink-secondary: #b7b0a5;
  --ink-muted: #7f7970;
  --accent: #c88a70;
  --hairline: rgba(241, 237, 230, 0.1);
  --hairline-strong: rgba(241, 237, 230, 0.24);
  --header-bg: rgba(16, 16, 15, 0.84);
  --shadow-plate: 0 32px 80px -28px rgba(0, 0, 0, 0.72), 0 4px 18px -6px rgba(0, 0, 0, 0.4);
  --shadow-plate-hover: 0 42px 96px -24px rgba(0, 0, 0, 0.85), 0 8px 26px -8px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  transition: background-color 0.55s var(--ease-smooth), color 0.55s var(--ease-smooth);
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 3px;
}

/* Subtle Analog Film Grain Overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="dark"] .grain-overlay {
  opacity: 0.04;
}

/* Top Reading Progress Hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1.5px;
  width: 0%;
  background: var(--accent);
  z-index: 120;
  transition: width 0.08s linear;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 56px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background-color 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth), backdrop-filter 0.4s var(--ease-smooth);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--hairline);
}

.header-inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
}

.brand-divider {
  width: 1px;
  height: 14px;
  background: var(--hairline-strong);
}

.brand-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 36px);
}

.nav-link {
  position: relative;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  padding: 6px 0;
  transition: color 0.3s ease;
}

[data-lang="zh"] .nav-link {
  letter-spacing: 0.14em;
  font-size: 13px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

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

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-secondary);
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.ctrl-btn:hover {
  border-color: var(--hairline-strong);
  color: var(--ink);
  background: rgba(128, 120, 110, 0.06);
}

.icon-btn {
  width: 34px;
  padding: 0;
}

.lang-toggle {
  gap: 4px;
  padding: 0 11px;
}

.lang-opt {
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

.lang-sep {
  opacity: 0.28;
}

[data-lang="en"] [data-lang-opt="en"],
[data-lang="zh"] [data-lang-opt="zh"] {
  opacity: 1;
  color: var(--ink);
  font-weight: 500;
}

[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.slideshow-btn {
  padding: 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.slideshow-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #faf8f5;
}

/* ==========================================================================
   Editorial Hero
   ========================================================================== */
.hero {
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(24px, 4vh, 48px));
  padding-bottom: clamp(44px, 6vh, 80px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0 0 26px;
  font-family: var(--font-serif);
  font-size: clamp(50px, 6.4vw, 94px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

[data-lang="zh"] .hero-title {
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.14;
  letter-spacing: 0.04em;
}

.title-line {
  display: block;
}

.title-italic {
  font-style: italic;
  color: var(--ink-secondary);
  padding-left: clamp(16px, 3vw, 48px);
}

[data-lang="zh"] .title-italic {
  font-style: normal;
  font-weight: 300;
  padding-left: 0;
}

.hero-lead {
  margin: 0 0 36px;
  max-width: 46ch;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-secondary);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(36px, 5vh, 56px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.35s var(--ease-out-expo), color 0.35s var(--ease-out-expo), border-color 0.35s ease;
}

.btn-primary:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out-expo);
}

.btn-primary:hover .btn-arrow {
  transform: translateY(3px);
}

.btn-ghost {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-strong);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.btn-ghost:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.meta-item dt {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.meta-item dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
}

/* Hero Featured Plate */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-plate {
  width: 100%;
  max-width: 470px;
  margin: 0;
  cursor: pointer;
}

.hero-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: clamp(10px, 1.4vw, 18px);
  background: var(--bg-mat);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-plate);
  overflow: hidden;
  transition: box-shadow 0.7s var(--ease-out-expo), border-color 0.5s ease, background-color 0.55s ease;
}

.hero-frame picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-elevated);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out-expo), opacity 0.45s ease;
}

.hero-frame img.is-switching {
  opacity: 0.15;
  transform: scale(1.02);
}

.hero-plate:hover .hero-frame {
  box-shadow: var(--shadow-plate-hover);
  border-color: var(--hairline-strong);
}

.hero-plate:hover .hero-frame img {
  transform: scale(1.03);
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  padding: 0 2px;
}

.caption-plate {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.caption-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  color: var(--ink);
}

[data-lang="zh"] .caption-title {
  font-style: normal;
  font-size: 17px;
}

/* Hero Chapter Switcher */
.hero-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  width: 100%;
  max-width: 470px;
}

.hero-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--hairline);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.hero-tab:hover {
  color: var(--ink);
}

.hero-tab.is-active {
  color: var(--ink);
  border-top-color: var(--ink);
}

.tab-num {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
}

/* ==========================================================================
   Chapters & Museum Spreads
   ========================================================================== */
.chapter {
  padding: clamp(72px, 10vw, 148px) 0;
  border-top: 1px solid var(--hairline);
}

.chapter-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 84px);
}

.chapter-num {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.chapter-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.6vw, 62px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.chapter-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-secondary);
  font-weight: 300;
}

/* Photo Card & Museum Mat */
.photo-card {
  display: flex;
  flex-direction: column;
}

.photo-mat {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: clamp(10px, 1.3vw, 18px);
  background: var(--bg-mat);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-plate);
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.7s var(--ease-out-expo), border-color 0.45s ease, background-color 0.55s ease;
}

.photo-mat picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-elevated);
}

.photo-mat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.05s var(--ease-out-expo);
}

.photo-mat:hover {
  box-shadow: var(--shadow-plate-hover);
  border-color: var(--hairline-strong);
}

.photo-mat:hover img {
  transform: scale(1.032);
}

/* Subtle Hover Cue */
.plate-hover-cue {
  position: absolute;
  inset: clamp(10px, 1.3vw, 18px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, transparent 62%, rgba(16, 15, 14, 0.34) 100%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-smooth);
  pointer-events: none;
}

.plate-hover-cue span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(246, 243, 238, 0.92);
  color: #171614;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateY(6px);
  transition: transform 0.5s var(--ease-out-expo);
}

.photo-mat:hover .plate-hover-cue,
.hero-plate:hover .plate-hover-cue {
  opacity: 1;
}

.photo-mat:hover .plate-hover-cue span,
.hero-plate:hover .plate-hover-cue span {
  transform: translateY(0);
}

/* Plate Metadata Footer */
.photo-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
  margin-top: 2px;
}

.photo-meta-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.plate-index {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-muted);
}

.plate-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.photo-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.plate-sub,
.plate-exif {
  font-size: 12px;
  color: var(--ink-muted);
}

.plate-exif {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-size: 11px;
}

.swatch-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(128, 120, 110, 0.25);
}

/* Spread Layouts */
.spread-diptych {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5.5vw, 84px);
  align-items: start;
}

.card-offset {
  margin-top: clamp(48px, 9vw, 130px);
}

/* Interlude */
.interlude {
  padding: clamp(64px, 9vw, 128px) 0;
  border-top: 1px solid var(--hairline);
  background: var(--bg-elevated);
  transition: background-color 0.55s var(--ease-smooth);
}

.interlude-inner {
  max-width: 820px;
  text-align: center;
}

.interlude-ornament {
  display: block;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 22px;
}

.interlude-quote {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.38;
  color: var(--ink);
}

[data-lang="zh"] .interlude-quote {
  font-style: normal;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.65;
}

.interlude-caption {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
}

/* Chapter II Feature + Duet */
.spread-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 112px);
}

.editorial-note {
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.note-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.note-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.15;
}

.note-body {
  margin: 0 0 28px;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--ink-secondary);
  font-weight: 300;
}

.note-palette-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.palette-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.palette-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
}

.palette-chip i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.spread-duet,
.spread-woodland {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.card-stagger {
  margin-top: clamp(36px, 6.5vw, 96px);
}

/* ==========================================================================
   Curated Contact Sheet / Index
   ========================================================================== */
.index-section {
  padding: clamp(72px, 9vw, 136px) 0;
  border-top: 1px solid var(--hairline);
  background: var(--bg-elevated);
  transition: background-color 0.55s var(--ease-smooth);
}

.index-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--hairline-strong);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.contact-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  animation: fadeUpItem 0.5s var(--ease-out-expo) both;
}

@keyframes fadeUpItem {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 8px;
  background: var(--bg-mat);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: transform 0.55s var(--ease-out-expo), box-shadow 0.55s var(--ease-out-expo), border-color 0.4s ease;
}

.contact-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.contact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-out-expo);
}

.contact-item:hover .contact-thumb {
  transform: translateY(-4px);
  box-shadow: var(--shadow-plate);
  border-color: var(--hairline-strong);
}

.contact-item:hover .contact-thumb img {
  transform: scale(1.04);
}

.contact-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-top: 12px;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
}

.contact-num {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.contact-chapter {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
}

.footer-note {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.footer-links a:hover {
  color: var(--ink);
}

.back-top {
  color: var(--accent);
}

.footer-colophon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Museum Fullscreen Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0b0b0a;
  color: #f2eee7;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth), visibility 0.4s ease;
}

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

.lightbox-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #c88a70;
  z-index: 10;
}

.lightbox-progress.is-running {
  transition: width 4.6s linear;
  width: 100%;
}

.lb-topbar {
  height: 62px;
  padding: 0 clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(242, 238, 231, 0.09);
  flex-shrink: 0;
}

.lb-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 238, 231, 0.7);
}

.lb-counter {
  color: #f2eee7;
  font-variant-numeric: tabular-nums;
}

.lb-sep {
  opacity: 0.35;
}

.lb-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lb-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 238, 231, 0.78);
  border: 1px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.lb-btn:hover,
.lb-btn.is-active {
  color: #fff;
  background: rgba(242, 238, 231, 0.1);
  border-color: rgba(242, 238, 231, 0.16);
}

.lb-btn .icon-pause { display: none; }
.lb-btn.is-playing .icon-play { display: none; }
.lb-btn.is-playing .icon-pause { display: block; }

.lb-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lb-stage {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 36px) clamp(56px, 7vw, 96px);
  overflow: hidden;
  user-select: none;
}

.lb-image-wrap {
  position: relative;
  max-height: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease-out-expo);
  cursor: zoom-in;
}

.lb-image-wrap.is-zoomed {
  cursor: zoom-out;
}

.lb-image-wrap picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-image-wrap img {
  max-height: calc(100vh - 208px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  transition: opacity 0.35s ease;
}

.lb-image-wrap img.is-fading {
  opacity: 0;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 238, 231, 0.72);
  background: rgba(18, 18, 16, 0.55);
  border: 1px solid rgba(242, 238, 231, 0.14);
  z-index: 5;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lb-nav:hover {
  background: rgba(242, 238, 231, 0.14);
  color: #fff;
}

.lb-prev { left: clamp(12px, 2.2vw, 28px); }
.lb-next { right: clamp(12px, 2.2vw, 28px); }

.lightbox.has-drawer .lb-next {
  right: calc(336px + clamp(12px, 2vw, 24px));
}

/* Info Drawer */
.lb-drawer {
  width: 0;
  opacity: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid transparent;
  background: rgba(20, 19, 18, 0.92);
  transition: width 0.45s var(--ease-out-expo), opacity 0.35s ease, padding 0.45s var(--ease-out-expo), border-color 0.35s ease;
  padding: 0;
  flex-shrink: 0;
}

.lightbox.has-drawer .lb-drawer {
  width: 336px;
  opacity: 1;
  padding: 32px 28px;
  border-left-color: rgba(242, 238, 231, 0.1);
}

.drawer-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #c88a70;
  margin-bottom: 10px;
}

.drawer-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 300;
  line-height: 1.15;
}

.drawer-note {
  margin: 0 0 28px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(242, 238, 231, 0.72);
  font-weight: 300;
}

.drawer-specs {
  margin: 0 0 28px;
  border-top: 1px solid rgba(242, 238, 231, 0.1);
}

.drawer-specs > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(242, 238, 231, 0.08);
  font-size: 12px;
}

.drawer-specs dt {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: rgba(242, 238, 231, 0.5);
}

.drawer-specs dd {
  margin: 0;
  color: rgba(242, 238, 231, 0.88);
  text-align: right;
}

.drawer-palette-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 238, 231, 0.5);
  margin-bottom: 12px;
}

.drawer-swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.drawer-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(242, 238, 231, 0.05);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(242, 238, 231, 0.8);
}

.drawer-swatch i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.drawer-shortcuts {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(242, 238, 231, 0.42);
}

/* Lightbox Footer + Filmstrip */
.lb-footer {
  padding: 12px clamp(16px, 3vw, 32px) 16px;
  border-top: 1px solid rgba(242, 238, 231, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
}

.lb-caption-bar {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lb-caption-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.lb-caption-sub {
  font-size: 12px;
  color: rgba(242, 238, 231, 0.56);
}

.lb-filmstrip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
}

.film-thumb {
  width: 38px;
  height: 50px;
  padding: 2px;
  border: 1px solid transparent;
  opacity: 0.46;
  flex-shrink: 0;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.film-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-thumb:hover {
  opacity: 0.85;
}

.film-thumb.is-active {
  opacity: 1;
  border-color: #f2eee7;
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Refinements
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .hero-plate,
  .hero-switcher {
    max-width: 460px;
  }

  .chapter-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .spread-diptych,
  .spread-feature {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .card-offset {
    margin-top: 0;
  }

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

  .lightbox.has-drawer .lb-drawer {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(336px, 88vw);
    z-index: 8;
    backdrop-filter: blur(16px);
  }

  .lightbox.has-drawer .lb-next {
    right: clamp(12px, 2.2vw, 28px);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 62px;
  }

  .site-nav,
  .brand-divider,
  .brand-sub,
  .slideshow-btn span {
    display: none;
  }

  .slideshow-btn {
    width: 34px;
    padding: 0;
  }

  .spread-duet,
  .spread-woodland {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .card-stagger {
    margin-top: 0;
  }

  .photo-meta {
    flex-direction: column;
    gap: 6px;
  }

  .photo-meta-right {
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .lb-stage {
    padding: 12px 16px;
  }

  .lb-nav {
    width: 38px;
    height: 38px;
  }

  .lb-chapter,
  .lb-sep {
    display: none;
  }

  .lb-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .lb-filmstrip {
    width: 100%;
    justify-content: center;
  }

  .lb-image-wrap img {
    max-height: calc(100vh - 246px);
  }
}
