body.np-terrain {
  --site-bg-image: none;
  background: #07121e;
  isolation: isolate;
}
body.np-terrain > :is(.hero-bg, .hero-scrim)[aria-hidden="true"] { display: none; }
body.np-terrain::before, body.np-terrain::after { content: none; }
.terrain-field { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.terrain-tracks { position: absolute; top: 50%; left: 50%; transform-origin: center; }
@media (hover: none) and (pointer: coarse) {
  /* Hold the horizon still as the mobile browser controls fold away. */
  .terrain-field { bottom: auto; height: 100vh; height: 100lvh; }
  body.np-terrain .nav, body.np-terrain .footer {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: #09131ff5;
  }
}
.terrain-field picture, .terrain-field img { display: block; width: 100%; height: 100%; }
.terrain-field img { object-fit: cover; }
.terrain-field i {
  position: absolute; top: 0; left: 0; width: var(--dot-size); height: var(--dot-size); border-radius: 50%;
  background: #ffdf94; box-shadow: 0 0 var(--dot-glow) #efb459; opacity: 0;
}
.terrain-field i:nth-of-type(3n) { background: #adf9ef; box-shadow: 0 0 var(--dot-glow) #68c6bf; }
body.np-terrain :is(main, .library) { background-color: transparent; }
/* Shade the landscape once so its brightness carries through section boundaries. */
.terrain-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(6 17 29 / 55%);
}
/* Articles use dark ink. Keep one continuous paper tint across the reading
   column and fade it out inside the existing space before the dark footer. */
body.editorial-foundation.np-terrain #main-content {
  background: linear-gradient(to bottom, rgb(238 244 250 / 96%) calc(100% - 60px), transparent);
}
.editorial-foundation.np-terrain :is(.ef-byline, .ef-dates) { border-block: 0; }
body.np-terrain .footer {
  border-top: 0;
  background: linear-gradient(180deg, transparent, #09131fee);
}
.np-terrain .terrain-motion {
  position: fixed; z-index: 60; bottom: max(1rem,env(safe-area-inset-bottom)); left: 1rem;
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid #829a9b87; border-radius: 50%; background: #07121ded; color: #efdcaf;
  font: 14px/1 system-ui; cursor: pointer;
}
.np-terrain .terrain-motion[hidden] { display: none; }
.terrain-motion:focus-visible { outline: 2px solid #ffd384; outline-offset: 3px; }
@media print {
  .terrain-field, .terrain-motion { display: none !important; }
}
.analytics-consent-visible .terrain-motion {
  bottom: auto;
  top: calc(var(--nav-h, 84px) + 8px);
}
