/* ═══ MULTI-PAGE & HOME ═══ */
.page-home { background: var(--bg); }
.page-home #nodes-canvas { opacity: 0.25; }

.home-hero {
  padding: 108px 0 40px; position: relative;
}
.home-hero-inner { max-width: 640px; }
.home-title { font-size: clamp(1.75rem, 3.2vw, 2.65rem) !important; margin-bottom: 14px; }
.home-sub { font-size: 0.92rem !important; max-width: 480px; }

.home-journey {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  margin-bottom: 24px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg-card); max-width: fit-content;
}
.mini-journey-step { font-size: 0.78rem; color: var(--text-secondary); }
.mini-journey-step strong { color: var(--primary); margin-right: 4px; }
.mini-arrow { margin: 0 8px; color: var(--text-muted); opacity: 0.6; }

.stats-note {
  text-align: center; font-size: 0.82rem; color: var(--text-muted);
  margin: -12px auto 40px; font-style: italic;
}

.home-sections { padding-top: 24px; padding-bottom: 80px; }

.section-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.section-card {
  display: flex; flex-direction: column; padding: 28px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg-card);
  text-decoration: none; color: inherit; transition: all 0.35s ease;
  min-height: 220px; position: relative; overflow: hidden;
}
.section-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.section-card:hover {
  transform: translateY(-6px); border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.section-card:hover::before { transform: scaleX(1); }
.section-card-icon { font-size: 1.5rem; margin-bottom: 12px; }
.section-card-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
.section-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; margin-bottom: 10px; }
.section-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; flex: 1; }
.section-card-link {
  margin-top: 16px; font-size: 0.82rem; font-weight: 600; color: var(--accent);
}

/* Inner pages */
.inner-page { padding-top: 88px; min-height: 100vh; }
.page-hero {
  padding: 48px 0 32px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elevated), transparent);
}
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: 12px; line-height: 1.1;
}
.page-hero-desc { color: var(--text-secondary); margin-top: 12px; max-width: 640px; font-size: 1.05rem; }

.nav-links a.active { color: var(--primary); }

/* Horizontal wave timeline */
.wave-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem;
  margin: 48px 0 24px; text-align: center;
}
.wave-timeline-scroll {
  overflow-x: auto; overflow-y: visible; padding: 20px 0 40px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.wave-timeline-inner { position: relative; height: 320px; margin: 0 auto; min-width: 100%; }
.wave-timeline-svg {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  width: 100%; height: 200px; pointer-events: none;
}
.wave-path-bg {
  fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 3;
}
.wave-path-line {
  fill: none; stroke: url(#waveGrad); stroke-width: 2.5;
  stroke-dasharray: 8 12; stroke-linecap: round;
  animation: waveFlow 5s linear infinite;
}
@keyframes waveFlow { to { stroke-dashoffset: -40; } }

.wave-nodes { position: absolute; inset: 0; }
.wave-node {
  position: absolute; transform: translateX(-50%); width: 200px;
  transition: transform 0.3s ease;
}
.wave-node:hover { transform: translateX(-50%) translateY(-4px); z-index: 2; }
.wave-node-above { top: 0; }
.wave-node-below { bottom: 0; }
.wave-node-dot {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gradient); margin: 0 auto 10px;
  box-shadow: 0 0 20px var(--hero-glow); border: 2px solid var(--bg);
}
.wave-node-below .wave-node-dot { margin: 10px auto 0; order: 2; }
.wave-node-card {
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.wave-node:hover .wave-node-card {
  border-color: var(--border-strong); box-shadow: var(--shadow);
}
.wave-node-year {
  font-family: 'Space Grotesk', sans-serif; font-weight: 800;
  font-size: 1.1rem; color: var(--primary);
}
.wave-node-loc {
  display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin: 4px 0 8px;
}
.wave-node-card h4 { font-size: 0.92rem; margin-bottom: 6px; line-height: 1.3; }
.wave-node-card p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.55; }
.wave-node-detail {
  display: block; margin-top: 8px; font-size: 0.72rem; color: var(--primary); opacity: 0.85;
}

.theme-coast .wave-node-card { border-color: rgba(43,188,232,0.2); }
.theme-expansion .wave-node-loc { color: var(--sand); }
.theme-city .wave-node-card { border-color: rgba(43,188,232,0.25); }

.story-page .story-intro { max-width: 780px; margin: 0 auto 20px; text-align: center; }
.story-page .story-mission { margin: 0 auto 40px; text-align: center; max-width: 780px; border-left: none; border-top: 3px solid var(--primary); border-radius: 14px; padding: 20px 24px; }

@media (max-width: 768px) {
  .home-hero { padding: 100px 0 32px; text-align: center; }
  .home-hero-inner { margin: 0 auto; }
  .home-journey { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero-actions, .hero-social { justify-content: center; }
  .section-cards { grid-template-columns: 1fr; }
  .wave-node { width: 170px; }
  .wave-timeline-inner { height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .wave-path-line { animation: none; }
}
