:root {
  --cream: #faf6f0;
  --cream-deep: #f1e9dd;
  --ink: #2b2420;
  --ink-soft: #5c524a;
  --gold: #a9834f;
  --gold-soft: #cdab79;
  --line: #e4d9c7;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 40px rgba(43, 36, 32, 0.12);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Work Sans", -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
  font-weight: 500;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* progress bar */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gold); z-index: 2000; transition: width 0.1s linear;
}

/* NAV */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250, 246, 240, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#main-nav.scrolled {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(43,36,32,0.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: "Playfair Display", serif; font-size: 1.3rem; letter-spacing: 0.04em;
  color: var(--ink);
}
#main-nav:not(.scrolled) .nav-brand { color: var(--white); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.92rem; letter-spacing: 0.03em; color: var(--ink); position: relative;
  padding: 4px 0;
}
#main-nav:not(.scrolled) .nav-links a { color: var(--white); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
#nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
#nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0;
}
#main-nav:not(.scrolled) #nav-toggle span { background: var(--white); }

/* HERO */
#hero {
  position: relative; height: 100vh; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  opacity: 0;
  transition: opacity 2.2s ease;
}
.hero-bg.loaded { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.35) 0%, rgba(20,16,12,0.25) 50%, rgba(20,16,12,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: var(--white);
  padding: 0 24px;
}
.hero-content > * {
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 1s ease forwards;
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-kicker {
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 18px; opacity: 0.9;
  animation-delay: 0.5s;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.05; font-style: italic;
  margin-bottom: 18px;
  animation-delay: 0.75s;
}
.hero-date {
  font-size: 1.05rem; letter-spacing: 0.08em; opacity: 0.9; margin-bottom: 40px;
  animation-delay: 1s;
}
.hero-cta {
  display: inline-block; border: 1px solid rgba(255,255,255,0.6); padding: 12px 30px;
  border-radius: 100px; font-size: 0.9rem; letter-spacing: 0.04em;
  transition: background 0.25s ease, border-color 0.25s ease;
  animation-delay: 1.25s;
}
.hero-cta:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

.hero-secondary-link {
  display: block; margin-top: 22px; font-size: 0.82rem; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.8); border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 2px; animation-delay: 1.5s; transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-secondary-link:hover { color: var(--white); border-color: rgba(255,255,255,0.8); }

.more-photos-cta {
  color: var(--ink); border-color: var(--line); animation: none; opacity: 1;
}
.more-photos-cta:hover { background: var(--white); border-color: var(--gold-soft); }

/* SECTIONS */
.section { padding: 100px 24px; }
.section.alt { background: var(--cream-deep); }
.section-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.section-inner.wide { max-width: 1240px; }
.section-kicker {
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 10px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 18px; }
.section-sub { color: var(--ink-soft); font-size: 1.02rem; max-width: 560px; margin: 0 auto 40px; }

/* VIDEO */
.video-wrap {
  margin-top: 36px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--ink); aspect-ratio: 1920 / 800; position: relative;
}
.video-wrap video { width: 100%; height: 100%; display: block; object-fit: contain; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: var(--cream-deep); gap: 10px; text-align: center; padding: 0 20px;
}
.video-placeholder .ph-icon { font-size: 2.2rem; opacity: 0.7; }
.video-placeholder .ph-text { font-size: 0.95rem; opacity: 0.75; }

/* CATEGORY PILLS */
.category-pills {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 32px 0 44px;
}
.pill {
  padding: 9px 20px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--white); font-size: 0.88rem; letter-spacing: 0.02em; cursor: pointer;
  transition: all 0.2s ease; color: var(--ink-soft);
}
.pill:hover { border-color: var(--gold-soft); color: var(--ink); }
.pill.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* PHOTO GRID */
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.photo-card {
  position: relative; border-radius: 6px; overflow: hidden; cursor: pointer;
  background: var(--cream-deep); aspect-ratio: 1; box-shadow: 0 2px 10px rgba(43,36,32,0.06);
}
.photo-card img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease;
}
.photo-card img.loaded { opacity: 1; }
.photo-card:hover img { transform: scale(1.05); }
.grid-sentinel { height: 1px; }

/* PEOPLE GRID */
.people-grid-wrap { position: relative; }
.people-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px;
  overflow: hidden; transition: max-height 0.5s ease;
}
.person-card { text-align: center; cursor: pointer; }
.person-photo {
  width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(43,36,32,0.14); border: 3px solid var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.person-card:hover .person-photo { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(43,36,32,0.2); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-count { font-size: 0.74rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.people-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(to bottom, transparent, var(--cream-deep));
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px;
  pointer-events: none; opacity: 1; transition: opacity 0.3s ease;
}
.people-fade.hidden-fade { opacity: 0; pointer-events: none; }
.show-more-btn {
  pointer-events: auto; border: 1px solid var(--line); background: var(--white);
  color: var(--ink); padding: 11px 28px; border-radius: 100px; font-size: 0.88rem;
  letter-spacing: 0.03em; cursor: pointer; box-shadow: 0 4px 14px rgba(43,36,32,0.12);
  transition: border-color 0.2s ease;
}
.show-more-btn:hover { border-color: var(--gold-soft); }

/* FOOTER */
#footer {
  text-align: center; padding: 60px 24px; color: var(--ink-soft);
  font-family: "Playfair Display", serif; font-style: italic; font-size: 1.1rem;
}

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(15, 12, 10, 0.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox.hidden, .person-modal.hidden { display: none; }
.lb-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 70px 70px 0; position: relative;
}
#lb-image {
  max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lb-loading {
  position: absolute; width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2); border-top-color: var(--gold-soft);
  animation: spin 0.8s linear infinite; display: none;
}
.lb-loading.active { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-footer { padding: 20px 0 30px; }
.lb-download {
  color: var(--cream); font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}
.lb-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none; color: var(--cream);
  font-size: 2rem; cursor: pointer; line-height: 1; z-index: 10; opacity: 0.8;
}
.lb-close:hover { opacity: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.08);
  border: none; color: var(--cream); font-size: 2.2rem; width: 52px; height: 52px; border-radius: 50%;
  cursor: pointer; z-index: 10; transition: background 0.2s ease;
}
.lb-nav:hover { background: rgba(255,255,255,0.18); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* PERSON MODAL */
.person-modal {
  position: fixed; inset: 0; z-index: 2800; background: rgba(15,12,10,0.94);
  overflow-y: auto; padding: 70px 24px 60px;
}
.pm-inner { max-width: 1100px; margin: 0 auto; }
.pm-inner h3 { color: var(--cream); text-align: center; margin-bottom: 30px; font-size: 1.6rem; }
.pm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.pm-grid .photo-card { aspect-ratio: 4/3; }

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 0; right: -280px; height: 100vh; width: 260px;
    background: var(--cream); flex-direction: column; padding: 90px 30px; gap: 26px;
    transition: right 0.3s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--ink) !important; font-size: 1.05rem; }
  #nav-toggle { display: block; }
  .section { padding: 70px 18px; }
  .lb-stage { padding: 70px 16px 0; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.8rem; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
}
