:root {
  --bg: #141210;
  --bg2: #1d1a17;
  --card: #221f1b;
  --card2: #2a2622;
  --ink: #efe9e0;
  --ink-dim: #b7ada0;
  --ink-faint: #7d7468;
  --accent: #d9a356;
  --accent-warm: #e8c07a;
  --accent-soft: #5c4a33;
  --line: #3a352e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 7vh 24px 6vh;
  background:
    radial-gradient(ellipse 90% 70% at 50% 115%, rgba(217, 163, 86, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% -20%, rgba(217, 163, 86, 0.10), transparent 60%);
}
.hero-inner { max-width: 760px; }
.hero-kicker {
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent-warm);
  margin: 0 0 18px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.hero-title .amp { color: var(--accent); font-style: italic; }
.hero-sub { color: var(--ink-dim); font-size: 1.05rem; margin: 0 0 26px; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
  color: var(--ink-dim);
}
.stat-num {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--accent-warm);
  display: block;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--accent-soft) 6%, var(--accent-soft) 94%, transparent);
}

.event {
  position: relative;
  width: 50%;
  padding: 0 56px 64px 0;
  animation: rise 0.55s ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 28%;
}
.event.right { left: 50%; padding: 0 0 64px 56px; }
.event.done { opacity: 1; transform: none; }

.event-dot {
  position: absolute;
  right: -7px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 163, 86, 0.16);
}
.event.right .event-dot { right: auto; left: -7px; }

.event-card {
  background: linear-gradient(160deg, var(--card), var(--bg2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.event.right .event-card { text-align: left; }
.event-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.event-date {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 6px;
}
.event-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.event-album { color: var(--ink-faint); font-size: 0.8rem; margin: 0 0 12px; }
.event-meta { color: var(--ink-faint); font-size: 0.78rem; }
.family-chip {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-warm);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

/* ---------- Photo fan ---------- */
.fan {
  position: relative;
  height: 148px;
  margin: 10px 2px 6px;
}
.fan-frame {
  position: absolute;
  top: 50%;
  left: 22px;
  width: 108px;
  height: 136px;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.3, 1.2), left 0.28s ease;
  transform-origin: 50% 120%;
  z-index: 1;
}
.fan-frame img,
.fan-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0d0d0d;
}
.fan-frame:nth-child(1) { z-index: 7; }
.fan-frame:nth-child(2) { z-index: 6; }
.fan-frame:nth-child(3) { z-index: 5; }
.fan-frame:nth-child(4) { z-index: 4; }
.fan-frame:nth-child(5) { z-index: 3; }
.fan-frame:nth-child(6) { z-index: 2; }
/* rest state: slight overlapping fan */
.fan .fan-frame:nth-child(1) { transform: translateY(-50%) rotate(0deg); }
.fan .fan-frame:nth-child(2) { transform: translateY(-50%) rotate(6deg) translateX(6px); }
.fan .fan-frame:nth-child(3) { transform: translateY(-50%) rotate(-5deg) translateX(-5px); }
.fan .fan-frame:nth-child(4) { transform: translateY(-50%) rotate(11deg) translateX(12px); }
.fan .fan-frame:nth-child(5) { transform: translateY(-50%) rotate(-10deg) translateX(-10px); }
.fan .fan-frame:nth-child(6) { transform: translateY(-50%) rotate(15deg) translateX(18px); }
.fan .fan-frame:nth-child(7) { transform: translateY(-50%) rotate(-15deg) translateX(-15px); }
/* spread on hover — declared after the rest rules so it wins */
.fan:hover .fan-frame:nth-child(1) { transform: translateY(-50%) rotate(0deg) translateX(0); }
.fan:hover .fan-frame:nth-child(2) { transform: translateY(-50%) rotate(11deg) translateX(4px); }
.fan:hover .fan-frame:nth-child(3) { transform: translateY(-50%) rotate(-10deg) translateX(-4px); }
.fan:hover .fan-frame:nth-child(4) { transform: translateY(-50%) rotate(20deg) translateX(10px); }
.fan:hover .fan-frame:nth-child(5) { transform: translateY(-50%) rotate(-19deg) translateX(-10px); }
.fan:hover .fan-frame:nth-child(6) { transform: translateY(-50%) rotate(28deg) translateX(18px); }
.fan:hover .fan-frame:nth-child(7) { transform: translateY(-50%) rotate(-27deg) translateX(-16px); }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Overlay / event modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(6px);
  z-index: 40;
  overflow: auto;
  padding: 5vh 4vw;
}
.overlay-card {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 34px 44px;
  box-shadow: var(--shadow);
}
.overlay-close {
  position: sticky;
  top: 0;
  float: right;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  margin: -6px -10px 0 0;
}
.overlay-close:hover { color: var(--ink); }
.overlay-date {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-warm);
}
.overlay-head h2 {
  font-family: var(--serif);
  font-size: 2.1rem;
  margin: 6px 0 4px;
}
.overlay-sub { color: var(--ink-dim); margin: 0 0 22px; font-size: 0.95rem; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.media-grid .cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
  background: #111;
}
.media-grid .cell img,
.media-grid .cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.media-grid .cell:hover img,
.media-grid .cell:hover video { transform: scale(1.06); }
.media-grid .cell video { cursor: pointer; }
.cell .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox-stage {
  max-width: 92vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage img,
.lightbox-stage video {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
}
.lightbox-caption {
  margin-top: 14px;
  color: var(--ink-dim);
  font-size: 0.9rem;
  min-height: 1.4em;
  text-align: center;
  max-width: 80vw;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }

/* ---------- Endcap ---------- */
.endcap {
  text-align: center;
  padding: 60px 24px 90px;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
}

/* Loading */
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .timeline { padding: 8px 14px 30px; }
  .timeline::before { left: 16px; }
  .event { width: 100%; left: 0 !important; padding: 0 0 36px 46px !important; }
  .event-dot { left: -7px !important; right: auto !important; }
  .event-card { padding: 14px; }
  @keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Overlay / event modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(6px);
  z-index: 40;
  overflow: auto;
  padding: 5vh 4vw;
}
.overlay-card {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 34px 44px;
  box-shadow: var(--shadow);
}
.overlay-close {
  position: sticky;
  top: 0;
  float: right;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  margin: -6px -10px 0 0;
}
.overlay-close:hover { color: var(--ink); }
.overlay-date {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-warm);
}
.overlay-head h2 {
  font-family: var(--serif);
  font-size: 2.1rem;
  margin: 6px 0 4px;
}
.overlay-sub { color: var(--ink-dim); margin: 0 0 22px; font-size: 0.95rem; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.media-grid .cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
  background: #111;
}
.media-grid .cell img,
.media-grid .cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.media-grid .cell:hover img,
.media-grid .cell:hover video { transform: scale(1.06); }
.media-grid .cell video { cursor: pointer; }
.cell .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox-stage {
  max-width: 92vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage img,
.lightbox-stage video {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
}
.lightbox-caption {
  margin-top: 14px;
  color: var(--ink-dim);
  font-size: 0.9rem;
  min-height: 1.4em;
  text-align: center;
  max-width: 80vw;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }

/* ---------- Endcap ---------- */
.endcap {
  text-align: center;
  padding: 60px 24px 90px;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
}

/* Loading */
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .timeline { padding: 8px 14px 30px; }
  .timeline::before { left: 16px; }
  .event { width: 100%; left: 0 !important; padding: 0 0 36px 46px !important; }
  .event-dot { left: -7px !important; right: auto !important; }
  .event-card { padding: 14px; }
  .fan { height: 128px; }
  .fan-frame { width: 92px; height: 118px; }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .overlay { padding: 3vh 3vw; }
  .overlay-card { padding: 22px 16px 30px; }
  .hero-stats { gap: 24px; }
  .lightbox-nav { font-size: 1.8rem; width: 42px; height: 42px; }
}
