:root {
  --bg: #0e0e0e;
  --bg-alt: #161616;
  --text: #ece9e4;
  --muted: #9a958e;
  --accent: #c8a97e;
  --line: #2a2a2a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --pad: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 300 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  transition: background .3s, padding .3s;
}
.site-header.scrolled { background: rgba(14,14,14,.92); backdrop-filter: blur(8px); padding-block: 14px; }
.logo { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .02em; }
.nav { display: flex; gap: 2rem; }
.nav a { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 28px; height: 20px; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 0; right: 0; height: 1px; background: var(--text); transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 6px; }
.nav-toggle span:last-child { top: 14px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 10px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 10px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; display: grid; place-items: end start; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 8s ease;
}
.hero-slides img.active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.1) 60%); }
.hero-content { position: relative; padding: 0 var(--pad) 12vh; max-width: 900px; }
.eyebrow { text-transform: uppercase; letter-spacing: .3em; font-size: .75rem; color: var(--accent); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); margin-bottom: 2rem; }

.btn {
  display: inline-block; padding: 14px 32px; border: 1px solid var(--text);
  background: transparent; color: var(--text); font: 400 .78rem var(--sans);
  text-transform: uppercase; letter-spacing: .2em; cursor: pointer; transition: background .25s, color .25s;
}
.btn:hover { background: var(--text); color: var(--bg); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 12vw, 140px) var(--pad); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.filters button {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: 400 .78rem var(--sans); text-transform: uppercase; letter-spacing: .15em;
  padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.filters button:hover { color: var(--text); }
.filters button.active { color: var(--text); border-color: var(--accent); }

/* ---------- Gallery (masonry via columns) ---------- */
.gallery { columns: 3 320px; column-gap: 16px; }
.gallery figure {
  break-inside: avoid; margin-bottom: 16px; position: relative; overflow: hidden; cursor: zoom-in;
  background: var(--bg-alt);
  opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease;
}
.gallery figure.visible { opacity: 1; transform: none; }
.gallery figure.hidden { display: none; }
.gallery img { width: 100%; height: auto; transition: transform .8s ease, filter .4s; }
.gallery figure:hover img { transform: scale(1.04); filter: brightness(.7); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px;
  font-family: var(--serif); font-size: 1.25rem; opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.gallery figcaption small { display: block; font: 400 .7rem var(--sans); text-transform: uppercase; letter-spacing: .15em; color: var(--accent); }
.gallery figure:hover figcaption { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; background: var(--bg-alt); }
.about-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-text p { color: var(--muted); margin-bottom: 1rem; max-width: 60ch; }
.about-text .lead { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--text); }
.stats { list-style: none; display: flex; gap: 2.5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; color: var(--accent); }
.stats span { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ---------- Prints ---------- */
.prints { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.prints-photo { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.prints-text p { color: var(--muted); margin-bottom: 1rem; max-width: 55ch; }
.prints-text h2 { margin-bottom: 1.25rem; }
.prints-text a:not(.btn) { color: var(--text); border-bottom: 1px solid var(--accent); }
.prints-text a:not(.btn):hover { color: var(--accent); }
.prints-text .btn { margin-top: 1rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; background: var(--bg-alt); }
.contact > p { color: var(--muted); margin-bottom: 3rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin: 0 auto; text-align: left; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text);
  font: 300 1rem var(--sans); padding: 8px 0; resize: vertical; transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { grid-column: 1 / -1; justify-self: center; margin-top: 1rem; }
.form-status { grid-column: 1 / -1; text-align: center; color: var(--accent); min-height: 1.5em; }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 32px var(--pad); border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a:hover { color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5,5,5,.96);
  display: flex; align-items: center; justify-content: center; padding: 48px 72px;
  animation: fade .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox figcaption { margin-top: 16px; font-family: var(--serif); font-size: 1.2rem; color: var(--muted); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--text); font-size: 3rem; line-height: 1; cursor: pointer; opacity: .6; transition: opacity .2s; padding: 12px; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 12px; right: 20px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column;
    align-items: center; justify-content: center; gap: 2.5rem;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 1rem; color: var(--text); }
  .about, .prints { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .stats { gap: 1.5rem; }
  .lightbox { padding: 56px 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
.about-text a { color: var(--text); border-bottom: 1px solid var(--accent); }
.about-text a:hover { color: var(--accent); }
.contact > p a { color: var(--text); border-bottom: 1px solid var(--accent); }
.contact > p a:hover { color: var(--accent); }
