/* Scene-led atlas: one continuous object, two levels of exploration. */
body.exploring {
  overflow: hidden;
}
.skip:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.spatial {
  overflow: clip;
  margin: 0 0 0 -20px;
  isolation: isolate;
  background: radial-gradient(ellipse at 49% 50%, #24445d65 0, transparent 64%);
  border: 0;
  height: 690px;
}
.spatial::before {
  content: "";
  position: absolute;
  inset: 16% 12% 17%;
  border: 1px solid #94b8d210;
  border-radius: 50%;
  transform: rotate(-22deg);
  pointer-events: none;
  z-index: -1;
}
.spatial canvas {
  position: absolute;
  inset: 55px 0 122px;
  width: 100%;
  height: calc(100% - 177px);
  touch-action: pan-y;
  outline: 0;
}
.spatial canvas.dragging {
  cursor: grabbing !important;
}
.canvas-ready .scene-static {
  display: none;
}
.scene-static {
  position: absolute;
  inset: 55px 0 122px;
  border: 0;
  display: block;
  padding: 0;
  transform: none;
}
.atlas-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.scene-static span {
  padding: 22px 10px;
  border: 1px solid #b1c7d542;
  border-radius: 40% 8%;
  text-align: center;
  background: #122d43;
}
.atlas-labels {
  position: absolute;
  inset: 55px 0 122px;
  pointer-events: none;
  z-index: 2;
}
.atlas-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  min-height: 32px;
  padding: 5px 10px;
  background: #081c2ce6;
  color: #dce7ef;
  border: 1px solid #668098;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: 0 5px 20px #0003;
  transition:
    color 0.25s,
    border-color 0.25s,
    opacity 0.25s,
    background 0.25s;
}
.atlas-tag::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border: 1px solid #c4d9e8;
  border-radius: 50%;
  vertical-align: middle;
}
.atlas-tag.selected {
  color: #ffe0a0;
  border-color: #ccb07a;
  background: #1b2a32;
}
.atlas-tag.selected::before {
  background: #ffe0a0;
  border-color: #ffe0a0;
}
.atlas-tag.dimmed {
  opacity: 0.68;
}
.atlas-tag:hover,
.atlas-tag:focus-visible {
  opacity: 1;
  background: #243f52;
  border-color: #d0dfeb;
}
.js .scene-topbar {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 4;
}
.layout-switch {
  display: flex;
  padding: 3px;
  border: 1px solid #617b914f;
  border-radius: 30px;
  background: #091a2ac9;
  backdrop-filter: blur(12px);
}
.layout-switch button {
  border: 0;
  border-radius: 23px;
  font-size: 10px;
  padding: 8px 14px;
  min-height: 38px;
  color: #bed0df;
  transition:
    background 0.3s,
    color 0.3s;
}
.layout-switch button[aria-pressed="true"] {
  background: #afc9de;
  color: #0a2134;
  border: 0;
}
#atlas-tour {
  font-size: 10px;
  border: 0;
  color: #d6c59f;
  padding: 10px 4px;
  background: none;
}
#atlas-tour[aria-pressed="true"] {
  color: #fff0cf;
}
.js .stage-guidance {
  position: absolute;
  bottom: 114px;
  left: 10%;
  right: 10%;
  z-index: 2;
  text-align: center;
  font-size: 10px;
  color: #9fb9cd;
  pointer-events: none;
  letter-spacing: 0.015em;
}
.js .scene-tools {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 4;
}
.scene-tools button {
  min-height: 40px;
  padding: 7px 12px;
  font-size: 10px;
  border: 1px solid #536e83;
  border-radius: 5px;
  background: #0b2031d9;
  color: #dce7ef;
  backdrop-filter: blur(12px);
  transition: background 0.2s;
}
.scene-tools button:hover {
  background: #244257;
}
.zoom-controls {
  display: flex;
  gap: 2px;
}
.zoom-controls button {
  font-size: 19px;
  min-width: 37px;
  padding: 0 9px;
}
.scene-caption {
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  letter-spacing: 0;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
  color: #a4b9c9;
}
.scene-caption span:first-child {
  color: #b6c9d7;
}
.opening {
  grid-template-columns: 0.9fr 1.1fr;
}
.opening-copy {
  padding-right: 16px;
}
.atlas-interface {
  border-color: #5b758951;
}
.path-row {
  border-color: #5b758951;
}
.path-row label {
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0.04em;
}
.layer-nav button {
  border-color: #66809560;
  transition:
    background 0.25s,
    color 0.25s;
  border-radius: 2px;
}
.layer-nav button[aria-pressed="true"] {
  background: #284258;
  color: #f5e6c8;
}
.layer-copy h2 {
  font-size: 34px;
  line-height: 1.15;
}
.layer-copy .eyebrow {
  letter-spacing: 0.03em;
  font-size: 11px;
  text-transform: none;
}
.component-explorer {
  margin: 25px 0 10px;
  padding: 20px 0 0;
  border-top: 1px solid #5771835c;
}
.component-explorer h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  margin: 0 0 12px;
  color: #bfd0dc;
  letter-spacing: 0.02em;
}
#component-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
#component-controls button {
  padding: 9px 12px;
  font-size: 11px;
  min-height: 40px;
  border-color: #69839a;
  border-radius: 5px;
  background: #152e4166;
  color: #dce7ed;
  transition: background 0.25s;
}
#component-controls button[aria-pressed="true"] {
  border-color: #c9b283;
  color: #f6dab0;
  background: #343b3b;
}
#component-detail {
  padding: 18px 0 8px;
}
#component-detail h4 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #f1e6cf;
}
#component-detail p {
  font-size: 13px;
  color: #b9cddd;
  line-height: 1.7;
}
#component-related {
  font-size: 11px;
  border: 0;
  border-bottom: 1px solid #8ca5b9;
  padding: 8px 0;
  min-height: 40px;
  color: #dce8f1;
  text-align: left;
}
#component-related::after {
  content: " ↗";
}
[hidden] {
  display: none !important;
}
/* Focused room: the object owns the space; the inspector is secondary. */
dialog.explorer {
  color: #edf2f5;
  background:
    radial-gradient(ellipse at 25% 45%, #173c5260, transparent 65%), #071724;
  border: 0;
  border-radius: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
  color-scheme: dark;
  overflow: hidden;
  box-shadow: none;
}
.explorer-head {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 20px;
  border-bottom: 1px solid #50708435;
  background: #081a29b5;
  position: relative;
  z-index: 6;
}
.explorer-head h2 {
  font-size: 25px;
  font-weight: 350;
  letter-spacing: -0.02em;
  margin: 0;
  color: #f0e5d1;
}
.explorer-head button {
  border: 1px solid #718da1;
  border-radius: 28px;
  font-size: 11px;
  padding: 8px 17px;
  color: #e1e9ef;
  min-height: 40px;
}
.explorer-head button:hover {
  background: #203c50;
}
.explorer-body {
  height: calc(100dvh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 0;
  align-items: stretch;
  padding: 0 28px 0 12px;
}
.explorer .spatial {
  height: 100%;
  width: 100%;
  margin: 0;
  min-width: 0;
  position: relative;
  background: radial-gradient(ellipse at 47% 47%, #33566a48, transparent 66%);
}
.explorer .scene-topbar {
  top: 24px;
  left: 25px;
  right: 30px;
}
.explorer .scene-tools {
  bottom: 65px;
}
.explorer .stage-guidance {
  bottom: 125px;
  font-size: 11px;
}
.explorer .scene-caption {
  bottom: 20px;
  font-size: 10px;
}
.explorer .spatial canvas {
  touch-action: none;
}
.explorer .atlas-interface {
  width: 100%;
  margin: 0;
  padding: 25px 25px 35px;
  background: linear-gradient(145deg, #142d3ee6, #102737d9);
  border: 1px solid #65819545;
  border-top: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #557488 transparent;
  align-self: stretch;
}
.explorer .path-row {
  padding: 0 0 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.explorer .path-row label {
  color: #b7ccda;
  width: 100%;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.explorer .path-row select {
  color: #f1e7d4;
  font-size: 12px;
  max-width: 82%;
  min-height: 38px;
}
.explorer #path-progress {
  font-size: 9px;
  letter-spacing: 0;
}
.explorer .layer-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 0 0;
}
.explorer .layer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.explorer .layer-nav button {
  border: 1px solid #5f7a8f;
  border-radius: 5px;
  font-size: 10px;
  text-align: left;
  padding: 10px 11px;
  min-height: 43px;
  color: #d1dfe8;
  background: #102a3b;
}
.explorer .layer-nav button span {
  display: none;
}
.explorer .layer-nav button[aria-pressed="true"] {
  background: #c4d6e2;
  color: #0c293e;
  border-color: #c4d6e2;
}
.explorer .layer-copy h2 {
  font-size: 34px;
  line-height: 1.15;
  color: #f5ecdc;
  margin-bottom: 17px;
  max-width: 20ch;
}
.explorer .layer-copy .eyebrow {
  color: #c9b68b;
  font-size: 10px;
  letter-spacing: 0.01em;
  margin-bottom: 13px;
}
.explorer .layer-copy p {
  font-size: 13px;
  color: #bfd0dd;
  line-height: 1.75;
}
.explorer .layer-copy details {
  border-color: #6a82954f;
  font-size: 11px;
}
.explorer .layer-copy summary {
  padding: 6px 0;
  color: #d8e2e9;
}
.explorer .layer-links {
  gap: 20px;
  font-size: 10px;
}
.explorer .layer-copy a {
  color: #d8e4ee;
}
.explorer .connection {
  display: block;
  border: 0;
  border-top: 1px solid #69849755;
  padding: 20px 0 0;
}
.explorer .connection .eyebrow {
  font-size: 9px;
  letter-spacing: 0.02em;
  margin-bottom: 9px;
  display: block;
  color: #bccfdd;
}
.explorer .connection p {
  font-size: 21px;
  line-height: 1.45;
  margin-bottom: 12px;
  color: #d9e4ec;
}
.explorer .connection button {
  font-size: 11px;
  color: #e4edf2;
  border: 1px solid #688396;
  border-radius: 4px;
}
.explorer .component-explorer {
  margin-top: 20px;
}
.explorer .component-explorer h3 {
  color: #c1d1dd;
}
.explorer #component-controls button {
  font-size: 10px;
  min-height: 38px;
  padding: 8px 10px;
  color: #dce7ed;
}
.explorer #component-controls button[aria-pressed="true"] {
  color: #ffe1a6;
}
.explorer #component-detail h4 {
  color: #f1e6cf;
}
.explorer #component-related {
  color: #e0eaf0;
}
.explorer .scene-tools button {
  color: #dce7ef;
}
.explorer .scene-tools button[aria-pressed="true"] {
  color: #f1dab0;
}
.explorer .layout-switch button {
  color: #bed0df;
}
.explorer .layout-switch button[aria-pressed="true"] {
  color: #0a2134;
}
.explorer .atlas-tag {
  color: #dce7ef;
}
.explorer .atlas-tag.selected {
  color: #ffe0a0;
}
.explorer[open] {
  animation: room-enter 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes room-enter {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.mobile-architecture {
  display: none;
}
.architecture > p.wrap {
  max-width: 1280px;
}
.manuscript a {
  overflow-wrap: anywhere;
}
#retention-summary {
  font-size: 12px;
  color: #4d5f70;
}
@media (min-width: 1500px) {
  .explorer-body {
    grid-template-columns: minmax(0, 1fr) 410px;
    padding-right: 40px;
  }
  .explorer .atlas-interface {
    padding: 32px;
  }
  .spatial {
    height: 740px;
  }
  .explorer .layer-copy h2 {
    font-size: 38px;
  }
}
@media (max-width: 1050px) {
  .explorer-body {
    grid-template-columns: minmax(0, 1fr) 330px;
    padding-right: 14px;
  }
  .explorer .atlas-interface {
    padding: 20px;
  }
  .explorer .layer-copy h2 {
    font-size: 30px;
  }
  .explorer .scene-topbar {
    left: 10px;
    right: 10px;
  }
  .layout-switch button {
    padding: 8px 10px;
  }
  .scene-tools button {
    padding: 7px 9px;
  }
  .spatial {
    height: 610px;
  }
  .opening {
    grid-template-columns: 1fr 1fr;
  }
  .atlas-tag {
    font-size: 10px;
    padding: 5px 7px;
  }
  .scene-topbar {
    left: 4px;
    right: 4px;
  }
  .stage-guidance {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  .opening {
    grid-template-columns: 1fr;
  }
  .opening-copy {
    padding-right: 0;
  }
  .spatial {
    height: 510px;
    margin: 15px -12px 0;
    width: calc(100% + 24px);
  }
  .scene-topbar {
    left: 8px;
    right: 8px;
    top: 6px;
  }
  .layout-switch button {
    font-size: 10px;
    padding: 7px 13px;
  }
  #atlas-tour {
    font-size: 10px;
  }
  .atlas-labels {
    display: none;
  }
  .stage-guidance {
    font-size: 9px !important;
    bottom: 103px !important;
    left: 0;
    right: 0;
  }
  .js .scene-tools {
    bottom: 48px;
    gap: 5px;
  }
  .scene-tools button {
    font-size: 9px;
    padding: 7px 10px;
    min-height: 38px;
  }
  .zoom-controls button {
    font-size: 18px;
    padding: 0 8px;
    min-width: 34px;
  }
  .scene-caption {
    font-size: 9px;
    bottom: 3px;
  }
  .layer-copy h2 {
    font-size: 30px;
  }
  dialog.explorer {
    overflow: auto;
  }
  .explorer-head {
    height: 64px;
    padding: 0 19px;
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
  }
  .explorer-head h2 {
    font-size: 23px;
  }
  .explorer-head button {
    font-size: 10px;
    padding: 7px 12px;
    max-width: 150px;
    min-height: 40px;
  }
  .explorer-body {
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  .explorer .spatial {
    width: 100%;
    height: 440px;
    flex-shrink: 0;
    position: relative;
    margin: 0;
  }
  .explorer .scene-topbar {
    top: 15px;
    left: 18px;
    right: 18px;
  }
  .explorer .scene-tools {
    bottom: 48px;
  }
  .explorer .scene-caption {
    bottom: 5px;
    font-size: 9px;
  }
  .explorer .atlas-interface {
    border: 0;
    border-top: 1px solid #65819545;
    overflow: visible;
    padding: 23px 24px 40px;
  }
  .explorer .path-row {
    display: flex;
    gap: 8px;
  }
  .explorer .path-row label {
    font-size: 9px;
  }
  .explorer .layer-layout {
    gap: 22px;
  }
  .explorer .layer-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .explorer .layer-nav button {
    font-size: 10px;
    padding: 9px 7px;
    line-height: 1.4;
    text-align: center;
    min-height: 46px;
  }
  .explorer .layer-copy h2 {
    font-size: 34px;
    max-width: 22ch;
  }
  .explorer .layer-copy p {
    font-size: 14px;
    line-height: 1.75;
  }
  .explorer #component-controls button {
    font-size: 11px;
    min-height: 42px;
  }
  .explorer .connection {
    padding-top: 20px;
  }
  .explorer .layer-links {
    font-size: 12px;
  }
  #architecture-svg {
    display: none;
  }
  .mobile-architecture {
    display: block;
    width: 100%;
    margin: 15px 0 25px;
  }
  .mobile-node {
    font-size: 14px;
    padding: 15px 18px;
    border: 1px solid #637f96;
    margin: 0;
    text-align: center;
  }
  .mobile-node span {
    display: block;
    font-size: 11px;
    color: #4d5f70;
    margin-top: 5px;
  }
  .flow-arrow {
    display: block;
    text-align: center;
    font-size: 23px;
    color: #486b8c;
    line-height: 1.7;
  }
  .mobile-boundary {
    padding: 12px;
    border-left: 3px solid #9aacba;
  }
  .mobile-boundary.target {
    border: 1px dashed #496984;
    background: #d9e2e8;
  }
  .mobile-provider {
    border-style: dashed;
  }
  .target .mobile-provider {
    border-style: solid;
  }
  .mobile-boundary-caption {
    font-size: 11px;
    color: #43586a;
    margin: 15px 0 0;
    text-align: center;
  }
  .masthead nav {
    gap: 14px;
  }
  .masthead .brand {
    flex-shrink: 0;
  }
}
@media (max-width: 350px) {
  .masthead {
    padding-left: 16px;
    padding-right: 16px;
    gap: 10px;
  }
  .masthead nav {
    gap: 12px;
  }
  .masthead nav a {
    font-size: 10px;
  }
  h1 {
    font-size: 39px;
  }
  .spatial {
    height: 460px;
  }
  .scene-tools button {
    font-size: 8px;
    padding: 7px;
  }
  .explorer .spatial {
    height: 395px;
  }
  .explorer-head {
    padding: 0 14px;
  }
  .explorer-head h2 {
    font-size: 21px;
  }
  .explorer-head button {
    max-width: 134px;
    font-size: 9px;
  }
  .explorer .atlas-interface {
    padding-left: 18px;
    padding-right: 18px;
  }
  .layout-switch button {
    padding: 7px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .explorer[open] {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}
.reduced .explorer[open] {
  animation: none;
}
@media print {
  dialog.explorer,
  .spatial {
    display: none !important;
  }
}
