:root {
  --ink: #171714;
  --paper: #f2eee7;
  --line: rgba(23, 23, 20, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; font: inherit; }
img { display: block; max-width: 100%; }
main { min-height: 100vh; }

.site-rail {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 178px;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 22px 28px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.wordmark {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.78;
}
.wordmark span { font-size: 8px; letter-spacing: 0.24em; }
.site-rail nav { display: flex; flex-direction: column; gap: 16px; }
.site-rail nav a {
  opacity: 0.48;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-rail nav a span { display: inline-block; width: 26px; opacity: 0.5; }
.site-rail nav a.is-active, .site-rail nav a:hover { opacity: 1; }
.rail-bottom { display: flex; flex-direction: column; gap: 20px; }
.rail-bottom p { margin: 0; opacity: 0.5; font-size: 8px; line-height: 1.5; text-transform: uppercase; }
.rail-bottom a { font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; }
.site-content { padding-left: 178px; }
.mobile-header { display: none; }

.gallery-section { overflow: hidden; padding: 28px 30px 72px; }
.section-heading {
  display: flex;
  min-height: 176px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.section-heading p { margin: 0; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.section-heading h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 82px);
  font-weight: 450;
  letter-spacing: -0.062em;
  line-height: 0.9;
}
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 18px;
}
.masonry-column { display: flex; min-width: 0; flex-direction: column; gap: 28px; }
.photo-card { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.photo-frame { display: block; overflow: hidden; width: 100%; background: #e7e1d8; }
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 500ms ease, transform 900ms cubic-bezier(.16, 1, .3, 1);
}
.photo-meta {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  padding-top: 8px;
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}
.photo-meta > span:first-child { opacity: 0.25; }
.photo-card:hover .photo-frame img, .photo-card:focus-visible .photo-frame img {
  filter: saturate(0.25);
  transform: scale(1.025);
}
.photo-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.gallery-loader {
  display: flex;
  min-height: 132px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 48px 0 4px;
  border-bottom: 1px solid var(--line);
  opacity: 0.55;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 54px 80px 44px;
  background: rgba(15, 15, 13, 0.96);
  color: var(--paper);
}
.lightbox.is-open { display: flex; }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 25px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lightbox-figure { display: flex; max-width: min(78vw, 1180px); max-height: 86vh; flex-direction: column; margin: 0; }
.lightbox-figure img { max-width: 100%; max-height: calc(86vh - 48px); object-fit: contain; }
.lightbox-figure figcaption { display: flex; justify-content: space-between; gap: 34px; padding-top: 12px; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.lightbox-figure figcaption span { opacity: 0.45; }
.lightbox-figure figcaption strong { font-weight: 400; }
.lightbox-arrow { position: absolute; top: 50%; padding: 16px; border: 0; background: transparent; color: inherit; font-size: 28px; }
.lightbox-arrow:disabled { cursor: default; opacity: 0.18; }
.lightbox-arrow-prev { left: 18px; }
.lightbox-arrow-next { right: 18px; }

.about-section {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 140px minmax(0, 1fr) minmax(260px, 35vw);
  gap: 34px;
  padding: 68px 30px 30px;
  background: var(--ink);
  color: var(--paper);
}
.section-label { display: flex; align-items: flex-start; gap: 22px; }
.section-label span { opacity: 0.45; }
.section-label p { margin: 0; }
.about-copy { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 24px; }
.about-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 5.7vw, 92px);
  font-weight: 430;
  letter-spacing: -0.065em;
  line-height: 0.91;
}
.about-details { display: grid; max-width: 720px; grid-template-columns: 1fr 1fr; gap: 30px; }
.about-details p { margin: 0; font-size: 13px; line-height: 1.65; opacity: 0.72; }
.about-image { display: flex; align-self: stretch; flex-direction: column; justify-content: flex-end; gap: 10px; }
.about-image img {
  width: 100%;
  height: min(62vh, 720px);
  object-fit: cover;
  object-position: 80% center;
  filter: saturate(0.5);
}
.about-image span { font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; }

.contact-section {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  padding: 68px 30px 28px;
}
.contact-label { width: 140px; }
.contact-main { align-self: center; padding: 60px 8vw; }
.contact-main > p { margin: 0 0 24px; font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; }
.contact-main h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(52px, 8vw, 126px);
  font-weight: 440;
  letter-spacing: -0.075em;
  line-height: 0.86;
}
.contact-mail {
  display: flex;
  max-width: 760px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 54px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.contact-footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.contact-footer p { margin: 0; }
.contact-footer a { text-transform: uppercase; letter-spacing: 0.1em; }

@media (max-width: 719px) {
  .site-rail { display: none; }
  .site-content { padding-left: 0; }
  .mobile-header {
    display: flex;
    height: 68px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-header nav { display: flex; gap: 11px; }
  .mobile-header nav a { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
  .mobile-header nav a.is-active { border-bottom: 1px solid currentColor; }
  .gallery-section { padding: 0 12px 42px; }
  .section-heading {
    min-height: 250px;
    align-items: flex-start;
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding: 42px 6px 28px;
  }
  .masonry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 12px; }
  .masonry-column { gap: 20px; }
  .gallery-loader { min-height: 96px; padding: 34px 6px 4px; }
  .about-section { display: flex; min-height: auto; flex-direction: column; gap: 52px; padding: 48px 18px 18px; }
  .about-copy { gap: 70px; }
  .about-details { grid-template-columns: 1fr; }
  .about-image img { height: 120vw; }
  .contact-section { min-height: 88vh; padding: 48px 18px 20px; }
  .contact-main { padding: 60px 0; }
  .contact-main h1 { font-size: clamp(48px, 16vw, 78px); }
  .contact-footer { flex-direction: column; }
  .lightbox { padding: 58px 34px 34px; }
  .lightbox-arrow { top: auto; bottom: 12px; }
  .lightbox-arrow-prev { left: 6px; }
  .lightbox-arrow-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
