:root {
  --paper: #f4f1ea;
  --ink: #11110f;
  --muted: #747168;
  --line: rgba(17, 17, 15, 0.16);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px clamp(18px, 3vw, 42px);
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav,
.category-nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a,
.category-nav a,
.contact a {
  transition: opacity 180ms ease;
}

.site-nav a:hover,
.category-nav a:hover,
.contact a:hover {
  opacity: 0.55;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #080806;
}

.hero img {
  width: 100%;
  height: 100svh;
  object-fit: cover;
  object-position: center 55%;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent 38%);
  pointer-events: none;
}

.hero-meta {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: 24px;
  left: clamp(18px, 3vw, 42px);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-meta p,
.contact p,
figure {
  margin: 0;
}

.category-nav {
  position: sticky;
  z-index: 8;
  top: 0;
  justify-content: center;
  padding: 18px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: blur(16px);
}

.gallery-section {
  padding: clamp(52px, 7vw, 98px) clamp(18px, 3vw, 42px) 0;
  scroll-margin-top: 58px;
}

.section-heading {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(24px, 4vw, 54px);
}

.section-heading p {
  margin: 0 0 0.58em;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 9.5rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.photo-grid {
  --photo-gap: clamp(12px, 1.4vw, 22px);
  column-count: 2;
  column-gap: var(--photo-gap);
}

.photo-grid figure {
  display: inline-block;
  width: 100%;
  margin-bottom: var(--photo-gap);
  background: #d8d2c6;
  break-inside: avoid;
}

.photo-grid img {
  width: 100%;
  height: auto;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: end;
  margin-top: clamp(86px, 12vw, 160px);
  padding: 28px clamp(18px, 3vw, 42px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact a:first-child {
  color: var(--ink);
  font-size: clamp(1.1rem, 2.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  text-transform: none;
}

@media (max-width: 780px) {
  .site-header {
    padding: 18px;
  }

  .menu-toggle {
    position: relative;
    z-index: 12;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 11;
    display: none;
    flex-direction: column;
    gap: 26px;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--paper);
    font-size: clamp(2.5rem, 13vw, 4.8rem);
    font-weight: 500;
    letter-spacing: -0.075em;
    text-transform: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .category-nav {
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
  }

  .hero img {
    object-position: center center;
  }

  .hero-meta {
    display: grid;
    gap: 9px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .photo-grid {
    column-count: 2;
  }

  .contact {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .photo-grid {
    column-count: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
