:root {
  --ink: #14110e;
  --ink-2: #2a241e;
  --bone: #f3eee6;
  --paper: #f4f4f4;
  --muted: #8a8074;
  --line: rgba(20, 17, 14, 0.12);
  --line-strong: rgba(20, 17, 14, 0.22);
  --rust: #c24b28;
  --gold: #b89a68;
  --white: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

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

html { scroll-behavior: smooth; background: #fff; }

body {
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.wrap-s { width: min(820px, calc(100% - 48px)); margin: 0 auto; }

/* ── type ── */
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, .display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(36px, 5vw, 64px);
}

h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lede {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 38em;
}

.muted { color: var(--muted); }

/* ── nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  mix-blend-mode: difference;
  color: #f3eee6;
  transform: translate3d(0, 0, 0);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease;
  will-change: transform;
}

.nav.is-hidden {
  transform: translate3d(0, -110%, 0);
  pointer-events: none;
}

.nav.open,
.nav.open.is-hidden {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.nav.is-scrolled {
  mix-blend-mode: normal;
  color: #f3eee6;
  background: #0b0908;
}

.nav.is-scrolled:before {
  content: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
}

.nav a { font-size: 13px; letter-spacing: 0.01em; }
.brand {
  display: flex;
  align-items: center;
  line-height: 0;
}
.brand img {
  height: 20px;
  width: auto;
  display: block;
}
/* bone #f3eee6 once nav is on the solid black bar (mix-blend off) */
.nav.is-scrolled .brand img {
  filter: brightness(0) saturate(100%) invert(96%) sepia(8%) saturate(250%) hue-rotate(325deg) brightness(102%) contrast(92%);
}

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { opacity: 0.78; }
.nav-links a:hover, .nav-links a.is-on { opacity: 1; }

.nav-cta {
  border: 1px solid currentColor;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 1 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span:before,
.nav-toggle span:after {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.nav-toggle span:before,
.nav-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span:before { top: -6px; }
.nav-toggle span:after { top: 6px; }

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.btn-light {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.btn-on-dark {
  background: transparent;
  color: var(--bone);
  border-color: rgba(243, 238, 230, 0.45);
}
.btn-on-dark:hover {
  background: var(--bone);
  color: var(--ink);
}

/* ── hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  color: var(--bone);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-media img {
  object-fit: cover;
  object-position: 86% center;
}
.hero-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,17,14,0.28) 0%, rgba(20,17,14,0.36) 40%, rgba(20,17,14,0.62) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 48px;
}
.hero h1 {
  font-size: clamp(52px, 10vw, 132px);
  max-width: 14ch;
  margin: 16px 0 22px;
}
.m-only { display: none; }
.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.hero-foot p { max-width: 34em; color: rgba(243,238,230,0.82); }
.hero-actions {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 56px;
  z-index: 2;
  width: min(1440px, calc(100% - 48px));
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.avail i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #c6e07a;
  box-shadow: 0 0 0 4px rgba(198,224,122,0.18);
}

/* ── sections ── */
section { padding: 88px 0; }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ── work grid ── */
.work-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px 18px;
}
.card {
  display: block;
  color: inherit;
}
.card figure {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.card figure picture {
  display: block;
  width: 100%;
  height: 100%;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.9s var(--ease);
}
.card:hover img { transform: scale(1.06); }
.card-lg figure { aspect-ratio: 4/5; }
.card-md figure { aspect-ratio: 4/3; }
.card-wide { grid-column: 1 / -1; }
.card-wide figure { aspect-ratio: 16/7; }
.card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px 0;
  font-size: 14px;
}
.card .who { font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em; }
.card .meta { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

.stack { display: grid; gap: 18px; }

/* ── services ── */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.svc {
  padding: 28px 24px 32px 0;
  border-right: 1px solid var(--line);
  padding-right: 24px;
  padding-left: 0;
}
.svc:first-child { padding-left: 0; }
.svc + .svc { padding-left: 24px; }
.svc:last-child { border-right: 0; }
.svc .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.svc h3 { margin: 18px 0 12px; font-size: 30px; }
.svc p { color: var(--ink-2); font-size: 14.5px; max-width: 30ch; }

/* ── strip ── */
.photo-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 10px;
}
.photo-strip figure { overflow: hidden; background: var(--paper); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip figure:nth-child(1) { aspect-ratio: 4/5; }
.photo-strip figure:nth-child(2) { aspect-ratio: 4/5; margin-top: 48px; }
.photo-strip figure:nth-child(3) { aspect-ratio: 3/4; margin-top: 16px; }

/* ── about band ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split .body p + p { margin-top: 16px; }

/* ── cta ── */
.cta {
  background: var(--ink);
  color: var(--bone);
  padding: 96px 0;
}
.cta h2 { max-width: 14ch; }
.cta p { color: rgba(243,238,230,0.72); margin: 18px 0 28px; max-width: 36em; }

/* ── footer ── */
footer {
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
footer a:hover { color: var(--ink); }

/* ── page hero ── */
.page-hero {
  padding: 148px 0 48px;
}
.page-hero h1 {
  font-size: clamp(48px, 8vw, 104px);
  margin-top: 10px;
}

/* ── case ── */
.case-hero {
  position: relative;
  height: min(88svh, 920px);
  overflow: hidden;
  background: #111;
}
.case-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.case-hero:after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,14,0.15), rgba(20,17,14,0.55));
}
.case-title {
  margin-top: -92px;
  position: relative;
  color: var(--bone);
  padding-bottom: 8px;
}
.case-title h1 {
  font-size: clamp(48px, 8vw, 108px);
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 48px 0;
}
.case-meta dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.case-body { max-width: 42em; }
.case-body p + p { margin-top: 16px; }
.gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin: 48px 0;
}
.gallery figure { overflow: hidden; background: var(--paper); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .span { grid-column: 1 / -1; }
.gallery figure:not(.span) { min-height: 360px; }
.gallery .span { min-height: 420px; }

.next-case {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 0 16px;
  border-top: 1px solid var(--line);
  margin-top: 72px;
}
.next-case small { color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; font-family: var(--mono); }
.next-case strong { font-family: var(--serif); font-size: 32px; font-weight: 400; }

/* ── photography ── */
.masonry {
  columns: 3;
  column-gap: 12px;
}
.masonry a, .masonry figure {
  break-inside: avoid;
  margin: 0 0 12px;
  display: block;
  overflow: hidden;
  background: var(--paper);
}
.masonry img { width: 100%; }

/* ── form ── */
form {
  display: grid;
  gap: 16px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
input, select, textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 12px;
  outline: none;
  border-radius: 0;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--ink); }
.form-note { font-size: 13px; color: var(--muted); min-height: 1.4em; }
.form-note.ok { color: #3d6b2e; }
.form-note.err { color: var(--rust); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

/* ── work index ── */
.work-list {
  display: grid;
  gap: 14px;
}
.work-row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
  align-items: stretch;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.work-row figure {
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 16/10;
}
.work-row img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.work-row:hover img { transform: scale(1.04); }
.work-row h3 { font-size: 40px; margin: 6px 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  padding: 4px 8px;
  color: var(--muted);
}

/* ── clients ── */
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 8px 0 0;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
}
.clients span { opacity: 0.55; }
.clients span:nth-child(-n+3) { opacity: 1; }

/* ── mobile ── */

/* ── retouch compare ── */
.retouch-sec { padding: 72px 0 32px; }
.retouch-sec h2 {
  font-size: clamp(48px, 8vw, 104px);
  margin-top: 10px;
}
.retouch-sec .lede { margin-top: 18px; }
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}
.ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}
.ba-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-line {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(20,17,14,0.18);
}
.ba-line:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(20,17,14,0.28);
  box-shadow: 0 0 0 1px rgba(20,17,14,0.18);
}
.ba-line:before {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 13px;
  z-index: 1;
  line-height: 1;
}
.ba-tag {
  position: absolute;
  bottom: 10px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20,17,14,0.45);
  padding: 4px 8px;
  pointer-events: none;
}
.ba-tag-b { left: 10px; }
.ba-tag-a { right: 10px; }

@media (max-width: 900px) {
  .wrap, .wrap-s { width: calc(100% - 32px); }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 16px; right: 16px;
    background: var(--ink);
    color: var(--bone);
    padding: 18px;
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
    mix-blend-mode: normal;
  }
  .nav.open .nav-links { display: flex; }
  .nav { mix-blend-mode: normal; color: var(--bone); background: linear-gradient(180deg, rgba(20,17,14,0.55), transparent); }
  .nav.is-scrolled {
    background: #0b0908;
  }
  .nav.is-scrolled:before {
    content: none;
  }
  /* homepage mobile: light logo on dark gradient / black bar */
  .brand img {
    filter: brightness(0) saturate(100%) invert(96%) sepia(8%) saturate(250%) hue-rotate(325deg) brightness(102%) contrast(92%);
  }
  /* Work / Photography / About mobile: inverted at top, black bar when scrolled */
  .page-inner .nav:not(.is-scrolled) {
    color: #14110e;
    background: #ffffff;
  }
  .page-inner .nav:not(.is-scrolled) .brand img {
    filter: brightness(0);
  }
  .page-inner .nav.is-scrolled {
    color: #f3eee6;
    background: #0b0908;
  }
  .page-inner .nav.is-scrolled .brand img {
    filter: none;
  }
  .work-grid, .services, .photo-strip, .split, .case-meta, .gallery, .work-row, .contact-grid, .row, .ba-grid {
    grid-template-columns: 1fr;
  }
  .svc, .svc + .svc { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .photo-strip figure:nth-child(2),
  .photo-strip figure:nth-child(3) { margin-top: 0; }
  .masonry { columns: 1; }
  .hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: clamp(26px, 7.2vw, 32px);
    max-width: none;
    line-height: 0.92;
  }
  .hero-l1,
  .hero-l2 {
    display: block;
    white-space: nowrap;
  }
  .hero-media img { object-position: 78% 48%; }
  .hero-actions { justify-content: flex-start; bottom: 28px; }
  .card-lg figure, .card-md figure { aspect-ratio: 4/3; }
  .card-wide figure { aspect-ratio: 16/10; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .services { grid-template-columns: 1fr 1fr; }
  .svc { border-bottom: 1px solid var(--line); }
  .masonry { columns: 2; }
}
