/* Special-project landing pages (/projects/{slug}) + story-flow course chapters (track pages).
   Uses the site tokens from style.css; page-specific only. */

/* Hero */
.site-shell .landing-hero .hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.site-shell .landing-hero > .container > p { max-width: 760px; margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.site-shell .landing-hero .landing-facts { position: relative; z-index: 1; margin-top: 44px; }
.site-shell .landing-hero--image .landing-hero__media {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: 42%;
  background-size: cover; background-position: center;
}
.site-shell .landing-hero--image .landing-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, transparent 40%, var(--surface-alt));
}
[dir="rtl"] .site-shell .landing-hero--image .landing-hero__media::after { background: linear-gradient(to right, transparent 40%, var(--surface-alt)); }
.site-shell .landing-hero--image > .container > * { max-width: 58%; }
.site-shell .landing-hero--image::after { display: none; }

/* Partners strip */
.landing-partners { padding: 22px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.landing-partners .container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.landing-partners__label { color: var(--muted); font-size: 12px; font-weight: 900; }
.landing-partners ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.landing-partners li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-deep); font-size: 14px; font-weight: 800; background: var(--surface-alt); }

/* Overview */
.landing-overview .prose { max-width: 860px; font-size: 16px; line-height: 2; }

/* Journey steps */
.landing-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.landing-steps li { position: relative; padding: 28px 24px 8px; border-top: 2px solid rgba(255,255,255,0.16); }
.landing-steps li::before { content: ""; position: absolute; top: -2px; inset-inline-start: 0; width: 48px; height: 2px; background: var(--accent); }
.landing-steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: var(--accent); color: var(--ink-deep); font-weight: 900; }
.site-shell .section.dark .landing-steps h3 { color: #fff !important; font-size: 18px; line-height: 1.5; }
.site-shell .section.dark .landing-steps p { margin-top: 8px; color: #bfd0d8 !important; font-size: 14px; line-height: 1.9; }

/* Story flow: a vertical timeline of chapters */
.story-flow { position: relative; margin: 0; padding: 0; list-style: none; }
.story-flow::before { content: ""; position: absolute; inset-block: 12px; inset-inline-start: 23px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.story-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 24px; padding-bottom: 28px; }
.story-step:last-child { padding-bottom: 0; }
.story-dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); color: var(--ink-deep); font-weight: 900; font-variant-numeric: tabular-nums;
}
.story-step--prologue .story-dot { background: var(--accent); }
.story-step--finale .story-dot { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.story-card {
  display: block; padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  color: var(--text); text-decoration: none; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
a.story-card:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(15,53,79,0.08); transform: translateY(-2px); }
.story-label { display: block; margin-bottom: 8px; color: var(--accent-dark); font-size: 12px; font-weight: 900; }
.story-card h3 { margin: 0; color: var(--ink-deep) !important; font-size: 20px; line-height: 1.5; }
.story-card p { margin: 8px 0 0; color: var(--muted) !important; font-size: 14px; line-height: 1.9; }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.story-meta span { padding: 4px 12px; border-radius: 999px; background: var(--surface-alt); color: var(--ink); font-size: 12px; font-weight: 700; }
.story-meta .story-price { background: var(--gold-pale, #eef5df); color: var(--accent-dark); }
.story-card .field-link { display: inline-block; margin-top: 14px; }
.story-step--prologue .story-card { background: var(--surface-alt); }
.story-step--prologue .story-card p { margin: 0; color: var(--ink) !important; font-size: 16px; }
.story-step--finale .story-card { background: var(--ink-deep); border-color: var(--ink-deep); }
.site-shell .story-step--finale .story-card h3 { color: #fff !important; }
.story-step--finale .story-card p { color: #bfd0d8 !important; }
.story-step--finale .story-label { color: #b9dc69; }
.story-step--finale .btn { margin-top: 18px; }

@media (max-width: 900px) {
  .site-shell .landing-hero--image .landing-hero__media { position: relative; inset: auto; display: block; width: 100%; height: 220px; margin: -96px 0 32px; }
  .site-shell .landing-hero--image .landing-hero__media::after { background: linear-gradient(to bottom, transparent 50%, var(--surface-alt)); }
  .site-shell .landing-hero--image > .container > * { max-width: none; }
}

@media (max-width: 640px) {
  .story-flow::before { inset-inline-start: 17px; }
  .story-step { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
  .story-dot { width: 36px; height: 36px; font-size: 13px; }
  .story-card { padding: 18px; }
  .story-card h3 { font-size: 17px; }
}
