.site-nav {
  background: transparent;
  padding: 1.1rem 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(221, 213, 200, 0.4);
}

/* ── MASTHEAD ────────────────────────────────────── */
.masthead {
  background: var(--cream-dark);
  padding: 7rem 0 4.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at 100% 60%, rgba(200, 149, 108, 0.1) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 0% 30%, rgba(200, 149, 108, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Large decorative year in background */
.masthead-deco {
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 700;
  color: rgba(200, 149, 108, 0.06);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.masthead-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.masthead-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--amber);
}

.masthead-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 0.3rem;
}

.masthead-title em {
  font-weight: 400;
  font-style: italic;
  color: var(--amber);
}

.masthead-subtitle {
  font-family: var(--garamond);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.masthead-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.masthead-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  background: var(--amber);
  border: 1px solid var(--amber);
  padding: 0.65em 1.6em;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
}

.masthead-cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.masthead-cta-ghost {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  padding: 0.65em 1.6em;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
}

.masthead-cta-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ── FAMILLES SECTION ────────────────────────────── */
.section {
  padding: 3.5rem 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

.section-link {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s;
}

.section-link:hover {
  color: var(--ink);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0 0 1.75rem;
}

/* ── PERSON CARD (recent) ────────────────────────── */
.recent-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
  position: relative;
}

.recent-card::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  right: -0.75rem;
  top: 0;
  bottom: 0;
  background: var(--amber-pale);
  opacity: 0;
  border-radius: 3px;
  transition: opacity 0.18s;
}

.recent-card:hover::before {
  opacity: 1;
}

.recent-card > * {
  position: relative;
  z-index: 1;
}

.recent-portrait {
  width: 52px;
  height: 65px;
  object-fit: cover;
  border-radius: 2px;
  filter: sepia(10%);
  flex-shrink: 0;
}

.recent-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.recent-dates {
  font-family: var(--garamond);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-muted);
}

.recent-family-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 0.2rem;
}

.recent-added {
  font-size: 0.72rem;
  color: var(--rule);
  margin-left: auto;
  font-style: italic;
  font-family: var(--garamond);
  align-self: flex-start;
  padding-top: 0.15rem;
  flex-shrink: 0;
}

/* ── FEATURED PERSON ─────────────────────────────── */
.featured-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.22s;
}

.featured-card:hover {
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.09);
  transform: translateY(-3px);
  color: var(--ink);
}

.featured-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(15%) contrast(0.95);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.featured-card:hover .featured-img {
  transform: scale(1.03);
  filter: sepia(5%) contrast(1);
}

.featured-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.4) 0%, transparent 60%);
}

.featured-dates-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 0.875rem;
  font-family: var(--garamond);
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}

.featured-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-family {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.4rem;
}

.featured-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.featured-summary {
  font-family: var(--garamond);
  font-size: 0.93rem;
  color: var(--ink-muted);
  line-height: 1.55;
  flex: 1;
}

.featured-docs {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--cream-dark);
}

.featured-doc-chip {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 0.2em 0.6em;
  border-radius: 2px;
}

/* ── INTRO TEXT ──────────────────────────────────── */
.intro-section {
  background: var(--cream-dark);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 3rem 0;
}

.intro-text {
  font-family: var(--garamond);
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.intro-ornament {
  text-align: center;
  font-size: 1rem;
  color: var(--amber-light);
  letter-spacing: 0.5em;
  margin-bottom: 1.5rem;
}

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0;
  background: var(--cream);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.footer-brand span {
  font-style: italic;
  color: var(--amber);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.fade-up-1 {
  animation-delay: 0.05s;
}

.fade-up-2 {
  animation-delay: 0.15s;
}

.fade-up-3 {
  animation-delay: 0.25s;
}

.fade-up-4 {
  animation-delay: 0.38s;
}

.fade-up-5 {
  animation-delay: 0.5s;
}

@media (max-width: 767px) {
  .masthead {
    padding: 5.5rem 0 3rem;
  }

  .masthead-stats {
    gap: 1.5rem;
  }
}
