.territory {
  width: 100%;
  background: #172b24;
}
.territory.is-sticky::after { height: min(150svh, 69rem); }
.territory-panel {
  position: relative;
  isolation: isolate;
  display: block;
  height: 100svh;
  min-height: 34rem;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
}
.territory.is-sticky .territory-panel { top: 0; }
.territory-copy {
  position: absolute;
  z-index: 2;
  top: clamp(1rem, 3.2vh, 2.5rem);
  right: max(3vw, calc((100% - 162svh) / 2 + 1rem));
  width: min(32%, 25rem);
}
.territory-copy h2 {
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  margin-bottom: .55rem;
}
.territory-copy p { margin-bottom: .5rem; line-height: 1.45; }
.territory-explorer, .territory-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
}
/* Frame the foreground and its annotations together. The backdrop fills the
   space beyond the widest safe crop without enlarging the foreground. */
.territory-scene {
  container-type: size;
  background: #223426;
}
.territory-scene::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: url("/assets/paisagem-territorial.2f35379f1c14.webp") center / cover;
  filter: blur(14px) brightness(.55) saturate(.83);
}
.territory-image-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  width: min(100cqw, 162cqh);
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%);
}
.territory-photo {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  filter: brightness(.70) saturate(.96);
}
.territory-hotspots { z-index: 1; }
.territory-point {
  border-radius: 0;
  border-color: #f5f7ed85;
  background: transparent;
  transition: border-color .35s ease, background-color .35s ease, backdrop-filter .35s ease;
}
.territory-point span {
  top: auto;
  bottom: 100%;
  left: -1px;
  padding: .1rem .32rem;
  border-radius: 0;
  color: #1b2d24;
  background: #e4edda;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .25s ease;
}
.territory-point:is(:hover, :focus-visible, [aria-pressed="true"]) span {
  opacity: 1;
  color: #1b2d24;
  background: #e4edda;
}
.territory-point[aria-pressed="true"] {
  border: 1px solid #edf4e4;
  background: #eaf8e21c;
  backdrop-filter: brightness(1.29) saturate(1.12);
  box-shadow: 0 0 16px #eaf8e223;
}
.point-vegetation { --point-x: 9%; --point-y: 33%; --point-width: 31%; --point-height: 31%; }
.point-water { --point-x: 54%; --point-y: 35%; --point-width: 29%; --point-height: 23%; }
.point-road { --point-x: 37%; --point-y: 67%; --point-width: 24%; --point-height: 24%; }
.territory-readings { padding: 0; min-height: 0; }
.territory-reading {
  position: absolute;
  z-index: 2;
  top: var(--point-y);
  left: calc(var(--point-x) + var(--point-width) + 1rem);
  width: min(22vw, 17rem);
  padding-left: .95rem;
  color: #fff;
  text-shadow: 0 1px 3px #10211f, 0 0 12px #10211f;
  animation: territory-note .38s ease-out both;
}
.territory-reading::before {
  content: "";
  position: absolute;
  top: .45rem;
  left: 0;
  width: .42rem;
  height: .42rem;
  background: #e4edda;
  box-shadow: 0 0 10px #e4edda70;
}
.territory-reading h3 { color: #fff; font-size: 1rem; }
.territory-reading.point-water {
  left: auto;
  right: calc(100% - var(--point-x) + .8rem);
}
.territory-reading p { margin: 0; line-height: 1.45; }
.territory-scroll-hint {
  position: absolute;
  z-index: 2;
  left: max(3vw, calc((100vw - 1280px) / 2));
  bottom: 1.1rem;
  margin: 0;
  padding: .3rem .55rem;
  border: 1px solid #e4edda65;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: #14271f55;
}
@keyframes territory-note {
  from { transform: translateX(-6px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@media (min-aspect-ratio: 17/10) {
  .territory-photo { mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
}
@media (max-aspect-ratio: 5/4) {
  .territory-photo { mask-image: linear-gradient(180deg, transparent, black 6%, black 94%, transparent); }
  .territory-point { min-height: 34px; }
}
@media (max-width: 760px) {
  .territory-copy { inset: 1.2rem 1rem auto; width: auto; }
  .territory-copy p { font-size: .92rem; }
  .territory-reading { width: min(32vw, 13rem); padding-left: .65rem; }
  .territory-reading::before { width: .3rem; height: .3rem; top: .38rem; }
  .territory-reading h3 { font-size: .88rem; }
  .territory-reading p { font-size: .79rem; }
}
@media (prefers-reduced-motion: reduce) {
  .territory-reading { animation: none; }
  .territory-point, .territory-point span { transition: none; }
}
.territory-panel:not([data-point]) { height: auto; overflow: visible; }
.territory-panel:not([data-point]) .territory-copy,
.territory-panel:not([data-point]) .territory-explorer,
.territory-panel:not([data-point]) .territory-scene,
.territory-panel:not([data-point]) .territory-image-plane,
.territory-panel:not([data-point]) .territory-reading {
  position: static;
  width: auto;
}
.territory-panel:not([data-point]) .territory-photo { height: auto; }
.territory-panel:not([data-point]) .territory-reading { margin: .75rem; }

.territory-panel:not([data-point]) .territory-image-plane { transform: none; aspect-ratio: auto; }
.territory-panel:not([data-point]) .territory-scene { container-type: normal; }
.territory-panel:not([data-point]) .territory-scene::before { content: none; }

.territory-picture { display: contents; }
