:root {
  --bg: #050505;
  --text: #ebece7;
  --muted: #a7aea4;
  --dim: #70786f;
  --cyan: #b9d9d3;
  --blue: #94a3a0;
  --red: #ff7a7a;
  --green: #a6cfa5;
  --line: rgba(255, 255, 255, 0.08);
  --shadow-red: 0 0 14px rgba(255, 122, 122, 0.08);
  --shadow-blue: 0 0 14px rgba(185, 217, 211, 0.06);
  --max-width: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.6)),
    url("./assets/terminal-corrupt-bg.png") center / cover fixed,
    radial-gradient(circle at top left, rgba(185, 217, 211, 0.04), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 122, 122, 0.03), transparent 20%),
    linear-gradient(180deg, #010203 0%, #05070a 45%, #020202 100%);
  color: var(--text);
  font-family: "Courier New", monospace;
  overflow-x: hidden;
}

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

.noise,
.scanlines,
.glitch-bars {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.noise {
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.15) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 75%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px);
  background-size: 9px 9px, 13px 13px, 17px 17px;
  animation: drift 18s linear infinite;
}

.scanlines {
  opacity: 0.14;
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255, 255, 255, 0.09) 3px,
    transparent 4px
  );
  background-size: 100% 5px;
}

.glitch-bars span {
  position: absolute;
  height: 8px;
  opacity: 0.92;
}

.glitch-bars span:nth-child(1) {
  top: 7%;
  left: 3%;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(166, 207, 165, 0.35), transparent);
}

.glitch-bars span:nth-child(2) {
  top: 10%;
  right: 6%;
  width: 20%;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 122, 0.22), transparent);
}

.glitch-bars span:nth-child(3) {
  top: 52%;
  left: 8%;
  width: 9%;
  background: linear-gradient(90deg, transparent, rgba(185, 217, 211, 0.24), transparent);
}

.glitch-bars span:nth-child(4) {
  bottom: 26%;
  right: 9%;
  width: 11%;
  background: linear-gradient(90deg, transparent, rgba(166, 207, 165, 0.22), transparent);
}

.glitch-bars span:nth-child(5) {
  bottom: 14%;
  left: 8%;
  width: 16%;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 122, 0.18), transparent);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at center, rgba(15, 18, 16, 0.18), rgba(2, 2, 2, 0.96)),
    rgba(0, 0, 0, 0.96);
  transition: opacity 320ms ease, visibility 320ms ease;
}

.boot-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-shell {
  width: min(860px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 4, 5, 0.96);
  box-shadow:
    0 0 0 1px rgba(185, 217, 211, 0.04),
    0 0 24px rgba(185, 217, 211, 0.05);
  overflow: hidden;
}

.boot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 10, 11, 0.98);
}

.boot-led {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.boot-led-red {
  background: #ff7a7a;
}

.boot-led-amber {
  background: #c2c7a2;
}

.boot-led-green {
  background: #a6cfa5;
}

.boot-header-title {
  margin-left: 8px;
  color: rgba(240, 240, 236, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.glitch-lite {
  position: relative;
}

.glitch-lite::before,
.glitch-lite::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
}

.glitch-lite::before {
  transform: translate(-1px, 0);
  color: rgba(185, 217, 211, 0.3);
}

.glitch-lite::after {
  transform: translate(1px, 0);
  color: rgba(255, 122, 122, 0.24);
}

.boot-body {
  min-height: 320px;
  padding: 22px 20px 18px;
  color: rgba(214, 222, 214, 0.88);
  font-size: 1rem;
  line-height: 1.8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.boot-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.boot-prompt {
  color: rgba(196, 207, 195, 0.84);
}

.boot-command {
  color: #f4f3ee;
}

.boot-caret {
  width: 10px;
  height: 1.1em;
  background: rgba(240, 240, 236, 0.9);
  animation: blink 0.9s step-end infinite;
}

.boot-log {
  margin-top: 12px;
}

.boot-log p {
  margin: 0;
}

.boot-log .warn {
  color: #ff8a8a;
}

.boot-log .ok {
  color: #c8dfc6;
}

.boot-log .dim {
  color: rgba(186, 192, 184, 0.72);
}

.boot-log .crash {
  color: #fff4f4;
  background: rgba(255, 122, 122, 0.12);
  display: inline-block;
  padding: 2px 8px;
  margin-top: 8px;
  border: 1px solid rgba(255, 122, 122, 0.18);
}

.boot-log .glitch-line {
  position: relative;
  display: inline-block;
}

.boot-log .glitch-line::before,
.boot-log .glitch-line::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.14;
}

.boot-log .glitch-line::before {
  transform: translate(-1px, 0);
  color: rgba(185, 217, 211, 0.28);
}

.boot-log .glitch-line::after {
  transform: translate(1px, 0);
  color: rgba(255, 122, 122, 0.2);
}

.boot-skip {
  position: absolute;
  right: 32px;
  bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 9, 0.9);
  color: rgba(234, 235, 228, 0.74);
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 10px 14px;
  cursor: pointer;
}

.boot-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.18) 0 2px,
      transparent 2px 5px
    ),
    rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.boot-flash.is-active {
  animation: flashOut 420ms ease forwards;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.78);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 12px;
  z-index: 6;
  box-shadow: var(--shadow-blue);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(166, 207, 165, 0.35);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.topnav a {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}

main {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.7), rgba(4, 5, 7, 0.76));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    var(--shadow-blue);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(185, 217, 211, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.panel-hero {
  min-height: 88vh;
  padding: 24px;
  isolation: isolate;
  background: rgba(0, 0, 0, 0.26);
}

.hero-background,
.hero-overlay,
.terminal-static {
  position: absolute;
  inset: 0;
}

.hero-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-background-chaos {
  opacity: 0.18;
  mix-blend-mode: normal;
  filter: saturate(0.8) contrast(1.08) brightness(0.72);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(1, 2, 3, 0.62) 0%, rgba(2, 4, 5, 0.48) 30%, rgba(3, 5, 7, 0.28) 58%, rgba(2, 3, 4, 0.54) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(2, 4, 6, 0.02) 48%, rgba(2, 4, 5, 0.2) 100%);
}

.terminal-static {
  opacity: 0.11;
  background-image:
    radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px);
  background-size: 8px 8px, 13px 13px, 17px 17px;
}

.terminal-noise-grid span {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.03);
  z-index: 1;
}

.terminal-noise-grid span:nth-child(1) {
  left: 74%;
  top: 18%;
  width: 120px;
  height: 34px;
}

.terminal-noise-grid span:nth-child(2) {
  right: 6%;
  bottom: 14%;
  width: 150px;
  height: 40px;
}

.terminal-noise-grid span:nth-child(3) {
  left: 5%;
  top: 20%;
  width: 84px;
  height: 28px;
}

.terminal-noise-grid span:nth-child(4) {
  left: 58%;
  top: 10%;
  width: 180px;
  height: 18px;
}

.terminal-noise-grid span:nth-child(5) {
  left: 10%;
  bottom: 12%;
  width: 130px;
  height: 30px;
}

.terminal-noise-grid span:nth-child(6) {
  right: 18%;
  top: 54%;
  width: 44px;
  height: 44px;
}

.terminal-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.98), rgba(12, 15, 20, 0.9)),
    linear-gradient(90deg, rgba(185, 217, 211, 0.04), rgba(255, 122, 122, 0.04));
  text-transform: uppercase;
  z-index: 3;
}

.terminal-bar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 122, 122, 0.8), rgba(185, 217, 211, 0.85), rgba(255, 255, 255, 0.55));
}

.terminal-bar span {
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

.popup {
  position: absolute;
  z-index: 3;
  width: min(260px, 28vw);
  padding: 10px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 9, 10, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 122, 122, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: #f3e7e7;
}

.popup-title {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 122, 122, 0.4);
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.popup p {
  margin: 0;
  line-height: 1.5;
}

.popup-left {
  top: 112px;
  left: 28px;
}

.popup-right {
  right: 28px;
  top: 206px;
}

.popup-bottom-left {
  left: 34px;
  bottom: 34px;
}

.terminal-shell {
  position: relative;
  z-index: 2;
  margin-top: 88px;
  min-height: calc(88vh - 120px);
  border: 1px solid rgba(185, 217, 211, 0.1);
  background: rgba(2, 4, 5, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(185, 217, 211, 0.03),
    0 0 18px rgba(185, 217, 211, 0.04);
  backdrop-filter: blur(2px);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 14, 18, 0.92);
}

.terminal-led {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.terminal-led-red {
  background: #ff7a7a;
}

.terminal-led-amber {
  background: #c2c7a2;
}

.terminal-led-green {
  background: #a6cfa5;
}

.terminal-header-title {
  margin-left: 8px;
  color: rgba(242, 241, 238, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
}

.terminal-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 7, 10, 0.82);
}

.terminal-progress {
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.terminal-progress-fill {
  display: block;
  width: 84%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(180, 189, 176, 0.88), rgba(206, 210, 192, 0.92), rgba(166, 207, 165, 0.86));
  box-shadow: 0 0 8px rgba(166, 207, 165, 0.1);
}

.terminal-toolbar-copy {
  color: rgba(242, 241, 238, 0.66);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.terminal-body {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(260px, 0.9fr);
  gap: 20px;
  padding: 28px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.micro-label {
  margin: 0 0 14px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.glitch {
  position: relative;
  margin: 0;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: clamp(4.8rem, 11vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: #f8f8f3;
  text-shadow:
    -1px 0 0 rgba(185, 217, 211, 0.2),
    1px 0 0 rgba(255, 122, 122, 0.16),
    0 0 12px rgba(255, 255, 255, 0.06);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
}

.glitch::before {
  transform: translate(-5px, -2px);
  color: rgba(255, 255, 255, 0.92);
  clip-path: inset(8% 0 62% 0);
  opacity: 0.24;
}

.glitch::after {
  transform: translate(5px, 3px);
  color: rgba(255, 122, 122, 0.3);
  clip-path: inset(64% 0 6% 0);
  opacity: 0.18;
}

.lede {
  margin: 16px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
  color: #f3ece2;
}

.sublede {
  margin: 18px 0 0;
  color: rgba(243, 236, 226, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border: 1px solid rgba(185, 217, 211, 0.24);
  background:
    linear-gradient(90deg, rgba(8, 15, 18, 0.95), rgba(8, 13, 17, 0.95)),
    linear-gradient(90deg, rgba(185, 217, 211, 0.06), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 10px rgba(185, 217, 211, 0.05);
}

.button-secondary {
  border: 1px solid rgba(255, 122, 122, 0.18);
  color: var(--muted);
  background: rgba(16, 9, 10, 0.82);
}

.terminal-figure {
  position: relative;
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.36), rgba(4, 5, 8, 0.28)),
    rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.terminal-warning-window {
  position: absolute;
  right: 16px;
  top: 14px;
  z-index: 2;
  width: 210px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 12, 13, 0.88);
  color: #f0e7e7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.terminal-warning-title {
  margin-bottom: 8px;
  color: rgba(255, 122, 122, 0.84);
  font-weight: 700;
}

.terminal-warning-window p {
  margin: 0 0 4px;
}

.terminal-figure .avatar-chip {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
}

.terminal-figure-art {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(92%, 720px);
  height: auto;
  opacity: 0.92;
  filter: saturate(0.35) contrast(1.05) grayscale(0.08);
}

.terminal-log {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  color: rgba(203, 219, 204, 0.82);
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.terminal-log p {
  margin: 0;
}

.terminal-log-alert {
  color: #ff8a8a;
}

.signal-grid,
.mission-grid {
  display: grid;
  gap: 18px;
}

.signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mission-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.message-panel,
.mission-card,
.status-panel,
.follow-panel {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.92), rgba(5, 7, 10, 0.94)),
    rgba(0, 0, 0, 0.2);
}

.message-panel h2,
.mission-card h3,
.status-panel h2,
.follow-panel h2 {
  margin: 0;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.message-panel h2 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 0.96;
}

.glitch-home,
.glitch-home-small {
  position: relative;
}

.glitch-home::before,
.glitch-home::after,
.glitch-home-small::before,
.glitch-home-small::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch-home::before,
.glitch-home-small::before {
  transform: translate(-1px, 0);
  color: rgba(185, 217, 211, 0.24);
  opacity: 0.2;
}

.glitch-home::after,
.glitch-home-small::after {
  transform: translate(1px, 0);
  color: rgba(255, 122, 122, 0.18);
  opacity: 0.18;
}

.message-panel p:last-child,
.mission-card p,
.follow-panel p {
  margin-bottom: 0;
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.5;
}

.status-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 20px;
  align-items: start;
}

.status-error-popup {
  width: min(100%, 320px);
  margin-top: 42px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 122, 122, 0.22);
  background: rgba(12, 7, 8, 0.78);
  color: rgba(242, 236, 236, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.status-error-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 122, 122, 0.38);
  color: rgba(255, 170, 170, 0.9);
  font-weight: 700;
}

.status-error-popup p {
  margin: 0 0 6px;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.status-list div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.status-list dt {
  margin-bottom: 10px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.status-list dd {
  margin: 0;
  font-family: "Courier New", monospace;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}

.follow-panel {
  text-align: center;
}

.follow-panel .button {
  margin-top: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 18px 0;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(18px, 12px, 0);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes flashOut {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .panel-hero,
  .status-panel,
  .signal-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .panel-hero {
    min-height: auto;
    padding: 24px;
  }

  .terminal-bar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-bottom: 8px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .terminal-shell {
    margin-top: 14px;
    min-height: auto;
  }

  .terminal-body {
    grid-template-columns: 1fr;
  }

  .popup {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    margin: 10px 0 0;
  }

  .terminal-figure {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(var(--max-width), calc(100% - 18px));
    padding-top: 10px;
  }

  .topbar {
    padding: 12px 14px;
  }

  .topnav {
    gap: 10px;
  }

  .topnav a,
  .eyebrow,
  .micro-label {
    letter-spacing: 0.12em;
  }

  .message-panel,
  .mission-card,
  .status-panel,
  .follow-panel {
    padding: 18px;
  }

  .panel-hero {
    padding: 18px;
  }

  .terminal-noise-grid,
  .popup {
    display: none;
  }

  .terminal-body {
    padding: 18px;
  }

  .terminal-figure {
    min-height: 300px;
  }

  .terminal-warning-window {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 170px;
  }

  .terminal-figure-art {
    width: min(100%, 520px);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
  }

  .status-list {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
  }
}
