.nairobi-footer-view {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #221812;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.nairobi-footer-view::-webkit-scrollbar { display: none; }
.nairobi-footer-view .stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1348 / 400;
  overflow: hidden;
}
.nairobi-footer-view .scene {
  position: absolute;
  left: -4.25%;
  bottom: -2%;
  width: 108.5%;
  aspect-ratio: 3 / 1;
}
.nairobi-footer-view .scene img,
.nairobi-footer-view canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}
.nairobi-footer-view canvas { pointer-events: none; }
.nairobi-footer-view .night { opacity: 0; transition: opacity 450ms ease; }
.nairobi-footer-view[data-tone="night"] .night { opacity: 1; }
.nairobi-footer-view .hotspot {
  position: absolute;
  left: var(--hot-x);
  top: var(--hot-y);
  z-index: 1;
  width: var(--hot-w);
  height: var(--hot-h);
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.nairobi-footer-view .hotspot:hover { border-color: #ffe4af80; }
.nairobi-footer-view .hotspot.moving:hover { border-color: transparent; }
.nairobi-footer-view:focus-visible,
.nairobi-footer-view .hotspot:focus-visible { outline: 2px solid #ffe4af; outline-offset: 2px; }
.nairobi-footer-view:not([data-ready]) .hotspot,
.nairobi-footer-view .hotspot[hidden] { display: none; }
.nairobi-footer-view .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 749px) {
  .nairobi-footer-view { height: min(56.25vw, 360px); overflow-x: auto; overflow-y: hidden; }
  .nairobi-footer-view .stage { width: min(168.75vw, 1080px); height: 100%; aspect-ratio: auto; }
  .nairobi-footer-view .scene { left: 0; bottom: 0; width: 100%; }
  .nairobi-footer-view .hotspot { min-width: 44px; min-height: 44px; transform: translateX(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .nairobi-footer-view .night { transition: none; }
}

/* mark.co.ke: soften the seam between the page and the sky */
#site-nairobi { position: relative; }
#site-nairobi::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 12%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, var(--bg, #FAF8F5) 0, color-mix(in srgb, var(--bg, #FAF8F5) 50%, transparent) 40%, transparent 100%);
}
