:root {
  --ink: #171713;
  --paper: #f8f8f5;
  --soft: #e8e7e1;
  --muted: #6d6c66;
  --accent: #8c2524;
  --serif: "Bodoni Moda", Didot, "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { display: block; width: 100%; }
a { color: inherit; }

.site-header { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 28px 4vw; color: #fff; }
.brand { display: flex; flex-direction: column; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 500; line-height: 1.3; }
.brand > span { font-family: var(--serif); font-size: 1.08rem; font-weight: 500; letter-spacing: .04em; }
.brand small { font-size: .68rem; letter-spacing: .35em; opacity: .78; }
nav { display: flex; gap: clamp(18px, 3vw, 44px); }
nav a { color: inherit; text-decoration: none; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; }
nav a:hover, nav a:focus-visible { text-decoration: underline; text-underline-offset: 6px; }

.hero { min-height: 100svh; display: grid; grid-template-columns: 58% 42%; background: #151512; color: #fff; }
.hero-image { margin: 0; min-height: 100svh; overflow: hidden; }
.hero-image img { height: 100%; min-height: 100svh; object-fit: cover; object-position: center 35%; filter: saturate(.9) contrast(1.03); }
.hero-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 18vh 6vw 9vh; }
.hero-copy h1 { max-width: 8ch; margin: 18px 0 28px; font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 7.8rem); font-weight: 400; line-height: .9; letter-spacing: -.055em; text-transform: uppercase; }
.hero-copy > p:not(.eyebrow) { max-width: 34rem; color: #d1d0ca; font-size: 1.03rem; }
.eyebrow { margin: 0; color: var(--accent); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; }
.hero .eyebrow { color: #d79890; }
.text-link { display: inline-block; width: fit-content; margin-top: 30px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 5px; font-size: .86rem; text-transform: uppercase; letter-spacing: .13em; }

.portfolio, .about, .contact { padding: clamp(88px, 12vw, 180px) 4vw; }
.section-heading { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; gap: 4vw; margin-bottom: clamp(42px, 6vw, 86px); }
.section-heading h2, .about h2, .contact h2 { margin: 10px 0 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 6rem); font-weight: 400; line-height: .92; letter-spacing: -.045em; text-transform: uppercase; }
.section-heading > p:last-child { color: var(--muted); max-width: 25rem; margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.5vw, 24px); align-items: start; }
.photo { appearance: none; border: 0; padding: 0; background: #ddd; cursor: zoom-in; overflow: hidden; min-width: 0; }
.photo img { aspect-ratio: 2 / 3; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.photo:hover img, .photo:focus-visible img { transform: scale(1.025); filter: brightness(.92); }
.gallery-couples .photo:nth-child(1) { grid-column: 1 / span 5; }
.gallery-couples .photo:nth-child(2) { grid-column: 7 / span 4; margin-top: 12vw; }
.gallery-couples .photo:nth-child(3) { grid-column: 2 / span 4; margin-top: 5vw; }
.gallery-couples .photo:nth-child(4) { grid-column: 7 / span 5; margin-top: -4vw; }
.gallery-couples .photo:nth-child(5) { grid-column: 1 / span 4; margin-top: 8vw; }
.gallery-couples .photo:nth-child(6) { grid-column: 6 / span 5; }
.gallery-couples .photo:nth-child(7) { grid-column: 2 / span 4; margin-top: 6vw; }
.gallery-couples .photo:nth-child(8) { grid-column: 7 / span 4; margin-top: 13vw; }
.gallery-couples .photo:nth-child(9) { grid-column: 1 / span 5; margin-top: 6vw; }
.gallery-couples .photo:nth-child(10) { grid-column: 7 / span 5; }
.gallery-couples .photo:nth-child(11) { grid-column: 4 / span 6; margin-top: 7vw; }
.gallery-couples .wide-end img { aspect-ratio: 4 / 5; }

.portfolio.alt { background: #1a1a17; color: #f4f3ed; }
.portfolio.alt .section-heading > p:last-child { color: #aaa9a2; }
.gallery-label { margin: 0 0 24px; color: #aaa9a2; font-size: .76rem; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; }
.gallery-label-second { margin-top: clamp(100px, 14vw, 190px); }
.gallery-events .photo:nth-child(1) { grid-column: 1 / span 4; }
.gallery-events .photo:nth-child(2) { grid-column: 6 / span 5; margin-top: 8vw; }
.gallery-events .photo:nth-child(3) { grid-column: 2 / span 5; margin-top: 8vw; }
.gallery-events .photo:nth-child(4) { grid-column: 8 / span 4; }
.gallery-events .photo:nth-child(5) { grid-column: 1 / span 4; margin-top: 7vw; }
.gallery-events .photo:nth-child(6) { grid-column: 6 / span 5; margin-top: 3vw; }
.gallery-family .photo:nth-child(1) { grid-column: 1 / span 5; }
.gallery-family .photo:nth-child(1) img { aspect-ratio: 3 / 2; }
.gallery-family .photo:nth-child(2) { grid-column: 7 / span 4; margin-top: 7vw; }
.gallery-family .photo:nth-child(3) { grid-column: 2 / span 4; margin-top: 8vw; }
.gallery-family .photo:nth-child(4) { grid-column: 7 / span 5; }
.gallery-family .photo:nth-child(5) { grid-column: 1 / span 4; margin-top: 7vw; }
.gallery-family .photo:nth-child(6) { grid-column: 6 / span 5; }
.gallery-family .photo:nth-child(7) { grid-column: 2 / span 4; margin-top: 8vw; }
.gallery-family .photo:nth-child(8) { grid-column: 7 / span 4; margin-top: 3vw; }
.gallery-fashion .photo:nth-child(1) { grid-column: 1 / span 4; }
.gallery-fashion .photo:nth-child(2) { grid-column: 6 / span 5; margin-top: 8vw; }
.gallery-fashion .photo:nth-child(3) { grid-column: 2 / span 5; margin-top: 7vw; }
.gallery-fashion .photo:nth-child(4) { grid-column: 8 / span 4; }
.gallery-fashion .photo:nth-child(5) { grid-column: 1 / span 4; margin-top: 8vw; }
.gallery-fashion .photo:nth-child(6) { grid-column: 6 / span 5; margin-top: 3vw; }
.gallery-fashion .photo:nth-child(7) { grid-column: 2 / span 4; margin-top: 8vw; }
.gallery-fashion .photo:nth-child(8) { grid-column: 7 / span 5; margin-top: 2vw; }

.about { border-bottom: 1px solid var(--soft); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8vw; align-items: start; margin-top: 22px; }
.about-grid h2 { max-width: 8ch; }
.about-grid > div { max-width: 34rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.about-grid > div p:first-child { margin-top: 12px; }

.contact { text-align: center; }
.contact h2 { max-width: 12ch; margin: 18px auto 42px; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 36px; }
.contact-links .text-link { margin: 0; }
.button { display: inline-block; padding: 15px 25px; background: var(--accent); color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .11em; font-size: .82rem; transition: background .2s ease; }
.button:hover, .button:focus-visible { background: #681817; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 4vw; border-top: 1px solid var(--soft); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; border: 0; padding: 44px; background: rgba(15,15,13,.96); }
.lightbox::backdrop { background: rgba(15,15,13,.88); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: fixed; top: 14px; right: 23px; border: 0; background: none; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

@media (max-width: 760px) {
  .site-header { position: absolute; padding: 20px; }
  nav { gap: 15px; }
  nav a { font-size: .7rem; }
  nav a:nth-child(2) { display: none; }
  .hero { display: block; position: relative; min-height: 100svh; }
  .hero-image, .hero-image img { min-height: 100svh; }
  .hero-image img { object-position: 48% center; }
  .hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,8,.9), transparent 62%); }
  .hero-copy { position: absolute; z-index: 2; inset: auto 0 0; padding: 110px 20px 42px; }
  .hero-copy h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-copy > p:not(.eyebrow) { font-size: .95rem; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .section-heading h2 { font-size: 3.2rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery .photo:nth-child(n) { grid-column: auto; margin-top: 0; }
  .gallery .photo:nth-child(3n+1) { grid-column: 1 / -1; }
  .gallery .photo:nth-child(3n+1) img { aspect-ratio: 4 / 5; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-links { flex-direction: column; }
  footer { flex-direction: column; }
  .lightbox { padding: 44px 8px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo img { transition: none; }
}
