
:root {
  --bg: #f6f4ef;
  --paper: #fbfaf7;
  --ink: #171615;
  --muted: #6d6961;
  --line: rgba(23, 22, 21, 0.14);
  --line-strong: rgba(23, 22, 21, 0.28);
  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
img { max-width: 100%; display: block; background: #e5e0d6; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 28px);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.nav-toggle { display: none; }
.home-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: stretch;
  padding: var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.home-hero-image-wrap {
  min-height: 62vh;
  overflow: hidden;
  background: #ddd6cb;
}
.home-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h1 { font-size: clamp(44px, 7vw, 104px); }
h2 { font-size: clamp(32px, 4vw, 64px); }
h3 { font-size: clamp(24px, 2.4vw, 38px); }
p { font-size: clamp(17px, 1.35vw, 21px); }
.home-hero-copy p:not(.eyebrow), .page-intro p, .project-intro p {
  color: var(--muted);
  max-width: 760px;
}
.home-actions { margin-top: 24px; display: flex; align-items: center; gap: 22px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.button:hover { background: var(--ink); color: var(--bg); }
.text-link { font-size: 14px; }
.page-section, .page-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--pad) * 1.15) var(--pad);
}
.page-intro {
  max-width: 980px;
  margin-bottom: clamp(42px, 6vw, 88px);
}
.narrow-page .page-intro { max-width: 820px; }
.section-heading { display: grid; grid-template-columns: 0.4fr 1fr; gap: 24px; margin-bottom: 36px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 46px);
}
.card-grid-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card { text-decoration: none; }
.project-card figure { margin: 0; }
.project-card-image {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.project-card:hover .project-card-image { transform: scale(1.025); }
.project-card-image-wrap { overflow: hidden; background: #ddd6cb; margin-bottom: 16px; }
.project-card h3 { font-size: clamp(24px, 2vw, 34px); margin-bottom: 7px; }
.project-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}
.project-card-text {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 110px);
  margin-bottom: clamp(48px, 7vw, 110px);
  align-items: start;
}
.project-meta-list {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.project-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 48px);
  align-items: start;
}
.project-gallery img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.project-gallery[data-mode="sequence"],
.project-gallery[data-mode="sequence-ethical"],
.project-gallery[data-mode="landscape-sequence"] {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin: 0 auto;
}
.project-gallery[data-mode="sequence"] figure,
.project-gallery[data-mode="sequence-ethical"] figure,
.project-gallery[data-mode="landscape-sequence"] figure { margin: 0 0 clamp(20px, 3vw, 56px); }
.project-gallery[data-mode="grid-3x3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 18px);
}
.project-gallery[data-mode="grid-3x3"] img { aspect-ratio: 1 / 1; object-fit: cover; }
.project-gallery[data-mode="triptych"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-gallery[data-mode="compact"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
}
/* Fragments is not a contact-sheet grid. It needs an editorial rhythm so each
   standalone image can keep its own weight, scale, and aspect ratio. */
.project-gallery[data-mode="fragment-grid"] {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 68px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
.project-gallery[data-mode="fragment-grid"] figure { margin: 0; }
.project-gallery[data-mode="fragment-grid"] img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}
.project-gallery[data-mode="fragment-grid"] figure:nth-child(1) { grid-column: 1 / 13; }
.project-gallery[data-mode="fragment-grid"] figure:nth-child(2) { grid-column: 1 / 6; }
.project-gallery[data-mode="fragment-grid"] figure:nth-child(3) { grid-column: 6 / 13; padding-top: clamp(16px, 4vw, 72px); }
.project-gallery[data-mode="fragment-grid"] figure:nth-child(4) { grid-column: 2 / 7; }
.project-gallery[data-mode="fragment-grid"] figure:nth-child(5) { grid-column: 8 / 12; padding-top: clamp(0px, 5vw, 80px); }
.project-gallery[data-mode="fragment-grid"] figure:nth-child(6) { grid-column: 1 / 5; }
.project-gallery[data-mode="fragment-grid"] figure:nth-child(7) { grid-column: 5 / 9; padding-top: clamp(12px, 3vw, 52px); }
.project-gallery[data-mode="fragment-grid"] figure:nth-child(8) { grid-column: 9 / 13; }
.project-gallery[data-mode="fragment-grid"] figure:nth-child(9) { grid-column: 2 / 8; }
.project-gallery[data-mode="fragment-grid"] figure:nth-child(10) { grid-column: 8 / 12; padding-top: clamp(18px, 4vw, 76px); }
.project-gallery figure { margin: 0; }

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about-copy { max-width: 720px; }
.about-portrait {
  margin: 10px 0 0;
  justify-self: end;
  width: min(100%, 320px);
}
.about-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ddd6cb;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer p { font-size: 13px; margin: 0; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.92);
  display: grid;
  place-items: center;
  padding: 52px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 94vw; max-height: 88vh; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; background: transparent; }
.lightbox figcaption { color: rgba(246,244,239,.72); font-size: 13px; margin-top: 10px; text-align: center; }
.lightbox button {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--bg);
  font-size: 44px;
  cursor: pointer;
}
.lightbox-close { top: 18px; right: 26px; }
.lightbox-prev { left: 22px; top: 50%; }
.lightbox-next { right: 22px; top: 50%; }
.contact-note { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 980px) {

  .about-intro { grid-template-columns: 1fr; max-width: 780px; }
  .about-portrait { justify-self: start; width: min(100%, 300px); }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-image-wrap { min-height: 50vh; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-intro { grid-template-columns: 1fr; }
  .project-gallery[data-mode="fragment-grid"] { grid-template-columns: repeat(8, minmax(0, 1fr)); max-width: 920px; }
  .project-gallery[data-mode="fragment-grid"] figure:nth-child(1) { grid-column: 1 / 5; }
  .project-gallery[data-mode="fragment-grid"] figure:nth-child(2) { grid-column: 5 / 9; }
  .project-gallery[data-mode="fragment-grid"] figure:nth-child(3) { grid-column: 1 / 5; }
  .project-gallery[data-mode="fragment-grid"] figure:nth-child(4) { grid-column: 5 / 9; }
  .project-gallery[data-mode="fragment-grid"] figure:nth-child(5) { grid-column: 1 / 4; }
  .project-gallery[data-mode="fragment-grid"] figure:nth-child(6) { grid-column: 4 / 7; }
  .project-gallery[data-mode="fragment-grid"] figure:nth-child(7) { grid-column: 7 / 9; }
  .project-gallery[data-mode="fragment-grid"] figure:nth-child(8) { grid-column: 1 / 5; }
  .project-gallery[data-mode="fragment-grid"] figure:nth-child(9) { grid-column: 5 / 9; }
}
@media (max-width: 680px) {
  .site-header { align-items: flex-start; }
  .nav-toggle {
    display: inline-flex;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    padding: 4px 0;
  }
  .site-nav {
    position: absolute;
    top: 60px;
    right: var(--pad);
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 16px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .home-hero { padding-top: 26px; }
  .card-grid, .card-grid-featured, .project-gallery, .project-gallery[data-mode="triptych"], .project-gallery[data-mode="compact"] {
    grid-template-columns: 1fr;
  }
  .project-gallery[data-mode="grid-3x3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-gallery[data-mode="fragment-grid"] { grid-template-columns: 1fr; max-width: 100%; }
  .project-gallery[data-mode="fragment-grid"] figure:nth-child(n) { grid-column: 1 / -1; padding-top: 0; }
  .section-heading { grid-template-columns: 1fr; }
  
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about-copy { max-width: 720px; }
.about-portrait {
  margin: 10px 0 0;
  justify-self: end;
  width: min(100%, 320px);
}
.about-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ddd6cb;
}

.site-footer { flex-direction: column; }
  .lightbox { padding: 30px 16px; }
  .lightbox-prev, .lightbox-next { display: none; }
}

@media (max-width: 980px) {
  .project-gallery[data-mode="fragment-grid"] figure:nth-child(n) {
    grid-column: auto;
    padding-top: 0;
  }
  .project-gallery[data-mode="fragment-grid"] {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
}

/* Final About layout: portrait remains secondary, small, and editorial rather than dominant. */
.narrow-page .about-intro {
  max-width: 980px;
}
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(160px, 220px);
  column-gap: clamp(44px, 7vw, 104px);
  row-gap: 28px;
  align-items: end;
}
.about-copy {
  max-width: 660px;
}
.about-portrait {
  margin: 0 0 0.28rem;
  justify-self: end;
  align-self: end;
  width: clamp(160px, 18vw, 220px);
}
.about-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
  background: #ddd6cb;
}
@media (max-width: 980px) {
  .about-intro {
    grid-template-columns: 1fr;
    max-width: 680px;
  }
  .about-portrait {
    justify-self: start;
    width: clamp(150px, 38vw, 210px);
    margin-top: 10px;
  }
}

/* Final v1.2 About layout: square portrait on the left, text on the right. */
body.about .narrow-page .about-intro {
  max-width: 980px;
}
body.about .about-intro {
  display: grid;
  grid-template-columns: clamp(150px, 18vw, 220px) minmax(0, 680px);
  column-gap: clamp(36px, 6vw, 96px);
  row-gap: 24px;
  align-items: start;
}
body.about .about-portrait {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  width: clamp(150px, 18vw, 220px);
  margin: 0.72rem 0 0;
}
body.about .about-copy {
  grid-column: 2;
  grid-row: 1;
  max-width: 680px;
}
body.about .about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 36%;
  background: #ddd6cb;
}
@media (max-width: 760px) {
  body.about .about-intro {
    grid-template-columns: 1fr;
    max-width: 680px;
  }
  body.about .about-portrait,
  body.about .about-copy {
    grid-column: 1;
    grid-row: auto;
  }
  body.about .about-portrait {
    width: clamp(142px, 45vw, 196px);
    margin: 0 0 8px;
  }
}


/* Final v1.3 About layout: stronger left portrait, square, balanced with text. */
body.about .page-main.narrow-page {
  max-width: var(--max);
}
body.about .narrow-page .about-intro {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
body.about .about-intro {
  display: grid;
  grid-template-columns: clamp(280px, 28vw, 380px) minmax(0, 620px);
  column-gap: clamp(48px, 7vw, 112px);
  row-gap: 28px;
  align-items: center;
}
body.about .about-portrait {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  width: clamp(280px, 28vw, 380px);
  margin: 0;
}
body.about .about-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center center;
  background: #ddd6cb;
}
body.about .about-copy {
  grid-column: 2;
  grid-row: 1;
  max-width: 620px;
}
@media (max-width: 900px) {
  body.about .about-intro {
    grid-template-columns: 1fr;
    max-width: 680px;
  }
  body.about .about-portrait,
  body.about .about-copy {
    grid-column: 1;
    grid-row: auto;
  }
  body.about .about-portrait {
    width: min(72vw, 340px);
    margin-bottom: 20px;
  }
}
