:root {
  --cream: #f0e8d8;
  --sand: #dfc9aa;
  --dark: #1c1008;
  --accent: #b87333;
  --muted: #8a7055;
  --txt: #2b1a0e;
}

/* ── DECO BG IMAGES ── */
.deco-bg {
  position: absolute;
  width: 430px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.deco-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .10;
  display: block;
}

.deco-bg.right {
  right: 0;
  border-radius: 10px 0 0 10px;
}

.deco-bg.left {
  left: 0;
  border-radius: 0 10px 10px 0;
}

.deco-1 {
  top: 200px;
}

.deco-2 {
  top: 700px;
}

.deco-3 {
  top: 1200px;
}

.deco-4 {
  top: 1900px;
}

/* ── HEADER ── */
.page-header {
  text-align: center;
  padding: 64px 24px 48px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--dark);
}

.page-header h1 em {
  font-style: italic;
  color: var(--accent);
}

.sub {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 380px;
  margin-inline: auto;
  line-height: 1.85;
}

.rule {
  width: 46px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 24px auto 0;
}

/* ── TIMELINE WRAPPER ── */
.timeline {
  position: relative;
  width: 100%;
  padding-bottom: 100px;
  z-index: 1;
  overflow: hidden;
}

#curve-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

#curve-svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-dasharray: 7 5;
  stroke-linecap: round;
  opacity: .65;
}

/* ── ELECTRIC PULSE ANIMATION ── */
#curve-svg path.pulse-line {
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 15 100;
  stroke-dashoffset: 180;
  stroke-linecap: round;
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--accent));
  animation: pulse-flow 1s linear infinite;
}

@keyframes pulse-flow {
  to {
    stroke-dashoffset: 0;
  }
}

/* ── MILESTONE ── */
.milestone {
  position: relative;
  width: 100%;
  z-index: 2;
  opacity: 0;
  transform: translateY(22px);
  animation: rise .6s ease forwards;
  padding-bottom: 40px;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ms-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 3px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--sand);
  z-index: 6;
  top: 18px;
}

.milestone.left .ms-dot {
  left: clamp(16px, 4vw, 48px);
}

.milestone.left .ms-inner {
  padding-left: calc(clamp(16px, 4vw, 48px) + 22px);
  padding-right: 52%;
}

.milestone.left .ms-photos {
  padding-left: calc(clamp(16px, 4vw, 48px) + 22px);
  padding-right: 52%;
  justify-content: flex-start;
}

.milestone.right .ms-dot {
  left: calc(50% - 8px);
}

.milestone.right .ms-inner {
  padding-left: calc(50% + 22px);
  padding-right: clamp(16px, 4vw, 48px);
}

.milestone.right .ms-photos {
  padding-left: calc(50% + 22px);
  padding-right: clamp(16px, 4vw, 48px);
  justify-content: flex-start;
}

.ms-inner {
  padding-top: 0;
  position: relative;
  z-index: 5;
  padding-bottom: 8px;
}

.ms-year {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
}

.ms-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--txt);
  margin: 6px 0 9px;
  background-color: var(--cream);
}

.ms-body {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.85;
  background-color: var(--cream);
}

.ms-photos {
  display: flex;
  gap: 10px;
  padding-top: 18px;
  align-items: flex-start;
  position: relative;
  z-index: 4;
}

.photo {
  position: relative;
  flex-shrink: 0;
  width: 180px;
}

.photo::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 34px;
  height: 13px;
  background: rgba(184, 115, 51, .32);
  border-radius: 2px;
  z-index: 2;
}

.photo:nth-child(2)::before {
  transform: translateX(-50%) rotate(1.5deg);
  top: -6px;
}

.photo:nth-child(3)::before {
  transform: translateX(-50%) rotate(-1deg);
  top: -8px;
}

.photo:nth-child(2) {
  margin-top: 22px;
}

.photo:nth-child(3) {
  margin-top: 7px;
}

.photo img {
  width: 100%;
  border-radius: 5px;
  display: block;
  filter: sepia(.22) contrast(1.06) brightness(.97);
  transition: transform .28s, filter .28s;
}

.photo img:hover {
  transform: scale(1.07) rotate(-2deg);
  filter: sepia(0) contrast(1.1);
}

@media(max-width:640px) {

  .milestone.left .ms-dot,
  .milestone.right .ms-dot {
    left: 14px;
  }

  .milestone.left .ms-inner,
  .milestone.right .ms-inner {
    padding: 0 16px 0 40px;
  }

  .milestone.left .ms-photos,
  .milestone.right .ms-photos {
    padding: 14px 16px 0 40px;
  }

  .deco-bg {
    width: 70px;
  }

  .photo {
    width: 140px;
  }
}