:root {
  --bg: #f7f6fb;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --accent: #5c4d9e;
  --accent-light: #ede9fe;
  --border: #e4e2eb;
  --placeholder: #d4d4d4;
  --placeholder-text: #737373;
  --nav-height: 3.25rem;
  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
  --max-width: 52rem;
  --frame-shadow: 0 4px 20px rgba(20, 20, 19, 0.08), 0 1px 4px rgba(20, 20, 19, 0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 1rem); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}

.hero {
  background: linear-gradient(160deg, #3d348b 0%, #5c4d9e 100%);
  color: #fff;
  padding: 3rem 1.5rem 2.75rem;
}

.hero-inner { max-width: var(--max-width); margin: 0 auto; }

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0.92;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.125rem;
  opacity: 0.92;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.15s;
}

.hero-cta:hover { opacity: 0.9; }

.empty-state {
  background: var(--accent-light);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  text-align: center;
}

.empty-state p {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.hub-breadcrumb {
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
}

.hub-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.15s;
}

.hub-breadcrumb a:hover { color: #fff; }

.hub-breadcrumb span { opacity: 0.5; margin: 0 0.35rem; }

.step-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.step-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0 1rem;
  scrollbar-width: thin;
}

.step-link {
  flex-shrink: 0;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.step-link:hover { color: var(--accent); }

.step-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

main { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1.5rem 3.5rem; }

.journey-step {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.journey-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.step-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.step-num {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.journey-step h2 {
  font-size: clamp(1.375rem, 3vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.caption {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.media-block { margin-bottom: 1.5rem; }

.media-block:last-child { margin-bottom: 0; }

.placeholder {
  aspect-ratio: 16 / 10;
  background: var(--placeholder);
  border: 1px dashed #a3a3a3;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder.video { aspect-ratio: 16 / 9; }

.placeholder span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--placeholder-text);
  font-family: ui-monospace, "Cascadia Code", monospace;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
}

.media-block img,
.media-block video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--frame-shadow);
  background: var(--surface);
}

figcaption {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer {
  text-align: center;
  padding: 1.75rem 1.5rem 2.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-note { margin-top: 0.25rem; font-size: 0.8125rem; opacity: 0.8; }

.footer-hub-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.footer-hub-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  main { padding: 2rem 1.25rem 3rem; }
  .step-header { flex-direction: column; gap: 0.25rem; }
}
