/* ==========================================================================
   MAKS ART — ART OVER THE YEARS (MODERN EDITORIAL REDESIGN)
   ========================================================================== */

:root {
  --ink: #1a1918;
  --charcoal: #2f2e2e;
  --warm-white: #FAFAFA;
  --paper: #F2F2F2;
  --paper-card: #FFFFFF;
  --line: #E5E5E5;
  --line-light: rgba(0, 0, 0, 0.05);
  --muted: #7E7C78;
  --accent-gold: #053b05;
  --graphite: #3a3938;
  --fn-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fn-serif: "Cormorant Garamond", "Cormorant Garant", Georgia, serif;
}

/* ── PAGE HERO / HEADER ───────────────────────────────────────────────── */
.page-header {
  padding: 130px 48px 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, #FFFFFF 0%, var(--warm-white) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-frame {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 18px 48px 16px;
  margin-bottom: 24px;
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-header-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.page-header-frame h1 {
  font-family: var(--fn-sans);
  font-size: 11.5px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.page-header-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}

.page-header-eyebrow::before,
.page-header-eyebrow::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--line);
}

.page-header-frame {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 14px 44px 12px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.page-header-frame h1 {
  font-family: var(--fn-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}

.page-header-subtitle {
  font-family: var(--fn-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-style: italic;
  font-weight: 300;
  color: var(--charcoal);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── STICKY YEAR PROGRESSION BAR ──────────────────────────────────────── */
.year-prog-wrapper {
  position: sticky;
  top: 76px;
  z-index: 150;
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.year-prog-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(26, 25, 24, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: 9999px;
  padding: 6px 12px;
  max-width: 95vw;
  overflow-x: auto;
  scrollbar-width: none;
}

.year-prog-bar::-webkit-scrollbar {
  display: none;
}

.year-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.year-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
  transition: all 0.25s ease;
}

.year-chip:hover {
  color: var(--ink);
  background: rgba(26, 25, 24, 0.04);
}

.year-chip:hover .year-chip-dot {
  background: var(--ink);
  transform: scale(1.3);
}

.year-chip.is-active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 3px 12px rgba(26, 25, 24, 0.2);
}

.year-chip.is-active .year-chip-dot {
  background: var(--accent-gold);
  transform: scale(1.4);
  box-shadow: 0 0 6px rgba(5, 59, 5, 0.8);
}

/* ── TIMELINE WRAPPER & SPINE ────────────────────────────────────────── */
.timeline-main {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 48px 120px;
}

.timeline-main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--line) 4%,
    var(--line) 96%,
    transparent 100%
  );
  transform: translateX(-50%);
  pointer-events: none;
}

/* ── EPOCH SECTION HEADERS ────────────────────────────────────────────── */
.epoch-section {
  position: relative;
  margin-bottom: 100px;
}

.epoch-section:last-child {
  margin-bottom: 0;
}

.epoch-banner {
  text-align: center;
  margin: 0 auto 60px;
  max-width: 540px;
  position: relative;
  z-index: 5;
  background: var(--warm-white);
  padding: 16px 28px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.epoch-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.epoch-title {
  font-family: var(--fn-serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
}

.epoch-desc {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.5;
}

/* ── TIMELINE CARDS / ENTRIES ─────────────────────────────────────────── */
.timeline-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  margin-bottom: 90px;
  align-items: center;
  position: relative;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

/* Animated node on timeline spine */
.timeline-entry::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--warm-white);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 0 0 4px var(--warm-white);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-entry:hover::after {
  transform: translate(-50%, -50%) scale(1.5);
  background: var(--accent-gold);
  border-color: var(--ink);
  box-shadow: 0 0 0 6px var(--warm-white), 0 0 12px rgba(5, 59, 5, 0.5);
}

/* Alternating Layout */
.timeline-entry:nth-child(odd) .entry-media { order: 1; }
.timeline-entry:nth-child(odd) .entry-content { order: 2; padding-left: 16px; text-align: left; }

.timeline-entry:nth-child(even) .entry-media { order: 2; }
.timeline-entry:nth-child(even) .entry-content { order: 1; padding-right: 16px; text-align: right; }

/* ── MUSEUM-GRADE ARTWORK FRAME ───────────────────────────────────────── */
.entry-media {
  position: relative;
  border-radius: 4px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(222, 218, 212, 0.8);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.entry-media-inner {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.05);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: none !important;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.entry-media:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.09), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: rgba(5, 59, 5, 0.5);
}

.entry-media:hover img {
  transform: scale(1.04);
}

/* Lightbox expansion badge */
.entry-zoom-btn {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(26, 25, 24, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.entry-media:hover .entry-zoom-btn {
  opacity: 1;
  transform: scale(1);
}

/* ── ENTRY CONTENT / TYPOGRAPHY ───────────────────────────────────────── */
.entry-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.entry-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
}

.timeline-entry:nth-child(even) .entry-meta-pill {
  justify-content: flex-end;
}

.entry-year-num {
  font-family: var(--fn-serif);
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 300;
  color: var(--ink);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.entry-caption-tag {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: -4px;
}

.entry-headline {
  font-family: var(--fn-serif);
  font-size: clamp(20px, 2.2vw, 25px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.entry-detail-box {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  background: rgba(250, 250, 250, 0.9);
  border: 1px solid var(--line-light);
  padding: 14px 18px;
  border-radius: 6px;
}

/* Centerpiece Breakthrough Card */
.timeline-entry.is-breakthrough {
  background: linear-gradient(135deg, rgba(26, 25, 24, 0.03) 0%, rgba(5, 59, 5, 0.08) 100%);
  padding: 36px 40px;
  border-radius: 12px;
  border: 1px solid rgba(5, 59, 5, 0.35);
  box-shadow: 0 16px 40px rgba(5, 59, 5, 0.08);
}

.timeline-entry.is-breakthrough .entry-year-num {
  color: #1a1918;
  text-shadow: 0 2px 10px rgba(5, 59, 5, 0.2);
}

/* ── CLOSING DARKROOM BAND ────────────────────────────────────────────── */
.section-closing {
  background: #141312;
  color: #fff;
  padding: 110px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-closing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(5, 59, 5, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.closing-tagline {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
  font-weight: 600;
}

.closing-year-huge {
  font-family: var(--fn-serif);
  font-size: clamp(64px, 8vw, 110px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.closing-heading {
  font-family: var(--fn-serif);
  font-size: clamp(24px, 3vw, 38px);
  font-style: italic;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.45;
  max-width: 680px;
  margin: 0 auto 36px;
}

.closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.closing-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.closing-btn-primary {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.closing-btn-primary:hover {
  background: var(--accent-gold);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(5, 59, 5, 0.3);
}

.closing-btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.closing-btn-secondary:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* ── RESPONSIVE ADAPTATIONS ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .page-header {
    padding: 86px 20px 32px;
  }

  .year-prog-wrapper {
    top: 66px;
    padding: 6px 12px;
  }

  .timeline-main {
    padding: 24px 18px 60px;
  }

  .timeline-main::before {
    left: 24px;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
  }

  .timeline-entry::after {
    left: 24px;
    top: -14px;
  }

  .timeline-entry:nth-child(odd) .entry-media,
  .timeline-entry:nth-child(even) .entry-media {
    order: 2;
  }

  .timeline-entry:nth-child(odd) .entry-content,
  .timeline-entry:nth-child(even) .entry-content {
    order: 1;
    text-align: left;
    padding-left: 48px;
    padding-right: 0;
  }

  .timeline-entry:nth-child(even) .entry-meta-pill {
    justify-content: flex-start;
  }

  .timeline-entry.is-breakthrough {
    padding: 20px;
  }

  .section-closing {
    padding: 60px 20px;
  }
}

@media (max-width: 600px) {
  .page-header { padding: 74px 14px 22px; }
  .page-header-frame { padding: 10px 24px 8px; margin-bottom: 14px; }
  .page-header-subtitle { font-size: 15px; }
  .year-prog-wrapper { top: 62px; padding: 4px 8px; }
  .year-chip { padding: 5px 12px; font-size: 9px; gap: 6px; }
  .epoch-section { margin-bottom: 40px; }
  .epoch-banner { margin-bottom: 30px; padding: 12px 18px; }
  .epoch-title { font-size: 22px; }
  .timeline-main { padding: 16px 12px 48px; }
  .timeline-main::before { left: 16px; }
  .timeline-entry { gap: 14px; margin-bottom: 36px; }
  .timeline-entry::after { left: 16px; width: 6px; height: 6px; top: -10px; }
  .timeline-entry:nth-child(odd) .entry-content,
  .timeline-entry:nth-child(even) .entry-content { padding-left: 32px; gap: 6px; }
  .entry-year-num { font-size: 36px; }
  .entry-headline { font-size: 17px; }
  .entry-detail-box { padding: 10px 14px; font-size: 12px; }
  .entry-media { padding: 8px; }
  .section-closing { padding: 44px 16px; }
  .closing-year-huge { font-size: 48px; margin-bottom: 10px; }
  .closing-heading { font-size: 20px; margin-bottom: 24px; }
  .closing-btn { padding: 10px 20px; font-size: 9.5px; width: 100%; justify-content: center; }
}
