:root {
  --bg: #030306;
  --ink: #e8edf5;
  --accent: #b4c8ff;
  --spectral: #9275ff;
  --ice: #78ceff;
  --line: #aebfe429;
  --muted: #a5adbf;
}

.atlas-body:not(.atlas-reading) { overflow: hidden; }
.atlas-header {
  position: relative;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 73px;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  background: #030306;
}
.atlas-header nav { display: flex; align-items: center; gap: clamp(13px, 3vw, 44px); }
.atlas-header nav a { color: var(--muted); font-size: .875rem; }
.atlas-header nav a:hover, .atlas-header nav a:focus-visible { color: #fff; }
.atlas-header nav .atlas-return-glyph,
.atlas-header nav .atlas-return-glyph:hover,
.atlas-header nav .atlas-return-glyph:focus-visible,
.chapter-actions .atlas-return-glyph,
.atlas-action.atlas-return-glyph {
  display: inline-flex;
  min-width: 1.45em;
  align-items: center;
  justify-content: center;
  font: 500 1.2rem/1 var(--mono);
  letter-spacing: 0;
}
.atlas-reading .atlas-header { position: sticky; top: 0; background: #030306ec; backdrop-filter: blur(12px); }
.brand-word { display: inline-flex; align-items: baseline; gap: .045em; }
.brand-symbol { font: 1.18em/1 "DejaVu Sans", "Cambria Math", sans-serif; }
.atlas-intro h1 .anima-symbol {
  display: inline-block;
  position: relative;
  width: 1.12em;
  height: 1em;
  margin: 0 .035em 0 0;
  vertical-align: .045em;
  text-align: center;
  color: inherit;
  font: 400 .74em/1 "DejaVu Sans", "Cambria Math", sans-serif;
  letter-spacing: 0;
}
.atlas-intro h1 .anima-symbol.is-drawn { color: transparent; }
.anima-symbol-particles { position: absolute; inset: 0; width: 100%; height: 100%; }


.atlas {
  position: relative;
  isolation: isolate;
  height: calc(100svh - 73px);
  min-height: 475px;
  overflow: hidden;
  background: #030306;
}
.universe, .universe-canvas, .atlas-poster, .atlas-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.universe {
  touch-action: none;
  cursor: grab;
  overscroll-behavior: contain;
  user-select: none;
}
.universe.moving-camera { cursor: grabbing; }
.universe:focus-visible { outline-offset: -4px; }
.universe-canvas { display: block; pointer-events: none; }
.atlas-poster { display: block; pointer-events: none; }
.atlas-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 63% center; }
.atlas-painted .atlas-poster { visibility: hidden; }
.atlas:not(.atlas-painted) .universe-canvas { visibility: hidden; }

.atlas-labels { pointer-events: none; }
.atlas:not(.interactive-atlas) .atlas-labels { display: none; }
.atlas-star, .core-beacon {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  user-select: none;
  cursor: pointer;
}
.atlas-star {
  width: 1px;
  height: 1px;
  color: var(--ink);
}
.atlas-star::before {
  position: absolute;
  top: -17px;
  left: -17px;
  width: 34px;
  height: 34px;
  content: '';
  border: 1px solid transparent;
  border-radius: 50%;
}
.atlas-star.selected-star::before, .atlas-star:focus-visible::before { border-color: #b5c8fa88; }
.atlas-star:focus-visible { outline: none; }
.atlas-star span {
  display: block;
  position: absolute;
  top: 12px;
  left: 11px;
  color: #abb9d8;
  font: 500 .69rem/1.3 var(--mono);
  white-space: nowrap;
  letter-spacing: .045em;
  text-shadow: 0 2px 4px #030306, 0 0 10px #030306, 0 0 3px #030306;
  opacity: 0;
  pointer-events: none;
}
.atlas-star.named-star span { opacity: .82; }
.atlas-star.selected-star span, .atlas-star:focus-visible span { color: #fff; opacity: 1; }
.atlas-star.related-star::before { border-color: #9abbe843; }
.atlas-star.read-star::after {
  position: absolute;
  content: '';
  width: 4px;
  height: 4px;
  left: 9px;
  top: -10px;
  background: var(--ice);
  border-radius: 50%;
  box-shadow: 0 0 9px #78ceff76;
}
.core-beacon { width: 1px; height: 1px; padding: 0; border: 0; background: transparent; }
.core-beacon::before {
  content: '';
  position: absolute;
  width: var(--core-hit, 92px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.core-beacon:focus-visible::before { outline: 1px solid #a6b4d8; outline-offset: 2px; }

.atlas-intro, .atlas-preview {
  position: absolute;
  z-index: 2;
  top: 49%;
  left: clamp(24px, 5vw, 80px);
  width: min(31vw, 398px);
  transform: translateY(-50%);
}
.atlas-intro { pointer-events: none; }
.atlas-intro a, .atlas-intro button { pointer-events: auto; }
.atlas.has-selection .atlas-intro, .atlas.about-open .atlas-intro,
.atlas.finale-active .atlas-intro, .atlas.in-flight .atlas-intro { visibility: hidden; }
.atlas-kicker {
  margin: 0 0 16px;
  color: #b3c5f6;
  font: 500 .77rem/1.45 var(--mono);
  text-transform: uppercase;
  letter-spacing: .19em;
}
.atlas-wordmark {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1.2vw, 17px);
  width: max-content;
}
.atlas-wordmark-reference {
  margin-top: .22em;
  color: #b3c5e0;
  font: 500 clamp(.62rem, 1.15vw, .92rem)/1.1 var(--mono);
  letter-spacing: .055em;
  white-space: nowrap;
}
.atlas-intro h1 {
  margin: 0 0 22px -.055em;
  color: #f0f2f8;
  font-size: clamp(4.5rem, 9.5vw, 10rem);
  font-weight: 635;
  letter-spacing: -.099em;
  line-height: .82;
  width: max-content;
  max-width: none;
  white-space: nowrap;
}
.atlas-intro h1 .anima-letters,
.atlas-intro h1 .anima-letter {
  position: relative;
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
}
.anima-letter-particles {
  position: absolute;
  inset: -18% -5% -15%;
  width: 110%;
  height: 133%;
  pointer-events: none;
  visibility: hidden;
}
.anima-letters.is-assembling .anima-letter-particles { visibility: visible; }
.atlas-verse {
  margin: 0 0 24px;
  color: #b6bfd1;
  font-size: clamp(.96rem, 1.45vw, 1.19rem);
  line-height: 1.6;
  letter-spacing: -.021em;
}

.atlas-action {
  display: inline-flex;
  min-height: 43px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid #b5c8f05a;
  border-radius: 0;
  color: #e9efff;
  background: #0c102388;
  font: 550 .875rem/1.35 var(--sans);
  cursor: pointer;
  text-decoration: none;
}
.atlas-action:hover { color: #030306; background: #cbd9fd; border-color: #cbd9fd; }
.atlas-action:disabled { color: var(--muted); border-color: var(--line); background: transparent; cursor: default; }
.text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: #becbf2;
  font: 500 .875rem/1.45 var(--sans);
  cursor: pointer;
}
.text-action:hover { color: #fff; }
.preview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.atlas-preview {
  width: min(32vw, 455px);
  padding: 0 10px 6px 0;
  background: linear-gradient(90deg,#030306f5 72%,#03030600);
}
.atlas-preview h2, .atlas-finale h2 {
  position: relative;
  margin: 0 0 15px;
  color: #edf2ff;
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.068em;
  font-weight: 600;
}
.atlas-preview > p:not(.atlas-kicker), .atlas-finale > p:not(.atlas-kicker) {
  margin: 0 0 18px;
  color: #b1bace;
  font-size: clamp(.9rem, 1.24vw, 1.06rem);
  line-height: 1.55;
}
.atlas-utility {
  position: absolute;
  z-index: 2;
  inset: auto clamp(24px, 5vw, 80px) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 67px;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  pointer-events: none;
}
.atlas-utility button { pointer-events: auto; }
.atlas-guide, .atlas-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #a0acc6;
  font: 400 .72rem/1.45 var(--mono);
}
.atlas-guide span + span::before { content: '·'; color: var(--accent); margin-right: 12px; }
.atlas-progress { color: #bac8e8; white-space: pre; gap: 0; }
.atlas-progress span { color: #e3ebff; }
.atlas-progress-wrap { display: flex; align-items: center; gap: 12px; }
.atlas-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.atlas-tools button {
  border: 1px solid #8fa6d34a;
  border-radius: 0;
  background: #0a0c14c9;
  color: #dbe7ff;
  font: 500 .875rem/1 var(--sans);
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
  padding: 4px 7px;
}
.atlas-tools button:hover { border-color: #b6ccff; color: #fff; }
.atlas:not(.interactive-atlas) .atlas-utility { visibility: hidden; }

.in-flight :is(.atlas-preview, .atlas-utility, .atlas-labels) { pointer-events: none; }
.in-flight :is(.atlas-labels, .atlas-labels *, .atlas-utility *) { pointer-events: none; }
.atlas-finale {
  position: absolute;
  z-index: 2;
  width: min(32vw, 430px);
  left: clamp(24px, 5vw, 80px);
  top: 47%;
  transform: translateY(-50%);
}
.collapse-title {
  position: absolute;
  z-index: 3;
  color: #c8d7ff;
  font: 500 clamp(.9rem, 2vw, 1.55rem)/1.1 var(--sans);
  pointer-events: none;
}

.reading-space { min-height: calc(100svh - 73px); }
.atlas-chapter .section { padding-top: clamp(32px, 6vw, 78px); }
.atlas-chapter h2:focus { outline: none; }
.chapter-navigation {
  display: flex;
  gap: 28px;
  align-items: start;
  justify-content: space-between;
  margin-block: 0;
  padding-block: 31px 65px;
}
.chapter-navigation h3 {
  margin: 0 0 13px;
  color: var(--muted);
  font: 500 .75rem/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.related-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 23px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #c8d6fa;
}
.related-stars a::before {
  content: '·';
  margin-right: 7px;
  color: #98bbff;
  text-shadow: 0 0 6px #98bbff;
}
.related-stars a:hover { color: #fff; text-decoration: underline; }
.chapter-actions { display: flex; justify-content: end; align-items: center; gap: 13px; flex-wrap: wrap; flex-shrink: 0; }
.fallback-toc { padding-block: 38px 75px; }
.fallback-toc h1 { margin: 0 0 32px; font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.07em; line-height: 1.05; }
.fallback-toc section { margin-bottom: 26px; }
.fallback-toc h2 { color: var(--accent); font-size: 1.3rem; font-weight: 570; }
.fallback-toc li { margin-bottom: 5px; }
.fallback-toc a:hover { text-decoration: underline; }

@media (max-width: 1040px) {
  .atlas-guide span + span { display: none; }
  .chapter-navigation { flex-direction: column; }
  .chapter-actions { justify-content: start; flex-shrink: 1; }
}
@media (max-width: 740px) {
  .atlas-header { min-height: 56px; padding-inline: 18px; gap: 14px; }
  .atlas-header nav a { font-size: .775rem; }
  .atlas { height: calc(100svh - 56px); min-height: 350px; }
  .atlas-poster img { object-position: 66% center; }
  .atlas-intro {
    inset: 25px 18px auto;
    width: auto;
    transform: none;
  }
  .atlas-intro .atlas-kicker { margin-bottom: 10px; }
  .atlas-intro h1 { font-size: clamp(2.6rem, 14vw, 6.1rem); margin-block: 0 10px; }
  .atlas-verse { margin-bottom: 10px; font-size: .86rem; line-height: 1.4; }
  .atlas-action { min-height: 38px; padding-inline: 10px; font-size: .8125rem; }
  .atlas-star.named-star span { font-size: .66rem; letter-spacing: 0; opacity: .9; }
  .atlas-preview, .atlas-finale {
    inset: auto 18px 78px;
    transform: none;
    width: auto;
    padding: 14px 6px 6px 0;
    background: linear-gradient(0deg,#030306 57%,#030306b8 86%,#03030600);
  }
  .core-preview { bottom: auto; top: 27px; background: linear-gradient(180deg,#030306 63%,#03030600); }
  .atlas-preview > p:not(.atlas-kicker) { margin-bottom: 10px; }
  .atlas-preview h2, .atlas-finale h2 { margin-bottom: 8px; font-size: clamp(1.82rem, 7.5vw, 3rem); }
  .atlas-preview .atlas-kicker, .atlas-finale .atlas-kicker { margin-bottom: 7px; }
  .atlas-utility { inset-inline: 18px; min-height: 52px; gap: 6px; }
  .atlas-guide { display: none; }
  .atlas-tools { gap: 4px; }
  .atlas-tools button { font-size: .78rem; min-width: 26px; min-height: 29px; padding: 4px 5px; }
  .atlas-progress-wrap { flex-wrap: wrap; gap: 0 4px; }
  .atlas-progress { font-size: .63rem; }
  .atlas-progress-wrap button { font-size: .65rem; }
  .atlas-chapter .section { padding-top: 25px; }
}
@media (max-width: 740px) and (max-height: 610px) {
  .atlas-intro { top: 13px; }
  .atlas-intro .atlas-kicker { font-size: .63rem; }
  .atlas-intro h1 { font-size: clamp(2.6rem, 12vw, 4.6rem); }
  .atlas-verse { display: none; }
  .atlas-preview { bottom: 54px; }
}
@media (max-height: 565px) and (min-width: 741px) {
  .atlas { min-height: 410px; }
  .atlas-intro h1 { font-size: clamp(3.75rem, 8vw, 5.5rem); }
}
@media (max-height: 475px) {
  .atlas-body:not(.atlas-reading) { overflow: auto; }
}

/* A chapter occupies a refractive plane inside the star field. */
.under-window :is(.atlas-intro, .atlas-preview, .atlas-utility) {
  opacity: 0;
  pointer-events: none;
}
.under-window .atlas-labels { opacity: .43; }
.atlas-reading .atlas-header { position: relative; }
.atlas-body.atlas-reading { overflow: hidden; }
.chapter-window {
  --glass-angle: var(--glass-turn, 3deg);
  --glass-travel: var(--glass-shift, 24px);
  --window-accent: #cbc8c3;
  position: fixed;
  inset: 0;
  width: min(940px, calc(100vw - 180px));
  max-width: none;
  height: min(790px, calc(100svh - 135px));
  max-height: none;
  min-height: 0;
  margin: auto;
  padding: 0;
  border: 1px solid #d3d0ca60;
  border-radius: 28px 32px 29px 31px / 26px 34px 30px 28px;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background: radial-gradient(ellipse at 88% -60%, #aba6a42b, transparent 68%), linear-gradient(142deg, #191919e4, #0b0b0bee 54%, #171616df);
  backdrop-filter: blur(9px) saturate(.26);
  box-shadow: 0 24px 82px #0008, inset 0 0 0 1px #f1e9e010, inset 10px 5px 38px #a7998f0d;
}
.chapter-window[open] { display: flex; flex-direction: column; }
.chapter-window::backdrop { background: #06050523; }
.chapter-window[data-form="1"] { --window-accent: #d4cec9; --glass-angle: -4deg; }
.chapter-window[data-form="2"] { --window-accent: #d0d2d0; --glass-travel: -31px; }
.chapter-window[data-form="3"] { --window-accent: #dbd5ca; --glass-angle: 2deg; }
.window-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  min-height: 54px;
  padding: 0 clamp(18px, 4.8vw, 53px);
  gap: 16px;
  position: relative;
  z-index: 3;
  border-bottom: 1px solid #e1d9cd26;
  background: #1b19184e;
}
.window-chrome .atlas-kicker { margin: 0; font-size: .72rem; color: var(--window-accent); }
.window-close {
  cursor: pointer;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #e4dfda;
  font: 550 .85rem/1.3 var(--sans);
}
.window-close::after { content: '×'; display: inline-block; margin-left: 8px; font-size: 1rem; color: var(--window-accent); }
.window-close:hover { color: #fff; }
.window-scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #7d92c071 transparent;
  scrollbar-width: thin;
}
.window-figure {
  position: absolute;
  z-index: 0;
  inset: 0 2% auto auto;
  width: min(41%, 358px);
  height: auto;
  pointer-events: none;
  opacity: .82;
}
.chapter-window .atlas-chapter { position: relative; z-index: 1; }
.chapter-window .atlas-chapter .section { padding: 34px 0 0; border: 0; }
.chapter-window .atlas-chapter :is(.wrap, .frame) {
  width: auto;
  margin-inline: clamp(18px, 4.8vw, 53px);
}
.chapter-window .atlas-chapter .section > .wrap { display: block; }
.chapter-window .atlas-chapter :is(.chapter-art, .interlude-art) { display: none; }
.chapter-window .atlas-chapter .section-head { max-width: 68%; min-height: 190px; margin-bottom: 26px; align-items: flex-start; }
.chapter-window .atlas-chapter .section h2, .chapter-window .atlas-chapter .interlude h2 {
  font-size: clamp(2rem, 4.8vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -.066em;
}
.chapter-window .atlas-chapter .section-head p { color: #d1ccc6; font-size: 1rem; }
.chapter-window .atlas-chapter .interlude { display: block; min-height: 210px; background: transparent; border: 0; }
.chapter-window .atlas-chapter .interlude-copy { padding: 30px clamp(18px, 4.8vw, 53px); max-width: 75%; }
.chapter-window .atlas-chapter :is(.tile, .stage, .stage-detail, .formbox, .fact, .layer, .era, .era.future, details) {
  background: #10100f87;
  border-color: #d6d0c626;
}
.chapter-window .atlas-chapter :is(.orbit-card, .converge, .unity-feature) { background: #10100f85; }
.chapter-window .chapter-navigation { padding-bottom: 42px; margin-top: 25px; border-top: 1px solid var(--line); }
.window-fracture {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
}
.window-fracture i {
  position: absolute;
  left: -4%;
  width: 108%;
  top: 23%;
  height: 4%;
  border-radius: 29% 71% 65% 35% / 56% 40% 60% 44%;
  border-top: 1px solid #d6d1c87a;
  background: linear-gradient(108deg,transparent,#5c554e55 31%,#dfd8ce34 64%,transparent);
  backdrop-filter: blur(4px) saturate(.15) contrast(1.12);
  transform: translateX(var(--glass-travel)) skewX(var(--glass-angle));
}
.window-fracture i:nth-child(2) { top: 42%; height: 18%; opacity: .47; transform: translateX(calc(var(--glass-travel) * -1.28)) skewX(calc(var(--glass-angle) * -1)); }
.window-fracture i:nth-child(3) { top: 71%; height: 2%; opacity: .76; }
.chapter-window[data-form="1"] .window-fracture i:nth-child(2) { top: 63%; height: 9%; }
.chapter-window[data-form="2"] .window-fracture i:first-child { top: 33%; height: 13%; }
.chapter-window[data-form="3"] .window-fracture i:nth-child(3) { top: 38%; height: 1px; }
.window-opening { animation: glass-cohere 1.28s cubic-bezier(.18,.66,.22,1) both; }
.window-opening .window-fracture { animation: split-plane 1.47s ease-out both; }
.window-opening .window-scroll { animation: text-lock 1.14s .20s cubic-bezier(.23,.61,.28,1) both; }
@keyframes glass-cohere {
  0% {
    opacity: .10;
    transform: translateX(var(--glass-travel)) skewX(var(--glass-angle)) scale(.72, .51);
    border-radius: 46% 54% 67% 33% / 60% 37% 63% 40%;
  }
  31% {
    opacity: .84;
    transform: translateX(calc(var(--glass-travel) * -.32)) skewX(calc(var(--glass-angle) * -.44)) scale(1.017, .965);
    border-radius: 18% 7% 16% 9% / 10% 17% 8% 16%;
  }
  62% {
    opacity: 1;
    transform: translateX(1px) skewX(.4deg) scale(.993, 1.006);
    border-radius: 4% 7% 5% 4% / 8% 4% 6% 5%;
  }
  100% {
    opacity: 1;
    transform: none;
    border-radius: 28px 32px 29px 31px / 26px 34px 30px 28px;
  }
}
@keyframes split-plane {
  0%, 6% { opacity: 0; transform: translateY(-25px) skewY(-2deg); }
  29% { opacity: .87; transform: translateY(3px) skewY(1.7deg); }
  48% { opacity: .30; transform: translateY(17px); }
  59% { opacity: .60; transform: translateY(-7px); }
  100% { opacity: 0; transform: translateY(22px); }
}
@keyframes text-lock {
  0% { opacity: .08; filter: blur(3px); transform: translateX(calc(var(--glass-travel) * .25)); text-shadow: -5px 0 #e0d1b980, 4px 0 #c6cac477; }
  57% { opacity: .77; filter: blur(.8px); transform: translateX(-1px); text-shadow: 2px 0 #dfd4c163, -2px 0 #b5b0ab52; }
  100% { opacity: 1; filter: none; transform: none; text-shadow: none; }
}
.fallback-toc > h1, .fallback-toc > section {
  animation: index-refraction 1.12s cubic-bezier(.20,.66,.19,1) both;
}
.fallback-toc > section:nth-of-type(1) { animation-delay: .11s; }
.fallback-toc > section:nth-of-type(2) { animation-delay: .21s; }
.fallback-toc > section:nth-of-type(3) { animation-delay: .31s; }
.fallback-toc > section:nth-of-type(4) { animation-delay: .41s; }
@keyframes index-refraction {
  from { opacity: 0; transform: translateX(-12px) skewX(-4deg); filter: blur(2px); text-shadow: -5px 0 #9275ff91, 5px 0 #78ceff86; }
  55% { opacity: .68; transform: translateX(2px) skewX(1deg); filter: blur(.5px); text-shadow: 2px 0 #9275ff64, -2px 0 #78ceff62; }
  to { opacity: 1; transform: none; filter: none; text-shadow: none; }
}
.motion-off :is(.window-opening, .window-opening .window-fracture, .window-opening .window-scroll, .fallback-toc > h1, .fallback-toc > section) { animation: none; }
@media (max-width: 740px) {
  .chapter-window { width: calc(100vw - 26px); height: min(770px, calc(100svh - 60px)); }
  .window-chrome { min-height: 47px; }
  .window-figure { width: 38%; opacity: .64; }
  .chapter-window .atlas-chapter .section { padding-top: 21px; }
  .chapter-window .atlas-chapter .section-head { min-height: 135px; max-width: 81%; gap: 12px; margin-bottom: 22px; }
  .chapter-window .atlas-chapter .section h2, .chapter-window .atlas-chapter .interlude h2 { font-size: clamp(1.7rem, 7.5vw, 3.3rem); }
  .chapter-window .atlas-chapter .section-head p { font-size: .92rem; }
}

.chapter-window .chapter-navigation,
.chapter-window .related-stars,
.chapter-window .section :is(.eyebrow, .label, .symbol, .meta) { color: #cfcac4; }
.chapter-window .atlas-action { border-color: #d9d2c754; color: #e1dbd3; background: #22212080; }
.chapter-window .atlas-action:not(:disabled):hover { color: #171613; background: #e6e0d6; }
.chapter-window .related-stars a::before { color: #e7dbcc; text-shadow: 0 0 6px #bfb5a188; }
.chapter-window {
  --accent: var(--window-accent);
  --mint: #c4beb5;
  --line: #d8cfc729;
}
.chapter-window .stage.active { background: #25221f; border-color: #cdc2b57a; }
.chapter-window .formbox :is(input, textarea) { background: #10100f; border-color: #d8cfc735; }

.chapter-window[open] {
  animation: glass-drift 13s ease-in-out infinite alternate;
}
.chapter-window[open].window-opening {
  animation: glass-cohere 1.28s cubic-bezier(.18,.66,.22,1) both,
             glass-drift 13s 1.28s ease-in-out infinite alternate;
}
.chapter-window::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: -35% -24%;
  pointer-events: none;
  background: radial-gradient(ellipse 44% 26% at 31% 16%, #c6beb530, transparent 68%),
              radial-gradient(ellipse 39% 18% at 70% 85%, #bcb2a321, transparent 74%);
  opacity: .69;
  animation: glass-reflections 16s ease-in-out infinite alternate;
}
@keyframes glass-drift {
  0%, 100% { border-radius: 28px 32px 29px 31px / 26px 34px 30px 28px; }
  34% { border-radius: 35px 25px 38px 24px / 30px 26px 35px 24px; }
  69% { border-radius: 23px 39px 24px 37px / 23px 39px 25px 35px; }
}
@keyframes glass-reflections {
  from { transform: translate(-3%, 2%) rotate(-4deg); opacity: .60; }
  to { transform: translate(7%, -2%) rotate(4deg); opacity: .79; }
}
.motion-off .chapter-window[open], .motion-off .chapter-window::before { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .chapter-window[open], .chapter-window::before { animation: none !important; }
}

/* Color inversion follows the atlas itself; the horizon is a local optical field. */
.atlas-body,
.atlas-body .atlas-header,
.atlas-body #atlas,
.atlas-body .universe,
.atlas-body .atlas-star,
.atlas-body .atlas-star span,
.atlas-body .atlas-intro,
.atlas-body .atlas-preview,
.atlas-body .atlas-action,
.atlas-body .atlas-tools button {
  transition: color 1.25s cubic-bezier(.2,.7,.2,1), background-color 1.25s cubic-bezier(.2,.7,.2,1), border-color 1.25s cubic-bezier(.2,.7,.2,1), filter 1.25s cubic-bezier(.2,.7,.2,1);
}
.atlas-body .universe-canvas,
.atlas-body .atlas-poster img,
.atlas-body #preview-particles {
  transition: filter 1.25s cubic-bezier(.2,.7,.2,1);
}
.atlas-body.atlas-reverse {
  --bg: #fff;
  --ink: #080808;
  --accent: #111;
  --spectral: #151515;
  --ice: #050505;
  --line: #10101028;
  --muted: #252525;
  --anima-metal: #090909;
  --anima-dim: #222;
  --anima-edge: #1113;
  --anima-highlight: #1114;
  --anima-ink: #fff;
  --anima-surface: #f2f2f0;
  --anima-sheen: linear-gradient(128deg, #fff, #f0f0ee 48%, #fafafa);
  color: #080808;
  background: #fff;
}
.atlas-body.atlas-reverse .atlas-header {
  color: #080808;
  background: #fff;
  border-color: #1112;
}
.atlas-body.atlas-reverse .atlas-header nav a,
.atlas-body.atlas-reverse .atlas-header nav a:hover,
.atlas-body.atlas-reverse .atlas-header .brand,
.atlas-body.atlas-reverse .atlas-header .mark { color: #080808; }
.atlas-body.atlas-reverse #atlas,
.atlas-body.atlas-reverse .universe { color: #080808; background: #fff; }
.atlas-body.atlas-reverse .universe-canvas,
.atlas-body.atlas-reverse .atlas-poster img,
.atlas-body.atlas-reverse #preview-particles { filter: grayscale(1) invert(1); }
.atlas-body.atlas-reverse .atlas-star,
.atlas-body.atlas-reverse .atlas-star span,
.atlas-body.atlas-reverse .atlas-star.selected-star span,
.atlas-body.atlas-reverse .atlas-star:focus-visible span { color: #080808; }
.atlas-body.atlas-reverse .atlas-star span { text-shadow: none; }
.atlas-body.atlas-reverse .atlas-star::before,
.atlas-body.atlas-reverse .atlas-star.related-star::before { border-color: #1114; }
.atlas-body.atlas-reverse .atlas-star.read-star::after { background: #050505; box-shadow: 0 0 7px #0003; }
.atlas-body.atlas-reverse :is(.atlas-intro, .atlas-intro *, .atlas-preview, .atlas-preview *, .atlas-finale, .atlas-finale *, .atlas-utility, .atlas-utility *) { color: #080808; }
.atlas-body.atlas-reverse .atlas-intro h1 .anima-symbol.is-drawn { color: transparent; }
.atlas-body.atlas-reverse .atlas-preview {
  background: linear-gradient(90deg, #fff 72%, #ffffff00);
}
.atlas-body.atlas-reverse .core-preview {
  background: linear-gradient(180deg, #fff 63%, #ffffff00);
}
.atlas-body.atlas-reverse .atlas-action,
.atlas-body.atlas-reverse .atlas-action:disabled,
.atlas-body.atlas-reverse .atlas-tools button {
  color: #080808;
  background: #ffffffc9;
  border-color: #1114;
  box-shadow: inset 0 0 0 1px #1111;
}
.atlas-body.atlas-reverse .atlas-action:hover,
.atlas-body.atlas-reverse .atlas-tools button:hover { color: #fff; background: #111; }
.atlas-body.atlas-reverse .atlas-progress span { color: #080808; }
.atlas-body.atlas-reverse .preview-distortion i {
  background: linear-gradient(90deg, transparent, #1111110e 30%, #11111117 50%, transparent);
}
.atlas-body.atlas-reverse .collapse-title { color: #080808; text-shadow: none; }
.chapter-window.event-white {
  --ink: #090909;
  --line: #10101024;
  --accent: #111;
  --window-accent: #111;
  color: #090909;
  background: linear-gradient(142deg, #ffffffef, #f1f1eff2 54%, #ffffffec);
  border: 1px solid #1112;
  box-shadow: 0 24px 82px #0002, inset 0 0 0 1px #fff9, inset 10px 5px 38px #1111;
  backdrop-filter: blur(12px) saturate(.16);
}
.chapter-window.event-white::backdrop { background: #ffffff00; }
.chapter-window.event-white::before {
  background: radial-gradient(ellipse 48% 34% at 73% 10%, #00000008, transparent 70%),
              radial-gradient(ellipse 36% 26% at 12% 88%, #00000005, transparent 72%);
  opacity: .75;
}
.chapter-window.event-white :is(*, *::before, *::after) { color: #101010 !important; }
.chapter-window.event-white .window-chrome {
  background: #fff;
  border-color: #10101020;
}
.chapter-window.event-white .window-scroll { scrollbar-color: #1115 transparent; }
.chapter-window.event-white .window-figure { filter: invert(1); opacity: .7; }
.chapter-window.event-white .window-fracture i {
  border-color: #1112;
  background: linear-gradient(108deg, transparent, #1111110d 31%, #11111112 64%, transparent);
  backdrop-filter: blur(4px) saturate(.1) contrast(1.02);
}
.chapter-window.event-white .atlas-chapter :is(.tile, .stage, .stage-detail, .formbox, .fact, .layer, .era, .era.future, details, .orbit-card, .converge, .unity-feature) {
  color: #111 !important;
  background: #f4f4f2;
  border-color: #1112;
  box-shadow: none;
}
.chapter-window.event-white .atlas-chapter .stage.active { background: #fff; border-color: #1116; }
.chapter-window.event-white .atlas-chapter .formbox :is(input, textarea) {
  color: #111;
  background: #fff;
  border-color: #1114;
}
.chapter-window.event-white .atlas-action {
  color: #111 !important;
  background: #fff;
  border-color: #1115;
}
.chapter-window.event-white .atlas-action:not(:disabled):hover { color: #fff !important; background: #111; }
.preview-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.motion-off .preview-particles, .under-window .preview-particles { display: none; }

.preview-distortion {
  position: absolute;
  inset: -13px -19px -12px -14px;
  opacity: 0;
  pointer-events: none;
}
.atlas-preview > :not(.preview-distortion) { position: relative; }
.preview-distortion i {
  position: absolute;
  inset: 8% -5% auto -2%;
  height: 24%;
  background: linear-gradient(90deg, transparent, #9275ff21 22%, #23396027 43%, #78ceff14 69%, transparent);
  mask-image: radial-gradient(ellipse 62% 69% at 50% 50%, #000 24%, transparent 83%);
  backdrop-filter: blur(3px) contrast(1.28) saturate(1.34);
}
.preview-distortion i:nth-child(2) { top: 40%; height: 11%; inset-inline: 5% -9%; }
.preview-distortion i:nth-child(3) { top: 68%; height: 19%; inset-inline: -1% 9%; }
.preview-filter { position: absolute; pointer-events: none; }
.distorting-preview :is(#preview-title, #preview-text) { filter: url("#preview-warp"); }
.distorting-preview .preview-distortion { animation: preview-field 1.4s ease-out both; }
.distorting-preview .preview-distortion i { animation: preview-shear 1.12s .1s ease-out both; }
.distorting-preview .preview-distortion i:nth-child(2) { animation-direction: reverse; animation-delay: .15s; }
.distorting-preview .preview-distortion i:nth-child(3) { animation-delay: .23s; }
@keyframes preview-field {
  0%, 13% { opacity: 0; }
  39% { opacity: .91; }
  57% { opacity: .48; }
  66% { opacity: .67; }
  100% { opacity: 0; }
}
@keyframes preview-shear {
  0% { transform: translate(-28px, 6px) skewX(-15deg); }
  38% { transform: translate(18px, -4px) skewX(9deg); }
  65% { transform: translate(-6px, 2px) skewX(-4deg); }
  100% { transform: none; }
}

/* Shared UI finishes for the atlas, chapter pages and journal. */
:root {
  --anima-metal: #d9dce2;
  --anima-dim: #a9adb8;
  --anima-edge: #cfd5e239;
  --anima-highlight: #d9dfe95c;
  --anima-ink: #090a0d;
  --anima-surface: #101116;
  --anima-sheen: linear-gradient(128deg, #25293288, #101116 48%, #171821);
}
:is(.atlas-header, .site-header, .reader .reading-bar) {
  border-color: var(--anima-edge);
  background-image: linear-gradient(112deg, #c4ccd511, transparent 58%);
}
:is(.atlas-header, .site-header) nav a { color: var(--anima-dim); }
:is(.atlas-header, .site-header) nav a:hover { color: var(--anima-metal); }
:is(.atlas-header, .site-header) .brand { color: #e5e6e9; }
:is(.atlas-header, .site-header) .mark { color: #c2c6ce; }
.reader :is(.btn, .note button, #cancel), .atlas-action {
  border: 1px solid var(--anima-edge);
  border-radius: 7px 5px 7px 5px;
  color: var(--anima-metal);
  background: var(--anima-sheen);
  box-shadow: inset 0 1px 0 #e1e5eb13;
}
.reader :is(.btn.primary, .note button), .atlas .atlas-action, .chapter-window .atlas-action {
  color: var(--anima-metal);
  background: var(--anima-sheen);
}
.reader :is(.btn:hover, .btn.primary:hover, .note button:hover, #cancel:hover), .atlas-action:hover,
.chapter-window .atlas-action:not(:disabled):hover {
  color: #fff;
  background: linear-gradient(132deg, #2c313a, #16191f 71%, #20232a);
  border-color: var(--anima-highlight);
}
:is(.atlas-action, .reader .btn):disabled { opacity: .64; cursor: default; }
.reader :is(.reading-bar select, .formbox input, .formbox textarea) {
  border-color: var(--anima-edge);
  border-radius: 5px 8px 5px 8px;
  color: var(--anima-metal);
}
.reader .formbox :is(input, textarea), .chapter-window .formbox :is(input, textarea) {
  background: #08090db3;
  box-shadow: inset 0 1px 9px #0007;
}
.reader :is(.stage, .layer, details, .tile, .note, .formbox, .fact, .converge, .unity-feature, .orbit-card, .stage-detail) {
  border-color: var(--anima-edge);
  border-radius: 8px 10px 8px 10px;
}
.reader .stage.active { border-color: var(--anima-highlight); background: #1c1d22; }
.reader .tile .symbol { color: var(--anima-metal); border-color: var(--anima-edge); border-radius: 6px 8px 6px 8px; }
.atlas-tools {
  gap: 0;
  border: 1px solid var(--anima-edge);
  border-radius: 12px 9px 12px 9px;
  background: var(--anima-sheen);
  box-shadow: inset 0 1px 0 #e1e5eb13;
  overflow: hidden;
}
.atlas-tools button {
  min-width: 40px;
  min-height: 35px;
  border: 0;
  color: var(--anima-metal);
  background: transparent;
}
.atlas-tools button + button { border-inline-start: 1px solid #cfd5e225; }
.atlas-tools button:hover { background: #c5cad423; }
.atlas-tools button:focus-visible { outline-offset: -4px; }
.chapter-window .window-close {
  border: 1px solid var(--anima-edge);
  padding: 5px 9px 6px;
  border-radius: 6px 8px 6px 8px;
}
.chapter-window .window-close:hover { background: #b9b6b219; }
@media (max-width: 740px) {
  .atlas-tools button { min-width: 33px; min-height: 32px; }
}

.atlas-tools .atlas-audio, .window-controls .atlas-audio {
  min-width: 38px;
  padding-inline: 9px;
  color: var(--anima-dim);
  font: 500 1.18rem/1 var(--mono);
  letter-spacing: -.12em;
}
.atlas-audio[aria-pressed="true"] { color: #fff; text-shadow: 0 0 9px currentColor; }
.window-controls { display: flex; align-items: center; gap: 11px; }
.window-controls .atlas-audio {
  min-height: 33px;
  border: 1px solid var(--anima-edge);
  border-radius: 7px 5px 7px 5px;
  cursor: pointer;
  background: #17171a80;
  font: 500 1.18rem/1 var(--mono);
}
.window-controls .atlas-audio:hover { color: var(--anima-metal); background: #aeb6c523; }

.atlas-nav-item,
.atlas-language {
  display: inline-flex;
  align-items: center;
  gap: .42em;
  white-space: nowrap;
}
.atlas-nav-icon {
  font: 400 1.35em/1 "DejaVu Sans", "Segoe UI Symbol", sans-serif;
  font-variant-emoji: text;
  color: currentColor;
}
@media (max-width: 400px) {
  .atlas-header .atlas-nav-item .atlas-nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .atlas-header .atlas-nav-item { padding: 6px 4px; }
}

:is(.atlas-header, .site-header, .window-controls) .atlas-language {
  color: var(--anima-metal);
  font: 600 .72rem/1 var(--mono);
  letter-spacing: .06em;
  padding: 7px 8px;
  border: 1px solid var(--anima-edge);
  border-radius: 6px 5px 6px 5px;
}
:is(.atlas-header, .site-header, .window-controls) .atlas-language:hover { background: #c1c8d023; }
@media (max-width: 490px) {
  .atlas-header nav { gap: 9px; }
  .window-controls { gap: 7px; }
}

/* The same view renders the horizon before the atlas interface is revealed. */
#birth-flash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
#skip-birth {
  position: absolute;
  z-index: 5;
  right: clamp(18px, 5vw, 80px);
  bottom: clamp(22px, 6vh, 64px);
}
.atlas-birth .atlas-header,
.atlas-birth .atlas :is(.atlas-intro, .atlas-utility, .atlas-labels) {
  visibility: hidden;
}
.atlas-birth .atlas-poster { opacity: var(--birth-reveal, 0); }

/* While the black hole pulls, the cursor vanishes and nothing under it reacts. */
body.hole-pull, body.hole-pull *, body.hole-pull *::before { cursor: none !important; }
/* The cursor disappears the moment it reaches the hole, before any frame is drawn. */
.core-beacon, .core-beacon::before { cursor: none !important; }
body.hole-pull :is(a, button, .atlas-star) { pointer-events: none !important; }

/* The interface powers up like the controls of a spacecraft: a scan line runs along each panel,
   the panels flicker on, readouts light up one after another with a cold glow, and each control
   gives a short ping of light as it comes online. */
@keyframes ship-power {
  0% { opacity: 0; filter: brightness(2.4) blur(1px); }
  8% { opacity: .75; }
  12% { opacity: .08; }
  20% { opacity: .9; }
  26% { opacity: .25; }
  34% { opacity: 1; filter: brightness(1.8) blur(0); }
  100% { opacity: 1; filter: none; }
}
@keyframes ship-readout {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); text-shadow: 0 0 14px #7fc4ffcc; }
  40% { opacity: 1; clip-path: inset(0 0 0 0); text-shadow: 0 0 14px #7fc4ffcc; }
  48% { opacity: .35; }
  56% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); text-shadow: none; }
}
@keyframes ship-ping {
  0% { opacity: 0; box-shadow: 0 0 0 0 #7fc4ff00; }
  15% { opacity: 1; box-shadow: 0 0 0 1px #9fd2ffcc, 0 0 18px 2px #4f9dffaa; }
  22% { opacity: .3; }
  30% { opacity: 1; }
  100% { opacity: 1; box-shadow: 0 0 0 0 #7fc4ff00; }
}
@keyframes ship-scan {
  0% { opacity: 0; transform: scaleX(0); }
  10% { opacity: 1; }
  60% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}
@keyframes ship-star {
  0% { opacity: 0; }
  30% { opacity: 1; filter: brightness(2.2); }
  38% { opacity: .2; }
  48% { opacity: 1; }
  100% { opacity: 1; filter: none; }
}
.atlas-arriving .atlas-header { animation: ship-power 1.3s ease-out backwards; }
.atlas-arriving .atlas-header::after, .atlas-arriving .atlas-utility::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px; pointer-events: none; transform-origin: left;
  background: linear-gradient(90deg, transparent, #bfe2ff, #5ea8ff 60%, transparent);
  box-shadow: 0 0 10px #6fb6ff; animation: ship-scan 1.1s ease-out backwards; }
.atlas-arriving .atlas-header::after { bottom: -1px; }
.atlas-arriving .atlas-utility::after { top: 0; animation-delay: 1.35s; }
.atlas-arriving .atlas-header nav > * { animation: ship-ping 1.1s ease-out backwards; border-radius: 6px; }
.atlas-arriving .atlas-header nav > :nth-child(1) { animation-delay: .55s; }
.atlas-arriving .atlas-header nav > :nth-child(2) { animation-delay: .7s; }
.atlas-arriving .atlas-header nav > :nth-child(3) { animation-delay: .85s; }
.atlas-arriving .atlas-header nav > :nth-child(n + 4) { animation-delay: 1s; }
.atlas-arriving .atlas-intro > * { animation: ship-readout 1.3s ease-out backwards; }
.atlas-arriving .atlas-intro > :nth-child(1) { animation-delay: .5s; }
.atlas-arriving .atlas-intro > :nth-child(2) { animation-delay: .75s; }
.atlas-arriving .atlas-intro > :nth-child(3) { animation-delay: 1s; }
.atlas-arriving .atlas-intro > :nth-child(4) { animation-delay: 1.25s; }
.atlas-arriving .atlas-intro > :nth-child(n + 5) { animation-delay: 1.45s; }
/* The title line carries the nebula around the hand beyond its box, so it is never clipped. */
.atlas-arriving .atlas-intro > h1 { animation-name: ship-power; }
.atlas-arriving .atlas-intro .atlas-action { animation: ship-ping 1.2s 1.6s ease-out backwards; }
.atlas-arriving .atlas-utility { animation: ship-power 1.2s 1.3s ease-out backwards; }
.atlas-arriving .atlas-tools button { animation: ship-ping 1s ease-out backwards; }
.atlas-arriving .atlas-tools button:nth-child(1) { animation-delay: 1.7s; }
.atlas-arriving .atlas-tools button:nth-child(2) { animation-delay: 1.85s; }
.atlas-arriving .atlas-tools button:nth-child(3) { animation-delay: 2s; }
.atlas-arriving .atlas-tools button:nth-child(n + 4) { animation-delay: 2.15s; }
.atlas-arriving .atlas-star span { animation: ship-star 1.2s ease-out backwards; }
.atlas-arriving .atlas-star:nth-child(3n) span { animation-delay: 1.1s; }
.atlas-arriving .atlas-star:nth-child(3n + 1) span { animation-delay: 1.4s; }
.atlas-arriving .atlas-star:nth-child(3n + 2) span { animation-delay: 1.75s; }
@media (prefers-reduced-motion: reduce) {
  .atlas-arriving * { animation: none !important; }
}

/* The hand beside ANIMA: a large white open palm that calls the black hole with its question. */
.anima-hand { align-self: center; flex: none; width: clamp(46px, 4.6vw, 86px); margin-left: clamp(6px, 1vw, 16px); padding: 4px;
  border: 0; background: none; color: #f4f6fc; line-height: 0; cursor: pointer;
  filter: drop-shadow(0 0 10px #ffffff40) drop-shadow(0 0 22px #6f9cff33); transition: filter .4s, transform .4s;
  animation: anima-hand-breathe 5s ease-in-out infinite; }
.anima-hand svg { display: block; width: 100%; height: auto; }
.anima-hand:hover, .anima-hand:focus-visible { outline: none; transform: scale(1.06);
  filter: drop-shadow(0 0 14px #ffffff80) drop-shadow(0 0 30px #6f9cffaa); }
@keyframes anima-hand-breathe { 50% { filter: drop-shadow(0 0 14px #ffffff55) drop-shadow(0 0 28px #6f9cff55); } }
@media (prefers-reduced-motion: reduce) { .anima-hand { animation: none; } }
.anima-hand { position: relative; }
.anima-hand canvas { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); pointer-events: none; }
.anima-hand.is-flesh svg { opacity: 0; }

/* Before the birth: one touch, so the universe begins with its sound. */
.anima-touch { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 26px;
  background: #000; color: #e8eefc; cursor: pointer; outline: none; transition: opacity 1.1s ease, filter 1.1s ease; }
.anima-touch-sign { font: 400 clamp(4rem, 12vw, 9rem)/1 "DejaVu Sans", "Cambria Math", sans-serif;
  text-shadow: 0 0 24px #b9ccff88, 0 0 60px #4f7bff55; animation: anima-touch-breathe 4.2s ease-in-out infinite; }
.anima-touch-text { font: 500 clamp(.72rem, 1.2vw, .9rem)/1 var(--mono, monospace); letter-spacing: .32em; text-transform: uppercase;
  color: #9fb0d4; animation: anima-touch-text 4.2s ease-in-out infinite; }
.anima-touch.is-leaving { opacity: 0; filter: blur(8px); pointer-events: none; }
@keyframes anima-touch-breathe { 50% { opacity: .55; transform: scale(.96); text-shadow: 0 0 12px #b9ccff55, 0 0 30px #4f7bff33; } }
@keyframes anima-touch-text { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .anima-touch-sign, .anima-touch-text { animation: none; } }
.anima-touch-hand { width: clamp(96px, 10vw, 150px); margin: 0; padding: 4px; animation: anima-touch-breathe-hand 4.2s ease-in-out infinite; }
@keyframes anima-touch-breathe-hand { 50% { opacity: .7; transform: scale(.97); } }
.anima-touch-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.anima-touch { isolation: isolate; }

/* Navigation shows only its signs; the names stay for screen readers and in the tooltips. */
.atlas-nav-label { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* No hints or reading counter along the bottom of the atlas. */
.atlas-guide, #atlas-progress { display: none !important; }

/* A finger held on the atlas pulls things in; it must not select text or open a copy menu. */
.atlas-body .atlas, .atlas-body .atlas * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.atlas-body .core-beacon { touch-action: none; }

/* No way to skip the birth: the universe is always born in full. */
#skip-birth { display: none !important; }

/* Behind everything is space: when the header is drawn into the hole, no lighter band is left where it was. */
html:has(body.atlas-body), body.atlas-body { background: #030306; }

/* The comet is drawn, not typed: some phones turn the comet character into a coloured emoji. */
.atlas-comet { display: inline-block; vertical-align: -.12em; }

/* The sky runs under the header: the header floats over it, so when the hole draws the header in,
   the space it leaves is sky, not an empty band. */
.atlas-body:not(.atlas-reading) .atlas-header { position: absolute; top: 0; left: 0; right: 0; }
.atlas-body:not(.atlas-reading) .atlas { height: 100svh; }
@media (max-width: 740px) {
  .atlas-body:not(.atlas-reading) .atlas-intro { top: calc(56px + 25px); }
}
.atlas-arriving .atlas-labels { animation: ship-star 1.4s 1.2s ease-out both; }
/* The bottom hints are gone, so the line above the controls is gone too. */
.atlas-utility { border-top-color: transparent; }
/* Mist drifting in front of the hand on the first screen. */
.anima-touch-mist { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.anima-touch > :not(.anima-touch-field):not(.anima-touch-mist) { position: relative; z-index: 1; }
/* The hand beside ANIMA rests in a small nebula; a wisp of it sometimes drifts across in front. */
.atlas-intro h1 { position: relative; }
.anima-hand-nebula, .anima-hand-mist { position: absolute; pointer-events: none; }
.anima-hand-nebula { z-index: 0; }
.atlas-intro h1 .anima-hand { z-index: 1; }
.anima-hand-mist { z-index: 2; }
/* On a phone each planet also carries its own glowing point, so it is seen even on a small, dim screen. */
@media (max-width: 740px) {
  .atlas-star span::before { content: ''; position: absolute; left: -14px; top: -15px; width: 6px; height: 6px; border-radius: 50%;
    background: #eef3ff; box-shadow: 0 0 6px 2px #b8ceffcc, 0 0 16px 5px #5f8cff66; animation: planet-glow 3.6s ease-in-out infinite; }
  .atlas-star:nth-child(2n) span::before { animation-delay: -1.3s; }
  .atlas-star:nth-child(3n) span::before { animation-delay: -2.4s; }
  .atlas-star.selected-star span::before { width: 8px; height: 8px; left: -15px; top: -16px; }
}
@keyframes planet-glow { 50% { box-shadow: 0 0 9px 3px #c8d8ffee, 0 0 22px 7px #6f98ff88; } }
