/* ===== MOBILE (< 960px) ===== */
@media (max-width: 59.99rem) {
  .scrolly {
    flex-direction: column;
  }

  .scrolly__figure {
    width: 100%;
    height: 40vh;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
  }

  .scrolly__narrative {
    width: 100%;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 20;
  }

  .step {
    min-height: 60vh;
  }

  .step__content {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 6px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  }

  .step__content p {
    max-width: none;
  }

  .scrolly__legend {
    display: none;
  }

  .hero__title {
    font-size: clamp(2rem, 1.5rem + 3vw, 3rem);
  }

  .step__pace-tag {
    display: block;
    margin-left: 0;
    margin-top: var(--space-xs);
    width: fit-content;
  }
}

/* ===== LARGE SCREENS (>= 1440px) ===== */
@media (min-width: 90rem) {
  .scrolly__narrative {
    padding-left: var(--space-2xl);
    padding-right: var(--space-xl);
  }
}

/* ===== NO-JS FALLBACK ===== */
.no-js .scrolly {
  display: block;
}

.no-js .scrolly__figure {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 70vh;
  margin-bottom: var(--space-xl);
}

.no-js .scrolly__narrative {
  width: 100%;
  max-width: 65ch;
  margin: 0 auto;
}

.no-js .step {
  opacity: 1;
  min-height: auto;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.no-js .step__content {
  border-left-color: var(--color-accent) !important;
}

.no-js .landscape-map .domain-group {
  opacity: var(--map-default);
}

.no-js .progress-bar {
  display: none;
}
