@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  color-scheme: dark;
  --bg: #0b0b0a;
  --surface: #151513;
  --line: rgb(236 232 225 / 0.1);
  --text: #ece8e1;
  --muted: #9b968d;
  --accent: #e0aa66;
  --display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --row-h: 320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #111; }

.eyebrow {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s;
  view-transition-name: site-header;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px;
  background: linear-gradient(rgb(0 0 0 / 0.55), transparent);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s;
}
.site-header.scrolled {
  padding-block: 14px;
  background: rgb(11 11 10 / 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled::before { opacity: 0; }
.logo { font: 600 14px/1 var(--display); letter-spacing: 0.32em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 14px; letter-spacing: 0.04em; }
.nav a { position: relative; opacity: 0.8; transition: opacity 0.2s; }
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }

/* ---------- Mega menu ---------- */
.mega-trigger { display: inline-flex; align-items: center; gap: 7px; }
.mega-trigger .chev { width: 10px; height: 10px; transition: transform 0.35s var(--ease); }
.site-header.mega-open {
  background: rgb(11 11 10 / 0.94);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom-color: var(--line);
}
.site-header.mega-open::before { opacity: 0; }
.site-header.mega-open .mega-trigger { opacity: 1; }
.site-header.mega-open .mega-trigger .chev { transform: rotate(180deg); }
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  padding: clamp(24px, 3vw, 44px) var(--gutter) 28px;
  background: rgb(11 11 10 / 0.94);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  visibility: hidden;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.5s var(--ease), opacity 0.3s ease, visibility 0s 0.5s;
}
.site-header.mega-open .mega {
  visibility: visible;
  opacity: 1;
  clip-path: inset(0 0 -1px 0);
  transition: clip-path 0.55s var(--ease), opacity 0.2s ease, visibility 0s;
}
.mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34vw);
  gap: clamp(32px, 5vw, 96px);
  max-width: 1800px;
  margin: 0 auto;
}
.mega-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(24px, 3vw, 56px); }
.mega-list li { break-inside: avoid; }
.site-header.mega-open .mega-list li { animation: mega-in 0.5s var(--ease) both; animation-delay: calc(var(--i) * 18ms + 60ms); }
@keyframes mega-in { from { opacity: 0; transform: translateY(10px); } }
.mega-list a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.mega-num { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mega-name {
  font: 500 clamp(16px, 1.3vw, 21px)/1.2 var(--display);
  letter-spacing: -0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s, transform 0.4s var(--ease);
}
.mega-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mega-list a:hover .mega-name, .mega-list a.active .mega-name, .mega-list a:focus-visible .mega-name { color: var(--accent); transform: translateX(6px); }
.mega-thumb { display: none; }
.mega-preview {
  position: relative;
  align-self: start;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
}
.mega-preview figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.5s ease; }
.mega-preview figure.active { opacity: 1; }
.mega-preview figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.65), transparent 50%); }
.mega-preview img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 1.8s var(--ease); }
.mega-preview figure.active img { transform: scale(1.07); }
.mega-preview figcaption {
  position: absolute;
  z-index: 1;
  left: 22px; right: 22px; bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(236 232 225 / 0.75);
}
.mega-preview figcaption span:first-child { font: 600 clamp(20px, 1.8vw, 28px)/1.05 var(--display); letter-spacing: -0.035em; text-transform: none; color: var(--text); }
.mega-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1800px;
  margin: 26px auto 0;
  font-size: 13px;
  color: var(--muted);
}
.mega-foot a { color: var(--text); }
.mega-foot a span { display: inline-block; margin-left: 6px; color: var(--accent); transition: transform 0.3s var(--ease); }
.mega-foot a:hover span { transform: translateX(4px); }
.mega-scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgb(0 0 0 / 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
body.mega-open .mega-scrim { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fx, 50%) 50%;
  transform: scale(1.12);
}
.hero-slide.active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns {
  from { transform: scale(1.12) translate3d(var(--kx, 1%), var(--ky, 0.5%), 0); }
  to { transform: scale(1.02) translate3d(0, 0, 0); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 0% 100%, rgb(0 0 0 / 0.7), transparent 60%),
    linear-gradient(to top, rgb(11 11 10 / 0.9), transparent 35%);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(90px, 14vh, 150px);
  z-index: 2;
  max-width: 900px;
}
.hero-copy .eyebrow { color: rgb(236 232 225 / 0.9); }
.hero-copy, .hero-meta { text-shadow: 0 1px 24px rgb(0 0 0 / 0.45), 0 1px 3px rgb(0 0 0 / 0.35); }
.hero-copy h1 {
  margin: 14px 0 0;
  font: 600 clamp(64px, 12.5vw, 200px)/0.86 var(--display);
  letter-spacing: -0.055em;
  margin-left: -0.04em;
}
.hero-meta {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 36px;
  left: var(--gutter);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: rgb(236 232 225 / 0.75);
}
.hero-caption { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; }
.hero-caption span { color: var(--text); }
.hero-caption a { border-bottom: 1px solid rgb(236 232 225 / 0.3); padding-bottom: 2px; transition: border-color 0.2s; }
.hero-caption a:hover { border-color: var(--accent); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 38px;
  height: 18px;
  position: relative;
}
.hero-dots button::before, .hero-dots button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: rgb(236 232 225 / 0.25);
}
.hero-dots button::after {
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-dots button.active::after { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.hero-dots button.done::after { transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}
.scroll-cue span { width: 1px; height: 36px; background: linear-gradient(var(--text), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 180px) var(--gutter); }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  max-width: 1500px;
  margin: 0 auto;
}
.intro-statement {
  margin: 0;
  max-width: 22ch;
  font: 500 clamp(32px, 4.2vw, 68px)/1.04 var(--display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.stats { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 96px); margin: 0; }
.stats div { display: grid; gap: 6px; }
.stats dt { order: 2; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.stats dd { margin: 0; font: 300 clamp(44px, 5vw, 72px)/1 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1800px;
  margin: 0 auto 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.section-head h2 { margin: 10px 0 0; font: 600 clamp(36px, 4.6vw, 72px)/1 var(--display); letter-spacing: -0.05em; }
.section-head .button { margin-top: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 36ch; }

/* ---------- Collections grid ---------- */
.collections {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(10px, 1.2vw, 18px);
  max-width: 1800px;
  margin: 0 auto;
}
.card {
  --span: 4;
  grid-column: span var(--span);
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
  isolation: isolate;
}
.card.wide { --span: 8; aspect-ratio: auto; }
.card.half { --span: 6; aspect-ratio: 3 / 2; }
.card.full { --span: 12; aspect-ratio: 21 / 9; }
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08); /* hides the thin frames some prints have baked in */
  transition: transform 1.2s var(--ease), filter 0.6s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.78), transparent 55%);
  transition: opacity 0.5s;
}
.card-body {
  position: absolute;
  z-index: 1;
  left: clamp(18px, 2vw, 30px);
  right: clamp(18px, 2vw, 30px);
  bottom: clamp(16px, 2vw, 28px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.card h3 { margin: 0; font: 600 clamp(22px, 2.1vw, 34px)/1.05 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.card .count { flex: none; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(236 232 225 / 0.7); }
.card .arrow {
  display: inline-block;
  margin-left: 8px;
  transform: translateX(-6px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
  color: var(--accent);
}
.card:hover img { transform: scale(1.14); }
.card:hover .arrow { transform: none; opacity: 1; }

/* ---------- Filmstrip marquee ---------- */
.strip { overflow: hidden; padding-block: 8px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track { display: flex; gap: 14px; width: max-content; animation: marquee 90s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip a { flex: none; height: clamp(200px, 26vw, 360px); border-radius: 4px; overflow: hidden; background: var(--surface); }
.strip img { height: 100%; width: auto; transition: transform 0.8s var(--ease); }
.strip a:hover img { transform: scale(1.05); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About teaser ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 120px);
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
}
.about-portrait { border-radius: 4px; overflow: hidden; background: #f3eee6; aspect-ratio: 920 / 960; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { margin: 12px 0 24px; font: 600 clamp(40px, 5vw, 80px)/0.95 var(--display); letter-spacing: -0.055em; }
.about p { margin: 0 0 18px; color: rgb(236 232 225 / 0.8); font-size: clamp(16px, 1.25vw, 19px); max-width: 52ch; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 24px;
  border: 1px solid rgb(236 232 225 / 0.3);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Gallery page ---------- */
.g-hero {
  position: relative;
  height: 78svh;
  min-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: end;
}
.g-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.g-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, rgb(11 11 10 / 0.35) 45%, rgb(0 0 0 / 0.35));
}
@supports (animation-timeline: scroll()) {
  .g-hero > img { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  @keyframes parallax { from { transform: scale(1.08); } to { transform: translateY(22%) scale(1.16); } }
}
.g-hero-copy { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(28px, 5vw, 64px); width: 100%; }
.crumbs { display: flex; gap: 10px; align-items: center; }
.crumbs a:hover { color: var(--text); }
.g-hero h1 {
  margin: 16px 0 0;
  font: 600 clamp(48px, 8vw, 132px)/0.9 var(--display);
  letter-spacing: -0.06em;
  text-wrap: balance;
  max-width: 14ch;
}
.g-sub { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; color: rgb(236 232 225 / 0.78); }
.g-sub span + span::before { content: "·"; margin-right: 28px; color: var(--muted); }

.justified {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 0.7vw, 12px);
  padding: 8px var(--gutter) 0;
  max-width: 2200px;
  margin: 0 auto;
}
.justified::after { content: ""; flex-grow: 1e9; }
.tile {
  position: relative;
  flex-grow: calc(var(--r) * 100);
  flex-basis: calc(var(--r) * var(--row-h));
  aspect-ratio: var(--r);
  overflow: hidden;
  border-radius: 3px;
  background: var(--c, var(--surface)) var(--lqip) center / cover no-repeat;
  cursor: zoom-in;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.045); /* trims baked-in print borders in the grid; the lightbox shows the full frame */
  transition: opacity 0.6s ease, transform 1s var(--ease);
}
.tile img.loaded { opacity: 1; }
.tile:hover img { transform: scale(1.08); }
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.2vw, 18px);
  padding: clamp(80px, 10vw, 140px) var(--gutter) 0;
  max-width: 2200px;
  margin: 0 auto;
}
.pager a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: clamp(200px, 26vw, 380px);
  padding: clamp(20px, 3vw, 44px);
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
}
.pager a.next { text-align: right; align-items: end; }
.pager img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.pager a::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); z-index: -1; transition: background 0.4s; }
.pager a:hover::after { background: rgb(0 0 0 / 0.3); }
.pager a:hover img { transform: scale(1.13); }
.pager strong { display: block; margin-top: 10px; font: 600 clamp(26px, 3vw, 48px)/1 var(--display); letter-spacing: -0.045em; }

/* ---------- Galleries index ---------- */
.page-head { padding: clamp(140px, 18vw, 240px) var(--gutter) clamp(40px, 6vw, 80px); max-width: 1800px; margin: 0 auto; }
.page-head h1 { margin: 16px 0 0; font: 600 clamp(56px, 9.5vw, 160px)/0.88 var(--display); letter-spacing: -0.065em; }
.page-head p { margin: 24px 0 0; color: var(--muted); max-width: 46ch; font-size: 18px; }
.index-list { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1800px; }
.index-list li { border-top: 1px solid var(--line); }
.index-list li:last-child { border-bottom: 1px solid var(--line); }
.index-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(18px, 2vw, 28px) 0;
  position: relative;
}
.index-row .num { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.index-row h2 { margin: 0; font: 500 clamp(30px, 4.4vw, 72px)/1 var(--display); letter-spacing: -0.05em; transition: transform 0.5s var(--ease), color 0.3s; }
.index-row .count { color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.index-row .peek {
  position: fixed;
  z-index: 40;
  width: clamp(220px, 22vw, 380px);
  aspect-ratio: 4 / 3;
  left: 0; top: 0;
  pointer-events: none;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transform: translate(var(--px, 0), var(--py, 0)) scale(0.9);
  transition: opacity 0.3s, transform 0.18s var(--ease);
}
.index-row .peek img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.index-row:hover h2 { transform: translateX(16px); color: var(--accent); }
.index-row:hover .peek { opacity: 1; transform: translate(var(--px, 0), var(--py, 0)) scale(1); }

/* ---------- About page ---------- */
.about-page { padding-top: clamp(140px, 16vw, 220px); }
.contact-line { margin-top: 36px; font: 500 clamp(22px, 2.4vw, 34px)/1.15 var(--display); letter-spacing: -0.03em; }
.contact-line a { border-bottom: 1px solid rgb(236 232 225 / 0.3); transition: color 0.2s, border-color 0.2s; }
.contact-line a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(100px, 14vw, 200px);
  padding: clamp(48px, 7vw, 90px) var(--gutter) 36px;
  border-top: 1px solid var(--line);
}
.footer-big { margin: 0 0 0 -0.04em; font: 600 clamp(60px, 14.5vw, 250px)/0.82 var(--display); letter-spacing: -0.07em; color: rgb(236 232 225 / 0.92); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 48px; color: var(--muted); font-size: 13px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-row a:hover { color: var(--text); }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #070707;
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: contain;
}
.lb[open] { animation: lb-in 0.35s var(--ease); }
.lb::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } }
.lb-stage { position: absolute; inset: 64px 0 76px; display: grid; place-items: center; touch-action: pan-y pinch-zoom; }
.lb-stage img {
  max-width: calc(100vw - 2 * clamp(12px, 6vw, 110px));
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  view-transition-name: lb-photo;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.6);
  user-select: none;
  -webkit-user-drag: none;
}
.lb-stage img { background: var(--lqip) center / cover no-repeat; }
.lb-stage img.zoomed { max-width: none; max-height: none; cursor: zoom-out; }
.lb-stage.zoom { overflow: auto; place-items: start; }
.lb-top, .lb-bottom {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(14px, 2vw, 28px);
  font-size: 13px;
  color: rgb(236 232 225 / 0.75);
}
.lb-top { top: 0; height: 64px; }
.lb-bottom { bottom: 0; min-height: 76px; }
.lb-title { font: 500 16px/1.3 var(--display); letter-spacing: -0.01em; color: var(--text); }
.lb-exif { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.lb-actions { display: flex; gap: 6px; }
.lb-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.2s;
}
.lb-btn:hover { background: rgb(255 255 255 / 0.08); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(20 20 20 / 0.5);
  backdrop-filter: blur(8px);
  transition: background 0.2s, opacity 0.3s;
}
.lb-nav:hover { background: rgb(40 40 40 / 0.8); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: clamp(8px, 2vw, 28px); }
.lb-next { right: clamp(8px, 2vw, 28px); }
.lb.idle .lb-nav, .lb.idle .lb-top, .lb.idle .lb-bottom { opacity: 0; }
.lb-nav, .lb-top, .lb-bottom { transition: opacity 0.4s; }
::view-transition-old(lb-photo) { animation: 0.28s ease both lb-out; }
::view-transition-new(lb-photo) { animation: 0.38s var(--ease) both lb-new; }
@keyframes lb-out { to { opacity: 0; transform: translateX(calc(var(--dir, 1) * -40px)); } }
@keyframes lb-new { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 60px)); } }

/* ---------- Reveal on scroll ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(48px); } }
}

/* ---------- Responsive ---------- */
@media (min-width: 1101px) {
  .intro { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
@media (max-width: 1100px) {
  .card, .card.half { --span: 6; aspect-ratio: 4 / 5; }
  .card.wide, .card.full { --span: 12; aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  :root { --row-h: 170px; }
  body.mega-open { overflow: hidden; }
  .mega { padding-top: 8px; max-height: calc(100dvh - 60px); background: var(--bg); }
  .mega-name { white-space: normal; }
  .mega-inner { grid-template-columns: 1fr; }
  .mega-preview, .mega-num { display: none; }
  .mega-list { columns: 1; }
  .mega-list a { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 0; }
  .mega-thumb { display: block; width: 64px; height: 48px; overflow: hidden; border-radius: 3px; background: var(--surface); }
  .mega-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .mega-name { font-size: 18px; }
  .logo { font-size: 12px; letter-spacing: 0.26em; }
  .nav { gap: 18px; font-size: 13px; }
  .card, .card.half, .card.wide, .card.full { --span: 12; aspect-ratio: 4 / 3; }
  .about { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; }
  .hero-dots { display: none; }
  .pager { grid-template-columns: 1fr; }
  .index-row { grid-template-columns: 36px minmax(0, 1fr); }
  .index-row .count { grid-column: 2; }
  .index-row .peek { display: none; }
  .lb-nav { display: none; }
  .lb-stage { inset: 56px 0 84px; }
  .lb-stage img { max-width: 100vw; max-height: calc(100dvh - 140px); }
  .lb-top { height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .strip-track { animation: none; }
  html { scroll-behavior: auto; }
}
