:root {
  --bg: #0b0b0c;
  --bg-elevated: #131315;
  --text: #ece9e4;
  --text-dim: #9a958c;
  --accent: #c9a24b;
  --border: rgba(255,255,255,0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Jost', sans-serif; font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: 'Cormorant Garamond', serif; font-weight: 500; letter-spacing: 0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #111; padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- nav: wraps instead of clipping ---------- */
header.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 26px; flex-wrap: wrap;
  padding: 16px 5vw;
  background: linear-gradient(to bottom, rgba(11,11,12,0.9), rgba(11,11,12,0.55) 60%, transparent);
  transition: background 0.3s ease, padding 0.3s ease;
}
header.top.scrolled {
  background: rgba(11,11,12,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); padding: 10px 5vw;
}
.brand { font-family: 'Cormorant Garamond', serif; font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.brand span { color: var(--accent); }
nav.links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.nav-link {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap; transition: color 0.2s ease;
}
.nav-link:hover { color: var(--text); }
.nav-contact { color: var(--text); }
.nav-ig { color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,12,0.97) 0%, rgba(11,11,12,0.2) 58%, rgba(11,11,12,0.45) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 5vw 9vh; max-width: 940px; }
.hero-eyebrow { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.hero h1 { font-size: clamp(38px, 6.6vw, 82px); line-height: 1.03; margin: 0 0 18px; }
.hero-sub { font-size: clamp(15px, 1.6vw, 19px); color: #cfcabf; max-width: 560px; line-height: 1.6; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 14px 26px; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--accent);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-primary { background: var(--accent); color: #14120c; font-weight: 500; }
.btn-primary:hover { background: #dab661; transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- intro ---------- */
.intro { padding: 100px 5vw 40px; max-width: 1100px; margin: 0 auto; }
.intro-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.intro-grid:has(.portrait) { grid-template-columns: 300px 1fr; align-items: start; }
.portrait img { width: 100%; height: auto; display: block; }
.intro-text h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 18px; }
.intro-text p { font-size: 17px; line-height: 1.75; color: #cfcabf; margin: 0 0 16px; max-width: 62ch; }
.featured { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.featured-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.featured-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.featured-list li { font-size: 14px; color: var(--text-dim); }

/* ---------- galleries ---------- */
.gallery-section { padding: 64px 5vw 30px; border-top: 1px solid var(--border); margin-top: 34px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; }
.section-head p { color: var(--text-dim); font-size: 14px; max-width: 460px; line-height: 1.6; margin: 0; }
.view-all { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; border-bottom: 1px solid transparent; padding-bottom: 3px; }
.view-all:hover { border-color: var(--accent); }
.view-all .count { display: block; color: var(--text-dim); letter-spacing: 0.08em; margin-top: 5px; }
.view-all-foot { display: none; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: row dense; gap: 6px; }
.tile { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4/5; cursor: pointer; background: var(--bg-elevated); }
/* one 2x2 feature per 5 tiles: 1 feature + 4 standard tiles = exactly two full rows of four.
   It keeps the same 4/5 ratio so its height matches the two rows it spans and leaves no gap. */
.tile:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 4/5; }
/* never start a feature tile in the last few: it would sit alone beside empty columns */
.tile:nth-child(5n+1):nth-last-child(-n+4) { grid-column: auto; grid-row: auto; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: transform 0.7s cubic-bezier(.2,.7,.2,1), opacity 0.4s ease; }
.tile img.loaded { opacity: 1; }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); pointer-events: none; }

/* ---------- collection pages ---------- */
.collection-head { padding: 150px 5vw 10px; max-width: 900px; }
.crumb { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 18px; }
.crumb a { color: var(--accent); }
.collection-head h1 { font-size: clamp(34px, 5.5vw, 60px); margin: 0 0 14px; }
.collection-desc { color: #cfcabf; font-size: 17px; line-height: 1.7; margin: 0 0 10px; max-width: 60ch; }
.collection-count { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin: 0; }
.collection-body { border-top: none; margin-top: 26px; padding-top: 0; }
.collection-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 40px 5vw 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.collection-nav a { color: var(--text-dim); }
.collection-nav a:hover { color: var(--accent); }

/* ---------- contact ---------- */
.contact { padding: 90px 5vw 70px; border-top: 1px solid var(--border); margin-top: 60px; }
.contact-inner { max-width: 660px; margin: 0 auto; }
.contact h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 12px; }
.contact-lead { color: var(--text-dim); font-size: 16px; line-height: 1.65; margin: 0 0 34px; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.form input, .form select, .form textarea {
  background: #141416; border: 1px solid var(--border); color: var(--text);
  font-family: 'Jost', sans-serif; font-size: 15px; font-weight: 300;
  padding: 13px 14px; width: 100%; border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form textarea { resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form button { justify-self: start; cursor: pointer; font-family: 'Jost', sans-serif; }
.hp { position: absolute; left: -9999px; }
.contact-alt { margin-top: 26px; font-size: 14px; color: var(--text-dim); }
.contact-alt a { color: var(--accent); }

.thanks { padding: 200px 5vw 140px; max-width: 640px; }
.thanks h1 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 16px; }
.thanks p { color: #cfcabf; font-size: 17px; line-height: 1.7; margin: 0 0 30px; }

footer { padding: 40px 5vw 50px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); }
.fine-print { font-size: 11px; color: #5c584f; letter-spacing: 0.05em; }
.to-top { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.to-top:hover { color: var(--accent); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(6,6,7,0.97); display: none; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; opacity: 0; transition: opacity 0.35s ease; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox img.show { opacity: 1; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: none; border: none; color: var(--text); font-family: 'Jost', sans-serif; cursor: pointer; opacity: 0.7; transition: opacity 0.2s ease; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 20px; right: 24px; font-size: 30px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 34px; padding: 10px 16px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-meta { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 16px; text-align: center; }
.lb-meta span { font-size: 13px; color: var(--text-dim); letter-spacing: 0.06em; }
.lb-counter { font-size: 11px !important; letter-spacing: 0.15em !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .intro-grid:has(.portrait) { grid-template-columns: 240px 1fr; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 120px; }
  header.top { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 5vw 10px; }
  header.top.scrolled { padding: 9px 5vw 8px; }
  nav.links { gap: 7px 16px; }
  .nav-link { font-size: 11px; }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
  .tile:nth-child(5n+1) { grid-column: auto; grid-row: auto; aspect-ratio: 4/5; }
  .intro-grid:has(.portrait) { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .section-head { align-items: flex-start; }
  .view-all { display: none; }
  .view-all-foot { display: inline-block; margin-top: 22px; }
  .collection-head { padding-top: 170px; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { min-height: 86vh; }
  .cta-row .btn { flex: 1 1 100%; text-align: center; }
  .lightbox img { max-height: 72vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img, .lightbox img, .btn { transition: none; }
}
