body { background: #0c0c0f; color: #f4f1ea; font-family: 'Space Grotesk', system-ui, sans-serif; }

/* The map sits fixed behind the story; the chapters scroll over it. */
.map { position: fixed; inset: 0; }

.story { position: relative; z-index: 1; pointer-events: none; }
.chapter { min-height: 100vh; display: flex; align-items: center; padding: 0 clamp(16px, 5vw, 64px); }
.chapter:first-child { min-height: 90vh; }
.chapter:last-child { min-height: 120vh; }

.chapter__card {
  pointer-events: auto;
  max-width: 380px; padding: 24px 28px;
  background: rgb(12 12 15 / 0.82); backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 0.08); border-radius: 12px;
  opacity: 0.35; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s;
}
.chapter.is-active .chapter__card { opacity: 1; transform: none; }
.chapter__num { font: 500 12px ui-monospace, monospace; color: #ff4d2e; letter-spacing: 0.1em; }
.chapter h2 { margin: 6px 0 8px; font: 700 clamp(30px, 4vw, 44px)/1 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.03em; }
.chapter p { margin: 0; color: #b8b5ad; }

/* Map pins. */
.pin { width: 18px; height: 18px; border-radius: 50%; background: #ff4d2e; border: 3px solid #0c0c0f; box-shadow: 0 0 0 0 rgb(255 77 46 / 0.6); }
.pin.is-active { animation: pulse 1.6s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 18px rgb(255 77 46 / 0); } }

/* Keep the required map credits readable on the dark style. */
.maplibregl-ctrl-attrib { background: rgb(12 12 15 / 0.7) !important; color: #8b8a94; }
.maplibregl-ctrl-attrib a { color: #b8b5ad; }
