:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e7e7e7;
  --gap: 6px;
  --pad: clamp(16px, 3vw, 40px);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}

.nav > * { pointer-events: auto; }

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav nav a {
  position: relative;
  padding-bottom: 3px;
}

.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.nav nav a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero-img {
  margin: 0;
  position: absolute;
  inset: 0;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(1.02) brightness(.95);
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
  padding-bottom: clamp(40px, 8vh, 100px);
  color: #fff;
  pointer-events: none;
}

.hero-text h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(80px, 22vw, 280px);
  line-height: .85;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-transform: lowercase;
}

.hero-text .subtitle {
  font-family: var(--sans);
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
  max-width: 60ch;
}

.hero-text .subtitle span { font-weight: 700; }

.hero-text .subtitle em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.4em;
  display: inline-block;
  margin-top: 6px;
}

.scroll-hint {
  position: absolute;
  bottom: 18px;
  right: var(--pad);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
  opacity: .65;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .35; transform: rotate(180deg) translateY(0); }
  50% { opacity: .8; transform: rotate(180deg) translateY(-6px); }
}

/* ---------- grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 4px;
  grid-auto-flow: row dense;
  gap: var(--gap);
  padding: var(--gap);
}

.grid > figure {
  margin: 0;
  overflow: hidden;
  position: relative;
  background: #f3f3f3;
}

.grid > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}

.grid > figure:hover img { transform: scale(1.025); }

/* col spans only — row span is set per-figure by JS using each image's natural aspect ratio */
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }

/* ---------- series (swipe gallery) ---------- */

.series {
  margin-top: 14vh;
  margin-bottom: 14vh;
  position: relative;
}

.series-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--pad) 20px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.series-label::after {
  content: "drag →";
  font-size: 10px;
  letter-spacing: 0.3em;
  opacity: .55;
}

.series-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0 var(--pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.series-track::-webkit-scrollbar { display: none; }

.series-track:active { cursor: grabbing; }

.series-track figure {
  margin: 0;
  flex: 0 0 auto;
  width: min(80vw, 560px);
  aspect-ratio: 2/3;
  scroll-snap-align: start;
  overflow: hidden;
  background: #f3f3f3;
}

.series-track figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}

.series-track figure:hover img { transform: scale(1.03); }

/* ---------- about ---------- */

.about {
  padding: 22vh var(--pad);
  max-width: 1400px;
  margin: 0 auto;
}

.about-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 36px;
  font-style: italic;
}

.about-lede::before,
.about-lede::after {
  content: "—";
  display: block;
  font-size: .35em;
  letter-spacing: 0.5em;
  font-style: normal;
  color: var(--muted);
  margin: 0 0 22px;
}

.about-lede::after {
  margin: 22px 0 0;
}

.about-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto;
}

/* ---------- contact ---------- */

.contact {
  border-top: 1px solid var(--line);
  padding: 18vh var(--pad) 14vh;
  background: #fafafa;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 500;
}

.contact-h {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 160px);
  line-height: .9;
  letter-spacing: -0.03em;
  margin: 0 0 40px;
  text-transform: lowercase;
}

.contact-note {
  max-width: 50ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 60px;
}

.contact-note a.inline {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact-links li {
  border-bottom: 1px solid var(--line);
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  font-family: var(--serif);
  font-size: clamp(22px, 3.6vw, 36px);
  font-weight: 400;
  transition: padding-left .35s ease, color .35s ease;
  letter-spacing: -0.005em;
}

.contact-links a::after {
  content: "→";
  font-family: var(--sans);
  font-size: 18px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .35s ease, transform .35s ease;
}

.contact-links a:hover {
  padding-left: 18px;
}

.contact-links a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.mail-icon {
  flex: 0 0 auto;
  color: var(--ink);
  transition: transform .35s ease;
}

.contact-links a:hover .mail-icon {
  transform: translateX(-4px) rotate(-4deg);
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--pad);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 6; }
  .span-5 { grid-column: span 6; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 6; }
  .span-8 { grid-column: span 6; }
}

@media (max-width: 540px) {
  .nav { padding: 14px 16px; }
  .nav nav { gap: 18px; font-size: 11px; }
  .wordmark { font-size: 18px; }

  .hero { min-height: 560px; }
  .hero-text h1 { font-size: 30vw; }

  .grid { grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; }
  .span-3 { grid-column: span 2; }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 4; }

  .series { margin-top: 10vh; margin-bottom: 10vh; }
  .series-track figure { width: 86vw; }

  .about { padding: 14vh 20px; }

  .contact { padding: 12vh 20px 10vh; }
  .contact-links a { padding: 22px 0; }
}

/* nav appears solid after scroll (no blend with light bg) */
.nav.is-light { mix-blend-mode: normal; color: var(--ink); }
.nav.is-light { backdrop-filter: blur(10px); background: rgba(255,255,255,.7); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- lightbox ---------- */

.grid > figure { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, .96);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
  padding: clamp(20px, 4vw, 60px);
}

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

.lb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-out;
  transition: opacity .25s ease;
}

.lb-img.is-loading { opacity: 0; }

.lb-close,
.lb-nav {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  font-family: var(--sans);
  opacity: .75;
  transition: opacity .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.lb-close:hover,
.lb-nav:hover { opacity: 1; }

.lb-close {
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-nav:hover { transform: translateY(-50%) scale(1.08); }

.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  opacity: .55;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-feature-settings: "tnum";
  pointer-events: none;
}

@media (max-width: 600px) {
  .lb-nav { width: 44px; height: 44px; font-size: 18px; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-close { top: 8px; right: 8px; }
}

body.lb-open { overflow: hidden; }
