/* Our Story page — inherits About family scale from about.css */

.page-our-story {
  --story-width: var(--about-width);
  --story-pad: var(--about-pad-x);
}

.story-page {
  background: #fff;
  color: #2a2f36;
}

.story-lang {
  max-width: var(--story-width);
  margin: 0 auto;
  padding: 18px var(--story-pad) 8px;
  font-size: 0.95rem;
  color: #4a515a;
  border-top: 1px solid #e4e6ea;
}

.story-lang a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 3px;
}

.story-lang span {
  margin: 0 6px;
  opacity: 0.5;
}

.story-hero {
  max-width: var(--story-width);
  margin: 0 auto;
  padding: 48px var(--story-pad) 40px;
  text-align: center;
}

.story-hero-title {
  margin: 0 0 40px;
  /* same scale as ABOUT page title */
  font-family: var(--font-sans);
  font-size: var(--title-page);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--about-ink);
  text-transform: uppercase;
  line-height: 1.1;
}

.story-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.story-layout {
  max-width: var(--story-width);
  margin: 0 auto;
  padding: 48px var(--story-pad) 40px;
}

.story-article {
  max-width: 720px;
}

.story-article p,
.story-article li {
  font-family: var(--font-serif);
  font-size: var(--about-body-size);
  line-height: 1.7;
  color: #2f343c;
}

.story-article p {
  margin: 0 0 1.25em;
}

.story-article ul {
  margin: 0 0 1.5em;
  padding-left: 1.25em;
}

.story-article li {
  margin-bottom: 0.55em;
}

.story-article h2 {
  margin: 2.4em 0 0.9em;
  font-family: var(--font-sans);
  font-size: var(--title-chapter);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--about-ink);
  line-height: 1.2;
}

.story-article a {
  color: var(--blue);
  text-underline-offset: 2px;
}

/* Goals */
.story-goals {
  max-width: var(--story-width);
  margin: 0 auto;
  padding: 48px var(--story-pad) 72px;
  border-top: 1px solid #e4e6ea;
}

.story-goals .about-section-title {
  margin: 0 0 32px;
}

.story-goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.story-goals-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

.story-goals-grid h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #1a1d23;
}

/* Timeline — page-scroll synced, zoom-in cards, no separate year scrollbar */
.story-timeline {
  max-width: none;
  margin: 0;
  padding: 48px 0 120px;
  background: #f3f4f6;
}

.story-timeline-title {
  max-width: var(--story-width);
  margin: 0 auto 8px;
  padding: 0 var(--story-pad) 16px;
  font-family: var(--font-sans);
  font-size: var(--title-section);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--about-ink);
  border-bottom: 1px solid #dde1e6;
}

.tl-layout {
  max-width: var(--story-width);
  margin: 0 auto;
  padding: 28px var(--story-pad) 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.tl-nav {
  position: sticky;
  top: 100px;
  height: min(70vh, 560px);
  overflow: hidden; /* no scrollbar — years slide via transform */
}

.tl-rail {
  position: relative;
  height: 100%;
}

.tl-rail-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #cfd4db;
}

.tl-rail-marker {
  position: absolute;
  left: -10px;
  top: 0;
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: #2a2f36;
  z-index: 2;
  transition: transform 0.25s ease;
  will-change: transform;
}

.tl-rail-years {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 14px;
  transition: transform 0.28s ease;
  will-change: transform;
}

.tl-rail-years a {
  color: #9aa1ab;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.15;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.tl-rail-years a.is-active {
  color: #1a1d23;
  font-weight: 800;
}

.tl-year {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 28px;
  margin: 18px 0;
  padding: 28px 24px;
  background: #fff;
  border: 1px dashed #c5cad3;
  border-radius: 10px;
  scroll-margin-top: 18vh;
  transform: scale(0.92);
  opacity: 0.45;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    box-shadow 0.45s ease;
  transform-origin: center center;
  will-change: transform, opacity;
}

.tl-year.is-inview {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 18px 40px rgba(26, 29, 35, 0.08);
}

.tl-year.is-current {
  border-color: #9aa3b0;
}

.tl-year-label {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: #1a1d23;
  line-height: 1;
  padding-right: 12px;
  white-space: nowrap;
}

.tl-year-entries {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tl-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(160px, 240px);
  gap: 18px;
  align-items: start;
}

.tl-entry-copy h3 {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1d23;
}

.tl-entry-copy p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.55;
  color: #3a414a;
}

.tl-entry-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: #eee;
}

@media (max-width: 960px) {
  .story-layout {
    padding: 32px var(--story-pad) 28px;
  }

  .story-goals-grid {
    grid-template-columns: 1fr;
  }

  .tl-layout {
    grid-template-columns: 1fr;
  }

  .tl-nav {
    position: sticky;
    top: 64px;
    height: auto;
    overflow: auto;
    z-index: 5;
    background: #f3f4f6;
    padding: 8px 0;
    margin-bottom: 8px;
  }

  .tl-rail-track,
  .tl-rail-marker {
    display: none;
  }

  .tl-rail-years {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    padding-left: 0;
    transform: none !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tl-rail-years::-webkit-scrollbar {
    display: none;
  }

  .tl-year {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 16px;
  }

  .tl-entry {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tl-nav {
    top: 56px;
    padding: 6px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-year {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .tl-rail-years,
  .tl-rail-marker {
    transition: none !important;
  }
}
