/* Artie's — Our Story page */

.story-hero {
  padding-top: calc(var(--header-h) + var(--space-16));
  padding-bottom: var(--space-20);
}
.story-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  max-width: 20ch;
  margin-top: var(--space-5);
}
.story-hero__crest {
  margin-top: var(--space-12);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.story-hero__crest img {
  width: 110px; height: auto;
  border-radius: var(--radius-md);
  background: var(--oyster-white);
  padding: var(--space-2);
}
.story-hero__crest p { color: var(--aqua-mist); max-width: 26ch; font-size: var(--text-sm); }

/* ============ Timeline ============ */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 88px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--ice);
}
@media (max-width: 720px) { .timeline::before { left: 28px; } }

.timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-20);
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item__year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--coral);
  position: relative;
}
.timeline-item__year::after {
  content: '';
  position: absolute;
  right: -37px; top: 8px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--oyster-white);
}
.timeline-item__media { height: 280px; border-radius: var(--radius-md); margin-bottom: var(--space-5); }
.timeline-item__body h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.timeline-item__body p { font-size: var(--text-lg); max-width: 56ch; color: var(--ink); }

@media (min-width: 900px) {
  .timeline-item { grid-template-columns: 88px 1fr; }
  .timeline-item__media { float: right; width: 46%; margin-left: var(--space-8); }
}
@media (max-width: 720px) {
  .timeline-item { grid-template-columns: 28px 1fr; gap: var(--space-5); }
  .timeline-item__year::after { right: -33px; }
}

/* ============ Archive gallery ============ */
.archive-gallery {
  display: flex;
  gap: var(--space-8);
  overflow-x: auto;
  padding: var(--space-10) var(--space-6);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.archive-gallery:active { cursor: grabbing; }
.archive-item {
  flex: 0 0 220px;
  background: var(--oyster-white);
  padding: var(--space-3) var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  transform: rotate(var(--rot, 0deg));
  transition: transform var(--dur-fast) var(--ease-out);
  text-align: left;
}
.archive-item:hover, .archive-item:focus-visible { transform: rotate(0deg) scale(1.04); }
.archive-item__media { display: block; height: 220px; margin-bottom: var(--space-3); }
.archive-item__caption { display: block; font-size: var(--text-caption); color: var(--ink); line-height: 1.4; }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 32, 0.92);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out);
  padding: var(--space-8);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__frame { max-width: 640px; width: 100%; }
.lightbox__media { height: min(60vh, 480px); border-radius: var(--radius-md); }
.lightbox__caption { color: var(--cream-text); margin-top: var(--space-5); font-size: var(--text-lg); text-align: center; }
.lightbox__close {
  position: absolute;
  top: var(--space-6); right: var(--space-6);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(250,246,238,0.1);
  color: var(--cream-text);
  font-size: 1.5rem;
  line-height: 1;
}

.story-cta__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-6); }
.story-cta h2 { font-size: var(--text-2xl); max-width: 26ch; margin-top: var(--space-2); }
.story-cta__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
