:root {
  /* Typography compliance phrases: IBM Plex Mono** for smaller annotations; JetBrains Mono** in a heavier weight for rare oversized calibration numerals or one-word screen titles. Keep all typography lowercase where possible. Space Mono “aei.st” mark. Use CSS custom properties for the palette and layer photography. Space Mono** for the aei.st wordmark. */
  --glass: #DDF1E8;
  --amber: #E8B15D;
  --terracotta: #B86445;
  --oxide: #7F392C;
  --clay: #D99A76;
  --umber: #1B1411;
  --sand: #F1D6B8;
  --space: "Space Mono", "SFMono-Regular", "Cascadia Mono", "Liberation Mono", monospace;
  --plex: "IBM Plex Mono", "ui-monospace", "Menlo", "Consolas", monospace;
  --jet: "JetBrains Mono", "SFMono-Regular", "Roboto Mono", monospace;
  --mx: 0;
  --my: 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--umber); }

body {
  margin: 0;
  color: var(--sand);
  font-family: var(--space);
  background: var(--umber);
  overflow-x: hidden;
  text-transform: lowercase;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 34%, rgba(27, 20, 17, .12) 49%, rgba(27, 20, 17, .76) 100%),
    linear-gradient(90deg, rgba(27,20,17,.75), transparent 18% 82%, rgba(27,20,17,.78));
  mix-blend-mode: multiply;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 31;
  pointer-events: none;
  opacity: .22;
  background-image:
    repeating-radial-gradient(circle at 12% 18%, rgba(241,214,184,.18) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(97deg, rgba(221,241,232,.05) 0 1px, transparent 1px 9px);
  mix-blend-mode: overlay;
}

.observatory { position: relative; z-index: 1; }

.screen {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
}

.photo-field {
  position: absolute;
  inset: -7vh -7vw;
  z-index: -3;
  transform: translate(calc(var(--mx) * -10px), calc(var(--my) * -8px)) scale(1.04);
  transition: transform .24s ease-out;
}

.desert-photo {
  background:
    radial-gradient(ellipse at 78% 19%, rgba(232,177,93,.45), transparent 0 18%, transparent 32%),
    linear-gradient(168deg, rgba(221,241,232,.18) 0 12%, rgba(241,214,184,.4) 13% 28%, transparent 29%),
    linear-gradient(176deg, rgba(27,20,17,.05) 0 39%, rgba(232,177,93,.58) 40%, rgba(184,100,69,.72) 54%, rgba(127,57,44,.82) 65%, rgba(27,20,17,.95) 86%),
    repeating-linear-gradient(172deg, transparent 0 22px, rgba(241,214,184,.09) 23px 24px, transparent 25px 47px),
    radial-gradient(ellipse at 50% 100%, #B86445, #7F392C 52%, #1B1411 100%);
  filter: saturate(.95) contrast(1.05);
}

.haze-photo {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(221,241,232,.16), transparent 34%),
    radial-gradient(ellipse at 70% 28%, rgba(232,177,93,.24), transparent 28%),
    linear-gradient(126deg, rgba(27,20,17,.96), rgba(127,57,44,.76) 42%, rgba(217,154,118,.56) 61%, rgba(27,20,17,.94)),
    repeating-linear-gradient(9deg, rgba(241,214,184,.05) 0 1px, transparent 1px 15px);
}

.clay-photo {
  background:
    radial-gradient(circle at 20% 26%, rgba(232,177,93,.2), transparent 18%),
    radial-gradient(circle at 70% 72%, rgba(127,57,44,.55), transparent 26%),
    repeating-radial-gradient(ellipse at 37% 52%, rgba(241,214,184,.08) 0 2px, transparent 3px 13px),
    linear-gradient(145deg, #1B1411 0%, #7F392C 28%, #B86445 52%, #D99A76 66%, #1B1411 100%);
}

.void-photo {
  background:
    radial-gradient(circle at 51% 49%, rgba(232,177,93,.24), transparent 23%),
    radial-gradient(ellipse at 50% 106%, rgba(184,100,69,.5), transparent 38%),
    linear-gradient(180deg, #1B1411, #301d18 47%, #1B1411);
}

.horizon-line {
  position: absolute;
  left: -10vw;
  right: -10vw;
  top: 51%;
  height: 16vh;
  background: linear-gradient(176deg, transparent 0 45%, rgba(241,214,184,.2) 46%, rgba(232,177,93,.38) 49%, rgba(127,57,44,.18) 54%, transparent 61%);
  transform: rotate(-3deg);
  filter: blur(.4px);
}

.edge-hud {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  font-family: var(--plex);
}

.quiet-telemetry {
  color: var(--glass);
  opacity: .72;
  font: 11px/1.4 var(--plex);
  letter-spacing: .18em;
}

.mission, .coord, .pressure, .state-label { position: fixed; }
.mission { top: 24px; left: 28px; }
.coord { top: 24px; right: 28px; }
.pressure { right: 28px; bottom: 26px; }
.state-label { left: 28px; bottom: 26px; z-index: 42; transition: opacity .5s ease, transform .5s ease; }
.state-label.shift { opacity: .32; transform: translateY(8px); }

.listening-bands {
  position: fixed;
  left: 22px;
  top: 36%;
  display: grid;
  gap: 12px;
}
.listening-bands span {
  display: block;
  width: 2px;
  height: 48px;
  background: linear-gradient(var(--glass), var(--terracotta));
  opacity: .22;
  animation: pulse 5.5s ease-in-out infinite;
}
.listening-bands span:nth-child(2n) { height: 72px; animation-delay: -1.4s; }
.listening-bands span:nth-child(3) { background: var(--amber); animation-delay: -2.6s; }

.progress-rail {
  position: fixed;
  right: 24px;
  top: 28%;
  height: 44vh;
  width: 1px;
  background: rgba(241,214,184,.2);
}
.progress-rail i {
  position: absolute;
  left: -4px;
  top: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(232,177,93,.7);
  transform: translateY(0);
}

.horizon-reticle, .signal-ribbon, .clay-orbit, .final-orbit {
  position: absolute;
  overflow: visible;
  transform: translate(calc(var(--mx) * 16px), calc(var(--my) * 11px));
  transition: transform .18s ease-out;
}
.horizon-reticle { width: min(78vh, 74vw); height: min(78vh, 74vw); }
.signal-ribbon, .clay-orbit { inset: 0; width: 100%; height: 100%; }
.final-orbit { width: min(78vh, 82vw); height: min(78vh, 82vw); }

.draw-path {
  fill: none;
  stroke: var(--clay);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  opacity: .56;
  animation: draw 6.8s cubic-bezier(.37,0,.15,1) forwards, breathe 7s ease-in-out infinite;
}
.draw-path.ghost { stroke: var(--glass); opacity: .16; animation-duration: 9s; }
.draw-path.amber, .ribbon-amber, .final { stroke: var(--amber); opacity: .72; }
.ribbon-main { stroke: var(--terracotta); stroke-width: 2; }
.ribbon-soft, .final-soft { stroke: var(--sand); opacity: .22; animation-delay: .8s; }
.contour { stroke: var(--sand); opacity: .35; }
.contour.two { stroke: var(--glass); opacity: .18; animation-delay: .5s; }
.ticks path, .dial {
  fill: none;
  stroke: var(--glass);
  stroke-width: 1;
  opacity: .42;
}
.dial { stroke: var(--amber); stroke-dasharray: 2 11; animation: rotate 36s linear infinite; transform-origin: 247px 282px; }
.dial.inner { stroke: var(--sand); animation-duration: 25s; animation-direction: reverse; }
.beacon { fill: var(--amber); filter: drop-shadow(0 0 12px #E8B15D); animation: beacon 4s ease-in-out infinite; }

.terracotta-glass {
  border: 1px solid rgba(241,214,184,.22);
  background: linear-gradient(135deg, rgba(27,20,17,.34), rgba(184,100,69,.13));
  box-shadow: inset 0 0 24px rgba(221,241,232,.05), 0 24px 80px rgba(27,20,17,.34);
  backdrop-filter: blur(10px);
}

.lens-core {
  width: min(360px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
  transform: translate(calc(var(--mx) * 6px), calc(var(--my) * 5px));
}
.lens-core h1, .orbit-mark h2 {
  margin: 0;
  font: 700 clamp(42px, 8vw, 104px)/.86 var(--jet);
  letter-spacing: .18em;
  color: var(--sand);
  text-shadow: 0 0 28px rgba(232,177,93,.32);
}
.lens-core p, .orbit-mark p {
  width: min(340px, 70vw);
  margin: 0;
  color: rgba(241,214,184,.72);
  font: 13px/1.7 var(--space);
  letter-spacing: .08em;
}
.aperture-vowel {
  display: flex;
  gap: 12px;
  color: var(--glass);
  letter-spacing: .3em;
  opacity: .76;
}
.aperture-vowel span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(221,241,232,.35);
  border-radius: 50%;
}

.instrument-action {
  position: absolute;
  bottom: 18vh;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  color: var(--amber);
  background: rgba(27,20,17,.22);
  border: 1px solid rgba(232,177,93,.45);
  font: 12px var(--plex);
  letter-spacing: .2em;
  text-transform: lowercase;
  cursor: pointer;
}
.instrument-action:hover { background: rgba(184,100,69,.2); box-shadow: 0 0 28px rgba(232,177,93,.22); }

.screen-code {
  position: absolute;
  top: 18vh;
  left: clamp(42px, 8vw, 120px);
  color: rgba(241,214,184,.56);
  font: 12px var(--plex);
  letter-spacing: .24em;
  writing-mode: vertical-rl;
}

.capsule {
  position: absolute;
  width: min(310px, 72vw);
  padding: 18px 20px;
  color: var(--sand);
}
.capsule b, .console-readout span { display: block; color: var(--glass); font: 12px var(--plex); letter-spacing: .2em; margin-bottom: 9px; }
.capsule span { color: rgba(241,214,184,.74); font-size: 13px; line-height: 1.65; letter-spacing: .06em; }
.capsule.one { left: 9vw; top: 24vh; }
.capsule.two { right: 12vw; top: 42vh; }
.capsule.three { left: 45vw; bottom: 16vh; }

.screen-title {
  position: absolute;
  right: 8vw;
  top: 11vh;
  color: rgba(232,177,93,.12);
  font: 800 clamp(86px, 18vw, 260px)/.8 var(--jet);
  letter-spacing: .04em;
}

.console-grid {
  position: absolute;
  inset: 10vh 9vw;
  border: 1px solid rgba(241,214,184,.16);
  background-image: linear-gradient(rgba(221,241,232,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(221,241,232,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(900px) rotateX(58deg) translateY(20vh);
  transform-origin: 50% 100%;
  opacity: .48;
}

.console-readout {
  position: absolute;
  right: 12vw;
  bottom: 20vh;
  width: min(430px, 76vw);
  padding: 24px;
}
.console-readout strong { display: block; color: var(--sand); font: 18px/1.55 var(--space); letter-spacing: .08em; }
.console-readout em { display: block; margin-top: 18px; color: rgba(221,241,232,.62); font: 12px/1.7 var(--plex); font-style: normal; }
.meter-stack { position: absolute; left: 13vw; bottom: 19vh; display: flex; gap: 10px; align-items: end; }
.meter-stack i { width: 9px; background: var(--terracotta); opacity: .5; }
.meter-stack i:nth-child(1) { height: 52px; } .meter-stack i:nth-child(2) { height: 92px; background: var(--amber); }
.meter-stack i:nth-child(3) { height: 68px; } .meter-stack i:nth-child(4) { height: 122px; background: var(--glass); }
.meter-stack i:nth-child(5) { height: 74px; } .meter-stack i:nth-child(6) { height: 38px; }

.orbit-mark { text-align: center; display: grid; gap: 24px; place-items: center; }
.orbit-mark .quiet-telemetry { color: var(--amber); opacity: .85; }

.calibrated .lens-core { box-shadow: inset 0 0 44px rgba(232,177,93,.16), 0 0 90px rgba(232,177,93,.2); }
.calibrated .horizon-reticle { filter: drop-shadow(0 0 18px rgba(232,177,93,.22)); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes breathe { 0%, 100% { opacity: .34; } 50% { opacity: .82; } }
@keyframes pulse { 0%, 100% { opacity: .15; transform: scaleY(.82); } 50% { opacity: .68; transform: scaleY(1); } }
@keyframes beacon { 0%, 100% { opacity: .35; r: 5; } 50% { opacity: 1; r: 9; } }
@keyframes rotate { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .coord { display: none; }
  .pressure { right: 18px; }
  .mission, .state-label { left: 18px; }
  .progress-rail { right: 16px; height: 36vh; }
  .screen-code { left: 18px; top: 14vh; }
  .capsule.one, .capsule.two, .capsule.three { left: 50%; right: auto; transform: translateX(-50%); }
  .capsule.one { top: 18vh; }
  .capsule.two { top: 44vh; }
  .capsule.three { bottom: 12vh; }
  .console-readout { right: auto; left: 50%; transform: translateX(-50%); bottom: 14vh; }
  .meter-stack { display: none; }
}
