@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #05080d;
  --ink-deep: #030609;
  --panel: #071018;
  --panel-raised: #0a141d;
  --panel-soft: #0d1821;
  --line: rgba(148, 173, 188, 0.18);
  --line-strong: rgba(148, 173, 188, 0.31);
  --paper: #edf5f6;
  --muted: #82959f;
  --muted-bright: #a9bac2;
  --cyan: #82d7e8;
  --cyan-bright: #4bddf7;
  --cyan-wash: rgba(75, 221, 247, 0.1);
  --amber: #efb756;
  --amber-bright: #ffd77d;
  --green: #b8f66f;
  --red: #ff635f;
  --display: "Avenir Next Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  --mono: Menlo, Monaco, "SFMono-Regular", monospace;
  --page-pad: clamp(22px, 4.1vw, 72px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 4px;
}

::selection {
  color: var(--ink);
  background: var(--cyan);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border: 1px solid var(--cyan);
  background: var(--panel);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100svh;
  overflow: hidden;
  padding: 0 var(--page-pad) clamp(27px, 4.5vh, 51px);
  background:
    linear-gradient(rgba(112, 149, 164, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 149, 164, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 35%, rgba(27, 113, 139, 0.13), transparent 34%),
    radial-gradient(circle at 16% 58%, rgba(239, 183, 86, 0.055), transparent 30%),
    var(--ink);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

.page::before,
.page::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.page::before {
  inset: 0;
  opacity: 0.19;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.page::after {
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 6, 9, 0.12), transparent 18%, transparent 76%, rgba(3, 6, 9, 0.22));
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.18;
}

.ambient-a {
  top: 5%;
  right: 7%;
  background: #117d94;
  animation: ambientDriftA 14s ease-in-out infinite alternate;
}

.ambient-b {
  bottom: -22%;
  left: 23%;
  width: 25vw;
  height: 25vw;
  background: #a56824;
  opacity: 0.07;
  animation: ambientDriftB 18s ease-in-out infinite alternate;
}

.scanlines {
  position: absolute;
  z-index: 8;
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(213, 242, 246, 0.3) 4px);
  mix-blend-mode: soft-light;
}

.cursor-glow {
  position: absolute;
  z-index: -1;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.1;
  background: radial-gradient(circle, var(--cyan-bright), transparent 65%);
  transform: translate(-50%, -50%);
  left: var(--cursor-x, 60%);
  top: var(--cursor-y, 35%);
  transition: opacity 500ms ease;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  overflow: visible;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.4;
}

.brand-mark path {
  stroke-linecap: square;
}

img.brand-mark {
  display: block;
  object-fit: contain;
}

.brand-mark circle {
  fill: var(--cyan);
  stroke: none;
}

.brand-word {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.brand-word > span {
  color: var(--cyan);
}

.header-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted-bright);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
}

.live-label i,
.armed-badge i,
.live-rail-title i,
.operator-mode span i,
.rail-health-top i,
.recipient-count i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(184, 246, 111, 0.08), 0 0 13px rgba(184, 246, 111, 0.5);
  animation: pulseDot 2.2s ease-out infinite;
}

.system-version {
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--cyan);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 23px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: 'IBM Plex Mono', Menlo, Monaco, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.nav-link svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.nav-link:hover {
  color: var(--paper);
}

/* Reset device: amber outline marks it as the cautionary header action. */
.nav-link--outline {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--amber);
  color: var(--amber-bright);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-link--outline svg {
  fill: none;
  stroke: currentColor;
}

.nav-link--outline:hover {
  color: var(--ink);
  border-color: var(--amber-bright);
  background: var(--amber);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 220ms ease, color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.3;
}

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

.button-small {
  min-height: 38px;
  padding: 0 15px;
  border-color: var(--amber-bright);
  background: var(--amber);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(239, 183, 86, 0.28),
    0 8px 24px rgba(239, 183, 86, 0.3);
}

.button-small:hover {
  border-color: var(--amber-bright);
  background: var(--amber-bright);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(255, 215, 125, 0.4),
    0 10px 28px rgba(239, 183, 86, 0.42);
}

.button-primary {
  min-width: 168px;
  padding: 0 19px;
  border-color: var(--cyan);
  background: var(--cyan);
  color: #071016;
  font-weight: 700;
}

.button-primary:hover {
  background: #a8e8f4;
  border-color: #a8e8f4;
}

.button-quiet {
  gap: 12px;
  padding: 0 4px;
  border-color: transparent;
  color: #ffffff;
  font-weight: 700;
}

.button-quiet:hover {
  color: var(--paper);
}

.play-disc {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 220ms ease, transform 220ms ease;
}

.button-quiet:hover .play-disc {
  border-color: var(--cyan);
  transform: rotate(6deg);
}

.play-disc svg {
  width: 12px;
  height: 12px;
  fill: #18ff14;
  stroke: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(660px, 1.42fr);
  gap: clamp(40px, 5.4vw, 104px);
  align-items: center;
  width: min(100%, 1720px);
  margin: 0 auto;
  padding: clamp(14px, 2.4vh, 34px) 0 clamp(20px, 4vh, 62px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(0px, 1.2vw, 22px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(18px, 2.4vh, 29px);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-glyph {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(130, 215, 232, 0.38);
  color: var(--paper);
  font-size: 15px;
}

h1 {
  max-width: 7.2ch;
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(76px, 8.7vw, 158px);
  font-weight: 800;
  line-height: 0.79;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.title-line {
  display: block;
  position: relative;
  width: max-content;
  color: var(--cyan);
}

.title-line::after {
  position: absolute;
  right: -0.08em;
  bottom: 0.11em;
  width: 0.44em;
  height: 1px;
  content: "";
  background: var(--amber);
  box-shadow: 0 0 13px rgba(239, 183, 86, 0.45);
}

.title-period {
  color: var(--amber);
}

.hero-summary {
  max-width: 390px;
  margin: clamp(28px, 3.6vh, 42px) 0 0;
  color: #ffffff;
  font-size: clamp(15px, 1.08vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: clamp(26px, 3.7vh, 40px);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  max-width: 444px;
  margin: clamp(34px, 5.2vh, 60px) 0 0;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.hero-proof dt {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.hero-proof dd {
  margin: 0;
  color: #18ff14;
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 27px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.hero-proof dd small {
  margin-left: 5px;
  color: #18ff14;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.proof-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.proof-dot-amber {
  background: var(--amber);
}

.proof-dot-cyan {
  background: var(--cyan);
}

.operator-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 25px 0 20px;
  perspective: 1200px;
}

.operator-stage::before {
  position: absolute;
  z-index: -1;
  inset: 7% 5% 4% 8%;
  content: "";
  opacity: 0.85;
  background: radial-gradient(ellipse at center, rgba(54, 167, 191, 0.18), transparent 67%);
  filter: blur(20px);
  transform: scale(1.1);
}

.operator-shadow {
  position: absolute;
  right: 2%;
  bottom: 1%;
  left: 6%;
  height: 20%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  filter: blur(24px);
}

.operator {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(149, 183, 198, 0.31);
  background: var(--panel);
  box-shadow:
    0 35px 82px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(130, 215, 232, 0.045) inset,
    0 0 76px rgba(47, 154, 174, 0.07);
  transform: rotateY(-1.6deg) rotateX(0.7deg);
  transform-origin: center left;
  transition: transform 900ms var(--ease-out), border-color 300ms ease;
}

.operator:hover {
  border-color: rgba(130, 215, 232, 0.44);
  transform: rotateY(0deg) rotateX(0deg) translateY(-3px);
}

.operator::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 21%, transparent 75%, rgba(75, 221, 247, 0.03));
}

.operator-film {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #04090e;
}

.operator-film[hidden] {
  display: none;
}

.operator-film video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: #000;
}

.operator-film-bar {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-bright);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.operator-film-bar button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--amber-bright);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.operator-film-bar button:hover {
  border-color: var(--amber);
  background: rgba(239, 183, 86, 0.07);
}

.operator-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 23, 32, 0.84);
}

.window-dots {
  display: flex;
  gap: 4px;
  padding: 0 12px;
}

.window-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #59656c;
}

.window-dots i:last-child {
  background: var(--red);
}

.operator-path {
  justify-self: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.operator-path .path-mark {
  margin-right: 5px;
  color: var(--cyan);
}

.operator-path > span:not(.path-mark) {
  padding: 0 3px;
  color: #4b5961;
}

.operator-mode {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding-right: 10px;
}

.operator-mode > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-bright);
  font-family: var(--mono);
  font-size: 8px;
}

.operator-mode > span i {
  width: 4px;
  height: 4px;
}

.operator-mode button {
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.operator-mode button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
}

.operator-body {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 460px;
}

.operator-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px 10px 12px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgba(121, 152, 166, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 152, 166, 0.04) 1px, transparent 1px),
    #060c12;
  background-size: 20px 20px;
}

.rail-sigil {
  display: grid;
  min-height: 84px;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(239, 183, 86, 0.34);
  background:
    radial-gradient(circle at 50% 40%, rgba(75, 221, 247, 0.13), transparent 45%),
    rgba(7, 16, 24, 0.92);
}

.rail-sigil svg {
  width: 51px;
  height: 51px;
  fill: none;
  stroke: var(--paper);
  stroke-width: 1.2;
}

.rail-sigil svg circle {
  fill: var(--cyan);
  stroke: none;
}

.rail-sigil span {
  margin-top: -14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.rail-nav {
  display: grid;
  gap: 4px;
}

.rail-item {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.rail-item:hover,
.rail-item.is-active {
  border-color: var(--line);
  background: rgba(130, 215, 232, 0.055);
  color: var(--cyan);
}

.rail-index {
  color: #4a5e68;
  font-size: 7px;
}

.rail-health {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
}

.rail-health-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  letter-spacing: 0.04em;
}

.rail-health-top > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rail-health-top i {
  width: 4px;
  height: 4px;
}

.rail-health-top b {
  color: var(--cyan);
  font-size: 10px;
}

.health-bars {
  display: flex;
  gap: 3px;
  margin: 10px 0 7px;
}

.health-bars i {
  display: block;
  width: 6px;
  height: 4px;
  background: var(--cyan);
  opacity: 0.18;
}

.health-bars i:nth-child(-n + 8) {
  opacity: 0.9;
}

.rail-health-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
}

.operator-workbench {
  min-width: 0;
  padding: 14px 14px 12px;
  background:
    linear-gradient(rgba(121, 152, 166, 0.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 152, 166, 0.023) 1px, transparent 1px),
    rgba(6, 13, 19, 0.9);
  background-size: 26px 26px;
}

.workbench-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.workbench-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.caption {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.workbench-title strong {
  overflow: hidden;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.armed-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border: 1px solid rgba(184, 246, 111, 0.22);
  color: var(--green);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.armed-badge i {
  width: 4px;
  height: 4px;
}

.format-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: rgba(10, 18, 26, 0.85);
}

.format-prompt {
  margin-right: auto;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.format-chip {
  min-height: 25px;
  padding: 0 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-bright);
  font-family: var(--mono);
  font-size: 8px;
  cursor: pointer;
}

.format-chip:hover,
.format-chip.is-active {
  border-color: rgba(130, 215, 232, 0.3);
  background: rgba(130, 215, 232, 0.075);
  color: var(--paper);
}

.format-chip span {
  margin-left: 3px;
  color: var(--cyan);
  font-size: 7px;
}

.composer {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(130, 215, 232, 0.65);
  background:
    linear-gradient(rgba(131, 166, 181, 0.058) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 166, 181, 0.058) 1px, transparent 1px),
    rgba(4, 10, 16, 0.94);
  background-size: 26px 26px;
  box-shadow: 0 0 0 4px rgba(130, 215, 232, 0.018);
}

.composer::before,
.composer::after {
  position: absolute;
  z-index: 2;
  width: 5px;
  height: 5px;
  content: "";
  border-color: var(--cyan);
}

.composer::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.composer::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.composer-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 27px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.composer-circle {
  width: 4px;
  height: 4px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
}

.composer-meta-dash {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.composer-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
}

.composer-mode i {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--green);
}

#message-body {
  display: block;
  width: 100%;
  height: 154px;
  min-height: 154px;
  resize: none;
  padding: 17px 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(25px, 2.1vw, 36px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  caret-color: var(--cyan-bright);
}

#message-body::placeholder {
  color: #52616a;
}

.composer-footer {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 30px;
  padding: 0 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.recipient-count {
  display: flex;
  align-items: center;
  gap: 6px;
}

.recipient-count i {
  width: 4px;
  height: 4px;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(239, 183, 86, 0.55);
  animation: none;
}

.recipient-count b {
  color: var(--paper);
  font-weight: 400;
}

.composer-keys {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.composer-keys span {
  display: grid;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted-bright);
  font-size: 7px;
}

.chars {
  font-variant-numeric: tabular-nums;
}

.telemetry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.88fr minmax(130px, 0.9fr);
  gap: 8px;
  margin-top: 10px;
}

.subject-field,
.signal-panel,
.launch-button {
  min-height: 62px;
  border: 1px solid var(--line);
  background: rgba(9, 18, 26, 0.84);
}

.subject-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  min-width: 0;
}

.field-label {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 7px;
}

.field-value {
  overflow: hidden;
  color: var(--muted-bright);
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-caret {
  width: 5px;
  height: 12px;
  background: var(--cyan);
  animation: caretBlink 1.1s steps(1) infinite;
}

.signal-panel {
  padding: 8px 9px 4px;
}

.signal-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.07em;
}

.signal-top b {
  color: var(--green);
  font-size: 7px;
  font-weight: 400;
}

.signal-chart {
  display: block;
  width: 100%;
  height: 35px;
  margin-top: 1px;
  overflow: visible;
}

.signal-fill {
  fill: rgba(130, 215, 232, 0.1);
}

.signal-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.launch-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  padding: 0 10px;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, transform 150ms ease;
}

.launch-button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(130, 215, 232, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 200ms ease;
}

.launch-button:hover,
.launch-button.is-pressed {
  border-color: rgba(130, 215, 232, 0.65);
  background: rgba(17, 31, 40, 0.92);
}

.launch-button:hover::before {
  opacity: 1;
}

.launch-button:active {
  transform: scale(0.985);
}

.launch-button.is-sending {
  border-color: var(--amber);
}

.launch-button.is-complete {
  border-color: var(--green);
  background: rgba(184, 246, 111, 0.06);
}

.launch-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(130, 215, 232, 0.33);
}

.launch-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.2;
}

.launch-button.is-sending .launch-icon {
  border-color: var(--amber);
}

.launch-button.is-sending .launch-icon svg {
  stroke: var(--amber);
  animation: launchNudge 600ms ease-in-out infinite alternate;
}

.launch-button.is-complete .launch-icon {
  border-color: var(--green);
}

.launch-button.is-complete .launch-icon svg {
  stroke: var(--green);
}

.launch-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.launch-copy > span {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}

.launch-copy small {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  white-space: nowrap;
}

.launch-key {
  position: absolute;
  top: 7px;
  right: 7px;
  color: #4f616b;
  font-family: var(--mono);
  font-size: 6px;
}

.mission-strip {
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid rgba(239, 183, 86, 0.42);
  background: rgba(14, 17, 20, 0.8);
  transition: border-color 220ms ease, background 220ms ease;
}

.mission-strip.is-active {
  border-color: rgba(130, 215, 232, 0.68);
  background: rgba(10, 24, 31, 0.96);
}

.mission-strip.is-complete {
  border-color: rgba(184, 246, 111, 0.62);
}

.mission-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
}

.mission-pulse {
  position: relative;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(239, 183, 86, 0.06);
}

.mission-pulse::after {
  position: absolute;
  inset: -4px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--amber);
  opacity: 0;
}

.mission-strip.is-active .mission-pulse {
  background: var(--cyan);
  color: var(--cyan);
}

.mission-strip.is-active .mission-pulse::after {
  animation: sonar 1.1s ease-out infinite;
}

.mission-strip.is-complete .mission-pulse {
  background: var(--green);
  color: var(--green);
}

.mission-status > div {
  display: grid;
  gap: 2px;
}

.mission-status span {
  color: var(--amber);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.mission-strip.is-active .mission-status span {
  color: var(--cyan);
}

.mission-strip.is-complete .mission-status span {
  color: var(--green);
}

.mission-status strong {
  color: var(--muted-bright);
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.mission-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 12px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(148, 173, 188, 0.17) 13px 14px);
}

.mission-track::before {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.mission-track i {
  position: relative;
  z-index: 2;
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

.mission-track-fill {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 900ms var(--ease-out);
}

.mission-readout {
  display: grid;
  gap: 2px;
  min-width: 55px;
  text-align: right;
  font-family: var(--mono);
}

.mission-readout span {
  color: var(--muted);
  font-size: 6px;
  letter-spacing: 0.07em;
}

.mission-readout b {
  color: var(--paper);
  font-size: 8px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.stage-label {
  position: absolute;
  display: flex;
  justify-content: space-between;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.stage-label-top {
  top: 0;
  right: 0;
  left: 2%;
}

.floating-signal {
  position: absolute;
  z-index: 4;
  right: -2.2%;
  top: calc(100% + 12px);
  bottom: auto;
  display: grid;
  grid-template-columns: auto auto 62px;
  align-items: center;
  gap: 10px;
  min-width: 222px;
  padding: 10px 12px;
  border: 1px solid rgba(239, 183, 86, 0.48);
  background: rgba(8, 15, 21, 0.92);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px);
  pointer-events: none;
  animation: floatSignal 6s ease-in-out infinite;
}

.floating-ring {
  width: 7px;
  height: 7px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(239, 183, 86, 0.07);
}

.floating-signal > div {
  display: grid;
  gap: 3px;
}

.floating-signal span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.floating-signal b {
  color: var(--amber-bright);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
}

.floating-signal svg {
  width: 100%;
  height: 25px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.1;
}

.live-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 80px;
  align-items: stretch;
  margin: 0 calc(var(--page-pad) * -1);
  padding: 0 var(--page-pad);
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 12, 0.74);
}

.live-rail-heading {
  display: flex;
  min-width: 180px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 22px 8px 0;
  border-right: 1px solid var(--line);
}

.live-rail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.live-rail-title i {
  width: 5px;
  height: 5px;
}

.live-rail-time {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.live-events {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}

.event-item {
  position: relative;
  display: grid;
  align-content: space-between;
  min-width: 0;
  padding: 13px 16px 12px;
  border-right: 1px solid var(--line);
  transition: opacity 280ms ease, transform 280ms var(--ease-out), background 280ms ease;
}

.event-item.is-new {
  background: linear-gradient(90deg, rgba(130, 215, 232, 0.05), transparent 72%);
}

.event-item:last-child {
  border-right: 0;
}

.event-item > div {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.event-title {
  color: #ffffff;
  font-family: var(--display);
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.event-type {
  color: #18ff14;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.live-throughput {
  display: grid;
  align-items: center;
  justify-content: start;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
}

.throughput-bars {
  display: flex;
  align-self: start;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.throughput-bars i {
  display: block;
  width: 3px;
  height: 30%;
  background: var(--cyan);
  opacity: 0.62;
}

.throughput-bars i:nth-child(2) { height: 54%; }
.throughput-bars i:nth-child(3) { height: 42%; }
.throughput-bars i:nth-child(4) { height: 76%; }
.throughput-bars i:nth-child(5) { height: 58%; }
.throughput-bars i:nth-child(6) { height: 88%; }
.throughput-bars i:nth-child(7) { height: 72%; }
.throughput-bars i:nth-child(8) { height: 100%; }
.throughput-bars i:nth-child(9) { height: 84%; }
.throughput-bars i:nth-child(10) { height: 67%; }

.toast {
  position: fixed;
  z-index: 60;
  right: clamp(16px, 3vw, 42px);
  bottom: calc(clamp(27px, 4.5vh, 51px) + 112px);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 15px;
  border: 1px solid rgba(130, 215, 232, 0.46);
  background: rgba(7, 16, 24, 0.95);
  color: var(--muted-bright);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-mark {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

.reveal {
  animation: revealUp 900ms var(--ease-out) both;
  animation-delay: var(--delay, 0s);
}

.operator-stage.reveal {
  animation-name: revealConsole;
  animation-duration: 1150ms;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealConsole {
  from {
    opacity: 0;
    transform: translateX(44px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes pulseDot {
  0%, 72%, 100% {
    opacity: 1;
  }
  80% {
    opacity: 0.3;
  }
}

@keyframes caretBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes sonar {
  0% {
    opacity: 0.7;
    transform: scale(0.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@keyframes launchNudge {
  from { transform: translateX(-2px); }
  to { transform: translateX(2px); }
}

@keyframes floatSignal {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes ambientDriftA {
  from { transform: translate3d(-2%, 1%, 0) scale(1); }
  to { transform: translate3d(5%, -4%, 0) scale(1.12); }
}

@keyframes ambientDriftB {
  from { transform: translate3d(0, 0, 0) scale(0.95); }
  to { transform: translate3d(-8%, -4%, 0) scale(1.15); }
}

@media (max-width: 1380px) {
  .hero {
    grid-template-columns: minmax(320px, 0.74fr) minmax(590px, 1.35fr);
    gap: clamp(34px, 4vw, 62px);
  }

  h1 {
    font-size: clamp(72px, 8.5vw, 130px);
  }

  .operator-body {
    min-height: 430px;
  }

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

  .event-item:nth-child(n + 4) {
    display: none;
  }

  .event-title {
    font-size: 20px;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-status {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(280px, 0.7fr) minmax(560px, 1.3fr);
    gap: 32px;
  }

  .hero-proof {
    max-width: 390px;
  }

  .operator-body {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .operator-rail {
    padding-right: 7px;
    padding-left: 7px;
  }

  .live-events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-item:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 900px) {
  .page {
    min-height: 100svh;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 50px;
    padding-bottom: 56px;
  }

  .hero-copy {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 32px;
    align-items: end;
    padding-left: 0;
  }

  .eyebrow {
    grid-column: 1 / -1;
  }

  h1 {
    grid-column: 1 / -1;
    max-width: none;
    font-size: clamp(72px, 16vw, 118px);
  }

  .hero-summary {
    max-width: 420px;
    margin-top: 26px;
  }

  .hero-cta {
    grid-column: 2;
    justify-content: flex-end;
    margin-top: 24px;
  }

  .hero-cta .button-quiet {
    display: none;
  }

  .hero-proof {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 32px;
  }

  .operator-stage {
    padding-top: 20px;
  }

  .operator-body {
    min-height: 450px;
  }

  .live-rail {
    min-height: 76px;
  }

  .live-rail-heading {
    min-width: 165px;
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 18px;
  }

  .page {
    display: block;
    overflow: clip;
  }

  .site-header {
    min-height: 44px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-word {
    font-size: 13px;
  }

  .nav-link {
    display: none;
  }

  .button-small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }

  .button-small svg {
    width: 13px;
    height: 13px;
  }

  .hero {
    display: block;
    padding-top: 40px;
  }

  .hero-copy {
    display: block;
  }

  h1 {
    font-size: clamp(68px, 24vw, 112px);
    line-height: 0.82;
  }

  .hero-summary {
    max-width: 94%;
    margin-top: 24px;
    font-size: 15px;
  }

  .hero-cta {
    margin-top: 25px;
  }

  .button-primary {
    width: 100%;
  }

  .hero-proof {
    margin-top: 34px;
  }

  .hero-proof dt {
    font-size: 6px;
    letter-spacing: 0.04em;
  }

  .hero-proof dd {
    font-size: 14px;
  }

  .operator-stage {
    margin-top: 40px;
    padding-top: 20px;
  }

  .operator {
    transform: none;
  }

  .operator-body {
    display: block;
    min-height: 0;
  }

  .operator-rail {
    display: none;
  }

  .operator-workbench {
    padding: 10px;
  }

  .workbench-title .caption {
    display: none;
  }

  .format-strip {
    gap: 4px;
    overflow: hidden;
  }

  .format-prompt {
    display: none;
  }

  .format-chip {
    padding: 0 5px;
    font-size: 7px;
  }

  .format-hide-small {
    display: none;
  }

  #message-body {
    height: 132px;
    min-height: 132px;
    padding: 15px;
    font-size: 28px;
  }

  .composer-keys,
  .chars {
    display: none;
  }

  .telemetry {
    grid-template-columns: 1fr 118px;
  }

  .signal-panel {
    display: none;
  }

  .launch-button {
    min-height: 62px;
  }

  .launch-key {
    display: none;
  }

  .mission-strip {
    grid-template-columns: auto minmax(30px, 1fr) auto;
    gap: 7px;
    padding: 0 8px;
  }

  .floating-signal {
    right: 8px;
    min-width: 190px;
    top: auto;
    bottom: -1px;
    transform: scale(0.9);
    transform-origin: right bottom;
  }

  .stage-label-top {
    top: 0;
  }

  .live-rail {
    display: block;
    margin-top: 32px;
    padding-top: 17px;
    padding-bottom: 17px;
  }

  .live-rail-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-width: 0;
    row-gap: 14px;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .live-rail-heading .live-throughput {
    grid-column: 1 / -1;
  }

  .live-events {
    display: block;
  }

  .event-item {
    min-height: 0;
    padding: 12px 2px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .event-item:nth-child(n + 3) {
    display: grid;
  }

  .event-title {
    font-size: 20px;
  }

  .live-throughput {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 0 2px;
    border-top: 0;
  }

  .throughput-bars {
    margin-left: auto;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 23vw;
  }

  .hero-proof dt {
    max-width: 7ch;
    white-space: normal;
    line-height: 1.2;
  }

  .telemetry {
    grid-template-columns: 1fr 106px;
  }

  .launch-copy > span {
    font-size: 7px;
  }

  .launch-copy small {
    font-size: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
