html, body, #map {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#cover {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#cover-bg {
  position: fixed;
  inset: 0;
  background: url("../img/cover.jpg") no-repeat center center;
  background-size: cover;
  filter: brightness(0.75);
  transform: scale(1.02);
}

#intro {
  position: relative;
  top: 32%;
  left: 50%;
  transform: translateX(-50%) translateY(-32%);
  width: min(760px, 88vw);
  color: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  background-color: rgba(0,0,0,0.35);
  text-shadow: 0 0 6px rgba(0,0,0,0.6);
}

#intro .footnote {
  margin-top: 1rem;
  text-align: right;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
}

#geonarrative {
  position: relative;
}

#storyboard {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
}

#map {
  position: absolute;
  inset: 0;
}

.scene{
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding: 60vh 0 60vh 0;
  opacity: 0.35;
  transition: opacity 250ms ease;
}

.scene.is-active{
  opacity: 1;
}

@media (max-width: 720px){
  .scene{
    margin: 0 auto;
    padding: 65vh 1rem 65vh 1rem;
  }

  #intro{
    top: 28%;
    transform: translateX(-50%) translateY(-28%);
  }
}

.cardish{
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 35px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
}

.cardish h2 {
  margin-top: 0;
}

.tip {
  font-size: 0.95rem;
  margin-bottom: 0;
  opacity: 0.85;
}

#hud {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  width: 210px;
}

.hud-title {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 4px;
}

#footer {
  width: 100%;
  min-height: 30vh;
  background: rgba(0,0,0,0.65);
}

@media (max-width: 720px) {
  .scene { margin: 0 auto; padding: 0 1rem; }
  #intro { top: 28%; transform: translateX(-50%) translateY(-28%); }
}