/* ==========================================================================
   GEO Story — premium editorial scrollytelling
   Brand: cream / orange / ink · Baloo 2 + Figtree
   Motion: transform + opacity only · no scroll-jacking
   ========================================================================== */

:root {
  --gs-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gs-dur: 0.55s;
  --gs-panel: var(--white, #fff);
  --gs-tint: var(--cream-2, #f3ede2);
  --gs-sticky-top: calc(var(--nav-h, 72px) + 1.75rem);
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.gs-story {
  position: relative;
  background: var(--cream, #f8f4ec);
  color: var(--ink, #14333b);
}

.gs-story a:not(.btn) {
  color: var(--orange, #f76b1c);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.gs-story a:not(.btn):hover {
  color: var(--ember, #d9550e);
}

/* Keep CTA button labels readable — .gs-story link color must not override .btn */
.gs-story .btn-accent,
.gs-story a.btn-accent,
.gs-story .btn-accent:hover,
.gs-story a.btn-accent:hover {
  color: #fff;
}

.gs-story .btn-ink,
.gs-story a.btn-ink,
.gs-story .btn-ink:hover,
.gs-story a.btn-ink:hover {
  color: #fff;
}

/* Chapter progress — desktop rail */
.gs-progress {
  display: none;
}

@media (min-width: 1100px) {
  .gs-progress {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: fixed;
    top: 50%;
    right: clamp(0.75rem, 2vw, 1.5rem);
    transform: translateY(-50%);
    z-index: 40;
    padding: 0.65rem 0.5rem;
    max-width: 11rem;
  }

  .gs-progress a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--grey, #6b7f86);
    text-decoration: none;
    padding: 0.35rem 0.25rem;
    transition: color var(--gs-dur) var(--gs-ease), opacity var(--gs-dur) var(--gs-ease);
  }

  .gs-progress a::before {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line, #e4ddd0);
    transition: background var(--gs-dur) var(--gs-ease), transform var(--gs-dur) var(--gs-ease);
  }

  .gs-progress a.is-active {
    color: var(--ink, #14333b);
  }

  .gs-progress a.is-active::before {
    background: var(--orange, #f76b1c);
    transform: scale(1.35);
  }

  .gs-progress a.is-passed {
    color: var(--ink2, #2c4e57);
    opacity: 0.72;
  }

  .gs-progress a.is-passed::before {
    background: var(--orange, #f76b1c);
    opacity: 0.45;
  }

  .gs-progress span.gs-progress-label {
    line-height: 1.25;
  }
}

@media (min-width: 1100px) and (max-width: 1240px) {
  .gs-progress span.gs-progress-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   Chapters
   -------------------------------------------------------------------------- */

.gs-chapter {
  position: relative;
  padding: clamp(2.25rem, 5vw, 3.75rem) 0;
}

.gs-chapter + .gs-chapter {
  border-top: 1px solid var(--line, #e4ddd0);
}

.gs-chapter--panel {
  background: var(--white, #fff);
}

.gs-chapter--ink {
  background: var(--ink, #14333b);
  color: rgba(248, 244, 236, 0.92);
  border-top-color: rgba(248, 244, 236, 0.12);
}

.gs-chapter--ink h2,
.gs-chapter--ink h3 {
  color: var(--white, #fff);
}

.gs-chapter--ink p,
.gs-chapter--ink .gs-lede {
  color: rgba(248, 244, 236, 0.78);
}

.gs-chapter-head {
  max-width: 46rem;
  margin-bottom: clamp(1.15rem, 3vw, 1.85rem);
}

.gs-chapter-head--center {
  margin-inline: auto;
  text-align: center;
}

.gs-eyebrow {
  color: var(--orange, #f76b1c);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.gs-chapter--ink .gs-eyebrow {
  color: var(--peach, #fde4d2);
}

.gs-lede {
  max-width: 62ch;
  color: var(--ink2, #2c4e57);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

.gs-num {
  font-family: var(--font-display, "Baloo 2", sans-serif);
  font-weight: 800;
  color: var(--orange, #f76b1c);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.gs-week {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey, #6b7f86);
  margin-bottom: 0.35rem;
}

/* Reveal-on-scroll */
[data-gs-reveal] {
  opacity: 1;
  transform: none;
}

@media (min-width: 700px) {
  [data-gs-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s var(--gs-ease), transform 0.65s var(--gs-ease);
  }

  [data-gs-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.gs-hero {
  min-height: min(94vh, 940px);
  display: flex;
  align-items: center;
  padding: clamp(1.75rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(ellipse 68% 52% at 88% 12%, rgba(247, 107, 28, 0.11), transparent 58%),
    radial-gradient(ellipse 48% 38% at 8% 92%, rgba(20, 51, 59, 0.04), transparent 52%),
    linear-gradient(180deg, var(--cream, #f8f4ec) 0%, #fbf8f2 58%, var(--cream, #f8f4ec) 100%);
  border-bottom: 1px solid var(--line, #e4ddd0);
}

.gs-hero-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--grey, #6b7f86);
  margin-bottom: 1.35rem;
}

.gs-hero-crumbs a {
  color: var(--ink2, #2c4e57);
  font-weight: 600;
}

.gs-hero-crumbs span {
  opacity: 0.45;
}

.gs-hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 960px) {
  .gs-hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.gs-hero h1 {
  margin: 0.3rem 0 1rem;
  font-family: var(--font-display, "Baloo 2", sans-serif);
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 13em;
}

.gs-hero .lead {
  max-width: 56ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--ink2, #2c4e57);
  line-height: 1.72;
  margin: 0;
}

.gs-hero-pills {
  margin: 1.35rem 0 0;
}

.gs-hero-cta-row {
  margin-top: 1.65rem;
}

.gs-hero-secondary {
  display: grid;
  gap: 1.35rem;
}

.gs-hero-secondary .svc-hero-form {
  margin: 0;
}

/* Citation pipeline visual (new + legacy hero-art aliases) */
.gs-cite-pipeline,
.gs-hero-art {
  position: relative;
  max-width: 400px;
  width: 100%;
  margin-inline: auto;
}

.gs-cite-query,
.gs-hero-art-query {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gs-panel);
  border: 1px solid var(--line, #e4ddd0);
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink2, #2c4e57);
  box-shadow: var(--shadow, 0 4px 24px rgba(20, 51, 59, 0.06));
}

.gs-cite-query::before,
.gs-hero-art-query::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange, #f76b1c);
}

.gs-cite-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin: 0.85rem 0;
  position: relative;
}

.gs-cite-stages::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--line, #e4ddd0);
  transform: translateY(-50%);
  z-index: 0;
}

.gs-cite-stage {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey, #6b7f86);
  padding: 0.45rem 0.15rem;
  background: var(--cream, #f8f4ec);
  border-radius: 8px;
  opacity: 1;
  transform: none;
}

.gs-story-ready .gs-cite-pipeline:not(.is-playing) .gs-cite-stage {
  opacity: 0;
  transform: translateY(8px);
}

.gs-cite-stage::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  background: var(--line, #e4ddd0);
  transition: background var(--gs-dur) var(--gs-ease), transform var(--gs-dur) var(--gs-ease);
}

/* Legacy vertical connector */
.gs-hero-art-flow {
  position: relative;
  height: 56px;
  display: flex;
  justify-content: center;
}

.gs-hero-art-flow span {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--line, #e4ddd0), var(--orange, #f76b1c) 50%, var(--line, #e4ddd0));
  opacity: 0.65;
}

.gs-cite-answer,
.gs-hero-art-citation {
  background: var(--ink, #14333b);
  color: var(--cream, #f8f4ec);
  border-radius: 18px;
  padding: 1.2rem 1.35rem;
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(20, 51, 59, 0.14));
  opacity: 1;
  transform: none;
}

.gs-story-ready .gs-cite-pipeline:not(.is-playing) .gs-cite-answer {
  opacity: 0;
  transform: translateY(14px);
}

.gs-cite-badge,
.gs-hero-art-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(247, 107, 28, 0.22);
  color: #ffb488;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.gs-cite-answer p,
.gs-hero-art-citation p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: rgba(248, 244, 236, 0.9);
}

.gs-cite-sources,
.gs-hero-art-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.85rem;
}

.gs-cite-sources span,
.gs-hero-art-sources span {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(248, 244, 236, 0.12);
}

/* Tier-2 outcome modules inside the answer card */
.gs-cite-outcome {
  margin: 0.55rem 0 0.75rem;
  border-radius: 12px;
  background: rgba(248, 244, 236, 0.06);
  border: 1px solid rgba(248, 244, 236, 0.1);
  padding: 0.75rem 0.85rem;
}

.gs-cite-outcome--map {
  display: grid;
  gap: 0.4rem;
}

.gs-cite-map-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(248, 244, 236, 0.55);
  padding: 0.28rem 0.35rem;
  border-radius: 8px;
}

.gs-cite-map-row.is-you {
  background: rgba(247, 107, 28, 0.18);
  color: rgba(248, 244, 236, 0.95);
  font-weight: 700;
}

.gs-cite-map-row .pin {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(248, 244, 236, 0.12);
  color: inherit;
}

.gs-cite-map-row.is-you .pin {
  background: var(--orange, #f76b1c);
  color: #fff;
}

.gs-cite-outcome--metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.gs-cite-outcome--metric strong {
  font-family: var(--font-display, "Baloo 2", sans-serif);
  font-size: 1.85rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}

.gs-cite-outcome--metric span {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(248, 244, 236, 0.6);
  text-align: right;
}

.gs-cite-outcome--split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.gs-cite-outcome--split .was,
.gs-cite-outcome--split .now {
  display: grid;
  gap: 0.15rem;
}

.gs-cite-outcome--split .lbl {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 244, 236, 0.45);
}

.gs-cite-outcome--split .val {
  font-family: var(--font-display, "Baloo 2", sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: rgba(248, 244, 236, 0.55);
}

.gs-cite-outcome--split .now .val {
  color: #ffb488;
}

.gs-cite-outcome--split .arrow {
  color: var(--orange, #f76b1c);
  font-weight: 800;
}

.gs-cite-outcome--stars {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.gs-cite-outcome--stars .stars {
  color: #ffb488;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.gs-cite-outcome--stars .count {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(248, 244, 236, 0.7);
}

.gs-cite-outcome--flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.25rem;
  align-items: center;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(248, 244, 236, 0.75);
}

.gs-cite-outcome--flow .node {
  background: rgba(248, 244, 236, 0.08);
  border-radius: 8px;
  padding: 0.45rem 0.3rem;
}

.gs-cite-outcome--flow .node.is-hot {
  background: rgba(247, 107, 28, 0.22);
  color: #ffb488;
}

.gs-cite-outcome--flow .sep {
  color: var(--orange, #f76b1c);
}

/* Cite pipeline entrance — plays once via .is-playing */
@keyframes gsCiteStage {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes gsCiteStageDot {
  to {
    background: var(--orange, #f76b1c);
    transform: scale(1.15);
  }
}

@keyframes gsCiteAnswer {
  to {
    opacity: 1;
    transform: none;
  }
}

.gs-cite-pipeline.is-playing .gs-cite-stage:nth-child(1) {
  animation: gsCiteStage 0.45s var(--gs-ease) 0.05s forwards;
}

.gs-cite-pipeline.is-playing .gs-cite-stage:nth-child(2) {
  animation: gsCiteStage 0.45s var(--gs-ease) 0.22s forwards;
}

.gs-cite-pipeline.is-playing .gs-cite-stage:nth-child(3) {
  animation: gsCiteStage 0.45s var(--gs-ease) 0.39s forwards;
}

.gs-cite-pipeline.is-playing .gs-cite-stage:nth-child(4) {
  animation: gsCiteStage 0.45s var(--gs-ease) 0.56s forwards;
}

.gs-cite-pipeline.is-playing .gs-cite-stage:nth-child(1)::before {
  animation: gsCiteStageDot 0.35s var(--gs-ease) 0.15s forwards;
}

.gs-cite-pipeline.is-playing .gs-cite-stage:nth-child(2)::before {
  animation: gsCiteStageDot 0.35s var(--gs-ease) 0.32s forwards;
}

.gs-cite-pipeline.is-playing .gs-cite-stage:nth-child(3)::before {
  animation: gsCiteStageDot 0.35s var(--gs-ease) 0.49s forwards;
}

.gs-cite-pipeline.is-playing .gs-cite-stage:nth-child(4)::before {
  animation: gsCiteStageDot 0.35s var(--gs-ease) 0.66s forwards;
}

.gs-cite-pipeline.is-playing .gs-cite-answer {
  animation: gsCiteAnswer 0.55s var(--gs-ease) 0.82s forwards;
}

.gs-story-ready .gs-hero-art:not(.is-playing) .gs-hero-art-citation {
  opacity: 0;
  transform: translateY(14px);
}

.gs-hero-art.is-playing .gs-hero-art-citation {
  animation: gsCiteAnswer 0.55s var(--gs-ease) 0.35s forwards;
}

/* --------------------------------------------------------------------------
   Sticky scroll groups
   -------------------------------------------------------------------------- */

.gs-group {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 900px) {
  .gs-group {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 4vw, 3.5rem);
    align-items: start;
  }

  .gs-group--reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .gs-group--reverse .gs-group-visual {
    order: -1;
  }
}

.gs-group-text {
  display: grid;
  gap: 0.75rem;
}

.gs-step {
  transition: opacity 0.5s var(--gs-ease), transform 0.5s var(--gs-ease);
}

@media (min-width: 900px) {
  .gs-step {
    min-height: 0;
    padding: 1.25rem 0 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.32;
    transform: translateY(8px);
  }

  .gs-step.is-active {
    opacity: 1;
    transform: none;
  }

  .gs-step.is-passed {
    opacity: 0.45;
    transform: none;
  }
}

.gs-group-visual {
  position: relative;
}

@media (min-width: 900px) {
  .gs-group-visual {
    position: sticky;
    top: var(--gs-sticky-top);
    align-self: start;
  }
}

.gs-visual-stage {
  background: var(--gs-panel);
  border: 1px solid var(--line, #e4ddd0);
  border-radius: 20px;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  box-shadow: var(--shadow, 0 4px 24px rgba(20, 51, 59, 0.06));
  min-height: 320px;
}

/* --------------------------------------------------------------------------
   Shift chapter — dual paths
   -------------------------------------------------------------------------- */

.gs-path-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gs-path {
  border-radius: 14px;
  padding: 1.05rem 0.95rem;
  background: var(--cream, #f8f4ec);
  border: 1.5px solid transparent;
  transition: border-color 0.45s var(--gs-ease), background 0.45s var(--gs-ease), transform 0.45s var(--gs-ease), opacity 0.45s var(--gs-ease);
}

.gs-path h4 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display, "Baloo 2", sans-serif);
  font-size: 0.9rem;
  color: var(--ink, #14333b);
}

.gs-path ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.gs-path li {
  font-size: 0.78rem;
  color: var(--ink2, #2c4e57);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.gs-path li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line, #e4ddd0);
  flex-shrink: 0;
}

.gs-path-caption {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--grey, #6b7f86);
  line-height: 1.55;
  min-height: 3em;
}

.gs-path-caption span {
  display: none;
}

.gs-group[data-active-step="1"] .gs-path--serp,
.gs-group[data-active-step="2"] .gs-path,
.gs-group[data-active-step="3"] .gs-path--ai,
.gs-group[data-active-step="4"] .gs-path--ai,
.gs-group[data-active-step="5"] .gs-path--serp {
  background: var(--peach, #fde4d2);
  border-color: var(--orange, #f76b1c);
  transform: translateY(-2px);
}

.gs-group[data-active-step="1"] .gs-path--serp h4,
.gs-group[data-active-step="2"] .gs-path h4,
.gs-group[data-active-step="3"] .gs-path--ai h4,
.gs-group[data-active-step="4"] .gs-path--ai h4,
.gs-group[data-active-step="5"] .gs-path--serp h4 {
  color: var(--ember, #d9550e);
}

.gs-group[data-active-step="1"] .gs-path--serp li::before,
.gs-group[data-active-step="2"] .gs-path li::before,
.gs-group[data-active-step="3"] .gs-path--ai li::before,
.gs-group[data-active-step="4"] .gs-path--ai li::before,
.gs-group[data-active-step="5"] .gs-path--serp li::before {
  background: var(--orange, #f76b1c);
}

.gs-group[data-active-step="1"] .gs-path-caption span[data-for="1"],
.gs-group[data-active-step="2"] .gs-path-caption span[data-for="2"],
.gs-group[data-active-step="3"] .gs-path-caption span[data-for="3"],
.gs-group[data-active-step="4"] .gs-path-caption span[data-for="4"],
.gs-group[data-active-step="5"] .gs-path-caption span[data-for="5"] {
  display: block;
}

/* --------------------------------------------------------------------------
   Map chapter
   -------------------------------------------------------------------------- */

.gs-stage {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .gs-stage {
    grid-template-columns: minmax(240px, 280px) 1fr;
    gap: clamp(2rem, 4vw, 3.25rem);
    align-items: start;
  }
}

.gs-stage-nav {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .gs-stage-nav {
    position: sticky;
    top: var(--gs-sticky-top);
  }
}

.gs-stage-nav-list {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gs-stage-nav-item {
  border-left: 3px solid var(--line, #e4ddd0);
  padding: 0.4rem 0 0.4rem 0.85rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--grey, #6b7f86);
  transition: border-color 0.4s var(--gs-ease), color 0.4s var(--gs-ease);
}

.gs-stage-nav-item.is-active {
  border-color: var(--orange, #f76b1c);
  color: var(--ember, #d9550e);
}

.gs-stage-nav-item.is-passed {
  color: var(--ink, #14333b);
}

.gs-stage-progress {
  height: 4px;
  background: var(--line, #e4ddd0);
  border-radius: 2px;
  overflow: hidden;
}

.gs-stage-progress > span,
[data-gs-progress] {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--orange, #f76b1c);
  border-radius: 2px;
  transition: width 0.22s linear;
}

.gs-stage-content {
  display: grid;
  gap: 1.15rem;
}

.gs-map-display {
  background: var(--ink, #14333b);
  color: var(--cream, #f8f4ec);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  min-height: 190px;
  position: relative;
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(20, 51, 59, 0.14));
  overflow: hidden;
}

.gs-map-label {
  position: absolute;
  inset: 0;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.48s var(--gs-ease), transform 0.48s var(--gs-ease);
}

.gs-map-label:first-child {
  position: relative;
}

.gs-map-label .tag {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
  font-weight: 800;
  color: #ffb488;
}

.gs-map-label h3 {
  color: var(--white, #fff);
  margin: 0.45rem 0 0;
  font-family: var(--font-display, "Baloo 2", sans-serif);
  font-size: clamp(1.65rem, 3vw, 1.95rem);
}

.gs-stage[data-active-step="1"] .gs-map-label[data-step="1"],
.gs-stage[data-active-step="2"] .gs-map-label[data-step="2"],
.gs-stage[data-active-step="3"] .gs-map-label[data-step="3"],
.gs-stage[data-active-step="4"] .gs-map-label[data-step="4"] {
  opacity: 1;
  transform: none;
}

.gs-map-dots {
  display: flex;
  gap: 0.4rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.gs-map-dots li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(248, 244, 236, 0.22);
  transition: background 0.35s var(--gs-ease), transform 0.35s var(--gs-ease);
}

.gs-map-dots li.is-active {
  background: var(--orange, #f76b1c);
  transform: scale(1.3);
}

.gs-map-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .gs-map-cards > * {
    min-height: 0;
    padding-block: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.gs-map-card {
  background: var(--gs-panel);
  border: 1px solid var(--line, #e4ddd0);
  border-radius: 16px;
  padding: 1.65rem;
  transition: border-color 0.45s var(--gs-ease), box-shadow 0.45s var(--gs-ease), transform 0.45s var(--gs-ease), opacity 0.45s var(--gs-ease);
}

.gs-map-card .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ember, #d9550e);
  background: var(--peach, #fde4d2);
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.gs-map-card h3 {
  margin: 0 0 0.45rem;
}

.gs-map-card p {
  margin: 0;
  color: var(--ink2, #2c4e57);
  line-height: 1.68;
}

.gs-map-card.is-active {
  border-color: var(--orange, #f76b1c);
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(20, 51, 59, 0.1));
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   How AI works — filters + pipeline
   -------------------------------------------------------------------------- */

.gs-filters {
  display: grid;
  gap: 0.75rem;
}

.gs-filter {
  background: var(--cream, #f8f4ec);
  border: 1px solid var(--line, #e4ddd0);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  opacity: 0.5;
  transform: translateY(4px);
  transition: opacity 0.45s var(--gs-ease), transform 0.45s var(--gs-ease), border-color 0.45s ease, box-shadow 0.45s ease, background 0.45s ease;
}

.gs-filter .gs-num {
  display: block;
  margin-bottom: 0.28rem;
}

.gs-filter h4 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-family: var(--font-display, "Baloo 2", sans-serif);
  color: var(--ink, #14333b);
}

.gs-filter p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink2, #2c4e57);
  line-height: 1.52;
}

.gs-group[data-active-step="1"] .gs-filter[data-step="1"],
.gs-group[data-active-step="2"] .gs-filter[data-step="2"],
.gs-group[data-active-step="3"] .gs-filter[data-step="3"] {
  opacity: 1;
  transform: none;
  background: var(--gs-panel);
  border-color: var(--orange, #f76b1c);
  box-shadow: var(--shadow, 0 4px 24px rgba(20, 51, 59, 0.06));
}

/* Horizontal / vertical pipeline diagram */
.gs-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}

@media (min-width: 900px) {
  .gs-pipeline {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }

  .gs-pipeline::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: var(--line, #e4ddd0);
    z-index: 0;
  }
}

.gs-pipeline-node {
  flex: 1;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-radius: 12px;
  border: 1px solid transparent;
  opacity: 0.42;
  transform: translateY(6px);
  transition: opacity 0.45s var(--gs-ease), transform 0.45s var(--gs-ease), border-color 0.45s ease, background 0.45s ease;
}

.gs-pipeline-node::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto 0.45rem;
  border-radius: 50%;
  background: var(--line, #e4ddd0);
  transition: background 0.45s var(--gs-ease), transform 0.45s var(--gs-ease);
}

.gs-pipeline-node strong {
  display: block;
  font-family: var(--font-display, "Baloo 2", sans-serif);
  font-size: 0.82rem;
  color: var(--ink, #14333b);
}

.gs-pipeline-node span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink2, #2c4e57);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.gs-group[data-active-step="1"] .gs-pipeline-node[data-step="1"],
.gs-group[data-active-step="2"] .gs-pipeline-node[data-step="2"],
.gs-group[data-active-step="3"] .gs-pipeline-node[data-step="3"],
.gs-group[data-active-step="3"] .gs-pipeline-node[data-step="4"],
.gs-group[data-active-step="4"] .gs-pipeline-node[data-step="4"] {
  opacity: 1;
  transform: none;
  background: var(--gs-panel);
  border-color: var(--orange, #f76b1c);
}

.gs-group[data-active-step="1"] .gs-pipeline-node[data-step="1"]::before,
.gs-group[data-active-step="2"] .gs-pipeline-node[data-step="2"]::before,
.gs-group[data-active-step="3"] .gs-pipeline-node[data-step="3"]::before,
.gs-group[data-active-step="3"] .gs-pipeline-node[data-step="4"]::before,
.gs-group[data-active-step="4"] .gs-pipeline-node[data-step="4"]::before {
  background: var(--orange, #f76b1c);
  transform: scale(1.2);
}

.gs-callout-card {
  margin-top: 2.25rem;
  background: var(--ink, #14333b);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 1.85rem) clamp(1.5rem, 3.5vw, 2rem);
  color: rgba(248, 244, 236, 0.92);
}

.gs-callout-card h3 {
  color: var(--white, #fff);
  margin: 0 0 0.55rem;
}

.gs-callout-card p {
  margin: 0;
  color: rgba(248, 244, 236, 0.78);
  line-height: 1.68;
}

/* --------------------------------------------------------------------------
   Mistakes
   -------------------------------------------------------------------------- */

.gs-mistakes-layout {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .gs-mistakes-layout {
    grid-template-columns: 210px 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
  }
}

.gs-mistakes-rail {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .gs-mistakes-rail {
    position: sticky;
    top: var(--gs-sticky-top);
  }
}

.gs-mistakes-count {
  font-family: var(--font-display, "Baloo 2", sans-serif);
  font-size: clamp(2.25rem, 4vw, 2.75rem);
  color: var(--ink, #14333b);
  line-height: 1;
}

.gs-mistakes-count .sep {
  color: var(--grey, #6b7f86);
  font-size: 1.35rem;
  margin: 0 0.12rem;
}

.gs-mistakes-count .total {
  color: var(--grey, #6b7f86);
  font-size: 1.35rem;
}

.gs-mistakes-dots {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gs-mistakes-dots li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--grey, #6b7f86);
  opacity: 0.5;
  transition: opacity 0.35s var(--gs-ease), color 0.35s var(--gs-ease);
}

.gs-mistakes-dots li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line, #e4ddd0);
  flex-shrink: 0;
  transition: background 0.35s var(--gs-ease), transform 0.35s var(--gs-ease);
}

.gs-mistakes-dots li.is-active,
.gs-mistakes-dots li.is-passed {
  opacity: 1;
  color: var(--ink, #14333b);
}

.gs-mistakes-dots li.is-active::before {
  background: var(--orange, #f76b1c);
  transform: scale(1.25);
}

.gs-mistakes-dots li.is-passed::before {
  background: var(--orange, #f76b1c);
  opacity: 0.55;
}

.gs-acc-list {
  display: grid;
  gap: 0.85rem;
}

.gs-acc-item {
  border: 1px solid var(--line, #e4ddd0);
  border-radius: 14px;
  background: var(--gs-panel);
  transition: border-color 0.4s var(--gs-ease), box-shadow 0.4s var(--gs-ease), transform 0.4s var(--gs-ease);
}

.gs-acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.gs-acc-item summary::-webkit-details-marker {
  display: none;
}

.gs-acc-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--orange, #f76b1c);
  font-weight: 800;
  transition: transform 0.3s var(--gs-ease);
}

.gs-acc-item[open] summary::after {
  transform: rotate(45deg);
}

.gs-acc-item summary h3 {
  margin: 0;
  font-size: 1.02rem;
}

.gs-acc-item > p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--ink2, #2c4e57);
  line-height: 1.68;
}

.gs-acc-item.is-active {
  border-color: var(--orange, #f76b1c);
  box-shadow: var(--shadow, 0 4px 24px rgba(20, 51, 59, 0.06));
}

@media (min-width: 900px) {
  .gs-acc-item summary {
    cursor: default;
  }

  .gs-acc-item summary::after {
    display: none;
  }

  .gs-acc-item.is-active {
    transform: translateY(-2px);
  }
}

.gs-selfcheck {
  margin-top: 1.25rem;
  background: var(--gs-tint);
  border-left: 4px solid var(--orange, #f76b1c);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.gs-selfcheck strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink, #14333b);
}

.gs-selfcheck p {
  margin: 0;
  color: var(--ink2, #2c4e57);
  line-height: 1.62;
}

.gs-cta-banner {
  margin-top: 2.25rem;
  background: var(--ink, #14333b);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.25rem) clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.gs-cta-banner h2 {
  color: var(--white, #fff);
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.gs-cta-banner p {
  color: rgba(248, 244, 236, 0.76);
  max-width: 42ch;
  margin: 0 auto 1.25rem;
}

.gs-cta-banner .btn {
  margin-top: 0.25rem;
}

.gs-cta-banner .btn-accent,
.gs-cta-banner a.btn-accent {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Framework loop
   -------------------------------------------------------------------------- */

.gs-loop {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .gs-loop {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
  }
}

.gs-loop-diagram {
  position: relative;
  aspect-ratio: 1;
  max-width: 280px;
  margin-inline: auto;
}

.gs-loop-ring {
  position: absolute;
  inset: 8%;
  border: 2px solid var(--line, #e4ddd0);
  border-radius: 50%;
}

.gs-loop-node {
  position: absolute;
  width: 42%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey, #6b7f86);
  opacity: 0.45;
  transform: translate(-50%, -50%);
  transition: opacity 0.45s var(--gs-ease), color 0.45s var(--gs-ease);
}

.gs-loop-node::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  background: var(--line, #e4ddd0);
  transition: background 0.45s var(--gs-ease), transform 0.45s var(--gs-ease);
}

.gs-loop-node:nth-child(2) {
  top: 4%;
  left: 50%;
}

.gs-loop-node:nth-child(3) {
  top: 50%;
  left: 96%;
}

.gs-loop-node:nth-child(4) {
  top: 96%;
  left: 50%;
}

.gs-loop-node:nth-child(5) {
  top: 50%;
  left: 4%;
}

.gs-stage[data-active-step="1"] .gs-loop-node[data-step="1"],
.gs-stage[data-active-step="2"] .gs-loop-node[data-step="2"],
.gs-stage[data-active-step="3"] .gs-loop-node[data-step="3"],
.gs-stage[data-active-step="4"] .gs-loop-node[data-step="4"] {
  opacity: 1;
  color: var(--ember, #d9550e);
}

.gs-stage[data-active-step="1"] .gs-loop-node[data-step="1"]::before,
.gs-stage[data-active-step="2"] .gs-loop-node[data-step="2"]::before,
.gs-stage[data-active-step="3"] .gs-loop-node[data-step="3"]::before,
.gs-stage[data-active-step="4"] .gs-loop-node[data-step="4"]::before {
  background: var(--orange, #f76b1c);
  transform: scale(1.25);
}

.gs-loop-stage {
  padding: 0.35rem 0;
}

@media (min-width: 900px) {
  .gs-loop-stage {
    min-height: 0;
    padding: 0.65rem 0 1rem;
    display: flex;
    align-items: center;
  }

  .gs-loop-stage .gs-acc-item {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Deliverables bento
   -------------------------------------------------------------------------- */

.gs-bento {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gs-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .gs-bento {
    grid-template-columns: repeat(4, 1fr);
  }

  .gs-bento-item:nth-child(1),
  .gs-bento-item:nth-child(4),
  .gs-bento-item:nth-child(7) {
    grid-column: span 2;
  }
}

.gs-bento-item {
  background: var(--gs-panel);
  border: 1px solid var(--line, #e4ddd0);
  border-radius: 16px;
  padding: 1.65rem;
  transition: transform 0.42s var(--gs-ease), box-shadow 0.42s ease, border-color 0.42s ease;
}

.gs-bento-item .gs-num {
  display: block;
  margin-bottom: 0.55rem;
}

.gs-bento-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
}

.gs-bento-item p {
  margin: 0;
  color: var(--ink2, #2c4e57);
  line-height: 1.62;
  font-size: 0.94rem;
}

.gs-bento-item:hover,
.gs-bento-item:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(20, 51, 59, 0.1));
  border-color: var(--orange, #f76b1c);
}

.gs-bento-item:focus-visible {
  outline: 2px solid var(--orange, #f76b1c);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Process roadmap (legacy chapter)
   -------------------------------------------------------------------------- */

.gs-roadmap {
  position: relative;
}

.gs-roadmap-line {
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line, #e4ddd0);
  border-radius: 2px;
  overflow: hidden;
}

@media (min-width: 900px) {
  .gs-roadmap-line {
    left: 26px;
  }
}

.gs-roadmap-line > span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--progress, 0%);
  background: var(--orange, #f76b1c);
  transition: height 0.2s linear;
}

.gs-roadmap-step {
  position: relative;
  padding: 1rem 0 1rem 3.4rem;
  opacity: 0.55;
  transition: opacity 0.45s var(--gs-ease);
}

@media (min-width: 900px) {
  .gs-roadmap-step {
    padding-left: 4.25rem;
    min-height: 0;
    padding-block: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.gs-roadmap-step.is-active {
  opacity: 1;
}

.gs-roadmap-step.is-passed {
  opacity: 0.72;
}

.gs-roadmap-node {
  position: absolute;
  left: 10px;
  top: 1.2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gs-panel);
  border: 2px solid var(--line, #e4ddd0);
  transition: border-color 0.4s ease, background 0.4s ease;
}

@media (min-width: 900px) {
  .gs-roadmap-node {
    left: 18px;
  }
}

.gs-roadmap-step.is-active .gs-roadmap-node,
.gs-roadmap-step.is-passed .gs-roadmap-node {
  border-color: var(--orange, #f76b1c);
  background: var(--orange, #f76b1c);
}

.gs-roadmap-step h3 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.12rem;
}

.gs-roadmap-step p {
  margin: 0;
  color: var(--ink2, #2c4e57);
  line-height: 1.62;
  max-width: 58ch;
}

/* --------------------------------------------------------------------------
   Trust / editorial
   -------------------------------------------------------------------------- */

.gs-quick {
  background: var(--gs-tint);
  border: 1px solid var(--line, #e4ddd0);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  margin-bottom: 0.5rem;
}

.gs-editorial-block {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

.gs-editorial-block:last-child {
  margin-bottom: 0;
}

.gs-industry-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

@media (min-width: 720px) {
  .gs-industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .gs-industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gs-industry-card {
  background: var(--gs-panel);
  border: 1px solid var(--line, #e4ddd0);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  transition: border-color 0.35s ease, transform 0.35s var(--gs-ease);
}

.gs-industry-card:hover {
  border-color: rgba(247, 107, 28, 0.45);
  transform: translateY(-2px);
}

.gs-industry-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.gs-industry-card p {
  margin: 0;
  color: var(--ink2, #2c4e57);
  line-height: 1.58;
  font-size: 0.93rem;
}

.gs-proof-strip {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .gs-proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .gs-proof-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gs-proof-strip div {
  background: var(--gs-panel);
  border: 1px solid var(--line, #e4ddd0);
  border-radius: 14px;
  padding: 1.15rem 1rem;
  text-align: center;
}

.gs-proof-strip strong {
  display: block;
  font-family: var(--font-display, "Baloo 2", sans-serif);
  font-size: 1.45rem;
  color: var(--orange, #f76b1c);
}

.gs-proof-strip span {
  font-size: 0.84rem;
  color: var(--ink2, #2c4e57);
  line-height: 1.45;
}

.gs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line, #e4ddd0);
  border-radius: 14px;
  background: var(--gs-panel);
  margin-top: 1.35rem;
  -webkit-overflow-scrolling: touch;
}

.gs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.gs-table th,
.gs-table td {
  padding: 0.8rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--line, #e4ddd0);
  vertical-align: top;
}

.gs-table th {
  background: var(--gs-tint);
  color: var(--ink, #14333b);
  font-weight: 800;
}

.gs-table tr:last-child td {
  border-bottom: 0;
}

.gs-bridge {
  text-align: center;
  padding: clamp(2.25rem, 5.5vw, 3.25rem) 0 0.35rem;
}

.gs-bridge p {
  font-family: var(--font-display, "Baloo 2", sans-serif);
  font-size: clamp(1.12rem, 2.1vw, 1.45rem);
  color: var(--ink, #14333b);
  margin: 0 auto;
  max-width: 34ch;
  line-height: 1.38;
}

.gs-bridge p::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--orange, #f76b1c);
  border-radius: 2px;
  margin: 0 auto 1rem;
}

/* --------------------------------------------------------------------------
   No-JS / pre-init fallbacks
   -------------------------------------------------------------------------- */

.gs-group:not([data-active-step]) .gs-filter[data-step="1"],
.gs-group:not([data-active-step]) .gs-pipeline-node[data-step="1"] {
  opacity: 1;
  transform: none;
  background: var(--gs-panel);
  border-color: var(--orange, #f76b1c);
}

.gs-group:not([data-active-step]) .gs-path--serp {
  background: var(--peach, #fde4d2);
  border-color: var(--orange, #f76b1c);
}

.gs-stage:not([data-active-step]) .gs-map-label:first-child {
  opacity: 1;
  transform: none;
}

.gs-stage:not([data-active-step]) .gs-map-dots li:first-child {
  background: var(--orange, #f76b1c);
  transform: scale(1.3);
}

.gs-stage:not([data-active-step]) .gs-stage-nav-item[data-step="1"] {
  color: var(--ember, #d9550e);
  border-color: var(--orange, #f76b1c);
}

/* Mobile: stack narrative, no sticky clutter */
@media (max-width: 899.98px) {
  .gs-group-visual,
  .gs-stage-nav,
  .gs-mistakes-rail {
    position: static !important;
    top: auto !important;
  }

  .gs-step {
    min-height: 0 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .gs-filter,
  .gs-pipeline-node {
    opacity: 1 !important;
    transform: none !important;
  }

  .gs-map-label {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .gs-map-label:not(:first-child) {
    margin-top: 0.5rem;
  }

  .gs-map-display {
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion — settled states, no pinning
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .gs-story *,
  .gs-story *::before,
  .gs-story *::after {
    animation: none !important;
    transition: none !important;
  }

  .gs-group-visual,
  .gs-stage-nav,
  .gs-mistakes-rail {
    position: static !important;
    top: auto !important;
  }

  [data-gs-reveal],
  .gs-cite-stage,
  .gs-cite-answer,
  .gs-hero-art-citation {
    opacity: 1 !important;
    transform: none !important;
  }

  .gs-step,
  .gs-filter,
  .gs-pipeline-node,
  .gs-path {
    opacity: 1 !important;
    transform: none !important;
  }

  .gs-map-label {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
  }

  .gs-map-label + .gs-map-label {
    margin-top: 0.75rem;
  }
}

html.gs-reduced-motion .gs-story *,
html.gs-reduced-motion .gs-story *::before,
html.gs-reduced-motion .gs-story *::after {
  animation: none !important;
  transition: none !important;
}

html.gs-reduced-motion .gs-group-visual,
html.gs-reduced-motion .gs-stage-nav,
html.gs-reduced-motion .gs-mistakes-rail {
  position: static !important;
}

html.gs-reduced-motion [data-gs-reveal],
html.gs-reduced-motion .gs-step,
html.gs-reduced-motion .gs-filter,
html.gs-reduced-motion .gs-pipeline-node,
html.gs-reduced-motion .gs-cite-stage,
html.gs-reduced-motion .gs-cite-answer,
html.gs-reduced-motion .gs-hero-art-citation,
html.gs-reduced-motion .gs-map-label {
  opacity: 1 !important;
  transform: none !important;
}

.gs-chapter .container {
  position: relative;
}
