html, body, .page { overflow-x: clip; }

.gs-intro { padding: 120px 0 28px; }

.gs {
  --steps: 8;
  --step: 42vh;
  --nav: 72px;
  position: relative;

  padding: 0;
  height: calc(100vh + var(--steps) * var(--step));
}
.gs-sticky {
  position: sticky; top: 0;
  height: 100vh;
  padding-top: var(--nav);
  display: flex; align-items: center;
  overflow: hidden;
}
.gs-stage {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 12px var(--pad);
  display: grid; align-items: center;

  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
}

.gs-mapwrap {
  position: relative;
  width: min(600px, 100%, calc((100vh - var(--nav) - 26px) / 1.4418));
  margin-left: auto; margin-right: 18px;
}
.gs-mapzoom { position: relative; }
.gs-map {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: radial-gradient(ellipse 122% 116% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 122% 116% at 50% 50%, #000 70%, transparent 100%);
}

.gs-unlit-wrap {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent calc(var(--p, 0%) - 7%), #000 calc(var(--p, 0%) + 7%));
          mask-image: linear-gradient(to bottom,
    transparent calc(var(--p, 0%) - 7%), #000 calc(var(--p, 0%) + 7%));
}
.gs-unlit { filter: saturate(.16) brightness(.5) hue-rotate(-6deg); }
.gs-front {
  position: absolute; left: -4%; right: -4%; height: 10%;
  top: calc(var(--p, 0%) - 5%);
  pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(255,186,64,.5), transparent 72%);
}

.gs-g {
  position: absolute; left: var(--l); top: var(--t); width: 9.5%; height: auto;
  transform-origin: 50% 74.55%;
  transform: translate(-50%, -74.55%);
  opacity: .55; filter: none;
  transition: opacity .4s var(--ease), filter .4s var(--ease);
}
.gs-g.is-on {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(245,176,48,.55)) drop-shadow(0 0 26px rgba(245,176,48,.26));
}

.gs-g--chest {
  width: 16%;
  transform-origin: 51% 88%;
  transform: translate(-51%, -88%);
}

.gs-lab {
  position: absolute; top: var(--t); width: 40%;
  opacity: .24; transition: opacity .4s var(--ease);
}
.gs-lab.is-on { opacity: 1; }
.gs-lab::before {
  content: ''; position: absolute; z-index: -1; inset: -12px -16px; pointer-events: none;
  background: radial-gradient(ellipse 66% 62% at 50% 50%, rgba(6,7,12,.85), rgba(6,7,12,0) 78%);
}
.gs-lab[data-s="r"] { left: calc(var(--l) + 7.5%); text-align: left;  transform: translateY(-50%); }
.gs-lab[data-s="l"] { right: calc(100% - var(--l) + 7.5%); text-align: right; transform: translateY(-50%); }
.gs-lab i {
  font-style: normal; display: block; margin-bottom: 5px;
  font-size: 9px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); text-shadow: 0 2px 24px rgba(6,7,12,.9);
}
.gs-lab b {
  display: block; font-family: var(--font-d); font-weight: 800; font-size: 15px;
  line-height: 1.15; letter-spacing: -.02em; color: #fff;
  text-shadow: 0 2px 24px rgba(6,7,12,.9), 0 1px 4px rgba(6,7,12,.8);
}

.gs-rail { position: absolute; top: 0; bottom: 0; right: -26px; width: 9px; }
.gs-rail::before {
  content: ''; position: absolute; left: 4px; top: 6%; bottom: 4%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.13) 12%,
              rgba(255,255,255,.13) 88%, transparent);
}
.gs-dot {
  position: absolute; left: 2px; top: var(--t);
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  transition: background .3s, width .3s, height .3s, margin .3s, left .3s;
}
.gs-dot.is-done { background: rgba(245,176,48,.5); }
.gs-dot.is-on {
  left: 0; width: 9px; height: 9px; margin-top: -4.5px;
  background: var(--gold); box-shadow: 0 0 13px rgba(245,176,48,.95);
}

.gs-panels { display: grid; min-width: 0; padding-left: 52px; max-width: 440px; }
.gs-panel {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(18px);
  transition: opacity .16s linear, transform 0s .16s;
}

.gs-panel.is-on {
  opacity: 1; transform: translateY(0);
  transition: opacity .38s .1s var(--ease), transform .5s .1s var(--ease);
}
.gs-k {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-m); font-size: 11px; font-weight: 700;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.gs-k::before {
  content: ''; width: 24px; height: 2px; border-radius: 2px;
  background: var(--gold); box-shadow: 0 0 8px rgba(245,176,48,.75);
}
.gs-panel h3 {
  font-family: var(--font-d); font-weight: 800; font-size: 40px;
  line-height: 1.02; letter-spacing: -.03em; margin-bottom: 20px; color: #fff;
}
.gs-panel p { font-size: 16.5px; line-height: 1.62; color: #CFCAC0; margin-bottom: 24px; }
.gs-panel ul { list-style: none; }
.gs-panel li {
  display: flex; gap: 11px; padding: 9px 0;
  font-size: 15px; line-height: 1.5; color: #E4E0D8;
  border-top: 1px solid rgba(255,255,255,.07);
}
.gs-panel li::before {
  content: ''; flex-shrink: 0; width: 5px; height: 5px; margin-top: 8px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 7px rgba(245,176,48,.8);
}

@media (max-width: 900px) {
  .gs { --step: 46vh; }
  .gs { --nav: 70px; }

  .gs-stage {
    display: flex; flex-direction: column; justify-content: center;
    height: 100%; min-height: 0; padding: 8px var(--pad);
  }
  .gs-rail, .gs-panels { flex: 0 0 auto; }

  .gs-mapwrap {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    width: 100%; height: auto;
    flex: 0 1 auto; min-height: 0;
    margin: 0; overflow: visible; border-radius: 0;
  }
  .gs-mapzoom {
    position: relative; transform: none;
    height: 54.8vh;
    aspect-ratio: 1100 / 1586;
    width: auto; max-width: 100%;
    flex: 0 1 auto; min-height: 0;
  }
  .gs-map { width: 100%; height: 100%; }

  .gs-lab { display: none; }
  .gs-g { width: 13%; }
  .gs-g--chest { width: 22%; }

  .gs-rail {
    position: static; width: 100%; height: auto; margin: 14px 0 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
  }
  .gs-rail::before { display: none; }
  .gs-dot { position: static; margin: 0; }
  .gs-dot.is-on { margin: 0; }

  .gs-panel ul { display: none; }

  .gs-panels { padding: 12px 2px 0; max-width: none; }
  .gs-k { margin-bottom: 8px; font-size: 9.5px; letter-spacing: .26em; }
  .gs-k::before { width: 16px; }
  .gs-panel h3 { font-size: 21px; line-height: 1.08; margin-bottom: 8px; }
  .gs-panel p { font-size: 13.5px; line-height: 1.45; margin-bottom: 10px; }
  .gs-panel li { font-size: 12.5px; line-height: 1.4; padding: 5px 0; gap: 8px; }
  .gs-panel li::before { width: 4px; height: 4px; margin-top: 6px; }
}

@media (max-width: 900px) and (max-height: 700px) {
  .gs-k { margin-bottom: 6px; }
  .gs-panel h3 { font-size: 18px; margin-bottom: 6px; }
  .gs-panel p { font-size: 12.5px; line-height: 1.4; margin-bottom: 6px; }
  .gs-panels { padding-top: 8px; }
}

.gs:not(.gs--ready) { height: auto; }
.gs:not(.gs--ready) .gs-sticky { position: static; height: auto; overflow: visible; }
.gs:not(.gs--ready) .gs-panels { display: block; }
.gs:not(.gs--ready) .gs-panel { opacity: 1; transform: none; margin-bottom: 36px; }
.gs:not(.gs--ready) .gs-lab,
.gs:not(.gs--ready) .gs-g { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .gs-mapzoom, .gs-g, .gs-lab, .gs-dot { transition: none; }
  .gs-panel { transition: opacity .01s; transform: none; }
  .gs-panel.is-on { transition: opacity .01s; transform: none; }
  .gs-front { display: none; }
}
