.hero-figure {
  container-type: inline-size;
}

.module-intro .figure-field:not([data-motion])::before {
  content: "";
  background: url('assets/hero-closed.webp?v=foto') center/contain no-repeat;
}

.module-intro .figure-field:not([data-motion]) :is(.hero-art, .layer-pin) {
  visibility: hidden;
}

.hero-model-canvas,
.hero-map,
.hero-map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-model-canvas {
  display: block;
  z-index: 1;
  opacity: 0;
}

.hero-model-canvas[hidden],
#hero-inspect-trigger[hidden] {
  display: none;
}

.figure-field[data-photo-active] .hero-art {
  opacity: 0;
}

.figure-field[data-photo-active] .hero-model-canvas {
  opacity: 1;
  mix-blend-mode: lighten;
}

.figure-field[data-motion]:not([data-motion="open"]) .layer-pin {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.figure-field[data-motion="open"] .layer-pin {
  transition: opacity .23s ease, color .2s, border-color .2s;
}

.hero-map {
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility 0s .24s;
}

.figure-field[data-motion="map"] .hero-map {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.hero-map-title {
  position: absolute;
  top: 3.5%;
  left: 1.5%;
  padding-left: 8px;
  border-left: 2px solid #79f1c8;
  color: #b7d2c7;
  font: 550 9px/1.2 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-map-label {
  position: absolute;
  width: clamp(93px, 22%, 136px);
  padding: 5px 7px;
  transform: translateY(-50%);
  background: #0b1714f2;
  border-block: 1px solid #29423a;
  border-inline: 1px solid #29423a;
  border-radius: 2px;
  color: #e5f2eb;
}

.hero-map-label[data-side="left"] {
  left: 1%;
  border-right: 2px solid #83dcb7;
}

.hero-map-label[data-side="right"] {
  right: 1%;
  border-left: 2px solid #83dcb7;
}

.hero-map-label strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font: 600 11.5px/1.25 var(--sans);
  letter-spacing: -.02em;
}

.hero-map-index {
  color: #8aeac4;
  font: 500 9px/1 var(--mono);
  letter-spacing: 0;
}

.hero-map-detail {
  display: block;
  margin-top: 3px;
  color: #bdcdc6;
  font: 450 10.5px/1.28 var(--sans);
}

#hero-inspect-trigger {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  margin-inline-start: auto;
  padding: 4px 6px;
  border: 0;
  border-radius: 3px;
  color: #b6cdc2;
  font: 550 11px var(--sans);
  white-space: nowrap;
}

#hero-inspect-trigger:hover,
#hero-inspect-trigger:focus-visible {
  color: #8ef5ce;
  background: #13221c;
}

#hero-inspect-trigger svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: #8addb8;
}

@container (max-width: 440px) {
  .hero-map-title {
    font-size: 8.5px;
  }

  .hero-map-label {
    width: 24%;
    min-width: 74px;
    padding: 4px 5px;
  }

  .hero-map-label strong {
    gap: 3px;
    font-size: 10.5px;
  }

  .hero-map-index {
    font-size: 8px;
  }

  .hero-map-detail {
    margin-top: 2px;
    font-size: 10px;
  }

  .figure-caption {
    gap: 7px;
  }

  #hero-inspect-trigger {
    width: 36px;
    padding-inline: 0;
  }

  #hero-inspect-trigger .hero-replay-label {
    display: none;
  }
}
