/* First-paint atlas opening. Self-contained — the JS bundle has not mounted yet. */

html.unmapped-booting,
html.unmapped-booting body {
  overflow: hidden;
}

#unmapped-boot {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  background: #f5f0e6;
  color: #1a2a22;
  font-family: Georgia, "Times New Roman", serif;
}

#unmapped-boot .ub-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(118deg, #afa68914 0 1px, transparent 1px 6px),
    radial-gradient(ellipse at 50% 42%, #b66e4a16, transparent 54%),
    radial-gradient(circle at 12% 8%, #b66e4a12, transparent 34%),
    radial-gradient(circle at 90% 90%, #24382f12, transparent 40%);
  animation: ub-atmosphere 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Raking light across the paper — one slow pass, like a lamp being moved. */
#unmapped-boot .ub-sweep {
  position: absolute;
  inset: -20% -40%;
  pointer-events: none;
  background: linear-gradient(
    104deg,
    transparent 34%,
    #fffcf50f 44%,
    #fffcf538 50%,
    #fffcf50f 56%,
    transparent 66%
  );
  opacity: 0;
  animation: ub-sweep 4.6s cubic-bezier(0.36, 0, 0.28, 1) 0.5s infinite;
}

#unmapped-boot .ub-graticule,
#unmapped-boot .ub-topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#unmapped-boot .ub-graticule path {
  fill: none;
  stroke: #24382f;
  stroke-width: 0.7;
  stroke-opacity: 0.07;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    ub-contour 3.4s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    ub-drift 26s ease-in-out infinite alternate;
}

#unmapped-boot .ub-graticule path:nth-child(2) {
  animation-delay: 0.12s, 0s;
}

#unmapped-boot .ub-graticule path:nth-child(3) {
  animation-delay: 0.24s, 0s;
}

#unmapped-boot .ub-graticule path:nth-child(4) {
  animation-delay: 0.36s, 0s;
}

#unmapped-boot .ub-graticule path:nth-child(5) {
  animation-delay: 0.2s, 0s;
}

#unmapped-boot .ub-graticule path:nth-child(6) {
  animation-delay: 0.34s, 0s;
}

#unmapped-boot .ub-graticule path:nth-child(7) {
  animation-delay: 0.48s, 0s;
}

#unmapped-boot .ub-topo path {
  fill: none;
  stroke: #24382f;
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ub-contour 2.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#unmapped-boot .ub-topo path:nth-child(1) {
  stroke-opacity: 0.22;
  animation-delay: 0.08s;
}

#unmapped-boot .ub-topo path:nth-child(2) {
  stroke-opacity: 0.15;
  animation-delay: 0.28s;
}

#unmapped-boot .ub-topo path:nth-child(3) {
  stroke-opacity: 0.1;
  animation-delay: 0.48s;
}

#unmapped-boot .ub-topo path:nth-child(4) {
  stroke-opacity: 0.08;
  animation-delay: 0.68s;
}

#unmapped-boot .ub-topo path:nth-child(5) {
  stroke-opacity: 0.06;
  animation-delay: 0.88s;
}

#unmapped-boot .ub-corner {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  pointer-events: none;
  border-color: #24382f3d;
  opacity: 0;
  animation: ub-corner 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

#unmapped-boot .ub-corner--nw {
  top: 1.5rem;
  left: 1.5rem;
  border-top: 1px solid;
  border-left: 1px solid;
}

#unmapped-boot .ub-corner--ne {
  top: 1.5rem;
  right: 1.5rem;
  border-top: 1px solid;
  border-right: 1px solid;
  animation-delay: 0.28s;
}

#unmapped-boot .ub-corner--sw {
  bottom: 1.5rem;
  left: 1.5rem;
  border-bottom: 1px solid;
  border-left: 1px solid;
  animation-delay: 0.36s;
}

#unmapped-boot .ub-corner--se {
  bottom: 1.5rem;
  right: 1.5rem;
  border-bottom: 1px solid;
  border-right: 1px solid;
  animation-delay: 0.44s;
}

#unmapped-boot .ub-plate {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(23.5rem, calc(100vw - 2.75rem));
  padding: 2.6rem 1.75rem 2.15rem;
  overflow: hidden;
  text-align: center;
  background: color-mix(in srgb, #fffcf5 78%, transparent);
  box-shadow:
    inset 0 0 0 1px #24382f14,
    0 18px 48px #24382f0d;
  animation: ub-plate-in 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#unmapped-boot .ub-plate__sheen {
  position: absolute;
  inset: 0 -60%;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 40%,
    #fffcf566 50%,
    transparent 60%
  );
  transform: translateX(-46%);
  opacity: 0;
  animation: ub-plate-sheen 3.2s cubic-bezier(0.36, 0, 0.28, 1) 1.1s infinite;
}

#unmapped-boot .ub-running {
  margin: 0 0 1.15rem;
  font-family: system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #5c6753;
  animation: ub-caption 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

#unmapped-boot .ub-mark-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  margin-bottom: 1.35rem;
  color: #24382f;
}

/* Slow bearing ring behind the mark — an instrument left running. */
#unmapped-boot .ub-compass {
  position: absolute;
  width: 6.4rem;
  height: 6.4rem;
  opacity: 0;
  animation:
    ub-compass-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards,
    ub-compass-turn 42s linear 0.55s infinite;
}

#unmapped-boot .ub-compass circle {
  fill: none;
  stroke: currentColor;
}

#unmapped-boot .ub-compass__ring {
  stroke-width: 0.5;
  stroke-opacity: 0.2;
}

#unmapped-boot .ub-compass__ticks {
  stroke-width: 1.4;
  stroke-opacity: 0.22;
  stroke-linecap: round;
  stroke-dasharray: 0.5 9.5;
}

#unmapped-boot .ub-mark {
  position: relative;
  z-index: 1;
  width: 4.6rem;
  height: 4.6rem;
}

#unmapped-boot .ub-mark .ub-halo,
#unmapped-boot .ub-mark ellipse,
#unmapped-boot .ub-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ub-draw 1.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#unmapped-boot .ub-mark .ub-halo {
  stroke-width: 0.7;
  stroke-opacity: 0.28;
  animation-duration: 1.7s;
}

#unmapped-boot .ub-mark path:nth-of-type(1) {
  animation-delay: 0.14s;
}

#unmapped-boot .ub-mark path:nth-of-type(2) {
  animation-delay: 0.28s;
}

#unmapped-boot .ub-mark path:nth-of-type(3) {
  animation-delay: 0.42s;
}

#unmapped-boot .ub-mark .ub-core {
  opacity: 0;
  transform-origin: 48px 48px;
  animation: ub-core 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

/* Type settles inward from wide tracking — the editorial signature. */
#unmapped-boot .ub-brand {
  margin: 0.1rem 0 0;
  font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  animation: ub-brand-in 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}

#unmapped-boot .ub-rule {
  width: 4.25rem;
  height: 1px;
  margin: 1.05rem 0 0.9rem;
  border: 0;
  background: #b66e4a;
  transform-origin: center;
  transform: scaleX(0);
  animation: ub-rule 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.72s forwards;
}

#unmapped-boot .ub-cap {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5c6753;
  animation: ub-caption 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.78s both;
}

#unmapped-boot .ub-line {
  margin: 1.2rem 0 0;
  font-size: 1rem;
  line-height: 1.45;
  color: #4e5946;
  animation: ub-caption 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.92s both;
}

#unmapped-boot .ub-measure {
  position: relative;
  width: 8.75rem;
  height: 1px;
  margin-top: 1.85rem;
  overflow: hidden;
  background: #24382f18;
}

#unmapped-boot .ub-measure > span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #b66e4a99, #b66e4a 62%, #c8b795);
  transform-origin: left center;
  transform: scaleX(0);
  animation: ub-measure 7.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* Exit — the plate is lifted away first, then the paper dissolves. */
#unmapped-boot.ub-exit {
  pointer-events: none;
  animation: ub-veil-out 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.14s forwards;
}

#unmapped-boot.ub-exit .ub-plate {
  animation: ub-plate-out 0.52s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#unmapped-boot.ub-exit .ub-sweep,
#unmapped-boot.ub-exit .ub-plate__sheen,
#unmapped-boot.ub-exit .ub-compass {
  animation-play-state: paused;
}

html.dark #unmapped-boot {
  background: #141915;
  color: #edf0e8;
}

html.dark #unmapped-boot .ub-atmosphere {
  background-image:
    repeating-linear-gradient(118deg, #edf0e80a 0 1px, transparent 1px 6px),
    radial-gradient(ellipse at 50% 42%, #b66e4a22, transparent 54%),
    radial-gradient(circle at 12% 8%, #b66e4a16, transparent 34%),
    radial-gradient(circle at 90% 90%, #edf0e810, transparent 40%);
}

html.dark #unmapped-boot .ub-sweep {
  background: linear-gradient(
    104deg,
    transparent 34%,
    #edf0e808 44%,
    #edf0e81c 50%,
    #edf0e808 56%,
    transparent 66%
  );
}

html.dark #unmapped-boot .ub-topo path,
html.dark #unmapped-boot .ub-graticule path {
  stroke: #edf0e8;
}

html.dark #unmapped-boot .ub-corner {
  border-color: #edf0e844;
}

html.dark #unmapped-boot .ub-plate {
  background: color-mix(in srgb, #1c241f 82%, transparent);
  box-shadow:
    inset 0 0 0 1px #edf0e814,
    0 18px 48px #00000040;
}

html.dark #unmapped-boot .ub-plate__sheen {
  background: linear-gradient(
    100deg,
    transparent 40%,
    #edf0e814 50%,
    transparent 60%
  );
}

html.dark #unmapped-boot .ub-cap,
html.dark #unmapped-boot .ub-line,
html.dark #unmapped-boot .ub-running {
  color: #c5d0be;
}

html.dark #unmapped-boot .ub-mark-wrap {
  color: #edf0e8;
}

html.dark #unmapped-boot .ub-measure {
  background: #edf0e818;
}

html.dark #unmapped-boot .ub-rule {
  background: #d48962;
}

html.dark #unmapped-boot .ub-measure > span {
  background: linear-gradient(90deg, #d4896299, #d48962 62%, #d7c8ae);
}

@keyframes ub-atmosphere {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ub-sweep {
  0% {
    opacity: 0;
    transform: translateX(-24%);
  }
  22% {
    opacity: 1;
  }
  70% {
    opacity: 0;
    transform: translateX(24%);
  }
  100% {
    opacity: 0;
    transform: translateX(24%);
  }
}

@keyframes ub-contour {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ub-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-10px, 6px, 0);
  }
}

@keyframes ub-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ub-plate-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    clip-path: inset(14% 0 0 0);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes ub-plate-sheen {
  0% {
    opacity: 0;
    transform: translateX(-46%);
  }
  18% {
    opacity: 1;
  }
  62% {
    opacity: 0;
    transform: translateX(46%);
  }
  100% {
    opacity: 0;
    transform: translateX(46%);
  }
}

@keyframes ub-caption {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ub-brand-in {
  from {
    opacity: 0;
    letter-spacing: 0.68em;
    text-indent: 0.68em;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    letter-spacing: 0.36em;
    text-indent: 0.36em;
    transform: none;
  }
}

@keyframes ub-rule {
  to {
    transform: scaleX(1);
  }
}

@keyframes ub-measure {
  0% {
    transform: scaleX(0);
  }
  28% {
    transform: scaleX(0.56);
  }
  100% {
    transform: scaleX(0.9);
  }
}

@keyframes ub-core {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  60% {
    opacity: 1;
    transform: scale(1.25);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ub-compass-in {
  to {
    opacity: 1;
  }
}

@keyframes ub-compass-turn {
  to {
    rotate: 360deg;
  }
}

@keyframes ub-corner {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ub-plate-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-22px) scale(1.015);
  }
}

@keyframes ub-veil-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #unmapped-boot .ub-atmosphere,
  #unmapped-boot .ub-sweep,
  #unmapped-boot .ub-plate__sheen,
  #unmapped-boot .ub-compass,
  #unmapped-boot .ub-graticule path,
  #unmapped-boot .ub-topo path,
  #unmapped-boot .ub-mark .ub-halo,
  #unmapped-boot .ub-mark path,
  #unmapped-boot .ub-mark ellipse,
  #unmapped-boot .ub-mark .ub-core,
  #unmapped-boot .ub-plate,
  #unmapped-boot .ub-running,
  #unmapped-boot .ub-brand,
  #unmapped-boot .ub-rule,
  #unmapped-boot .ub-cap,
  #unmapped-boot .ub-line,
  #unmapped-boot .ub-measure > span,
  #unmapped-boot .ub-corner {
    animation: none !important;
  }

  #unmapped-boot .ub-sweep,
  #unmapped-boot .ub-plate__sheen {
    display: none;
  }

  #unmapped-boot .ub-compass {
    opacity: 1;
  }

  #unmapped-boot .ub-plate {
    clip-path: none;
  }

  #unmapped-boot .ub-graticule path,
  #unmapped-boot .ub-topo path,
  #unmapped-boot .ub-mark .ub-halo,
  #unmapped-boot .ub-mark path,
  #unmapped-boot .ub-mark ellipse {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  #unmapped-boot .ub-mark .ub-core,
  #unmapped-boot .ub-corner {
    opacity: 1;
  }

  #unmapped-boot .ub-rule {
    transform: none;
  }

  #unmapped-boot .ub-measure > span {
    transform: none;
    width: 70%;
  }

  #unmapped-boot.ub-exit,
  #unmapped-boot.ub-exit .ub-plate {
    animation: none !important;
    opacity: 0;
    transform: none;
  }
}

/* Crawlable copy for non-JS auditors; clipped from visual layout. */
.seo-primer {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  #unmapped-boot .ub-plate {
    max-width: min(92vw, 28rem);
  }
}
