/* Shared Rina Joy chrome. Geometry stays the same on every page. */
.rj-head {
  position: fixed;
  z-index: 90;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  pointer-events: none;
}
.rj-head a, .rj-head button { pointer-events: auto; }
.rj-logo { display: block; line-height: 0; }
.rj-logo img { display: block; height: 34px; width: auto; }
.rj-burger {
  width: 36px; height: 36px;
  border: 0; padding: 0; margin: 0;
  background: transparent;
  display: grid; gap: 6px; align-content: center; justify-items: end;
  cursor: pointer;
}
.rj-burger span {
  display: block; height: 1.5px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.rj-burger span:first-child { width: 18px; }
.rj-burger span:last-child { width: 12px; }
.rj-head.is-open .rj-burger span:first-child { width: 18px; transform: translateY(3.75px) rotate(40deg); }
.rj-head.is-open .rj-burger span:last-child { width: 18px; transform: translateY(-3.75px) rotate(-40deg); }
body.rj-on-dark .rj-head { color: #f4efe6; }
body.rj-on-light .rj-head { color: #161412; }

.rj-menu {
  position: fixed; inset: 0; z-index: 85;
  display: none;
  background: #0c0c0c;
  color: #f4efe6;
  align-items: center; justify-content: center;
}
.rj-menu.is-open { display: flex; }
.rj-menu nav { display: grid; gap: .35rem; text-align: center; }
.rj-menu a {
  font-family: "Bodoni Moda", "Big Shoulders Display", serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: .95;
  letter-spacing: .04em;
  color: #f4efe6;
  text-decoration: none;
  min-height: 44px;
  padding: .15rem .4rem;
}
.rj-menu a:hover, .rj-menu a:focus-visible { color: #c4552a; }
.rj-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: .12em; }

.rj-foot {
  position: relative; z-index: 4;
  background: #161412; color: #f4efe6;
  padding: 2.4rem 1.2rem 1.6rem;
  text-align: center;
}
.rj-foot nav { display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; justify-content: center; }
.rj-foot a {
  color: #f4efe6; text-decoration: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px; letter-spacing: .12em;
  min-height: 44px; display: inline-flex; align-items: center;
}
.rj-foot a:hover, .rj-foot a:focus-visible { color: #e7b9a4; }
.rj-copy {
  margin: .8rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: .04em; color: #c8c2b8;
}

body.world-echo .tools,
body.home .tools,
body.home-foundry .tools,
body.room .tools,
body.room-seq .tools,
body.world-soul .tools,
body.world-research .tools,
body.page-contact .tools,
body.research-field .tools,
.about-page .tools,
.spec-brand,
.lab-top,
footer.site,
.site-foot,
.contact-foot,
.worlds-foot { display: none !important; }

.rj-cue {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: .85;
  display: inline-block; margin-left: .45rem; vertical-align: middle;
  animation: rj-pulse 1.6s ease-in-out infinite;
}
@keyframes rj-pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.35); opacity: .35; }
}
html.reduce .rj-cue { animation: none; }

body.home-fidelity .spec-stack { width: min(22ch, calc(100vw - 48px)); margin-inline: auto; text-align: center; }
body.home-fidelity .spec-line { margin-inline: auto; text-align: center; }
body.world-soul .soul-sticky { justify-items: center; text-align: center; }
body.world-soul .soul-kicker { margin-inline: auto; text-align: center; }
.contact-sticky { justify-items: center; text-align: center; }
.contact-line { margin-inline: auto; text-align: center; }

#archive-field.collage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 92px 16px 6vh;
}
#archive-field .echo-band { display: none; }
#archive-field > a.cell {
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 0 !important;
  aspect-ratio: 1;
  min-height: 0;
  background: var(--tile, #161412);
}
#archive-field .cell img,
#archive-field .cell video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  min-height: 0;
}
#archive-field .cell-name,
#archive-field .cell-meta {
  left: 0; right: 0; max-width: none;
  padding-left: .75rem; padding-right: .75rem;
  color: #fff;
  text-shadow: none;
}
#archive-field .cell-name {
  bottom: 0; padding-top: 2.4rem; padding-bottom: 1.35rem;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  font-size: clamp(.85rem, 1.2vw, 1.05rem);
}
#archive-field .cell-meta { bottom: .4rem; color: #f3eee6; font-size: .62rem; }
#archive-field .echo-more { grid-column: 1 / -1; height: 1px; }
@media (max-width: 900px) {
  #archive-field.collage { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  #archive-field.collage { grid-template-columns: 1fr 1fr; padding-top: 78px; }
}

.lab-read { z-index: 70 !important; }
.lab-orbit .lab-card, .lab-deck .lab-card { background: #111 !important; }
.lab-card.is-broken { display: none !important; }
.lab-pin { overflow: hidden; }
