:root {
  color-scheme: dark;
  --black: #050806;
  --line: #213621;
  --green: #7cff65;
  --green-dim: #61b650;
  --text: #c6cbc7;
  --muted: #89908a;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #020403; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: #020403;
  font: 14px/1.5 var(--mono);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .1;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(163, 255, 139, .045) 4px);
  mix-blend-mode: screen;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--green); outline-offset: 4px; }
.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 200;
  padding: .6rem .8rem;
  color: #020402;
  background: var(--green);
}
.skip-link:focus { top: 1rem; }

.observatory-scene {
  position: relative;
  width: 100%;
  min-height: 650px;
  height: calc(100vh - 66px);
  max-height: 920px;
  overflow: hidden;
  isolation: isolate;
  background: #050806;
  border-bottom: 1px solid var(--line);
}
.room-layer {
  position: absolute;
  inset: -1.5%;
  z-index: 0;
  width: 103%;
  height: 103%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.88) saturate(.9) contrast(1.03);
}
.observatory-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 52% 37%, transparent 20%, rgba(0, 0, 0, .12) 62%, rgba(0, 0, 0, .58) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .32), transparent 25% 82%, rgba(0, 0, 0, .18));
}
.sky-twinkle {
  position: absolute;
  z-index: 1;
  left: 23%;
  top: 2%;
  width: 57%;
  height: 42%;
  pointer-events: none;
  opacity: .17;
  background:
    radial-gradient(circle, #b1e1ff 0 1px, transparent 1.3px) 4% 7% / 93px 79px,
    radial-gradient(circle, #75a8c9 0 1px, transparent 1.2px) 61% 30% / 117px 101px;
  animation: star-drift 35s linear infinite alternate;
}
.room-light {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 23% 51%, rgba(155, 111, 52, .07), transparent 14%),
    radial-gradient(circle at 78% 51%, rgba(157, 111, 50, .07), transparent 14%);
  animation: room-breathe 8s ease-in-out infinite;
}
.observatory-id {
  position: absolute;
  z-index: 20;
  top: 24px;
  left: 28px;
  text-shadow: 0 2px 8px #000;
}
.observatory-id a { color: var(--green); font-size: 15px; }
.observatory-id p {
  margin: 3px 0 0;
  color: var(--green-dim);
  font-size: 9px;
  text-transform: uppercase;
}
.observatory-id i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: online 3.5s ease-in-out infinite;
}
.scene-navigation { position: absolute; inset: 0; z-index: 10; }
.scene-object {
  position: absolute;
  display: block;
  cursor: default;
}
.scene-object img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: brightness(.8) saturate(.78) drop-shadow(0 9px 9px rgba(0, 0, 0, .66));
  transition: filter .28s ease, transform .28s ease;
}
.scene-object::after {
  content: "";
  position: absolute;
  inset: 15% 12%;
  z-index: -1;
  opacity: .055;
  border-radius: 50%;
  background: var(--green);
  filter: blur(24px);
  transition: opacity .28s, transform .28s;
}
.terminal::before,
.workbench::before {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
}
.terminal::before {
  left: 23%;
  top: 8%;
  width: 50%;
  height: 37%;
  background: rgba(109, 244, 82, .08);
  filter: blur(9px);
  animation: screen-flicker 7s steps(1, end) infinite;
}
.workbench::before {
  right: 4%;
  top: 3%;
  width: 18%;
  height: 25%;
  background: rgba(204, 147, 74, .11);
  filter: blur(13px);
  animation: lantern-pulse 8s ease-in-out infinite;
}
.scene-object:hover,
.scene-object:focus-visible { cursor: pointer; outline: 0; }
.scene-object:hover img,
.scene-object:focus-visible img {
  filter:
    brightness(1.06)
    saturate(1.05)
    drop-shadow(1px 0 0 rgba(124, 255, 101, .65))
    drop-shadow(-1px 0 0 rgba(124, 255, 101, .65))
    drop-shadow(0 1px 0 rgba(124, 255, 101, .65))
    drop-shadow(0 -1px 0 rgba(124, 255, 101, .65))
    drop-shadow(0 0 12px rgba(124, 255, 101, .45))
    drop-shadow(0 10px 9px rgba(0, 0, 0, .58));
  transform: translateY(-2px);
}
.scene-object:hover::after,
.scene-object:focus-visible::after { opacity: .24; transform: scale(1.08); }
.scene-object.is-active img { animation: object-pulse .28s ease-out; }
.object-label {
  position: absolute;
  z-index: 4;
  min-width: 132px;
  padding: 7px 9px 6px;
  opacity: 0;
  visibility: hidden;
  border: 1px solid #3e6b35;
  background: rgba(3, 7, 5, .94);
  box-shadow: 0 0 18px rgba(0, 0, 0, .5);
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  pointer-events: none;
}
.object-label::after { content: ""; position: absolute; background: #4b813f; }
.object-label b,
.object-label small { display: block; white-space: nowrap; }
.object-label b {
  color: var(--green);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
}
.object-label small { margin-top: 2px; color: #b3b8b4; font-size: 8px; }
.scene-object:hover .object-label,
.scene-object:focus-visible .object-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: .08s, .08s, 0s;
}
.telescope { left: 38%; top: 16%; width: 18%; }
.telescope:not(:hover):not(:focus-visible) img { filter: brightness(.9) saturate(.84) drop-shadow(0 10px 10px rgba(0, 0, 0, .7)); }
.telescope .object-label { left: -17%; top: -8%; }
.telescope .object-label::after { left: 100%; top: 58%; width: 42px; height: 1px; }
.workbench { left: 17%; bottom: 8%; width: 27%; }
.workbench .object-label { left: -19%; top: -8%; }
.workbench .object-label::after { left: 100%; top: 58%; width: 35px; height: 1px; }
.terminal { left: 25%; top: 47%; width: 13%; z-index: 12; }
.terminal .object-label { right: 97%; bottom: -5%; }
.terminal .object-label::after { left: 100%; top: 58%; width: 31px; height: 1px; }
.archive { right: 17%; top: 20%; width: 11%; }
.archive:not(:hover):not(:focus-visible) img,
.door:not(:hover):not(:focus-visible) img { filter: brightness(1.02) saturate(.88) drop-shadow(0 8px 8px rgba(0, 0, 0, .64)); }
.archive .object-label { right: 82%; top: -9%; }
.archive .object-label::after { left: 100%; top: 58%; width: 29px; height: 1px; }
.door { right: 5%; top: 20%; width: 11%; }
.door .object-label { right: 79%; top: 30%; }
.door .object-label::after { left: 100%; top: 58%; width: 28px; height: 1px; }
.whisperer {
  position: absolute;
  z-index: 9;
  right: 22%;
  bottom: 3%;
  width: 31%;
  pointer-events: none;
}
.whisperer img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
}
.whisperer-core {
  z-index: 2;
  filter: brightness(.83) saturate(.78) drop-shadow(0 14px 13px rgba(0, 0, 0, .74));
}
.whisperer-smoke {
  z-index: 1;
  width: 78% !important;
  right: -34% !important;
  bottom: 31% !important;
  opacity: .3;
  filter: blur(.35px) brightness(.72) saturate(.68);
  animation: smoke-drift 18s ease-in-out infinite alternate;
}
.status-terminal {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: 18px;
  width: min(390px, 33%);
  padding: 11px 15px 10px;
  border: 1px solid #2e4d2a;
  background: rgba(2, 6, 4, .92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  color: #a7ada8;
  font-size: 8px;
  transform: translateX(-50%);
}
.status-terminal b,
.status-terminal span { display: block; }
.status-terminal b { margin-bottom: 4px; color: var(--green-dim); font-weight: 400; text-transform: uppercase; }
.cursor { color: var(--green) !important; animation: cursor 1.1s step-end infinite; }

.site-footer {
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  color: #737c75;
  border-top: 1px solid rgba(84, 127, 77, .16);
  background: #030604;
  font-size: 9px;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px 25px; }
.site-footer nav a { color: #78a56f; transition: color .18s, text-shadow .18s; }
.site-footer nav a:hover,
.site-footer nav a:focus-visible { color: var(--green); text-shadow: 0 0 8px rgba(124, 255, 101, .25); }
.footer-prompt { justify-self: end; color: var(--green-dim); }
.mobile-navigation { display: none; }

.interior {
  min-height: 100vh;
  background:
    linear-gradient(rgba(2, 5, 3, .8), rgba(2, 5, 3, .95)),
    url("/assets/img/room-background.webp") center / cover fixed no-repeat;
}
.interior-shell { min-height: calc(100vh - 66px); }
.interior-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 24px;
  color: var(--green);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 5, 3, .76);
  font-size: 10px;
  text-transform: uppercase;
}
.interior-header a:last-child { color: var(--green-dim); }
.interior-header a:last-child::before { content: "← "; }
.interior-content {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 130px);
  max-width: 760px;
  padding: clamp(50px, 10vw, 120px);
}
.eyebrow { margin: 0 0 18px; color: var(--green-dim); font-size: 10px; text-transform: uppercase; }
.interior-content h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(42px, 8vw, 78px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.06em;
}
.page-copy { max-width: 540px; margin: 28px 0 0; color: #b5bbb6; font-size: 13px; }
.page-note { margin: 44px 0 0; color: var(--muted); font-size: 10px; }
.page-note::before { content: "> "; color: var(--green); }
.interior-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 34px; }
.interior-nav a { color: var(--green-dim); font-size: 9px; text-transform: uppercase; }
.interior-nav a:hover { color: var(--green); }

@keyframes cursor { 50% { opacity: .1; } }
@keyframes online { 50% { opacity: .45; box-shadow: 0 0 4px var(--green); } }
@keyframes star-drift { to { transform: translate3d(7px, -4px, 0); opacity: .22; } }
@keyframes room-breathe { 50% { opacity: .72; } }
@keyframes smoke-drift { to { transform: translate3d(10px, -7px, 0) scale(1.025); opacity: .58; } }
@keyframes object-pulse { 50% { filter: brightness(1.35) drop-shadow(0 0 17px rgba(124, 255, 101, .6)); } }
@keyframes screen-flicker {
  0%, 94%, 100% { opacity: .72; }
  95% { opacity: .58; }
  96% { opacity: .78; }
}
@keyframes lantern-pulse { 50% { opacity: .68; transform: scale(.96); } }

@media (max-width: 900px) {
  body::after { opacity: .08; }
  .observatory-scene { height: auto; min-height: 0; aspect-ratio: 1.55; }
  .room-layer { inset: 0; width: 100%; height: 100%; transform: none; }
  .observatory-id { top: 15px; left: 17px; }
  .observatory-id a { font-size: 12px; }
  .observatory-id p { font-size: 8px; }
  .scene-object { pointer-events: none; }
  .object-label, .status-terminal { display: none; }
  .telescope { left: 37%; top: 16%; width: 19%; }
  .workbench { left: 13%; bottom: 3%; width: 31%; }
  .terminal { left: 23%; top: 47%; width: 14%; }
  .archive { right: 16%; top: 19%; width: 12%; }
  .door { right: 3%; top: 19%; width: 12%; }
  .whisperer { right: 19%; bottom: 1%; width: 35%; }
  .mobile-navigation { display: grid; gap: 6px; padding: 12px; background: #030604; }
  .mobile-navigation a {
    display: grid;
    grid-template-columns: 34px 1fr 18px;
    align-items: center;
    min-height: 58px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    background: rgba(8, 14, 10, .7);
  }
  .mobile-navigation a:hover,
  .mobile-navigation a:focus-visible { border-color: var(--green); background: rgba(39, 81, 32, .11); }
  .mobile-navigation i { color: var(--green-dim); font-size: 19px; font-style: normal; }
  .mobile-navigation b,
  .mobile-navigation small { display: block; }
  .mobile-navigation b { color: var(--green-dim); font-size: 10px; font-weight: 400; text-transform: uppercase; }
  .mobile-navigation small { color: #a4aaa5; font-size: 9px; }
  .mobile-navigation em { color: var(--green); font-size: 19px; font-style: normal; text-align: right; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; padding: 17px; text-align: center; }
  .site-footer nav { order: -1; }
  .footer-prompt { display: none; }
}

@media (max-width: 520px) {
  .observatory-scene { aspect-ratio: 1.32; }
  .scene-object img { filter: brightness(.78) saturate(.76) drop-shadow(0 5px 5px rgba(0, 0, 0, .55)); }
  .site-footer nav { gap: 10px 16px; }
  .interior-shell { min-height: calc(100vh - 110px); }
  .interior-header { align-items: flex-start; flex-direction: column; padding: 17px; }
  .interior-content { min-height: calc(100vh - 180px); padding: 55px 22px; }
}

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