*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bone: #F5F0E8;
  --bone-dark: #EDE6D8;
  --bone-mid: #E2D9C8;
  --charcoal: #2C2620;
  --charcoal-mid: #4A4238;
  --warm-gray: #8A7E6E;
  --warm-gray-light: #B4A99A;
  --rule: #C4B8A6;
}
html { scroll-behavior: smooth; }
body { background: var(--bone); color: var(--charcoal); font-family: 'Jost', sans-serif; font-weight: 300; overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 56px;
  background: rgba(245,240,232,0.93); backdrop-filter: blur(8px);
}
.nav-logo { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: 17px; color: var(--charcoal); text-decoration: none; }
.nav-logo span { font-family: 'Jost', sans-serif; font-style: normal; font-weight: 200; font-size: 10px; letter-spacing: 0.2em; color: var(--warm-gray); text-transform: uppercase; display: block; margin-top: 1px; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { font-family: 'Jost', sans-serif; font-weight: 200; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--warm-gray); text-decoration: none; transition: color 0.3s; }
.nav-links a:hover { color: var(--charcoal); }
.nav-links a.active { color: var(--charcoal); border-bottom: 0.5px solid var(--rule); padding-bottom: 2px; }

/* PAGE HEADER */
.page-header { padding: 160px 56px 72px; border-bottom: 0.5px solid var(--rule); }
.page-header-eyebrow { font-family: 'Jost', sans-serif; font-weight: 200; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--warm-gray); margin-bottom: 20px; }
.page-header-title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: clamp(52px, 6vw, 80px); color: var(--charcoal); line-height: 1.0; margin-bottom: 20px; }
.page-header-rule { width: 40px; height: 0.5px; background: var(--rule); margin-bottom: 20px; }
.page-header-desc { font-family: 'Cormorant Garamond', serif; font-size: 19px; line-height: 1.75; color: var(--charcoal-mid); max-width: 560px; }

/* GALLERY */
.gallery-section { padding: 72px 56px 120px; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-item:nth-child(1) { grid-column: span 7; }
.gallery-item:nth-child(2) { grid-column: span 5; }
.gallery-item:nth-child(3) { grid-column: span 4; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item:nth-child(6) { grid-column: span 12; }

.gallery-frame { width: 100%; aspect-ratio: 4/5; background: #EDE6D8; border: 0.5px solid var(--rule); overflow: hidden; position: relative; }
.gallery-item:nth-child(1) .gallery-frame { aspect-ratio: 16/11; }
.gallery-item:nth-child(6) .gallery-frame { aspect-ratio: 21/9; }

.gallery-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease; }
.gallery-item:hover .gallery-frame img { transform: scale(1.04); }

.gallery-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; }
.gallery-placeholder p { font-family: 'Jost', sans-serif; font-weight: 200; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--warm-gray-light); }

.gallery-overlay { position: absolute; inset: 0; background: rgba(44,38,32,0); transition: background 0.4s; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.gallery-item:hover .gallery-overlay { background: rgba(44,38,32,0.48); }
.overlay-text { opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.gallery-item:hover .overlay-text { opacity: 1; transform: translateY(0); }
.overlay-title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; color: #F5F0E8; margin-bottom: 4px; }
.overlay-meta { font-family: 'Jost', sans-serif; font-weight: 200; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,240,232,0.65); }

/* CAPTION ROW */
.gallery-caption { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.caption-title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 14px; color: var(--charcoal-mid); }
.caption-meta { font-family: 'Jost', sans-serif; font-weight: 200; font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--warm-gray-light); }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(44,38,32,0.93); align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox-inner { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; max-width: 1100px; width: 100%; }
.lightbox-img { max-height: 82vh; max-width: 100%; object-fit: contain; border: 0.5px solid rgba(196,184,166,0.18); }
.lightbox-img-placeholder { width: 480px; max-width: 100%; aspect-ratio: 4/5; background: #352E28; border: 0.5px solid rgba(196,184,166,0.15); display: flex; align-items: center; justify-content: center; }
.lightbox-img-placeholder p { font-family: 'Jost', sans-serif; font-weight: 200; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(196,184,166,0.3); }
.lightbox-info { min-width: 200px; max-width: 240px; }
.lb-num { font-family: 'Jost', sans-serif; font-weight: 200; font-size: 10px; letter-spacing: 0.25em; color: rgba(196,184,166,0.45); text-transform: uppercase; margin-bottom: 20px; }
.lb-title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 38px; color: #F5F0E8; line-height: 1.1; margin-bottom: 16px; }
.lb-rule { width: 32px; height: 0.5px; background: rgba(196,184,166,0.3); margin-bottom: 16px; }
.lb-meta { font-family: 'Jost', sans-serif; font-weight: 200; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(196,184,166,0.55); line-height: 2.2; }
.lb-desc { font-family: 'Cormorant Garamond', serif; font-size: 16px; line-height: 1.75; color: rgba(245,240,232,0.6); margin-top: 20px; }
.lightbox-close { position: fixed; top: 32px; right: 40px; background: none; border: none; font-family: 'Jost', sans-serif; font-weight: 200; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(196,184,166,0.55); cursor: pointer; transition: color 0.2s; }
.lightbox-close:hover { color: #F5F0E8; }

/* FOOTER */
footer { background: var(--charcoal); padding: 32px 56px; display: flex; align-items: center; justify-content: space-between; border-top: 0.5px solid rgba(196,184,166,0.15); }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: 15px; color: var(--warm-gray); }
.footer-nav { display: flex; gap: 32px; list-style: none; }
.footer-nav a { font-family: 'Jost', sans-serif; font-weight: 200; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(138,126,110,0.6); text-decoration: none; transition: color 0.3s; }
.footer-nav a:hover { color: var(--warm-gray); }
.footer-copy { font-family: 'Jost', sans-serif; font-weight: 200; font-size: 10px; letter-spacing: 0.12em; color: rgba(138,126,110,0.4); text-transform: uppercase; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.85s ease, transform 0.85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  nav { padding: 22px 24px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 10px; }
  .page-header { padding: 120px 24px 48px; }
  .gallery-section { padding: 48px 24px 80px; }
  .gallery-item:nth-child(n) { grid-column: span 12; }
  .gallery-item:nth-child(1) .gallery-frame,
  .gallery-item:nth-child(6) .gallery-frame { aspect-ratio: 4/3; }
  .lightbox-inner { grid-template-columns: 1fr; }
  .lightbox-info { max-width: 100%; }
  footer { flex-direction: column; gap: 16px; padding: 28px 24px; text-align: center; }
  .footer-nav { justify-content: center; flex-wrap: wrap; }
}
