:root {
  --void: #07090c;
  --void-raised: #0b1015;
  --surface: #10171e;
  --surface-strong: #17212b;
  --paper: #e5e9e8;
  --paper-dim: #9ba7af;
  --line: #31414d;
  --line-soft: rgba(213, 225, 230, 0.085);
  --signal: #a83f3c;
  --signal-bright: #d25751;
  --survey: #6f91a5;
  --status: #68827c;
  --font-display: 'Arial Narrow', 'Bahnschrift Condensed', 'Aptos Narrow', sans-serif;
  --font-body: 'Iowan Old Style', 'Charter', 'Palatino Linotype', Georgia, serif;
  --font-ui: 'Cascadia Code', 'IBM Plex Mono', 'Courier New', monospace;
  --header-height: 4.5rem;
  --page-gutter: clamp(1.1rem, 3.8vw, 4.25rem);
  --content-width: 96rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--void);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body.site {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.site.nav-open {
  overflow: hidden;
}

.site img,
.site svg,
.site canvas {
  display: block;
  max-width: 100%;
}

.site a {
  color: inherit;
  text-decoration: none;
}

:where(.site) button,
:where(.site) input {
  color: inherit;
  font: inherit;
}

:where(.site) button {
  border-radius: 0;
}

.site h1,
.site h2,
.site h3,
.site p,
.site figure {
  margin: 0;
}

.site h1,
.site h2,
.site h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  text-wrap: balance;
}

.site p {
  text-wrap: pretty;
}

.site :focus-visible {
  outline: 2px solid var(--signal-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  color: var(--void);
  font: 0.68rem/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: none;
}

.system-label,
.site-status,
.site-nav,
.nav-toggle,
.room-code,
.room-kicker,
.room-meta,
.section-code,
.route-action,
.text-route,
.record-meta,
.filter-button,
.footer-meta,
.atlas-controls,
.atlas-instructions,
.room-marker__code,
.room-marker__type,
.room-marker__action,
.atlas-annotation,
.atlas-prompt {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) auto minmax(13rem, 1fr);
  align-items: center;
  gap: 1rem;
  padding-inline: var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.91);
  backdrop-filter: blur(14px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  justify-self: start;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.site-brand img {
  width: 2rem;
  height: 2rem;
  filter: grayscale(1) contrast(1.2);
}

.site-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: center;
  margin: 0;
  color: var(--paper-dim);
}

.status-lamp {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 0 3px rgba(104, 130, 124, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.5rem);
  justify-self: end;
}

.site-nav a {
  position: relative;
  padding-block: 1rem;
  color: var(--paper-dim);
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.55rem;
  left: 0;
  height: 1px;
  background: var(--signal);
  content: '';
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 220ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--paper);
}

.site-nav a:hover::after,
.site-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.atlas-site {
  position: fixed;
  inset: 0;
  overflow: hidden;
  user-select: none;
}

.atlas {
  position: fixed;
  inset: var(--header-height) 0 0;
  overflow: clip;
  isolation: isolate;
  background: var(--void);
  cursor: grab;
  touch-action: none;
}

.atlas.is-dragging {
  cursor: grabbing;
}

.atlas::before {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(68rem, 72vw);
  background: linear-gradient(90deg, var(--void) 0%, rgba(7, 9, 12, 0.96) 37%, rgba(7, 9, 12, 0.72) 57%, transparent 100%);
  content: '';
  pointer-events: none;
  transition: opacity 500ms var(--ease-out);
}

.atlas.has-explored::before {
  opacity: 0;
}

.atlas::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  border: 1px solid rgba(229, 233, 232, 0.06);
  box-shadow: inset 0 0 12rem rgba(0, 0, 0, 0.74);
  pointer-events: none;
  content: '';
}

.atlas-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.58;
  transition: opacity 500ms var(--ease-out);
}

.atlas.has-explored .atlas-field {
  opacity: 0.94;
}

.atlas-world {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.atlas-intro {
  position: absolute;
  z-index: 14;
  top: clamp(2rem, 7vh, 5.5rem);
  left: var(--page-gutter);
  width: min(33rem, calc(100vw - 2 * var(--page-gutter)));
  padding: 1rem 1rem 1.1rem 0;
  pointer-events: none;
  text-shadow: 0 2px 18px var(--void), 0 2px 32px var(--void);
  transition: opacity 220ms ease;
}

.atlas-intro .system-label {
  margin-bottom: 1rem;
  color: var(--signal-bright);
}

.atlas-intro h1 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 6.8vw, 7.6rem);
  line-height: 0.78;
  letter-spacing: -0.052em;
}

.atlas-intro > p:not(.system-label) {
  max-width: 37rem;
  margin-top: 1.35rem;
  color: var(--paper-dim);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
}

.atlas.has-explored .atlas-intro {
  width: min(24rem, calc(100vw - 2 * var(--page-gutter)));
}

.atlas.has-explored .atlas-intro .system-label {
  margin-bottom: 0.45rem;
}

.atlas.has-explored .atlas-intro h1 {
  max-width: 20rem;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.025em;
}

.atlas.has-explored .atlas-intro > p:not(.system-label),
.atlas.has-explored .atlas-prompt {
  display: none;
}

.atlas.has-explored.is-distant .atlas-intro {
  opacity: 0;
}

.atlas-prompt {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--void);
  cursor: pointer;
  pointer-events: auto;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.atlas-prompt:hover {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--paper);
}

.room-marker {
  --marker-scale: 1;
  position: absolute;
  left: calc(var(--room-x) * 1px);
  top: calc(var(--room-y) * 1px);
  width: calc(var(--room-width) * 1px);
  height: calc(var(--room-height) * 1px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 1.45rem;
  overflow: visible;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%) scale(var(--marker-scale));
  transform-origin: 50% 50%;
  transition: filter 180ms ease, transform 260ms var(--ease-out);
}

.room-marker::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 1px solid var(--line);
  background: rgba(9, 14, 19, 0.82);
  box-shadow: inset 0 0 2.4rem rgba(7, 9, 12, 0.34), 0 1.2rem 3rem rgba(0, 0, 0, 0.26);
  content: '';
  pointer-events: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.room-marker::after {
  position: absolute;
  z-index: 1;
  inset: 0.75rem;
  border: 1px solid rgba(111, 145, 165, 0.24);
  content: '';
  pointer-events: none;
}

.room-marker > * {
  position: relative;
  z-index: 2;
}

.room-marker:hover,
.room-marker:focus-visible {
  --marker-scale: 1.025;
  z-index: 4;
  filter: brightness(1.16);
}

.room-marker:hover::before,
.room-marker:focus-visible::before {
  border-color: var(--paper);
  background: var(--surface-strong);
}

.room-marker__code {
  align-self: start;
  color: var(--signal-bright);
}

.room-marker__type {
  color: var(--paper-dim);
  text-align: right;
}

.room-marker strong {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  align-self: end;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 5.2vw, 5.4rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.room-marker__summary {
  position: relative;
  z-index: 2;
  max-width: 32rem;
  color: var(--paper-dim);
  font-size: 0.92rem;
}

.room-marker__action {
  position: relative;
  z-index: 2;
  align-self: end;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--paper);
  white-space: nowrap;
}

.room-marker--directory {
  gap: 0.7rem 1rem;
  padding: 1.15rem 1.25rem;
}

.room-marker--directory::before {
  border: 2px solid rgba(111, 145, 165, 0.68);
  background: rgba(9, 14, 19, 0.88);
  box-shadow: inset 0 0 0 0.35rem rgba(111, 145, 165, 0.08), 0 1.2rem 3rem rgba(0, 0, 0, 0.22);
}

.room-marker--directory::after {
  inset: 3.2rem 1rem 0.9rem;
  border: 0;
  background:
    linear-gradient(90deg, transparent 0 64%, rgba(111, 145, 165, 0.24) 64% calc(64% + 1px), transparent calc(64% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 2.15rem, rgba(111, 145, 165, 0.2) 2.15rem calc(2.15rem + 1px));
}

.room-marker--directory strong {
  font-size: clamp(2.9rem, 4.4vw, 4.4rem);
}

.room-marker--virgil {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr auto;
  padding: 4.8rem;
  text-align: center;
}

.room-marker--virgil::before {
  border-color: rgba(168, 63, 60, 0.72);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 19, 23, 0.84) 0 48%, rgba(16, 23, 30, 0.8) 49% 65%, rgba(7, 9, 12, 0.76) 66%);
}

.room-marker--virgil::after {
  inset: 1.3rem;
  border-color: rgba(210, 87, 81, 0.38);
  border-radius: 50%;
}

.room-marker--virgil .room-marker__type,
.room-marker--virgil .room-marker__action {
  justify-self: center;
  text-align: center;
}

.room-marker--virgil strong {
  align-self: center;
}

.room-marker--external {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr auto;
  padding: 4rem 3.4rem 4rem 2.2rem;
}

.room-marker--external::before {
  inset: -3rem 2.2rem;
  border-width: 0 1px;
  background: linear-gradient(90deg, rgba(16, 23, 30, 0.84), rgba(9, 14, 19, 0.78));
  clip-path: polygon(0 0, 76% 0, 76% 8%, 100% 8%, 100% 92%, 76% 92%, 76% 100%, 0 100%);
}

.room-marker--external::after {
  inset: -1.7rem 3.7rem;
  border: 0;
  background: repeating-linear-gradient(0deg, transparent 0 2.7rem, rgba(111, 145, 165, 0.2) 2.7rem calc(2.7rem + 1px));
}

.room-marker--external .room-marker__type {
  text-align: left;
}

.room-marker--external .room-marker__summary {
  max-width: 18rem;
}

.room-marker--external .room-marker__action {
  justify-self: start;
}

.room-marker--archive::before {
  background: rgba(15, 23, 30, 0.84);
  clip-path: polygon(0 0, 76% 0, 76% 11%, 86% 11%, 86% 22%, 94% 22%, 94% 34%, 100% 34%, 100% 100%, 0 100%);
}

.room-marker--archive::after {
  inset: 1.3rem -3.4rem 1.3rem 2rem;
  border: 0;
  background: repeating-linear-gradient(0deg, transparent 0 2.9rem, rgba(111, 145, 165, 0.24) 2.9rem calc(2.9rem + 1px));
}

.room-marker--company {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr auto;
  padding: 5.5rem;
  text-align: center;
}

.room-marker--company::before {
  inset: 3.5rem;
  border-color: rgba(111, 145, 165, 0.55);
  background: rgba(14, 20, 27, 0.84);
  transform: rotate(45deg);
}

.room-marker--company::after {
  inset: 5.5rem;
  transform: rotate(45deg);
}

.room-marker--company .room-marker__type,
.room-marker--company .room-marker__action {
  justify-self: center;
  text-align: center;
}

.room-marker--company .room-marker__code,
.room-marker--company .room-marker__summary {
  max-width: 15rem;
  justify-self: center;
}

.atlas.is-distant .room-marker {
  grid-template-rows: auto 1fr;
  padding: 2.2rem;
}

.atlas.is-distant .room-marker__type,
.atlas.is-distant .room-marker__summary,
.atlas.is-distant .room-marker__action {
  display: none;
}

.atlas.is-distant .room-marker strong {
  align-self: center;
  font-size: 3.35rem;
}

.atlas.is-distant .room-marker--virgil {
  padding: 4.8rem;
}

.atlas.is-distant .room-marker--external {
  padding: 3rem 2rem;
}

.room-marker--external .room-marker__action::after {
  content: '';
}

.atlas-annotation {
  position: absolute;
  left: calc(var(--room-x) * 1px);
  top: calc(var(--room-y) * 1px);
  width: 22rem;
  margin: 0;
  padding: 0.65rem 0.8rem;
  border-left: 2px solid rgba(168, 63, 60, 0.68);
  background: rgba(7, 9, 12, 0.78);
  color: rgba(229, 233, 232, 0.62);
  line-height: 1.5;
  transform: translate(-50%, -50%);
}

.atlas-annotation::before {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--survey);
  content: attr(data-note);
}

.atlas-annotation--faint {
  border-left-color: rgba(111, 145, 165, 0.42);
  color: rgba(229, 233, 232, 0.4);
}

.atlas.is-distant .atlas-annotation {
  width: 14rem;
  font-size: 0;
}

.atlas.is-distant .atlas-annotation::before {
  margin: 0;
  font-size: 0.66rem;
}

.atlas-controls {
  position: absolute;
  z-index: 30;
  right: var(--page-gutter);
  bottom: 1.35rem;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.86);
  backdrop-filter: blur(12px);
}

.atlas-coordinates {
  min-width: 9rem;
  display: grid;
  gap: 0.22rem;
  padding: 0.65rem 0.85rem;
  border-right: 1px solid var(--line);
  color: var(--paper-dim);
}

.atlas-coordinates output {
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.atlas-control-buttons {
  display: grid;
  grid-template-columns: 2.75rem auto 2.75rem;
}

.atlas-control-buttons button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.atlas-control-buttons button:last-child {
  border-right: 0;
}

.atlas-control-buttons button:hover {
  background: var(--paper);
  color: var(--void);
}

.atlas-instructions {
  position: absolute;
  z-index: 25;
  bottom: 1.7rem;
  left: var(--page-gutter);
  color: rgba(170, 168, 157, 0.7);
  pointer-events: none;
}

.touch-instruction {
  display: none;
}

.noscript-index {
  position: fixed;
  z-index: 150;
  inset: var(--header-height) 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem var(--page-gutter);
  background: var(--void);
}

.noscript-index a {
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.route-fold {
  --fold-x: 50%;
  --fold-y: 50%;
  position: fixed;
  z-index: 180;
  inset: 0;
  display: none;
  overflow: hidden;
  pointer-events: none;
}

.route-fold.is-closing,
.route-fold.is-opening {
  display: block;
}

.route-fold__plane {
  position: absolute;
  inset: 0;
  background: var(--surface-strong);
  border: 1px solid rgba(229, 224, 211, 0.16);
  will-change: clip-path;
}

.route-fold__plane--top {
  clip-path: polygon(0 0, 100% 0, var(--fold-x) 0);
}

.route-fold__plane--right {
  clip-path: polygon(100% 0, 100% 100%, 100% var(--fold-y));
}

.route-fold__plane--bottom {
  clip-path: polygon(100% 100%, 0 100%, var(--fold-x) 100%);
}

.route-fold__plane--left {
  clip-path: polygon(0 100%, 0 0, 0 var(--fold-y));
}

.route-fold__core {
  position: absolute;
  top: var(--fold-y);
  left: var(--fold-x);
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--signal-bright);
  background: var(--void);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.15) rotate(45deg);
}

.route-fold.is-closing .route-fold__plane--top {
  animation: fold-top-in 680ms var(--ease-in) both;
}

.route-fold.is-closing .route-fold__plane--right {
  animation: fold-right-in 680ms 35ms var(--ease-in) both;
}

.route-fold.is-closing .route-fold__plane--bottom {
  animation: fold-bottom-in 680ms 70ms var(--ease-in) both;
}

.route-fold.is-closing .route-fold__plane--left {
  animation: fold-left-in 680ms 105ms var(--ease-in) both;
}

.route-fold.is-closing .route-fold__core {
  animation: fold-core-in 360ms 420ms var(--ease-out) both;
}

.route-fold.is-opening .route-fold__plane--top {
  animation: fold-top-out 760ms var(--ease-out) both;
}

.route-fold.is-opening .route-fold__plane--right {
  animation: fold-right-out 760ms 35ms var(--ease-out) both;
}

.route-fold.is-opening .route-fold__plane--bottom {
  animation: fold-bottom-out 760ms 70ms var(--ease-out) both;
}

.route-fold.is-opening .route-fold__plane--left {
  animation: fold-left-out 760ms 105ms var(--ease-out) both;
}

.route-fold.is-opening .route-fold__core {
  animation: fold-core-out 480ms var(--ease-out) both;
}

@keyframes fold-top-in {
  from { clip-path: polygon(0 0, 100% 0, var(--fold-x) 0); }
  to { clip-path: polygon(0 0, 100% 0, var(--fold-x) var(--fold-y)); }
}

@keyframes fold-right-in {
  from { clip-path: polygon(100% 0, 100% 100%, 100% var(--fold-y)); }
  to { clip-path: polygon(100% 0, 100% 100%, var(--fold-x) var(--fold-y)); }
}

@keyframes fold-bottom-in {
  from { clip-path: polygon(100% 100%, 0 100%, var(--fold-x) 100%); }
  to { clip-path: polygon(100% 100%, 0 100%, var(--fold-x) var(--fold-y)); }
}

@keyframes fold-left-in {
  from { clip-path: polygon(0 100%, 0 0, 0 var(--fold-y)); }
  to { clip-path: polygon(0 100%, 0 0, var(--fold-x) var(--fold-y)); }
}

@keyframes fold-top-out {
  from { clip-path: polygon(0 0, 100% 0, var(--fold-x) var(--fold-y)); }
  to { clip-path: polygon(0 0, 100% 0, var(--fold-x) 0); }
}

@keyframes fold-right-out {
  from { clip-path: polygon(100% 0, 100% 100%, var(--fold-x) var(--fold-y)); }
  to { clip-path: polygon(100% 0, 100% 100%, 100% var(--fold-y)); }
}

@keyframes fold-bottom-out {
  from { clip-path: polygon(100% 100%, 0 100%, var(--fold-x) var(--fold-y)); }
  to { clip-path: polygon(100% 100%, 0 100%, var(--fold-x) 100%); }
}

@keyframes fold-left-out {
  from { clip-path: polygon(0 100%, 0 0, var(--fold-x) var(--fold-y)); }
  to { clip-path: polygon(0 100%, 0 0, 0 var(--fold-y)); }
}

@keyframes fold-core-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.15) rotate(45deg); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}

@keyframes fold-core-out {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.15) rotate(-45deg); }
}

.room-site {
  min-height: 100vh;
  overflow-x: hidden;
}

.room-main {
  position: relative;
  padding-top: var(--header-height);
}

.room-main::before {
  position: fixed;
  z-index: 0;
  inset: var(--header-height) 0 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: clamp(3rem, 6vw, 6rem) clamp(3rem, 6vw, 6rem);
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  opacity: 0.45;
  pointer-events: none;
  content: '';
}

.room-hero,
.room-document,
.room-footer {
  position: relative;
  z-index: 1;
}

.room-hero {
  min-height: calc(94svh - var(--header-height));
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(6rem, 13vh, 9rem) var(--page-gutter) clamp(3rem, 7vh, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(16, 23, 30, 0.84), rgba(7, 9, 12, 0.95) 62%);
  isolation: isolate;
}

.room-hero::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: 5%;
  width: min(44rem, 46vw);
  aspect-ratio: 1;
  border: 1px solid rgba(111, 145, 165, 0.27);
  content: '';
  transform: rotate(18deg);
}

.room-hero::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(229, 224, 211, 0.08);
  content: '';
  transform: rotate(-6deg);
}

.room-field {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.room-hero__copy {
  grid-column: 1 / 9;
}

.room-code {
  margin-bottom: 1.2rem;
  color: var(--signal-bright);
}

.room-hero h1 {
  max-width: 10ch;
  font-size: clamp(4.6rem, 10.5vw, 11.5rem);
  line-height: 0.76;
  letter-spacing: -0.057em;
}

.room-hero__summary {
  grid-column: 9 / -1;
  align-self: end;
  padding: 1rem 0 0 1.25rem;
  border-top: 1px solid var(--paper);
  border-left: 1px solid var(--paper);
}

.room-hero__summary > p:not(.room-meta) {
  max-width: 36rem;
  color: var(--paper-dim);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.room-meta {
  margin-bottom: 0.75rem;
  color: var(--survey);
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.route-action {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.74);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.route-action:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--void);
}

.route-action--primary {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--paper);
}

.room-document {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.document-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
}

.document-section:last-child {
  border-bottom: 0;
}

.section-code {
  grid-column: 1 / 3;
  color: var(--signal-bright);
}

.section-heading {
  grid-column: 3 / 8;
}

.section-heading h2 {
  max-width: 10ch;
  font-size: clamp(3rem, 6.5vw, 7rem);
  line-height: 0.81;
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 37rem;
  margin-top: 1.3rem;
  color: var(--paper-dim);
  font-size: 1.02rem;
}

.section-body {
  grid-column: 8 / -1;
  align-self: start;
}

.section-body--wide {
  grid-row: 2;
  grid-column: 3 / -1;
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.section-body > p {
  max-width: 45rem;
  color: var(--paper-dim);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.section-body > p + p {
  margin-top: 1.2rem;
}

.principle-list,
.process-list,
.record-list,
.project-register {
  border-top: 1px solid var(--line);
}

.principle-row,
.process-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.principle-row .room-meta,
.process-row .room-meta {
  margin: 0;
}

.principle-row h3,
.process-row h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.principle-row p,
.process-row p {
  margin-top: 0.45rem;
  color: var(--paper-dim);
}

.project-entry {
  position: relative;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) minmax(10rem, auto);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
  padding: clamp(1.5rem, 3.2vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
}

.project-entry::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--signal);
  content: '';
  transition: width 320ms var(--ease-out);
}

.project-entry:hover::before {
  width: 100%;
}

.project-entry h3 {
  font-size: clamp(2.6rem, 5.5vw, 5.8rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
}

.project-entry p {
  max-width: 42rem;
  margin-top: 0.7rem;
  color: var(--paper-dim);
}

.project-entry .text-route {
  justify-self: end;
}

.text-route {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--paper);
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}

.text-route:hover {
  border-color: var(--signal-bright);
  color: var(--signal-bright);
}

.record-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 3vw, 2.6rem);
  border-bottom: 1px solid var(--line);
}

.record-meta {
  color: var(--signal-bright);
}

.record-row h3 {
  max-width: 22ch;
  font-size: clamp(1.8rem, 3.6vw, 3.9rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.record-row p {
  max-width: 46rem;
  margin-top: 0.65rem;
  color: var(--paper-dim);
}

.record-row[hidden] {
  display: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-button {
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper-dim);
  cursor: pointer;
}

.filter-button:hover,
.filter-button[aria-pressed='true'] {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--void);
}

.archive-count {
  align-self: center;
  margin-left: auto;
  color: var(--paper-dim);
}

.media-record {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.media-record figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.media-record img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.82) contrast(1.08) brightness(0.78);
  transition: filter 300ms ease, transform 600ms var(--ease-out);
}

.media-record:hover img {
  filter: grayscale(0.2) contrast(1.05) brightness(0.9);
  transform: scale(1.015);
}

.media-record figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
  font: 0.62rem/1.3 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-record__copy h3 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 4.4vw, 4.7rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.media-record__copy > p:not(.room-kicker) {
  max-width: 44rem;
  margin-top: 1rem;
  color: var(--paper-dim);
}

.room-kicker {
  margin-bottom: 0.9rem;
  color: var(--signal-bright);
}

.field-frame {
  position: relative;
  min-height: clamp(25rem, 50vw, 42rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.field-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.field-frame__label {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 0.8rem;
  left: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--paper-dim);
  font: 0.61rem/1.3 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.room-footer {
  padding: 2.3rem var(--page-gutter);
  border-top: 1px solid var(--line);
}

.room-footer__inner {
  width: min(100%, var(--content-width));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-inline: auto;
}

.room-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.room-footer__brand img {
  width: 2.2rem;
  height: 2.2rem;
  filter: grayscale(1);
}

.footer-meta {
  color: var(--paper-dim);
  text-align: right;
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-status {
    display: none;
  }

  .site-nav {
    grid-column: 2;
  }

  .room-hero__copy {
    grid-column: 1 / 9;
  }

  .room-hero__summary {
    grid-column: 9 / -1;
  }

  .section-code {
    grid-column: 1 / 3;
  }

  .section-heading {
    grid-column: 3 / 7;
  }

  .section-body {
    grid-column: 7 / -1;
  }
}

@media (max-height: 720px) and (min-width: 801px) {
  .atlas-intro {
    top: 1.5rem;
  }

  .atlas-intro h1 {
    max-width: 10ch;
    font-size: 10.5vh;
    line-height: 0.79;
  }

  .atlas-intro > p:not(.system-label) {
    max-width: 34rem;
    margin-top: 0.9rem;
    font-size: 0.9rem;
  }

  .atlas-prompt {
    margin-top: 0.9rem;
  }

  .atlas.has-explored .atlas-intro h1 {
    font-size: 1.15rem;
    line-height: 1;
  }
}

@media (max-width: 800px) {
  :root {
    --header-height: 4.2rem;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 2;
    grid-row: 1;
    grid-column: 2;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--void);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.65rem);
    transition: opacity 180ms ease, visibility 180ms ease, transform 240ms var(--ease-out);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .atlas-intro {
    top: 1.3rem;
  }

  .atlas-intro h1 {
    max-width: 8.5ch;
    font-size: clamp(3.3rem, 15vw, 6.4rem);
  }

  .atlas-intro > p:not(.system-label) {
    max-width: 29rem;
    font-size: 0.9rem;
  }

  .atlas-controls {
    right: 1rem;
    bottom: 1rem;
  }

  .atlas-instructions {
    right: 1rem;
    bottom: 5.2rem;
    left: auto;
    max-width: 15rem;
    text-align: right;
  }

  .desktop-instruction {
    display: none;
  }

  .touch-instruction {
    display: inline;
  }

  .room-hero {
    min-height: 90svh;
    grid-template-columns: 1fr;
    align-content: end;
  }

  .room-hero__copy,
  .room-hero__summary {
    grid-column: 1;
  }

  .room-hero__summary {
    min-width: 0;
    width: 100%;
    max-width: 34rem;
    margin-top: 2.5rem;
  }

  .room-hero__summary > p {
    overflow-wrap: anywhere;
  }

  .room-hero h1 {
    font-size: clamp(4rem, 17vw, 8rem);
  }

  .document-section {
    grid-template-columns: 1fr;
  }

  .section-code,
  .section-heading,
  .section-body {
    grid-column: 1;
  }

  .section-body--wide {
    grid-row: auto;
    grid-column: 1;
  }

  .section-heading h2 {
    max-width: 12ch;
  }

  .section-body {
    margin-top: 2rem;
  }

  .project-entry,
  .record-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .project-entry .text-route {
    justify-self: start;
  }

  .media-record {
    grid-template-columns: 1fr;
  }

  .media-record figure {
    max-width: 38rem;
  }
}

@media (max-width: 520px) {
  :root {
    --page-gutter: 1rem;
  }

  .site-brand span {
    font-size: 0.82rem;
  }

  .site-brand img {
    width: 1.7rem;
    height: 1.7rem;
  }

  .atlas-intro {
    top: 1rem;
    width: calc(100vw - 2rem);
  }

  .atlas-intro .system-label {
    margin-bottom: 0.7rem;
  }

  .atlas-intro h1 {
    max-width: none;
    font-size: clamp(3rem, 14.3vw, 4.4rem);
  }

  .atlas-intro > p:not(.system-label) {
    max-width: calc(100vw - 3rem);
    margin-top: 0.9rem;
  }

  .atlas-prompt {
    margin-top: 1rem;
  }

  .atlas-controls {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .atlas-coordinates {
    min-width: 0;
  }

  .atlas-control-buttons {
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  }

  .atlas-control-buttons button:nth-child(2) {
    width: 100%;
  }

  .atlas-instructions {
    display: none;
  }

  .room-hero {
    min-height: calc(100svh - var(--header-height));
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .room-hero h1 {
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .room-hero__summary {
    padding-left: 0;
    border-left: 0;
  }

  .room-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .route-action {
    width: 100%;
  }

  .section-heading h2 {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  .principle-row,
  .process-row {
    grid-template-columns: 2.4rem 1fr;
  }

  .archive-count {
    width: 100%;
    margin-left: 0;
  }

  .room-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .route-fold {
    display: none !important;
  }

}
