:root {
  --bg: #070707;
  --bg-soft: #0c0c0c;
  --ivory: #e8e2d6;
  --ivory-dim: #8f887c;
  --gold: #b8956a;
  --line: rgba(232, 226, 214, 0.14);
  --ink-rgb: 7, 7, 7;
  --photo-bg: #111;
  --hero-muted: rgba(232, 226, 214, 0.72);
  --hero-sub: rgba(232, 226, 214, 0.78);
  --hero-line: rgba(232, 226, 214, 0.35);
  --panel: rgba(9, 9, 9, 0.96);
  --scrim: rgba(0, 0, 0, 0.42);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --grain-opacity: 0.045;
  --grain-blend: overlay;
  --serif: "Cormorant Garamond", "Songti SC", "STSong", "Noto Serif SC", serif;
  --sans: "Outfit", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 0.05, 0.2, 1);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f3efe6;
  --bg-soft: #ebe6db;
  --ivory: #1c1a16;
  --ivory-dim: #6a655c;
  --gold: #8d6840;
  --line: rgba(28, 26, 22, 0.12);
  --ink-rgb: 243, 239, 230;
  --photo-bg: #ddd6c8;
  --hero-muted: rgba(28, 26, 22, 0.62);
  --hero-sub: rgba(28, 26, 22, 0.72);
  --hero-line: rgba(28, 26, 22, 0.28);
  --panel: rgba(247, 243, 236, 0.97);
  --scrim: rgba(28, 26, 22, 0.28);
  --shadow: 0 30px 80px rgba(28, 26, 22, 0.16);
  --grain-opacity: 0.03;
  --grain-blend: multiply;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  transition: background 0.55s var(--ease-soft);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.55s var(--ease-soft), color 0.55s var(--ease-soft);
}

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

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

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

::selection {
  background: var(--gold);
  color: var(--bg);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 96;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  z-index: 90;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s linear;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 1.2s var(--ease-soft), visibility 1.2s var(--ease-soft);
}

#preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-mark {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.55em;
  font-size: 0.72rem;
  padding-left: 0.55em;
  color: var(--ivory);
  animation: preloader-mark 1.6s var(--ease-soft) both;
}

@keyframes preloader-mark {
  from {
    opacity: 0;
    letter-spacing: 0.9em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.55em;
  }
}

.preloader-bar {
  width: 88px;
  height: 1px;
  margin: 22px auto 0;
  background: var(--line);
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ivory);
  animation: load 1.6s var(--ease) forwards;
}

@keyframes load {
  to {
    width: 100%;
  }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  padding: 28px 40px;
  color: var(--ivory);
  background: linear-gradient(to bottom, rgba(var(--ink-rgb), 0.55), transparent);
  opacity: 0;
  transition: background 0.6s var(--ease-soft), padding 0.6s var(--ease-soft), opacity 1.2s 0.35s var(--ease-soft);
}

body.is-ready .nav {
  opacity: 1;
}

.nav.is-scrolled {
  background: rgba(var(--ink-rgb), 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px 40px;
}

.nav-logo {
  font-size: 0.74rem;
  letter-spacing: 0.46em;
  font-weight: 400;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  opacity: 0.78;
  transition: opacity 0.45s var(--ease-soft);
}

.nav-back::before {
  content: "‹";
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 300;
  transform: translateY(-1px);
}

.nav-back:hover {
  opacity: 1;
}

.nav nav {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-left: auto;
}

.nav nav > a,
.toc-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.22em;
  opacity: 0.78;
  transition: opacity 0.45s var(--ease-soft), color 0.45s var(--ease-soft);
}

.nav nav > a::after,
.toc-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-soft);
}

.nav nav > a:hover,
.toc-toggle:hover,
.toc.is-open .toc-toggle {
  opacity: 1;
}

.nav nav > a:hover::after,
.toc-toggle:hover::after,
.toc.is-open .toc-toggle::after {
  transform: scaleX(1);
}

.theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 22px;
  min-width: 40px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.22em;
  color: var(--ivory);
  opacity: 0.88;
  transition: opacity 0.45s var(--ease-soft), color 0.45s var(--ease-soft), border-color 0.45s var(--ease-soft);
}

.theme-toggle:hover {
  opacity: 1;
  color: var(--gold);
  border-color: var(--gold);
}

.toc {
  position: relative;
  display: flex;
  align-items: baseline;
}

.toc-toggle {
  appearance: none;
  -webkit-appearance: none;
}

.toc.is-open .toc-toggle {
  color: var(--gold);
}

.toc-scrim {
  position: fixed;
  inset: 0;
  z-index: 69;
  background: var(--scrim);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-soft), visibility 0.45s var(--ease-soft);
}

.toc-scrim.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.toc-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: -12px;
  width: min(280px, calc(100vw - 32px));
  max-height: min(72vh, 620px);
  overflow-y: auto;
  padding: 26px 12px 22px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.45s var(--ease-soft), transform 0.45s var(--ease-soft), visibility 0.45s var(--ease-soft);
}

.toc.is-open .toc-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.toc-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 18px;
}

.toc-group + .toc-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.toc-group p {
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  color: var(--gold);
  margin-bottom: 8px;
}

.toc-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 7px 16px 7px 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-family: var(--serif);
  opacity: 0.72;
  transform: translateX(0);
  transition:
    opacity 0.45s var(--ease-soft),
    color 0.45s var(--ease-soft),
    transform 0.5s var(--ease-soft);
}

.toc-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-soft);
}

.toc-group:hover .toc-item:not(:hover):not(.is-current) {
  opacity: 0.28;
}

.toc-item:hover,
.toc-item.is-current {
  opacity: 1;
  color: var(--gold);
  transform: translateX(6px);
}

.toc-item:hover::before,
.toc-item.is-current::before {
  transform: translateY(-50%) scaleX(1);
}

.toc-panel::-webkit-scrollbar {
  width: 6px;
}

.toc-panel::-webkit-scrollbar-thumb {
  background: var(--line);
}

/* Hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--photo-bg);
}

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

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transform: scale(1.12);
  filter: saturate(0.82);
}

body.is-ready .hero-image img {
  animation: kenburns 32s var(--ease-soft) forwards;
}

@keyframes kenburns {
  0% {
    opacity: 0;
    transform: scale(1.12);
    filter: saturate(0.82);
  }
  8% {
    opacity: 1;
    filter: saturate(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(var(--ink-rgb), 0.78) 0%, rgba(var(--ink-rgb), 0.08) 46%, rgba(var(--ink-rgb), 0.42) 100%),
    linear-gradient(to right, rgba(var(--ink-rgb), 0.22), transparent 30%, transparent 70%, rgba(var(--ink-rgb), 0.22));
}

.hero--cover .hero-veil {
  background:
    linear-gradient(to top, rgba(var(--ink-rgb), 0.88) 0%, rgba(var(--ink-rgb), 0.28) 48%, rgba(var(--ink-rgb), 0.55) 100%),
    linear-gradient(to right, rgba(var(--ink-rgb), 0.35), transparent 28%, transparent 72%, rgba(var(--ink-rgb), 0.35));
}

.hero--cover .hero-copy h1 {
  font-size: clamp(3.6rem, 10vw, 8rem);
  letter-spacing: 0.22em;
  padding-left: 0.22em;
}

.hero--cover .hero-copy::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin: 28px auto 0;
  background: var(--gold);
  opacity: 0.75;
}

body.is-ready .hero--cover .hero-copy::after {
  animation: line-grow 1.4s 1.05s var(--ease-soft) both;
}

@keyframes line-grow {
  from {
    width: 0;
  }
  to {
    width: 48px;
  }
}

.hero-copy {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-sub,
.scroll-hint {
  opacity: 0;
}

body.is-ready .hero-copy .eyebrow {
  animation: rise-in 1.5s 0.35s var(--ease-soft) both;
}

body.is-ready .hero-copy h1 {
  animation: rise-in 1.7s 0.55s var(--ease-soft) both;
}

body.is-ready .hero-sub {
  animation: rise-in 1.6s 0.85s var(--ease-soft) both;
}

body.is-ready .scroll-hint {
  animation: hint-in 1.5s 1.2s var(--ease-soft) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hint-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
  }
  to {
    opacity: 0.72;
    transform: translateX(-50%) translateY(0);
  }
}

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  font-weight: 400;
}

.hero-copy .eyebrow {
  color: var(--hero-muted);
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4.8rem, 14vw, 10.5rem);
  letter-spacing: 0.28em;
  line-height: 0.9;
  padding-left: 0.28em;
  text-indent: 0;
}

.hero-title--long {
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  letter-spacing: 0.12em;
  padding-left: 0.12em;
  line-height: 1.2;
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  letter-spacing: 0.34em;
  margin-top: 18px;
  color: var(--hero-sub);
  padding-left: 0.34em;
}

.hero-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-enter {
  position: relative;
  z-index: 3;
  display: inline-block;
  margin-top: 36px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0;
  border-bottom: 1px solid var(--hero-line);
  padding-bottom: 6px;
  pointer-events: auto;
}

body.is-ready .hero-enter {
  animation: rise-in 1.4s 1.05s var(--ease-soft) both;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.scroll-hint i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--ivory), transparent);
  animation: drip 2.2s ease-in-out infinite;
}

@keyframes drip {
  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.3;
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Intro */
.intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 22vh 28px 18vh;
  text-align: center;
}

.intro-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.intro-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  line-height: 1.35;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.intro-body {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--ivory-dim);
  letter-spacing: 0.04em;
  line-height: 2.15;
}

.intro-kicker.reveal {
  transition-delay: 0.05s;
}

.intro-title.reveal {
  transition-delay: 0.18s;
}

.intro-body.reveal {
  transition-delay: 0.36s;
}

/* Chapters */
.chapter {
  padding-bottom: 8vh;
}

.intertitle {
  text-align: center;
  padding: 18vh 20px 12vh;
}

.intertitle.reveal {
  opacity: 1;
  transform: none;
}

.intertitle span {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 16px;
}

.intertitle h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
}

.intertitle::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin: 28px auto 0;
  background: var(--gold);
  opacity: 0.7;
  transition: width 1.2s 0.45s var(--ease-soft);
}

.intertitle.is-in::after {
  width: 42px;
}

.intertitle.reveal span,
.intertitle.reveal h2,
.intertitle.reveal p {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s var(--ease-soft), transform 1.3s var(--ease-soft);
}

.intertitle.reveal.is-in span,
.intertitle.reveal.is-in h2,
.intertitle.reveal.is-in p {
  opacity: 1;
  transform: none;
}

.intertitle.reveal.is-in span {
  transition-delay: 0.05s;
}

.intertitle.reveal.is-in h2 {
  transition-delay: 0.18s;
}

.intertitle.reveal.is-in p {
  transition-delay: 0.36s;
}

/* Stills */
.still {
  margin: 0 auto 11vh;
  cursor: zoom-in;
}

.still img {
  width: 100%;
  background: var(--photo-bg);
}

.still.reveal {
  opacity: 1;
  transform: none;
}

.still.reveal img {
  opacity: 0;
  transform: scale(1.06);
  clip-path: inset(10% 7%);
  filter: saturate(0.72);
  transition:
    opacity 1.4s var(--ease-soft),
    transform 2s var(--ease-soft),
    clip-path 1.7s var(--ease-soft),
    filter 1.8s var(--ease-soft);
}

.still.reveal.is-in img {
  opacity: 1;
  transform: scale(1);
  clip-path: inset(0);
  filter: saturate(1);
  transition:
    opacity 1.4s var(--ease-soft),
    transform 1.15s var(--ease-soft),
    clip-path 1.7s var(--ease-soft),
    filter 1.1s var(--ease-soft);
}

.still.reveal figcaption {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s 0.45s var(--ease-soft), transform 1s 0.45s var(--ease-soft);
}

.still.reveal.is-in figcaption {
  opacity: 1;
  transform: none;
}

.still.is-in:hover img {
  transform: scale(1.025);
  filter: saturate(1.04) brightness(1.03);
}

.diptych .still:nth-child(2).reveal img,
.diptych .still:nth-child(2).reveal figcaption {
  transition-delay: 0.22s;
}

.diptych .still:nth-child(2).reveal.is-in figcaption {
  transition-delay: 0.62s;
}

.still figcaption {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--ivory-dim);
  text-transform: uppercase;
}

.still figcaption span {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.still figcaption em {
  font-style: normal;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  color: var(--ivory);
  text-transform: none;
}

.still--bleed {
  width: 100%;
}

.still--bleed figcaption,
.still--frame figcaption,
.still--wide figcaption,
.still--tall figcaption,
.still--portrait figcaption {
  padding: 0 4vw;
}

.still--frame {
  width: min(86vw, 1280px);
}

.still--portrait {
  width: min(38vw, 520px);
}

.still--portrait img {
  max-height: 88vh;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.still--portrait figcaption {
  justify-content: center;
  padding: 0;
}

.diptych {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 3vw;
  align-items: end;
  width: min(92vw, 1400px);
  margin: 0 auto 11vh;
}

.diptych .still {
  margin: 0;
  width: 100%;
}

.diptych figcaption {
  padding: 0;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.25s var(--ease-soft), transform 1.4s var(--ease-soft);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Index */
.index {
  padding: 16vh 4vw 12vh;
  border-top: 1px solid var(--line);
}

.index-head {
  text-align: center;
  margin-bottom: 64px;
}

.index-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  margin-top: 12px;
}

.sheet {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.sheet li.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-soft), transform 1s var(--ease-soft);
  transition-delay: var(--delay, 0s);
}

.sheet li.reveal.is-in {
  opacity: 1;
  transform: none;
}

.sheet button {
  display: block;
  width: 100%;
  text-align: left;
  overflow: hidden;
}

.sheet img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.86);
  transition: filter 0.8s var(--ease-soft), transform 1.2s var(--ease-soft);
}

.sheet button:hover img {
  filter: saturate(1);
  transform: scale(1.04);
}

.sheet span {
  display: block;
  margin-top: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--ivory-dim);
  transition: color 0.4s var(--ease-soft);
}

.sheet button:hover span {
  color: var(--ivory);
}

/* About */
.about {
  padding: 18vh 6vw 12vh;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 8vw;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-portrait {
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
}

.about-portrait img {
  width: 100%;
  filter: saturate(0.9);
  transition: filter 1s var(--ease-soft), transform 1.6s var(--ease-soft);
}

.about-portrait:hover img {
  filter: saturate(1);
  transform: scale(1.02);
}

.about-copy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.18em;
  margin: 10px 0 28px;
}

.about-copy p {
  max-width: 36ch;
  font-weight: 300;
  color: var(--ivory-dim);
  letter-spacing: 0.02em;
  line-height: 2;
  margin-bottom: 40px;
}

.about-copy dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 40px;
  max-width: 420px;
}

.about-copy dt {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.about-copy dd {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 32px 40px 48px;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--ivory-dim);
}

/* Catalog */
.crumb {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--ivory-dim);
  margin-bottom: 48px;
}

.crumb a {
  transition: color 0.35s var(--ease-soft);
}

.crumb a:hover {
  color: var(--ivory);
}

.works {
  padding: 16vh 6vw 10vh;
  border-top: 1px solid var(--line);
}

.works-head {
  text-align: center;
  margin-bottom: 48px;
}

.works-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  margin-top: 12px;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-bottom: 72px;
}

.filters button {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--ivory-dim);
  padding: 6px 0;
  position: relative;
  transition: color 0.35s var(--ease-soft);
}

.filters button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-soft);
}

.filters button.is-on,
.filters button:hover {
  color: var(--ivory);
}

.filters button.is-on::after {
  transform: scaleX(1);
}

.works-empty {
  text-align: center;
  color: var(--ivory-dim);
  letter-spacing: 0.12em;
  margin: 0 0 48px;
}

.series-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.series-card {
  display: block;
  color: inherit;
}

.series-card[hidden] {
  display: none !important;
}

.series-card-image {
  overflow: hidden;
  background: var(--photo-bg);
}

.series-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.9);
  transition: transform 1.6s var(--ease-soft), filter 1s var(--ease-soft);
}

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

.series-card-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  align-items: end;
  margin-top: 22px;
}

.series-card-meta p,
.series-card-meta em {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--ivory-dim);
  text-transform: uppercase;
}

.series-card-meta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.18em;
  grid-column: 1;
}

.series-card-meta span {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.16em;
  color: var(--ivory-dim);
}

.series-card-meta em {
  font-style: normal;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

.about-copy--home {
  text-align: center;
  margin: 0 auto;
  max-width: 560px;
}

.about-copy--home p {
  margin-left: auto;
  margin-right: auto;
}

.about-copy--home dl {
  margin: 36px auto 0;
  text-align: left;
}

.gallery-wrap {
  padding: 4vh 4vw 8vh;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item.still {
  margin: 0;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  max-height: none;
}

.gallery-item.still--portrait img {
  aspect-ratio: 2 / 3;
  width: 100%;
  max-height: none;
}

.gallery-item figcaption {
  padding: 0;
  margin-top: 8px;
  justify-content: flex-start;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 8vh 8vw;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s var(--ease-soft), visibility 0.7s var(--ease-soft);
}

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

.lightbox figure {
  max-width: 100%;
  max-height: 100%;
}

.lightbox img {
  max-width: 86vw;
  max-height: 78vh;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: var(--shadow);
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.6s var(--ease-soft), transform 0.85s var(--ease-soft);
}

.lightbox img.is-fading {
  opacity: 0;
  transform: scale(0.985);
}

.lightbox figcaption {
  text-align: center;
  margin-top: 18px;
  font-family: var(--serif);
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  transition: opacity 0.45s var(--ease-soft), transform 0.55s var(--ease-soft);
}

.lightbox figcaption.is-fading,
.lightbox-count.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

.lightbox-count {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--ivory-dim);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s 0.25s var(--ease-soft);
}

.lightbox.is-open .lightbox-close,
.lightbox.is-open .lightbox-prev,
.lightbox.is-open .lightbox-next {
  opacity: 0.7;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 28px;
  right: 36px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
  padding: 20px;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

body.is-locked {
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav,
  .nav.is-scrolled {
    padding: 18px 20px;
  }

  .nav nav {
    gap: 18px;
  }

  .toc-panel {
    right: -8px;
    width: min(260px, calc(100vw - 24px));
    max-height: min(78vh, 560px);
    padding: 22px 8px 18px 20px;
  }

  .nav-left {
    gap: 14px;
  }

  body[data-page="series"] .nav-logo {
    display: none;
  }

  .hero-copy h1 {
    letter-spacing: 0.18em;
    padding-left: 0.18em;
  }

  .still--portrait {
    width: min(78vw, 420px);
  }

  .diptych {
    grid-template-columns: 1fr;
    width: 92vw;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-portrait {
    width: min(64vw, 320px);
  }

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

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

  .series-card-meta {
    grid-template-columns: 1fr;
  }

  .series-card-meta em {
    grid-column: 1;
    grid-row: auto;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
    padding: 28px 20px 40px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 8px;
  }
}

@media (max-width: 560px) {
  .sheet {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro {
    padding: 16vh 22px 12vh;
  }

  .intertitle {
    padding: 14vh 20px 9vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-image img,
  .preloader-bar span,
  .preloader-mark,
  .scroll-hint i,
  .reveal,
  .still.reveal img,
  .still.reveal figcaption,
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-sub,
  .hero-enter,
  .scroll-hint,
  .nav,
  .toc-item,
  .toc-item::before,
  .lightbox,
  .lightbox img,
  .intertitle::after,
  .hero--cover .hero-copy::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    clip-path: none !important;
    filter: none !important;
    visibility: visible;
  }

  .lightbox:not(.is-open) {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .hero--cover .hero-copy::after,
  .intertitle.is-in::after {
    width: 48px !important;
  }
}
