/* Mapa Cívico — reencuadre editorial e interactivo */

:root {
  --mc-ink: #071915;
  --mc-deep: #09241e;
  --mc-teal: #10b9a8;
  --mc-teal-soft: #a8eadf;
  --mc-sun: #f0bd3d;
  --mc-clay: #c96e4c;
  --mc-cream: #f5eee2;
  --mc-paper: #fffaf1;
  --mc-violet: #7561af;
}

html {
  scroll-padding-top: 74px;
}

body {
  background: var(--mc-paper);
}

/* Navegación: compacta y silenciosa sobre la escena */

.site-header {
  top: 12px;
  pointer-events: none;
}

.site-header .header-inner {
  min-height: 66px;
  padding: 0 18px;
  border: 1px solid rgba(213, 242, 233, 0.13);
  border-radius: 22px;
  background: rgba(5, 22, 18, 0.82);
  box-shadow: 0 16px 48px rgba(2, 12, 10, 0.22);
  backdrop-filter: blur(20px) saturate(1.18);
  pointer-events: auto;
}

.site-header.is-scrolled .header-inner,
.site-header.is-open .header-inner {
  background: rgba(5, 22, 18, 0.95);
}

.site-header .brand-copy small {
  opacity: 0.58;
}

/* ==========================================================================
   Primera escena: el territorio se convierte en interfaz
   ========================================================================== */

.hero-map-experience,
.hero-map-experience.hero {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: max(780px, 100svh);
  padding: 0;
  overflow: hidden;
  background: var(--mc-deep);
  color: #fff;
}

.hero-map-experience::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 18, 15, 0.88) 0%, rgba(3, 18, 15, 0.34) 45%, rgba(3, 18, 15, 0.14) 72%, rgba(3, 18, 15, 0.52) 100%),
    linear-gradient(0deg, rgba(3, 18, 15, 0.92) 0%, transparent 41%, rgba(3, 18, 15, 0.46) 100%);
}

.hero-map-experience::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: 92px;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(3, 18, 15, 0.82));
}

.hero-map-stage {
  --hero-map-scale: 1.12;
  --hero-focus-x: 0%;
  --hero-focus-y: 0%;
  --hero-pan-x: 0px;
  --hero-pan-y: 0px;
  position: absolute;
  z-index: auto;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.hero-map-stage:active {
  cursor: grabbing;
}

.hero-map-stage > iframe {
  position: absolute;
  inset: -7%;
  width: 114%;
  height: 114%;
  border: 0;
  pointer-events: none;
  filter: saturate(0.72) contrast(1.14) brightness(0.72) sepia(0.12) hue-rotate(102deg);
  transform:
    translate(
      calc(var(--hero-focus-x) + var(--hero-pan-x)),
      calc(var(--hero-focus-y) + var(--hero-pan-y))
    )
    scale(var(--hero-map-scale));
  transition: transform 1.05s cubic-bezier(0.22, 0.75, 0.22, 1);
}

.hero-map-tone {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 54% 44%, rgba(4, 41, 34, 0.03) 0 12%, rgba(4, 41, 34, 0.34) 47%, rgba(2, 17, 14, 0.76) 100%),
    rgba(5, 52, 43, 0.18);
  mix-blend-mode: multiply;
}

.hero-map-grid {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0.27;
  background-image:
    linear-gradient(rgba(175, 237, 220, 0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(175, 237, 220, 0.17) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 54% 45%, #000, transparent 72%);
}

.hero-map-route {
  position: absolute;
  z-index: 4;
  display: block;
  height: 2px;
  pointer-events: none;
  transform-origin: left center;
  background: repeating-linear-gradient(90deg, rgba(162, 239, 222, 0.76) 0 6px, transparent 6px 12px);
  filter: drop-shadow(0 0 8px rgba(18, 217, 194, 0.44));
}

.hero-map-route i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e7fff7;
  box-shadow: 0 0 0 4px rgba(20, 204, 184, 0.17), 0 0 18px #22d7c2;
  transform: translate(-50%, -50%);
  animation: hero-route-travel 4.4s ease-in-out infinite;
}

.route-water-paving {
  left: 31%;
  top: 61%;
  width: 29%;
  transform: rotate(-38deg);
}

.route-water-light {
  left: 53%;
  top: 42%;
  width: 23%;
  transform: rotate(-31deg);
}

.route-water-light i {
  animation-delay: -1.3s;
}

.route-water-drain {
  left: 53%;
  top: 46%;
  width: 29%;
  transform: rotate(35deg);
}

.route-water-drain i {
  animation-delay: -2.5s;
}

@keyframes hero-route-travel {
  0%,
  12% {
    left: 0;
    opacity: 0;
  }
  24%,
  80% {
    opacity: 1;
  }
  92%,
  100% {
    left: 100%;
    opacity: 0;
  }
}

.hero-map-pin {
  position: absolute;
  z-index: 5;
  left: var(--pin-x);
  top: var(--pin-y);
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.hero-map-pin > i {
  position: relative;
  width: 23px;
  height: 23px;
  display: block;
  border: 6px solid rgba(236, 255, 250, 0.9);
  border-radius: 50% 50% 50% 8px;
  background: var(--pin-color, var(--mc-teal));
  box-shadow:
    0 0 0 1px rgba(4, 28, 23, 0.56),
    0 10px 22px rgba(1, 14, 11, 0.42),
    0 0 24px color-mix(in srgb, var(--pin-color, var(--mc-teal)) 70%, transparent);
  transform: rotate(-45deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-map-pin > i::after {
  content: "";
  position: absolute;
  inset: -11px;
  border: 1px solid color-mix(in srgb, var(--pin-color, var(--mc-teal)) 72%, transparent);
  border-radius: 50%;
  animation: hero-pin-pulse 2.8s ease-out infinite;
}

.hero-map-pin > span {
  display: block;
  padding: 8px 11px;
  border: 1px solid rgba(205, 247, 236, 0.14);
  border-radius: 10px;
  background: rgba(3, 20, 16, 0.8);
  box-shadow: 0 10px 28px rgba(0, 8, 6, 0.25);
  backdrop-filter: blur(12px);
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hero-map-pin:hover > i,
.hero-map-pin:focus-visible > i,
.hero-map-pin.is-active > i {
  box-shadow:
    0 0 0 1px rgba(4, 28, 23, 0.46),
    0 15px 30px rgba(1, 14, 11, 0.5),
    0 0 42px color-mix(in srgb, var(--pin-color, var(--mc-teal)) 86%, transparent);
  transform: rotate(-45deg) scale(1.2);
}

.hero-map-pin.is-active > span {
  background: var(--pin-color, var(--mc-teal));
  color: #061713;
  transform: translateY(2px);
}

.pin-water {
  --pin-color: #22d3bf;
}

.pin-paving {
  --pin-color: #f1b948;
}

.pin-light {
  --pin-color: #7fd29a;
}

.pin-drain {
  --pin-color: #9e7ddd;
}

@keyframes hero-pin-pulse {
  0% {
    opacity: 0.76;
    transform: scale(0.68);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

.hero-map-tools {
  position: absolute;
  z-index: 7;
  right: 24px;
  top: 50%;
  display: grid;
  gap: 7px;
  transform: translateY(-50%);
}

.hero-map-tools button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(208, 247, 237, 0.16);
  border-radius: 12px;
  background: rgba(4, 24, 19, 0.79);
  box-shadow: 0 12px 30px rgba(0, 10, 7, 0.23);
  backdrop-filter: blur(14px);
  color: #eafff9;
  font: 500 1.15rem/1 var(--font-sans);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-map-tools button:hover,
.hero-map-tools button:focus-visible {
  background: #0da393;
  transform: translateX(-3px);
}

.hero-map-layout {
  position: relative;
  z-index: 6;
  width: min(calc(100% - 40px), 1400px);
  min-height: max(780px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.6fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "award award"
    ". ."
    "copy card";
  align-items: end;
  gap: 30px clamp(38px, 6vw, 92px);
  margin-inline: auto;
  padding: 112px 0 62px;
  pointer-events: none;
}

.hero-map-layout > * {
  pointer-events: auto;
}

.hero-map-experience .award-notice {
  grid-area: award;
  justify-self: start;
  width: min(100%, 760px);
  min-height: 0;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 247, 196, 0.62);
  border-left: 0;
  border-radius: 17px 26px 17px 26px;
  background: rgba(240, 189, 61, 0.93);
  box-shadow: 0 18px 52px rgba(16, 12, 2, 0.28);
  backdrop-filter: blur(14px) saturate(1.12);
  color: #251d0b;
}

.hero-map-experience .award-notice::before {
  display: none;
}

.hero-map-experience .award-mark {
  width: 44px;
  height: 54px;
  align-self: center;
}

.hero-map-experience .award-mark img {
  width: auto;
  height: 52px;
  filter: drop-shadow(0 7px 9px rgba(61, 42, 3, 0.2));
}

.hero-map-experience .award-notice div > span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.51rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: #5b430b;
}

.hero-map-experience .award-notice strong {
  display: block;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.8vw, 1.55rem);
  font-weight: 550;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #251d0b;
}

.hero-map-experience .award-notice p {
  max-width: none;
  margin: 6px 0 0;
  font-size: 0.69rem;
  line-height: 1.35;
  color: #5e4815;
}

.hero-map-experience .hero-copy {
  grid-area: copy;
  width: min(100%, 850px);
  max-width: none;
  padding: 0;
  color: #fff;
}

.hero-map-experience .eyebrow {
  margin-bottom: 16px;
  color: rgba(226, 250, 243, 0.78);
}

.hero-map-experience .eyebrow span {
  color: #75e5d7;
}

.hero-map-experience h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(4.6rem, 7.3vw, 8.4rem);
  line-height: 0.82;
  letter-spacing: -0.065em;
  text-wrap: balance;
  color: #f8f5ed;
  text-shadow: 0 13px 45px rgba(0, 10, 7, 0.3);
}

.hero-map-experience h1 em {
  display: block;
  font-weight: 400;
  color: #f1c249;
}

.hero-map-experience .hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
  color: rgba(232, 247, 241, 0.78);
}

.hero-scroll-cue {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8fff8;
}

.hero-scroll-cue i {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(205, 247, 236, 0.32);
  border-radius: 50%;
  background: rgba(6, 37, 30, 0.64);
  font: normal 0.88rem/1 var(--font-sans);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hero-scroll-cue:hover i,
.hero-scroll-cue:focus-visible i {
  background: var(--mc-sun);
  color: var(--mc-ink);
  transform: translateY(4px);
}

.hero-action-card {
  grid-area: card;
  align-self: end;
  padding: 24px;
  border: 1px solid rgba(183, 237, 223, 0.18);
  border-radius: 26px 16px 26px 16px;
  background: rgba(5, 30, 24, 0.82);
  box-shadow: 0 26px 72px rgba(0, 11, 8, 0.35);
  backdrop-filter: blur(22px) saturate(1.18);
  color: #fff;
  transition: opacity 0.2s ease, transform 0.35s ease;
}

.hero-action-card.is-updating {
  opacity: 0.55;
  transform: translateY(8px);
}

.hero-action-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-action-top > span {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7be0d4;
}

.hero-action-top em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(118, 227, 199, 0.15);
  border-radius: 999px;
  background: rgba(21, 128, 105, 0.15);
  font: normal 0.58rem/1 var(--font-sans);
  color: #c7f6e8;
}

.hero-action-top em > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54ddad;
  box-shadow: 0 0 0 4px rgba(84, 221, 173, 0.1);
}

.hero-action-top em > b {
  font-weight: 650;
}

.hero-action-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.03;
  color: #fffaf0;
}

.hero-action-card > p {
  margin: 9px 0 18px;
  font-size: 0.75rem;
  color: rgba(221, 241, 234, 0.64);
}

.hero-action-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 19px;
}

.hero-action-progress > i {
  height: 5px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(201, 244, 232, 0.12);
}

.hero-action-progress > i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #19c4b2, #f0bd3d);
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-action-progress > span {
  font-size: 0.64rem;
  color: rgba(224, 243, 236, 0.66);
}

.hero-action-progress > span strong {
  margin-right: 3px;
  color: #fff;
}

.hero-action-card > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 244, 232, 0.12);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 760;
  color: #92e9db;
}

.hero-action-card > a span {
  transition: transform 0.25s ease;
}

.hero-action-card > a:hover span,
.hero-action-card > a:focus-visible span {
  transform: translate(3px, -3px);
}

.hero-map-meta {
  position: absolute;
  z-index: 8;
  left: 24px;
  right: 24px;
  bottom: 19px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.47rem;
  letter-spacing: 0.08em;
  color: rgba(220, 242, 235, 0.55);
}

.hero-map-meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-map-meta span:first-child i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3bf;
  box-shadow: 0 0 0 4px rgba(34, 211, 191, 0.12);
}

.hero-map-meta a {
  pointer-events: auto;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Fotografías: relato continuo, sin textos encima de los rostros
   ========================================================================== */

.usage-scenes {
  margin: 0;
  padding-block: clamp(76px, 8vw, 126px);
  background:
    radial-gradient(circle at 93% 10%, rgba(226, 159, 66, 0.13), transparent 25%),
    var(--mc-cream);
}

.usage-scenes::after {
  opacity: 0.45;
}

.usage-scenes-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.52fr);
  align-items: end;
  gap: clamp(34px, 7vw, 96px);
  margin-bottom: 38px;
}

.usage-scenes-heading h2 {
  max-width: 900px;
  font-size: clamp(3.6rem, 6.2vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.usage-scenes-heading > div:last-child {
  padding-bottom: 8px;
}

.usage-scenes-heading > div:last-child > p:first-child {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #59635d;
}

.usage-scenes-disclosure {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(88, 84, 68, 0.13);
  border-radius: 12px;
  background: rgba(255, 250, 241, 0.7);
  font-size: 0.68rem !important;
  line-height: 1.5 !important;
}

.usage-story-marker {
  min-height: 0;
  margin-bottom: 34px;
  padding: 12px 0;
}

.usage-story-marker > p {
  max-width: 420px;
}

.usage-gallery {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: clamp(26px, 4vw, 54px);
  padding: 0;
}

.usage-gallery::before {
  display: none;
}

.usage-shot:nth-child(n) {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.45fr);
  grid-template-rows: minmax(0, 1fr);
  grid-column: 1;
  grid-row: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(42, 63, 55, 0.12);
  border-radius: 30px 17px 30px 17px;
  background: #fffaf1;
  box-shadow: 0 24px 70px rgba(43, 50, 45, 0.12);
}

.usage-shot:nth-child(even) {
  grid-template-columns: minmax(270px, 0.45fr) minmax(0, 1.55fr);
}

.usage-shot::before {
  z-index: 5;
  top: 18px;
  left: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(6, 25, 20, 0.72);
  backdrop-filter: blur(12px);
  color: #fff;
}

.usage-shot::after {
  display: none;
}

.photo-window {
  position: relative;
  min-width: 0;
  height: clamp(450px, 44vw, 650px);
  overflow: hidden;
  background: #18332c;
}

.photo-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 226, 159, 0.08), transparent 28%),
    linear-gradient(0deg, rgba(7, 25, 20, 0.12), transparent 28%);
  mix-blend-mode: screen;
}

.photo-window img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.045);
  transition: transform 1.15s cubic-bezier(0.2, 0.75, 0.2, 1), filter 0.7s ease;
}

.usage-shot:nth-child(1) .photo-window img {
  object-position: 55% center;
}

.usage-shot:nth-child(2) .photo-window img {
  object-position: 48% center;
}

.usage-shot:nth-child(3) .photo-window img {
  object-position: 54% center;
}

.usage-shot:nth-child(4) .photo-window img {
  object-position: 50% center;
}

.usage-shot:hover .photo-window img,
.field-note:hover .photo-window img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.085);
}

.usage-shot figcaption {
  position: relative;
  inset: auto;
  z-index: 2;
  min-height: 0;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: clamp(28px, 4vw, 58px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(21, 155, 141, 0.11), transparent 33%),
    #fffaf1;
  box-shadow: none;
  color: var(--mc-ink);
}

.usage-shot:nth-child(even) .photo-window {
  order: 2;
}

.usage-shot:nth-child(even) figcaption {
  order: 1;
  background:
    radial-gradient(circle at 0 100%, rgba(220, 145, 45, 0.12), transparent 36%),
    #fffaf1;
}

.usage-shot figcaption::before {
  content: "";
  position: static;
  width: 44px;
  height: 3px;
  margin-bottom: 7px;
  border: 0;
  border-radius: 999px;
  background: var(--mc-teal);
  box-shadow: none;
}

.usage-shot:nth-child(even) figcaption::before {
  background: var(--mc-sun);
}

.usage-shot figcaption span {
  font-size: 0.54rem;
  letter-spacing: 0.13em;
  color: #8e6419;
}

.usage-shot figcaption strong,
.usage-shot:nth-child(1) figcaption strong {
  max-width: 440px;
  font-size: clamp(1.65rem, 3vw, 2.85rem);
  line-height: 0.98;
  color: #15241f;
}

.usage-shot figcaption small {
  margin-top: 6px;
  font-size: 0.49rem;
  color: #817970;
}

/* Segundo grupo fotográfico */

.field-notes {
  padding-block: clamp(82px, 9vw, 138px);
  background-color: var(--mc-paper);
}

.field-notes-heading {
  margin-bottom: clamp(46px, 6vw, 76px);
}

.field-notes-heading h2 {
  font-size: clamp(3.7rem, 6.6vw, 7.5rem);
}

.field-notes-grid {
  gap: clamp(18px, 2.4vw, 32px);
}

.field-note {
  overflow: hidden;
}

.field-note .photo-window {
  height: clamp(340px, 31vw, 470px);
}

.field-note .photo-window img {
  object-position: 50% center;
}

.field-note:nth-child(3) .photo-window img {
  object-position: 61% center;
}

.field-note > .photo-window {
  border-radius: 28px 18px 0 0;
}

.field-note > .photo-window + figcaption {
  border-top: 3px solid var(--mc-teal);
}

.field-note:nth-child(2) > .photo-window + figcaption {
  border-top-color: var(--mc-sun);
}

.field-note:nth-child(3) > .photo-window + figcaption {
  border-top-color: var(--mc-violet);
}

.field-note > .photo-window + figcaption {
  border-radius: 0 0 28px 18px;
}

/* Menos repetición y menos “aire muerto” entre capítulos */

.thesis-strip {
  display: none;
}

.territory-section {
  margin: 0;
}

.live-lab {
  padding-block: clamp(88px, 9vw, 132px);
}

.section {
  padding-block: clamp(74px, 8vw, 118px);
}

.section + .section {
  border-top: 1px solid rgba(21, 60, 50, 0.08);
}

/* Movimiento fotográfico pausado, como una escena observada */

@keyframes photo-breathe {
  from {
    transform: scale(1.045) translate3d(-0.5%, 0, 0);
  }
  to {
    transform: scale(1.085) translate3d(0.5%, -0.8%, 0);
  }
}

.js .usage-shot.is-visible .photo-window img,
.js .field-note.is-visible .photo-window img {
  animation: photo-breathe 13s ease-in-out both infinite alternate;
}

.js .usage-shot:hover .photo-window img,
.js .field-note:hover .photo-window img {
  animation-play-state: paused;
}

/* ==========================================================================
   Tableta y móvil
   ========================================================================== */

@media (max-width: 980px) {
  .hero-map-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
    gap: 26px;
  }

  .hero-map-experience h1 {
    font-size: clamp(4.15rem, 8.5vw, 6.5rem);
  }

  .usage-shot:nth-child(n),
  .usage-shot:nth-child(even) {
    grid-template-columns: minmax(0, 1.28fr) minmax(250px, 0.72fr);
  }

  .usage-shot:nth-child(even) {
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 64px;
  }

  .site-header {
    top: 7px;
  }

  .site-header .header-inner {
    min-height: 55px;
    width: calc(100% - 22px);
    padding: 0 13px;
    border-radius: 17px;
  }

  .site-header .brand-symbol {
    width: 23px;
    height: 23px;
  }

  .site-header .brand-copy strong {
    font-size: 0.76rem;
  }

  .site-header .brand-copy small {
    display: none;
  }

  .site-header .menu-toggle {
    width: 35px;
    height: 35px;
  }

  .hero-map-experience,
  .hero-map-experience.hero {
    min-height: max(780px, 100svh);
  }

  .hero-map-experience::before {
    background:
      linear-gradient(0deg, rgba(3, 18, 15, 0.94) 0%, rgba(3, 18, 15, 0.48) 42%, rgba(3, 18, 15, 0.17) 68%, rgba(3, 18, 15, 0.6) 100%);
  }

  .hero-map-stage {
    --hero-map-scale: 1.28;
  }

  .hero-map-stage > iframe {
    inset: -5% -48%;
    width: 196%;
    height: 110%;
    filter: saturate(0.74) contrast(1.12) brightness(0.68) sepia(0.1) hue-rotate(102deg);
  }

  .hero-map-grid {
    background-size: 46px 46px;
  }

  .hero-map-layout {
    width: calc(100% - 28px);
    min-height: max(780px, 100svh);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(245px, 1fr) auto;
    grid-template-areas:
      "award"
      "copy"
      "card";
    gap: 17px;
    padding: 73px 0 52px;
  }

  .hero-map-experience .award-notice {
    width: 100%;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 13px;
    border-radius: 14px 20px 14px 20px;
  }

  .hero-map-experience .award-mark {
    width: 36px;
    height: 45px;
  }

  .hero-map-experience .award-mark img {
    height: 43px;
  }

  .hero-map-experience .award-notice div > span {
    margin-bottom: 3px;
    font-size: 0.43rem;
    letter-spacing: 0.1em;
  }

  .hero-map-experience .award-notice strong {
    font-size: clamp(0.95rem, 4.5vw, 1.14rem);
    line-height: 1.03;
  }

  .hero-map-experience .award-notice p {
    margin-top: 4px;
    font-size: 0.55rem;
    line-height: 1.3;
  }

  .hero-map-experience .hero-copy {
    align-self: end;
    padding-bottom: 2px;
  }

  .hero-map-experience .eyebrow {
    margin-bottom: 9px;
    font-size: 0.49rem;
  }

  .hero-map-experience h1 {
    max-width: 540px;
    font-size: clamp(3.3rem, 15vw, 4.75rem);
    line-height: 0.84;
    letter-spacing: -0.06em;
  }

  .hero-map-experience .hero-lead {
    max-width: 420px;
    margin-top: 14px;
    font-size: 0.82rem;
    line-height: 1.48;
  }

  .hero-scroll-cue {
    margin-top: 13px;
    font-size: 0.48rem;
  }

  .hero-scroll-cue i {
    width: 31px;
    height: 31px;
  }

  .hero-action-card {
    padding: 16px 17px 15px;
    border-radius: 19px 12px 19px 12px;
    background: rgba(5, 29, 23, 0.91);
  }

  .hero-action-top {
    margin-bottom: 9px;
  }

  .hero-action-top > span {
    font-size: 0.43rem;
  }

  .hero-action-top em {
    padding: 5px 7px;
    font-size: 0.48rem;
  }

  .hero-action-card h2 {
    max-width: 310px;
    font-size: clamp(1.2rem, 5.7vw, 1.55rem);
  }

  .hero-action-card > p {
    margin: 5px 0 10px;
    font-size: 0.62rem;
  }

  .hero-action-progress {
    margin-bottom: 10px;
  }

  .hero-action-card > a {
    padding-top: 10px;
    font-size: 0.59rem;
  }

  .hero-map-pin {
    gap: 6px;
  }

  .hero-map-pin > i {
    width: 19px;
    height: 19px;
    border-width: 5px;
  }

  .hero-map-pin > span {
    display: none;
    padding: 6px 8px;
    font-size: 0.49rem;
  }

  .hero-map-pin.is-active > span {
    display: block;
  }

  .hero-map-tools {
    right: 12px;
    top: 38%;
    gap: 5px;
  }

  .hero-map-tools button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .hero-map-meta {
    left: 14px;
    right: auto;
    top: 184px;
    bottom: auto;
    font-size: 0.41rem;
  }

  .hero-map-meta span:last-child {
    display: none;
  }

  .route-water-paving {
    left: 31%;
    top: 61%;
    width: 28%;
  }

  .usage-scenes {
    padding-block: 58px 72px;
  }

  .usage-scenes-heading {
    display: block;
    margin-bottom: 26px;
  }

  .usage-scenes-heading h2 {
    max-width: 500px;
    font-size: clamp(2.85rem, 13.5vw, 4.15rem);
    line-height: 0.91;
  }

  .usage-scenes-heading > div:last-child {
    padding: 0;
    margin-top: 22px;
  }

  .usage-scenes-heading > div:last-child > p:first-child {
    max-width: 520px;
    font-size: 0.87rem;
    line-height: 1.55;
  }

  .usage-scenes-disclosure {
    margin-top: 12px;
    padding: 10px 11px;
    font-size: 0.61rem !important;
  }

  .usage-story-marker {
    display: none;
  }

  .usage-gallery {
    gap: 25px;
    padding: 0;
  }

  .usage-shot:nth-child(n),
  .usage-shot:nth-child(even) {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    border-radius: 24px 14px 24px 14px;
  }

  .usage-shot:nth-child(even) .photo-window,
  .usage-shot:nth-child(even) figcaption {
    order: initial;
  }

  .usage-shot .photo-window {
    height: clamp(360px, 108vw, 500px);
  }

  .usage-shot:nth-child(1) .photo-window img {
    object-position: 52% center;
  }

  .usage-shot:nth-child(2) .photo-window img {
    object-position: 45% center;
  }

  .usage-shot:nth-child(3) .photo-window img {
    object-position: 54% center;
  }

  .usage-shot::before {
    top: 12px;
    left: 12px;
    padding: 6px 8px;
    font-size: 0.36rem;
  }

  .usage-shot figcaption {
    min-height: 0;
    gap: 7px;
    padding: 20px 19px 22px;
  }

  .usage-shot figcaption::before {
    width: 30px;
    height: 2px;
    margin-bottom: 4px;
  }

  .usage-shot figcaption span {
    font-size: 0.43rem;
  }

  .usage-shot figcaption strong,
  .usage-shot:nth-child(1) figcaption strong {
    max-width: 430px;
    font-size: clamp(1.35rem, 6.8vw, 1.78rem);
    line-height: 1.02;
  }

  .usage-shot figcaption small {
    font-size: 0.4rem;
  }

  .field-notes {
    padding-block: 70px 78px;
  }

  .field-notes-heading {
    margin-bottom: 36px;
  }

  .field-notes-heading h2 {
    font-size: clamp(2.85rem, 13.5vw, 4.1rem);
  }

  .field-notes-grid {
    gap: 25px;
    padding: 0;
  }

  .field-notes-grid::before,
  .field-note::before {
    display: none;
  }

  .field-note .photo-window {
    height: clamp(330px, 98vw, 450px);
  }

  .field-note:nth-child(n) {
    border-radius: 23px 14px 23px 14px;
  }

  .field-note > .photo-window,
  .field-note > .photo-window + figcaption {
    border-radius: 0;
  }

  .field-note > .photo-window {
    border-radius: 23px 14px 0 0;
  }

  .field-note > .photo-window + figcaption {
    border-radius: 0 0 23px 14px;
  }

  .live-lab {
    padding-block: 76px;
  }

  .section {
    padding-block: 66px;
  }
}

@media (max-width: 390px) {
  .hero-map-layout {
    width: calc(100% - 22px);
    gap: 13px;
    padding-top: 69px;
  }

  .hero-map-experience .award-notice {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 9px 10px;
  }

  .hero-map-experience .award-mark {
    width: 31px;
    height: 39px;
  }

  .hero-map-experience .award-mark img {
    height: 38px;
  }

  .hero-map-experience .award-notice strong {
    font-size: 0.9rem;
  }

  .hero-map-experience .award-notice p {
    font-size: 0.5rem;
  }

  .hero-map-experience h1 {
    font-size: clamp(3.05rem, 15.2vw, 3.7rem);
  }

  .hero-map-experience .hero-lead {
    font-size: 0.76rem;
  }

  .hero-action-card {
    padding: 14px;
  }

  .hero-map-meta {
    top: 174px;
  }

  .usage-shot .photo-window {
    height: 365px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-map-stage > iframe,
  .hero-map-pin > i,
  .hero-map-pin > span,
  .hero-action-card,
  .photo-window img {
    transition: none;
  }

  .hero-map-route i,
  .hero-map-pin > i::after,
  .js .usage-shot.is-visible .photo-window img,
  .js .field-note.is-visible .photo-window img {
    animation: none;
  }
}

/* ==========================================================================
   Impulso móvil: lectura secuencial, trazabilidad y portal al prototipo
   ========================================================================== */

.usage-trace-rail {
  position: absolute;
  z-index: 4;
  left: -20px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(14, 119, 108, 0.13);
  pointer-events: none;
}

.usage-trace-rail > i {
  width: 100%;
  height: calc(var(--usage-trace-progress, 0) * 100%);
  display: block;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--mc-sun), var(--mc-teal) 48%, var(--mc-violet));
  box-shadow: 0 0 17px rgba(16, 185, 168, 0.38);
  transition: height 0.18s linear;
}

.usage-shot[data-usage-step] {
  position: relative;
}

.usage-shot[data-usage-step]::after {
  content: attr(data-usage-step);
  position: absolute;
  z-index: 7;
  left: -39px;
  top: 46%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 4px solid var(--mc-cream);
  border-radius: 50%;
  background: #fffaf1;
  box-shadow: 0 0 0 1px rgba(12, 103, 94, 0.14);
  font-family: var(--font-mono);
  font-size: 0.49rem;
  font-weight: 800;
  color: #56716a;
  opacity: 0;
  transform: translateY(12px) scale(0.8);
  transition: opacity 0.45s ease, transform 0.45s ease, color 0.45s ease, background 0.45s ease;
}

.usage-shot[data-usage-step].is-trace-active::after {
  opacity: 1;
  color: #06201a;
  background: var(--mc-teal-soft);
  transform: translateY(0) scale(1);
}

.usage-shot[data-usage-step="2"],
.usage-shot[data-usage-step="4"],
.usage-shot[data-usage-step="6"] {
  grid-template-columns: minmax(270px, 0.45fr) minmax(0, 1.55fr);
}

.usage-shot[data-usage-step="2"] .photo-window,
.usage-shot[data-usage-step="4"] .photo-window,
.usage-shot[data-usage-step="6"] .photo-window {
  order: 2;
}

.usage-shot[data-usage-step="2"] figcaption,
.usage-shot[data-usage-step="4"] figcaption,
.usage-shot[data-usage-step="6"] figcaption {
  order: 1;
  background:
    radial-gradient(circle at 0 100%, rgba(220, 145, 45, 0.12), transparent 36%),
    #fffaf1;
}

.photo-app-hotspot {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px 8px 9px;
  border: 1px solid rgba(220, 255, 247, 0.26);
  border-radius: 999px;
  background: rgba(4, 26, 21, 0.82);
  box-shadow: 0 16px 36px rgba(0, 11, 8, 0.28);
  backdrop-filter: blur(14px);
  color: #f2fff9;
  cursor: pointer;
}

.photo-app-hotspot > i {
  position: relative;
  width: 27px;
  height: 27px;
  display: block;
  border: 1px solid rgba(154, 244, 225, 0.44);
  border-radius: 50%;
  background: #13aa9b;
  box-shadow: 0 0 0 0 rgba(31, 215, 193, 0.34);
  animation: app-hotspot-pulse 2.2s ease-out infinite;
}

.photo-app-hotspot > i::before,
.photo-app-hotspot > i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #ecfff9;
  transform: translate(-50%, -50%);
}

.photo-app-hotspot > i::before {
  width: 10px;
  height: 2px;
}

.photo-app-hotspot > i::after {
  width: 2px;
  height: 10px;
}

.photo-app-hotspot > span {
  font-family: var(--font-mono);
  font-size: 0.49rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes app-hotspot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 215, 193, 0.36);
  }
  70%,
  100% {
    box-shadow: 0 0 0 11px rgba(31, 215, 193, 0);
  }
}

.app-preview-dialog {
  width: min(94vw, 920px);
  max-width: none;
  height: min(90svh, 820px);
  max-height: none;
  grid-template-columns: minmax(240px, 0.58fr) minmax(280px, 0.42fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  margin: auto;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(184, 238, 224, 0.2);
  border-radius: 34px 20px 34px 20px;
  background:
    radial-gradient(circle at 16% 15%, rgba(20, 185, 168, 0.18), transparent 32%),
    #061c17;
  box-shadow: 0 44px 140px rgba(0, 0, 0, 0.56);
  color: #f4fff9;
}

.app-preview-dialog[open] {
  display: grid;
  animation: app-preview-enter 0.52s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.app-preview-dialog::backdrop {
  background: rgba(2, 12, 9, 0.78);
  backdrop-filter: blur(13px);
  animation: app-preview-backdrop 0.35s ease both;
}

.app-preview-close {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220, 255, 247, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 300 1.5rem/1 var(--font-sans);
  cursor: pointer;
}

.app-preview-copy > span {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #71ddcf;
}

.app-preview-copy h3 {
  max-width: 500px;
  margin: 18px 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6.6vw, 6.8rem);
  font-weight: 450;
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: #fff9ed;
}

.app-preview-copy p {
  max-width: 430px;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(223, 242, 235, 0.7);
}

.app-preview-device {
  position: relative;
  align-self: center;
  justify-self: center;
  height: min(72svh, 680px);
  overflow: hidden;
  border: 7px solid #040a08;
  border-radius: 42px;
  background: #020806;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.app-preview-device img {
  width: auto;
  height: 100%;
  display: block;
  object-fit: contain;
}

@keyframes app-preview-enter {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes app-preview-backdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Una sola entrada ceremonial; nunca compite con la lectura. */

.js .hero-map-experience .award-notice {
  animation: award-ceremony 0.78s cubic-bezier(0.18, 0.82, 0.24, 1) 0.08s both;
  overflow: hidden;
}

.hero-map-experience .award-notice::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -30%;
  width: 22%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: skewX(-18deg);
  animation: award-light-pass 0.85s ease 0.86s both;
}

@keyframes award-ceremony {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0 round 20px);
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 20px);
    transform: translateY(0);
  }
}

@keyframes award-light-pass {
  from {
    left: -30%;
  }
  to {
    left: 118%;
  }
}

/* Lente táctil: solo aparece mientras el mapa recibe intención. */

.hero-map-stage::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle 132px at var(--touch-x, 50%) var(--touch-y, 50%),
    rgba(80, 255, 224, 0.22),
    rgba(80, 255, 224, 0.07) 34%,
    transparent 72%
  );
  mix-blend-mode: screen;
  transition: opacity 0.26s ease;
}

.hero-map-stage.is-touching::after {
  opacity: 1;
}

@media (max-width: 720px) {
  body {
    overflow-x: clip;
  }

  .site-header .header-inner {
    height: 56px;
    min-height: 56px;
  }

  .hero-map-experience,
  .hero-map-experience.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(430px, 64svh) auto auto auto;
    gap: 14px;
    min-height: 0;
    padding:
      calc(76px + env(safe-area-inset-top))
      12px
      calc(28px + env(safe-area-inset-bottom));
    overflow: clip;
    background:
      radial-gradient(circle at 88% 18%, rgba(17, 158, 143, 0.17), transparent 26%),
      #061c17;
  }

  .hero-map-experience::before,
  .hero-map-experience::after {
    display: none;
  }

  .hero-map-layout {
    display: contents;
  }

  .hero-map-experience .award-notice {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    min-height: 138px;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 15px;
    margin: 0;
    padding: 17px 16px;
    border-radius: 23px 14px 23px 14px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
  }

  .hero-map-experience .award-mark {
    width: 62px;
    height: 76px;
  }

  .hero-map-experience .award-mark img {
    height: 73px;
  }

  .hero-map-experience .award-notice div > span {
    margin-bottom: 7px;
    font-size: 0.5rem;
    line-height: 1.25;
    letter-spacing: 0.11em;
  }

  .hero-map-experience .award-notice strong {
    font-size: clamp(1.25rem, 6.1vw, 1.55rem);
    line-height: 1.02;
  }

  .hero-map-experience .award-notice p {
    margin-top: 8px;
    font-size: 0.68rem;
    line-height: 1.4;
  }

  .hero-map-stage {
    grid-row: 2;
    grid-column: 1;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 430px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(177, 237, 222, 0.17);
    border-radius: 30px 17px 30px 17px;
    box-shadow: 0 30px 70px rgba(0, 6, 4, 0.42);
  }

  .hero-map-stage > iframe {
    inset: -5% -42%;
    width: 184%;
    height: 110%;
    filter: saturate(0.75) contrast(1.1) brightness(0.74) sepia(0.08) hue-rotate(102deg);
    transform:
      translate(
        calc(var(--hero-focus-x) + var(--hero-pan-x)),
        calc(var(--hero-focus-y) + var(--hero-pan-y) + var(--hero-scroll-shift, 0px))
      )
      scale(var(--hero-visual-scale, var(--hero-map-scale)));
  }

  .hero-map-grid {
    border-radius: inherit;
  }

  .hero-map-tools {
    top: auto;
    right: 11px;
    bottom: 12px;
    transform: none;
  }

  .hero-map-tools button {
    width: 42px;
    height: 42px;
  }

  .hero-map-pin {
    min-width: 44px;
    min-height: 44px;
  }

  .hero-map-pin > i {
    width: 21px;
    height: 21px;
  }

  .hero-map-pin.is-active > span {
    display: block;
    font-size: 0.54rem;
  }

  .hero-map-experience .hero-copy {
    grid-row: 3;
    grid-column: 1;
    position: relative;
    z-index: 6;
    align-self: auto;
    width: 100%;
    padding: 25px 6px 10px;
  }

  .hero-map-experience .eyebrow {
    margin-bottom: 11px;
    font-size: 0.51rem;
  }

  .hero-map-experience h1 {
    max-width: 540px;
    font-size: clamp(3rem, 13vw, 4.15rem);
    line-height: 0.87;
  }

  .hero-map-experience .hero-lead {
    max-width: 440px;
    margin-top: 15px;
    font-size: 0.84rem;
    line-height: 1.52;
  }

  .hero-scroll-cue {
    margin-top: 16px;
  }

  .hero-action-card {
    grid-row: 4;
    grid-column: 1;
    position: relative;
    z-index: 6;
    width: 100%;
    margin: 0;
    padding: 18px;
  }

  .hero-map-meta {
    grid-row: 5;
    grid-column: 1;
    position: static;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 5px 0;
    pointer-events: auto;
  }

  .hero-map-meta span:last-child {
    display: inline;
    text-align: right;
  }

  .usage-gallery {
    position: relative;
    gap: 30px;
    padding-left: 17px;
  }

  .usage-trace-rail {
    display: block;
    left: 1px;
  }

  .usage-shot[data-usage-step],
  .usage-shot[data-usage-step="2"],
  .usage-shot[data-usage-step="4"],
  .usage-shot[data-usage-step="6"] {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .usage-shot[data-usage-step] .photo-window,
  .usage-shot[data-usage-step] figcaption {
    order: initial;
  }

  .usage-shot[data-usage-step]::after {
    left: -30px;
    top: 28px;
    width: 26px;
    height: 26px;
    border-width: 3px;
    font-size: 0.4rem;
  }

  .usage-shot .photo-window {
    height: clamp(390px, 118vw, 530px);
  }

  .usage-shot-new .photo-window img {
    object-position: 49% center;
  }

  .usage-shot[data-usage-step="2"] .photo-window img {
    object-position: 45% center;
  }

  .usage-shot[data-usage-step="5"] .photo-window img {
    object-position: 50% center;
  }

  .js .usage-shot.is-visible .photo-window img,
  .js .field-note.is-visible .photo-window img {
    animation: none;
    transform:
      translate3d(0, var(--photo-shift, 0px), 0)
      scale(var(--photo-scale, 1.075));
    transition: transform 0.12s linear, filter 0.5s ease;
  }

  .photo-app-hotspot {
    right: 12px;
    bottom: 12px;
  }

  .app-preview-dialog {
    width: calc(100vw - 20px);
    height: calc(100svh - 20px);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 26px 18px 18px;
    border-radius: 28px 17px 28px 17px;
  }

  .app-preview-copy {
    padding-right: 40px;
  }

  .app-preview-copy > span {
    font-size: 0.45rem;
  }

  .app-preview-copy h3 {
    margin: 9px 0 7px;
    font-size: clamp(2.25rem, 10vw, 3.3rem);
    line-height: 0.92;
  }

  .app-preview-copy p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .app-preview-device {
    height: 100%;
    min-height: 0;
    border-width: 5px;
    border-radius: 31px;
  }

  .app-preview-device img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .section,
  .field-notes,
  .live-lab {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
}

@media (max-width: 390px) {
  .hero-map-experience,
  .hero-map-experience.hero {
    grid-template-rows: auto minmax(430px, 61svh) auto auto auto;
    padding-inline: 10px;
  }

  .hero-map-experience .award-notice {
    min-height: 130px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .hero-map-experience .award-mark {
    width: 53px;
    height: 67px;
  }

  .hero-map-experience .award-mark img {
    height: 64px;
  }

  .hero-map-experience .award-notice strong {
    font-size: 1.15rem;
  }

  .hero-map-experience .award-notice p {
    font-size: 0.62rem;
  }

  .hero-map-experience h1 {
    font-size: clamp(2.75rem, 13vw, 3.5rem);
  }

  .hero-map-meta {
    font-size: 0.38rem;
  }

  .usage-shot .photo-window {
    height: 405px;
  }
}

@media (max-height: 620px) and (max-width: 920px) and (orientation: landscape) {
  .hero-map-experience,
  .hero-map-experience.hero {
    grid-template-rows: auto 480px auto auto auto;
  }

  .hero-map-experience .award-notice {
    min-height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-map-experience .award-notice,
  .hero-map-experience .award-notice::after,
  .photo-app-hotspot > i,
  .app-preview-dialog[open],
  .app-preview-dialog::backdrop {
    animation: none;
  }

  .hero-map-stage::after {
    display: none;
  }

  .usage-trace-rail > i,
  .usage-shot[data-usage-step]::after,
  .js .usage-shot.is-visible .photo-window img,
  .js .field-note.is-visible .photo-window img {
    transition: none;
    transform: none;
  }
}
