:root {
  --bg: #0f0f0e;
  --bg-2: #171715;
  --text: #f1ece3;
  --muted: #a39d92;
  --gold: #c9a45c;
  --line: #2a2926;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
em { font-style: italic; color: var(--gold); }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px); background: linear-gradient(to bottom, rgba(15,15,14,.85), rgba(15,15,14,0)); }
.brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .02em; }
.brand span { color: var(--gold); }
.nav nav { display: flex; gap: clamp(14px, 2.5vw, 32px); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.nav nav a { opacity: .8; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; color: var(--gold); }

/* hero */
/* split hero: words on the left, photo on the right, so neither covers the other */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* slideshow: slow crossfade with a gentle zoom (Ken Burns) */
.hero-slides { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  opacity: 0; transform: scale(1.0); transition: opacity 1.6s ease, transform 8s ease-out; }
.hero-slides img.active { opacity: 1; transform: scale(1.07); }

/* fade-and-rise as things scroll into view */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero-text > * { animation: rise 1s ease both; }
.hero-text > *:nth-child(2) { animation-delay: .15s; }
.hero-text > *:nth-child(3) { animation-delay: .3s; }
.hero-text > *:nth-child(4) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slides img, .reveal, .hero-text > * { transition: none; animation: none; transform: none; }
  .reveal { opacity: 1; }
}
.hero-shade { grid-column: 2; grid-row: 1; background: linear-gradient(90deg, var(--bg) 0%, rgba(15,15,14,0) 22%); }
.hero-text { grid-column: 1; grid-row: 1; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(16px, 6vw, 96px); max-width: 720px; }
.eyebrow { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.2rem); margin-bottom: 22px; }
.lede { color: #ddd6ca; font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 30em; margin-bottom: 32px; }

.btn { display: inline-block; align-self: flex-start; padding: 13px 28px; border: 1px solid var(--gold); background: var(--gold); color: #15130f;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--gold); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }

/* work */
.work { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { background: none; border: 1px solid var(--line); color: var(--muted); padding: 8px 16px; font: 500 .78rem var(--sans);
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--text); border-color: var(--muted); }
.filters button[aria-selected="true"] { color: #15130f; background: var(--text); border-color: var(--text); }
/* script.js puts each photo in the shortest column so the columns end level */
.grid .cols { display: flex; gap: 14px; align-items: flex-start; }
.grid .col { flex: 1 1 0; min-width: 0; }
.grid figure { margin-bottom: 14px; cursor: zoom-in; overflow: hidden; background: var(--bg-2); }
.grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .4s; opacity: 0; }
.grid img.loaded { opacity: 1; }
.grid figure:hover img { transform: scale(1.03); }
/* featured photo: about two columns wide, centered, with the grid continuing above and below */
.grid figure.feature { width: min(66%, 980px); margin: 0 auto 14px; }

/* prints */
.prints { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prints-inner { max-width: 760px; margin: 0 auto; padding: clamp(64px, 9vw, 110px) 20px; text-align: center; }
.prints h2 { margin-bottom: 18px; }
.prints p { color: var(--muted); margin-bottom: 28px; }
.prints .btn { align-self: center; }
.small { font-size: .82rem; margin-top: 16px; }

/* about + contact */
.about-inner { max-width: 760px; margin: 0 auto; padding: clamp(64px, 9vw, 110px) 20px; }
.about h2 { margin-bottom: 22px; }
.about p { color: #d6cfc3; margin-bottom: 16px; font-size: 1.05rem; }
.contact { text-align: center; padding: clamp(64px, 9vw, 110px) 20px; border-top: 1px solid var(--line); }
.contact h2 { margin-bottom: 14px; }
.contact p { color: var(--muted); margin-bottom: 30px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
footer { padding: 28px 20px; text-align: center; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8,8,7,.96); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 10px 50px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: none; border: none; color: var(--text); cursor: pointer; opacity: .75; font-size: 3rem; line-height: 1; padding: 12px 18px; }
.lightbox button:hover { opacity: 1; color: var(--gold); }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .12em; }

@media (max-width: 640px) {
  .nav { padding: 14px 16px; }
  .nav nav { gap: 12px; font-size: .64rem; letter-spacing: .08em; }
  .brand { font-size: 1.1rem; white-space: nowrap; }
  body { overflow-x: hidden; }
  .grid .cols { gap: 8px; }
  .grid figure { margin-bottom: 8px; }
  .grid figure.feature { width: 100%; margin-bottom: 8px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-slides, .hero-shade, .hero-text { grid-column: 1; grid-row: 1; }
  /* darker behind the words so they stay readable over bright photos */
  .hero-shade { background: linear-gradient(0deg, rgba(10,10,9,.94) 0%, rgba(10,10,9,.82) 38%, rgba(10,10,9,.45) 62%, rgba(10,10,9,.12) 100%); }
  .hero-text { justify-content: flex-end; padding-bottom: 72px; }
  /* phones: a soft dark glow behind the words so they read over any photo */
  .hero-text .eyebrow, .hero h1, .lede, .nav .brand, .nav nav a {
    text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 2px 12px rgba(0,0,0,.6), 0 0 28px rgba(0,0,0,.45); }
  .nav nav a { opacity: .95; }
  .hero-text .eyebrow { font-weight: 600; color: #ddb86c; }
  .lede { color: #f1ece3; }
  .lb-prev, .lb-next { display: none; }
}
