/* HENEX Chronology CSS v1.1
   Scope: works-chronology.html — hero, timeline rows and bottom navigation.
   Project cards reuse global project-card--compact from pages.css.
*/


/* Page accent — matches works green */

.page-chronology {
  --page-accent: var(--color-nature);
  --page-accent-border: rgba(49, 187, 142, 0.28);
}


/* Hero */

/* D08: global hero height is 720px for all global pages, matching Home,
   Works and Lab — confirmed by Cafe. Chronology was previously left at
   400px as a compact variant; that reading was incorrect and is corrected
   here to align with the rest of the global page hero system. */
.page-hero--chronology {
  min-height: 720px;
  background: #FAFBFC;
  text-align: center;
}

.page-hero--chronology::before {
  inset: -18%;
  background:
    linear-gradient(125deg, rgba(49, 187, 142, 0.22), transparent 50%),
    radial-gradient(ellipse at 80% 14%, rgba(49, 187, 142, 0.18), transparent 36%),
    radial-gradient(ellipse at 20% 82%, rgba(49, 187, 142, 0.10), transparent 42%),
    #FAFBFC;
  filter: blur(16px);
}

.page-hero--chronology::after {
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .page-hero--chronology {
  background: #050C09;
}

[data-theme="dark"] .page-hero--chronology::before {
  inset: -18%;
  background:
    linear-gradient(125deg, rgba(49, 187, 142, 0.50), transparent 50%),
    radial-gradient(ellipse at 80% 14%, rgba(49, 187, 142, 0.36), transparent 36%),
    #050C09;
  filter: blur(18px);
}

[data-theme="dark"] .page-hero--chronology::after {
  inset: 0;
  background: rgba(0, 0, 0, 0.16);
}

.chronology-hero__content {
  max-width: 720px;
  margin-inline: auto;
}

.chronology-hero__content h1 {
  margin-top: 14px;
}

.chronology-hero__content .lead {
  margin-top: 18px;
  max-width: 560px;
  margin-inline: auto;
}


/* Timeline section */

.chronology-section {
  padding-block: var(--section-pad);
}


/* Each year row */

.chronology-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 56px;
  padding-block: var(--space-xl);
  align-items: start;
}


/* Year label */

.chronology-year__label {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 700;
  color: var(--theme-text);
  letter-spacing: -0.04em;
  line-height: 1;
  padding-top: var(--space-xs);
}


/* Bottom navigation */
/* [MODIFIED 2026-07-10] Was justify-content: space-between, which relied on
   a second "To the Top" button on the right to balance "Back to Works" on
   the left. That button was removed (duplicated the global circular
   back-to-top button), so this now matches the site-wide pattern used by
   .ux-related__actions (e.g. studier.html): a single action pinned to the
   right with flex-end. */
.chronology-footer-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-block: var(--space-xl);
  border-top: 1px solid var(--theme-border-soft);
}


/* Responsive: 900px — tablet */

@media (max-width: 900px) {
  .chronology-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 36px;
  }
}


/* Responsive: 520px — mobile */

@media (max-width: 520px) {
  .chronology-row {
    padding-block: 28px;
    gap: 16px;
  }

  .chronology-year__label {
    font-size: 1.5rem;
  }

  .chronology-footer-nav {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding-block: 36px;
  }
}
