/* ============================================
   XELRIX — The Observatory of Tomorrow
   Pure HTML + CSS · No JavaScript
   ============================================ */

:root {
  --white: #FFFFFF;
  --silver-mist: #D9D9D9;
  --lunar-gray: #B8BDC7;
  --starlight: #F8FAFC;
  --bg: #FCFCFC;
  --text: #111827;
  --lines: #D1D5DB;

  --font-headline: 'Space Grotesk', sans-serif;
  --font-secondary: 'Sora', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-orbital: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================
   HEADER — Observatory Control Ring
   ============================================ */

.control-ring-header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
}

.control-ring {
  position: relative;
  width: 220px;
  height: 220px;
}

.ring-outer,
.ring-middle,
.ring-inner {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--lines);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-outer {
  width: 100%;
  height: 100%;
  animation: ring-rotate 120s linear infinite;
}

.ring-middle {
  width: 78%;
  height: 78%;
  border-style: dashed;
  border-color: var(--silver-mist);
  animation: ring-rotate 90s linear infinite reverse;
}

.ring-inner {
  width: 56%;
  height: 56%;
  border-color: var(--lunar-gray);
  animation: ring-rotate 60s linear infinite;
}

.ring-ticks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0deg 4deg,
    var(--lines) 4deg 5deg
  );
  opacity: 0.3;
  animation: ring-rotate 180s linear infinite;
}

.ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.ring-logo {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--text);
}

.ring-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--lunar-gray);
  margin-top: 0.25rem;
}

.ring-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lunar-gray);
  white-space: nowrap;
}

.ring-label--signal   { top: 2%;  left: 50%; transform: translateX(-50%); }
.ring-label--orbit   { top: 18%; right: 2%; }
.ring-label--vision   { top: 50%; right: -8%; transform: translateY(-50%); }
.ring-label--frequency { bottom: 18%; right: 2%; }
.ring-label--horizon  { bottom: 2%;  left: 50%; transform: translateX(-50%); }
.ring-label--future   { top: 50%; left: -6%; transform: translateY(-50%); }

@keyframes ring-rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   SECTION SHARED
   ============================================ */

section {
  position: relative;
  padding: 6rem 2rem;
}

.section-header {
  max-width: 640px;
  margin-bottom: 4rem;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  color: var(--lunar-gray);
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--lines);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--lunar-gray);
  max-width: 480px;
}

.section-header--center .section-desc {
  margin: 0 auto;
}

/* ============================================
   SECTION 1 — Opening Observatory
   ============================================ */

.opening {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 12rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.orbital-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--lines) 1px, transparent 1px),
    linear-gradient(90deg, var(--lines) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.15;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.orbital-lines {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-line {
  position: absolute;
  border: 1px solid var(--lines);
  border-radius: 50%;
  opacity: 0.4;
}

.orbit-line--1 {
  width: 300px;
  height: 300px;
  animation: orbit-pulse 8s ease-in-out infinite;
}

.orbit-line--2 {
  width: 500px;
  height: 500px;
  border-style: dashed;
  animation: orbit-pulse 12s ease-in-out infinite 1s;
}

.orbit-line--3 {
  width: 700px;
  height: 700px;
  animation: orbit-pulse 16s ease-in-out infinite 2s;
}

.orbit-line--4 {
  width: 900px;
  height: 900px;
  border-style: dotted;
  border-color: var(--silver-mist);
  animation: orbit-pulse 20s ease-in-out infinite 3s;
}

@keyframes orbit-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.02); }
}

.telescope-lens {
  position: relative;
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lens-outer,
.lens-middle,
.lens-inner {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--lines);
}

.lens-outer {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--starlight) 0%, var(--white) 60%, transparent 100%);
  box-shadow:
    0 0 0 1px var(--silver-mist),
    inset 0 0 60px rgba(184, 189, 199, 0.15);
}

.lens-middle {
  width: 75%;
  height: 75%;
  border-color: var(--silver-mist);
  animation: lens-breathe 6s ease-in-out infinite;
}

.lens-inner {
  width: 50%;
  height: 50%;
  border-color: var(--lunar-gray);
  background: radial-gradient(circle, transparent 40%, rgba(248, 250, 252, 0.8) 100%);
}

.lens-core {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
}

.lens-text {
  font-family: var(--font-secondary);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1.4;
}

.lens-crosshair {
  position: absolute;
  background: var(--lines);
  opacity: 0.5;
  z-index: 2;
}

.lens-crosshair--h {
  width: 120%;
  height: 1px;
  top: 50%;
  left: -10%;
}

.lens-crosshair--v {
  width: 1px;
  height: 120%;
  left: 50%;
  top: -10%;
}

.lens-pulse {
  position: absolute;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  border: 1px solid var(--lunar-gray);
  animation: lens-pulse 4s ease-out infinite;
}

@keyframes lens-breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes lens-pulse {
  0% { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

.coordinates {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.coord-row {
  display: flex;
  gap: 2rem;
  align-items: baseline;
  font-size: 0.8rem;
}

.coord-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lunar-gray);
  min-width: 160px;
}

.coord-value {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
}

.coord-value--active {
  position: relative;
}

.coord-value--active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lunar-gray);
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.opening-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  color: var(--lunar-gray);
  animation: scroll-hint 3s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(6px); }
}

/* ============================================
   SECTION 2 — Detected Signals (Radar)
   ============================================ */

.signals {
  max-width: 1200px;
  margin: 0 auto;
}

.radar-display {
  position: relative;
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--lines);
  background: radial-gradient(circle, var(--white) 0%, var(--starlight) 100%);
  overflow: hidden;
}

.radar-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, transparent 24%, var(--lines) 24%, transparent 25%),
    radial-gradient(circle, transparent 49%, var(--lines) 49%, transparent 50%),
    radial-gradient(circle, transparent 74%, var(--lines) 74%, transparent 75%),
    linear-gradient(0deg, transparent 49.5%, var(--lines) 49.5%, var(--lines) 50.5%, transparent 50.5%),
    linear-gradient(90deg, transparent 49.5%, var(--lines) 49.5%, var(--lines) 50.5%, transparent 50.5%),
    linear-gradient(45deg, transparent 49.5%, var(--silver-mist) 49.5%, var(--silver-mist) 50.5%, transparent 50.5%),
    linear-gradient(-45deg, transparent 49.5%, var(--silver-mist) 49.5%, var(--silver-mist) 50.5%, transparent 50.5%);
  opacity: 0.5;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(184, 189, 199, 0.15) 30deg,
    transparent 60deg
  );
  animation: radar-sweep 6s linear infinite;
  border-radius: 50%;
}

@keyframes radar-sweep {
  to { transform: rotate(360deg); }
}

.radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--lunar-gray);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.signal-target {
  position: absolute;
  z-index: 4;
}

.target-dot {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--text);
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.target-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 1px solid var(--lunar-gray);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: target-pulse 3s ease-out infinite;
}

.target-label {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--text);
}

.target-coord {
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  color: var(--lunar-gray);
}

@keyframes target-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.signal-target--1 { top: 22%; left: 58%; }
.signal-target--2 { top: 35%; left: 78%; }
.signal-target--3 { top: 62%; left: 72%; }
.signal-target--4 { top: 72%; left: 38%; }
.signal-target--5 { top: 55%; left: 18%; }
.signal-target--6 { top: 28%; left: 28%; }

.signal-target--1 .target-ring { animation-delay: 0s; }
.signal-target--2 .target-ring { animation-delay: 0.5s; }
.signal-target--3 .target-ring { animation-delay: 1s; }
.signal-target--4 .target-ring { animation-delay: 1.5s; }
.signal-target--5 .target-ring { animation-delay: 2s; }
.signal-target--6 .target-ring { animation-delay: 2.5s; }

/* ============================================
   SECTION 3 — Cosmic Frequencies
   ============================================ */

.frequencies {
  background: var(--white);
  border-top: 1px solid var(--lines);
  border-bottom: 1px solid var(--lines);
}

.frequency-panel {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.frequency-band {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--lines);
}

.frequency-band:last-child {
  border-bottom: none;
}

.band-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.band-name {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.band-reading {
  color: var(--lunar-gray);
  font-size: 0.7rem;
}

.band-wave {
  height: 60px;
  overflow: hidden;
  border-left: 1px solid var(--lines);
  border-right: 1px solid var(--lines);
  background: var(--starlight);
}

.band-wave svg {
  width: 100%;
  height: 100%;
}

.wave-path {
  fill: none;
  stroke: var(--lunar-gray);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 8 6;
  animation: wave-scan 6s linear infinite;
}

.wave-path--1 { animation-duration: 7s; }
.wave-path--2 { animation-duration: 5s; animation-delay: -1s; }
.wave-path--3 { animation-duration: 9s; animation-delay: -2s; }
.wave-path--4 { animation-duration: 4s; animation-delay: -0.5s; }
.wave-path--5 { animation-duration: 6s; animation-delay: -3s; }
.wave-path--6 { animation-duration: 8s; animation-delay: -1.5s; }

@keyframes wave-scan {
  to { stroke-dashoffset: -100; }
}

.band-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: var(--lunar-gray);
  font-size: 0.6rem;
}

/* ============================================
   SECTION 4 — Orbital Tracking
   ============================================ */

.orbital {
  max-width: 1200px;
  margin: 0 auto;
}

.orbital-system {
  position: relative;
  width: min(560px, 90vw);
  height: min(560px, 90vw);
  margin: 0 auto;
}

.orbit-path {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--lines);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-path--1 { width: 100%; height: 100%; }
.orbit-path--2 { width: 75%; height: 75%; border-style: dashed; border-color: var(--silver-mist); }
.orbit-path--3 { width: 50%; height: 50%; }
.orbit-path--4 { width: 28%; height: 28%; border-color: var(--lunar-gray); }

.knowledge-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid var(--text);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0 30px rgba(184, 189, 199, 0.3);
}

.core-label {
  font-size: 0.55rem;
  color: var(--lunar-gray);
}

.core-sublabel {
  font-family: var(--font-secondary);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.orbit-body {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: orbital-motion linear infinite;
}

.orbit-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 2px solid var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-name {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transform: translate(-50%, -180%);
  color: var(--text);
}

.orbit-body--1 { animation: orbit-1 25s linear infinite; }
.orbit-body--2 { animation: orbit-2 35s linear infinite; }
.orbit-body--3 { animation: orbit-3 20s linear infinite reverse; }
.orbit-body--4 { animation: orbit-4 40s linear infinite reverse; }
.orbit-body--5 { animation: orbit-5 30s linear infinite; }
.orbit-body--6 { animation: orbit-6 45s linear infinite reverse; }

@keyframes orbit-1 {
  from { transform: rotate(0deg) translateX(280px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(280px) rotate(-360deg); }
}

@keyframes orbit-2 {
  from { transform: rotate(60deg) translateX(210px) rotate(-60deg); }
  to   { transform: rotate(420deg) translateX(210px) rotate(-420deg); }
}

@keyframes orbit-3 {
  from { transform: rotate(120deg) translateX(140px) rotate(-120deg); }
  to   { transform: rotate(480deg) translateX(140px) rotate(-480deg); }
}

@keyframes orbit-4 {
  from { transform: rotate(200deg) translateX(78px) rotate(-200deg); }
  to   { transform: rotate(560deg) translateX(78px) rotate(-560deg); }
}

@keyframes orbit-5 {
  from { transform: rotate(300deg) translateX(210px) rotate(-300deg); }
  to   { transform: rotate(660deg) translateX(210px) rotate(-660deg); }
}

@keyframes orbit-6 {
  from { transform: rotate(45deg) translateX(280px) rotate(-45deg); }
  to   { transform: rotate(405deg) translateX(280px) rotate(-405deg); }
}

/* ============================================
   SECTION 5 — Deep Space Data
   ============================================ */

.data {
  background: var(--starlight);
  border-top: 1px solid var(--lines);
}

.data-readings {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.reading-frame {
  padding: 2rem;
  border: 1px solid var(--lines);
  background: var(--white);
  position: relative;
}

.reading-frame::before,
.reading-frame::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--lunar-gray);
}

.reading-frame::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.reading-frame::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.reading-label {
  display: block;
  color: var(--lunar-gray);
  font-size: 0.65rem;
  margin-bottom: 1rem;
}

.reading-value {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.reading-pct {
  font-size: 0.6em;
}

.reading-unit {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--lunar-gray);
  margin-bottom: 1.5rem;
}

.reading-bar {
  height: 2px;
  background: var(--lines);
  overflow: hidden;
}

.reading-bar-fill {
  height: 100%;
  width: var(--fill);
  background: var(--lunar-gray);
  animation: bar-grow 2s ease-out forwards;
}

@keyframes bar-grow {
  from { width: 0; }
  to { width: var(--fill); }
}

/* ============================================
   SECTION 6 — Observation Logs
   ============================================ */

.logs {
  max-width: 800px;
  margin: 0 auto;
}

.log-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.log-entry {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--lines);
  position: relative;
  padding-left: 2rem;
}

.log-entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2.5rem;
  width: 6px;
  height: 6px;
  border: 1px solid var(--lunar-gray);
  border-radius: 50%;
  background: var(--white);
}

.log-entry:first-child::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2.5rem;
  bottom: 0;
  width: 1px;
  background: var(--lines);
}

.log-timestamp {
  color: var(--lunar-gray);
  font-size: 0.7rem;
  margin-bottom: 0.75rem;
}

.log-signal {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.log-summary {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 600px;
}

.log-result {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.log-result-label {
  color: var(--lunar-gray);
  font-size: 0.65rem;
}

.log-result-value {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--lines);
}

/* ============================================
   SECTION 7 — Research Chamber
   ============================================ */

.chamber {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid var(--lines);
  border-bottom: 1px solid var(--lines);
}

.chamber-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--lines) 1px, transparent 1px),
    linear-gradient(90deg, var(--lines) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.2;
}

.chamber-circles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chamber-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--lines);
}

.chamber-circle--1 {
  width: 90%;
  height: 90%;
  max-width: 800px;
  max-height: 800px;
  animation: chamber-rotate 100s linear infinite;
  opacity: 0.3;
}

.chamber-circle--2 {
  width: 70%;
  height: 70%;
  max-width: 600px;
  max-height: 600px;
  border-style: dashed;
  border-color: var(--silver-mist);
  animation: chamber-rotate 80s linear infinite reverse;
  opacity: 0.4;
}

.chamber-circle--3 {
  width: 50%;
  height: 50%;
  max-width: 400px;
  max-height: 400px;
  animation: chamber-rotate 60s linear infinite;
  opacity: 0.5;
}

.chamber-circle--4 {
  width: 30%;
  height: 30%;
  max-width: 240px;
  max-height: 240px;
  border-color: var(--lunar-gray);
  animation: chamber-rotate 40s linear infinite reverse;
}

@keyframes chamber-rotate {
  to { transform: rotate(360deg); }
}

.chamber-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 2rem;
}

.chamber-title {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.5rem;
  line-height: 1.2;
}

.chamber-text {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--lunar-gray);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.chamber-metrics {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.chamber-metric {
  text-align: center;
}

.chamber-metric-value {
  display: block;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.chamber-metric-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lunar-gray);
}

/* ============================================
   SECTION 8 — Transmission Center
   ============================================ */

.transmission {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.transmission-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--lines);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.4s var(--ease-orbital), background 0.4s var(--ease-orbital);
}

.control-btn:hover {
  border-color: var(--text);
  background: var(--starlight);
}

.control-btn--primary {
  border-color: var(--text);
}

.control-btn-icon {
  font-size: 1rem;
  opacity: 0.6;
}

.transmission-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--lunar-gray);
  font-size: 0.7rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--lunar-gray);
  border-radius: 50%;
  animation: status-blink 2s ease-in-out infinite;
}

/* ============================================
   CONTACT — Communication Console
   ============================================ */

.contact {
  background: var(--starlight);
  border-top: 1px solid var(--lines);
}

.contact-console {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--lines);
  background: var(--white);
  padding: 2rem;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--lines);
  margin-bottom: 2rem;
}

.console-title {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text);
}

.console-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lunar-gray);
}

.console-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--lunar-gray);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  background: var(--starlight);
  border: 1px solid var(--lines);
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--lunar-gray);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--silver-mist);
}

.transmit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--white);
  border: 1px solid var(--text);
  cursor: pointer;
  transition: background 0.4s var(--ease-orbital), color 0.4s var(--ease-orbital);
  align-self: flex-start;
}

.transmit-btn:hover {
  background: var(--white);
  color: var(--text);
}

.transmit-icon {
  font-size: 0.6rem;
}

/* ============================================
   FOOTER — Observatory Status Panel
   ============================================ */

.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--lines);
}

.footer-panel {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lunar-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--text);
}

.footer-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: var(--lunar-gray);
}

.footer-brand {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--text);
}

.footer-divider {
  opacity: 0.4;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .control-ring {
    width: 180px;
    height: 180px;
  }

  .ring-logo {
    font-size: 0.9rem;
    letter-spacing: 0.25em;
  }

  .ring-label {
    font-size: 0.5rem;
  }

  .ring-label--vision { right: -12%; }
  .ring-label--future { left: -10%; }

  section {
    padding: 4rem 1.25rem;
  }

  .opening {
    padding-top: 10rem;
  }

  .coord-row {
    flex-direction: column;
    gap: 0.15rem;
    text-align: center;
  }

  .coord-label {
    min-width: unset;
  }

  .coordinates {
    align-items: center;
  }

  .orbit-line--3,
  .orbit-line--4 {
    display: none;
  }

  .chamber-metrics {
    gap: 2rem;
  }

  .transmission-controls {
    flex-direction: column;
    align-items: center;
  }

  .control-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .footer-links {
    gap: 1.5rem;
  }

  .log-entry {
    padding-left: 1.25rem;
  }

  @keyframes orbit-1 {
    from { transform: rotate(0deg) translateX(42vw) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(42vw) rotate(-360deg); }
  }

  @keyframes orbit-2 {
    from { transform: rotate(60deg) translateX(32vw) rotate(-60deg); }
    to   { transform: rotate(420deg) translateX(32vw) rotate(-420deg); }
  }

  @keyframes orbit-3 {
    from { transform: rotate(120deg) translateX(22vw) rotate(-120deg); }
    to   { transform: rotate(480deg) translateX(22vw) rotate(-480deg); }
  }

  @keyframes orbit-4 {
    from { transform: rotate(200deg) translateX(12vw) rotate(-200deg); }
    to   { transform: rotate(560deg) translateX(12vw) rotate(-560deg); }
  }

  @keyframes orbit-5 {
    from { transform: rotate(300deg) translateX(32vw) rotate(-300deg); }
    to   { transform: rotate(660deg) translateX(32vw) rotate(-660deg); }
  }

  @keyframes orbit-6 {
    from { transform: rotate(45deg) translateX(42vw) rotate(-45deg); }
    to   { transform: rotate(405deg) translateX(42vw) rotate(-405deg); }
  }
}

@media (max-width: 480px) {
  .control-ring-header {
    top: 1rem;
  }

  .control-ring {
    width: 150px;
    height: 150px;
  }

  .ring-logo {
    font-size: 0.75rem;
  }

  .ring-sub {
    display: none;
  }

  .signal-target .target-label {
    font-size: 0.5rem;
  }

  .data-readings {
    grid-template-columns: 1fr;
  }
}

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