/* ==== Fonts ============================================================= */

/* The main JetBrains Mono subset below has no dagger (U+2020) glyph — the
   live site serves it from a separate latin-ext file. This tiny face mirrors
   that: it carries only the dagger and wins via unicode-range. */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/jetbrains-mono-400-dagger.woff2') format('woff2');
  unicode-range: U+2020;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/jetbrains-mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Michroma';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/michroma-400.woff2') format('woff2');
}

/* ==== Tokens ============================================================ */

:root {
  --logo: url('assets/logo.png');
}

/* ==== Base ============================================================== */

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

body {
  background: #090e0b;
  color: #8fc9a8;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #9beebe;
}

a:hover {
  color: #c8ffdf;
}

::selection {
  background: #2c4636;
  color: #d6ffe6;
}

h1,
h2,
h3 {
  font-weight: 400;
}

/* Every display-face element on the page; everything else inherits
   JetBrains Mono from body. */
h1,
h2,
h3,
.wordmark-title,
.wordmark-subtitle,
.hero-caption,
.terminal-caption,
.catalog-name,
.stat-value,
.manual-title,
.footer-wordmark-title,
.footer-wordmark-subtitle {
  font-family: 'Michroma', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

/* content-box on purpose: with the global border-box reset, max-width would
   include the side paddings and squeeze the hero column below the width of
   "Operator continuity", wrapping the h1 onto 3 lines at desktop widths.
   content-box keeps 1180px as the CONTENT width — the original site's
   geometry. Children still get border-box from the reset. */
.container {
  box-sizing: content-box;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

.logo {
  background: var(--logo) center/contain no-repeat;
  display: block;
  aspect-ratio: 360/356;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.section-head h2 {
  font-size: 22px;
  letter-spacing: 2px;
  color: #c8ffdf;
}

.section-tag {
  font-size: 10px;
  letter-spacing: 2px;
  color: #44755b;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  color: #44755b;
}

/* ==== Header ============================================================ */

.site-header {
  border-bottom: 1px solid #1d2f25;
  background: #090e0b;
  position: relative;
  z-index: 5;
}

.header-bar {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
  flex-wrap: wrap;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand .logo {
  height: 44px;
  width: 45px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wordmark-title {
  font-size: 15px;
  letter-spacing: 5px;
  color: #c8ffdf;
}

.wordmark-subtitle {
  font-size: 6.5px;
  letter-spacing: 3.2px;
  color: #44755b;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px clamp(14px, 2.5vw, 30px);
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 2px;
}

.nav a {
  text-decoration: none;
  color: #8fc9a8;
}

.nav a:hover {
  color: #c8ffdf;
}

.nav a.cta {
  border: 1px solid #2c4636;
  padding: 9px 16px;
  color: #9beebe;
}

.nav a.cta:hover {
  background: #9beebe;
  color: #090e0b;
}

/* ==== Sub-bar =========================================================== */

.sub-bar {
  border-top: 1px solid #131f18;
  background: #0d1510;
}

.sub-bar-row {
  padding-top: 6px;
  padding-bottom: 6px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 9.5px;
  letter-spacing: 2px;
  color: #44755b;
}

.operator-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wave-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 10px;
}

.wave-bars i {
  width: 2px;
  height: 10px;
  background: #44755b;
  animation: wave .8s ease-in-out infinite;
}

.wave-bars i:nth-child(2) {
  animation-duration: 1.15s;
  animation-delay: -.3s;
}

.wave-bars i:nth-child(3) {
  animation-duration: .95s;
  animation-delay: -.6s;
}

.wave-bars i:nth-child(4) {
  animation-duration: 1.3s;
  animation-delay: -.15s;
}

.wave-bars i:nth-child(5) {
  animation-duration: .7s;
  animation-delay: -.45s;
}

/* ==== Hero ============================================================== */

.hero {
  background: #090e0b;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 90% at 78% 40%, #0e1811 0%, transparent 60%);
}

.hero .container {
  padding-top: clamp(60px, 9vw, 110px);
  padding-bottom: clamp(56px, 8vw, 100px);
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero-copy {
  flex: 1.25 1 340px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.28;
  letter-spacing: 1px;
  color: #d6ffe6;
  text-wrap: balance;
}

.hero-cursor {
  display: inline-block;
  width: 18px;
  height: 34px;
  background: #9beebe;
  margin-left: 16px;
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}

.hero-lede {
  font-size: 14.5px;
  line-height: 1.85;
  color: #6fae8c;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-buttons a {
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: 2.5px;
}

.button-solid {
  background: #9beebe;
  color: #090e0b;
  padding: 15px 26px;
}

.button-solid:hover {
  background: #c8ffdf;
  color: #090e0b;
}

.button-ghost {
  border: 1px solid #2c4636;
  color: #9beebe;
  padding: 14px 26px;
}

.button-ghost:hover {
  background: #10190f;
  color: #9beebe;
}

.hero-motto {
  font-size: 10px;
  letter-spacing: 2px;
  color: #3c6650;
}

.hero-figure {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.hero-figure .logo {
  width: 78%;
  max-width: 360px;
}

.hero-caption {
  font-size: 7px;
  letter-spacing: 3px;
  color: #44755b;
}

/* ==== Divisions ========================================================= */

.divisions {
  background: #0d1510;
  border-top: 1px solid #1d2f25;
  border-bottom: 1px solid #1d2f25;
}

.divisions .container {
  padding-top: clamp(56px, 8vw, 80px);
  padding-bottom: clamp(60px, 8vw, 90px);
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.division-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: #1d2f25;
  border: 1px solid #1d2f25;
}

.division-card {
  background: #0a110c;
  padding: 30px 26px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.division-card:hover {
  background: #0e1811;
}

.division-number {
  font-size: 10px;
  color: #3c6650;
}

.division-card h3 {
  font-size: 12px;
  letter-spacing: 1.5px;
  line-height: 1.7;
  color: #9beebe;
}

.division-card p {
  font-size: 12px;
  line-height: 1.8;
  color: #6fae8c;
}

/* ==== SRU / terminal ==================================================== */

.sru {
  background: #070c09;
}

.sru .container {
  padding-top: clamp(56px, 8vw, 90px);
  padding-bottom: clamp(56px, 8vw, 90px);
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.sru-copy {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sru h2 {
  font-size: 30px;
  letter-spacing: 2px;
  color: #c8ffdf;
}

.sru-lede {
  font-size: 13px;
  line-height: 1.9;
  color: #6fae8c;
  max-width: 480px;
}

.specs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #1d2f25;
  max-width: 480px;
}

.spec {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #1d2f25;
  font-size: 12px;
  letter-spacing: 1px;
}

.spec-name {
  color: #44755b;
}

.spec-value {
  color: #9beebe;
}

.spec-footnote {
  font-size: 10px;
  line-height: 1.8;
  color: #3c6650;
}

.terminal-column {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.terminal {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 300px;
  background: #0b120d;
  border: 1px solid #1d2f25;
  overflow: hidden;
}

.terminal-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

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

.terminal-watermark .logo {
  width: 140px;
  opacity: .22;
}

.transmissions {
  position: absolute;
  left: 20px;
  top: 18px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #7cc79d;
}

/* Settled transmissions sit dimmed; the line currently being typed renders
   at full color in the .transmission-typing row, next to the blinking
   cursor. site.js drives the typing and only toggles visibility — with JS
   off (or reduced motion) all seven lines simply show settled. */
.transmission {
  opacity: .7;
}

.transmission-typing {
  display: flex;
  align-items: center;
  gap: 3px;
}

.terminal-cursor {
  flex: none;
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #9beebe;
  animation: blink 1.05s steps(1) infinite;
}

.terminal-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
}

.terminal-caption {
  font-size: 7px;
  letter-spacing: 3px;
  color: #3c6650;
}

/* ==== Systems catalog =================================================== */

.systems {
  background: #090e0b;
  border-top: 1px solid #1d2f25;
}

.systems .container {
  padding-top: clamp(54px, 8vw, 76px);
  padding-bottom: clamp(58px, 8vw, 84px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.catalog {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #1d2f25;
}

.catalog-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: baseline;
  padding: 18px 6px;
  border-bottom: 1px solid #1d2f25;
}

.catalog-row:hover {
  background: #0e1811;
}

.catalog-name {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: #9beebe;
  width: 220px;
  flex: none;
}

.catalog-description {
  font-size: 12px;
  line-height: 1.7;
  color: #6fae8c;
  flex: 1 1 260px;
}

.catalog-category {
  font-size: 10px;
  letter-spacing: 2px;
  color: #44755b;
  text-align: right;
  margin-left: auto;
}

/* ==== Continuity / stats / manual ======================================= */

.continuity {
  background: #090e0b;
  border-top: 1px solid #1d2f25;
}

.continuity .container {
  padding-top: clamp(56px, 8vw, 84px);
  padding-bottom: clamp(56px, 8vw, 84px);
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: #1d2f25;
  border: 1px solid #1d2f25;
}

.stat {
  background: #0a110c;
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-value {
  font-size: 30px;
  color: #c8ffdf;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #44755b;
}

.stat-value-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wave-bars-large {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
}

.wave-bars-large i {
  width: 2.5px;
  height: 18px;
  background: #6fae8c;
  animation: wave .85s ease-in-out infinite;
}

.wave-bars-large i:nth-child(2) {
  animation-duration: 1.2s;
  animation-delay: -.35s;
}

.wave-bars-large i:nth-child(3) {
  animation-duration: .7s;
  animation-delay: -.6s;
}

.wave-bars-large i:nth-child(4) {
  animation-duration: 1.05s;
  animation-delay: -.2s;
}

.wave-bars-large i:nth-child(5) {
  animation-duration: .9s;
  animation-delay: -.5s;
}

.wave-bars-large i:nth-child(6) {
  animation-duration: 1.35s;
  animation-delay: -.1s;
}

.stat-footnote {
  font-size: 9.5px;
  letter-spacing: 1px;
  color: #3c6650;
}

.manual {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.manual-intro {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.manual-intro h2 {
  font-size: 22px;
  letter-spacing: 2px;
  color: #c8ffdf;
}

.manual-intro p {
  font-size: 13px;
  line-height: 1.9;
  color: #6fae8c;
  max-width: 440px;
}

.manual-revision {
  font-size: 10px;
  letter-spacing: 2px;
  color: #3c6650;
}

.manual-card {
  flex: 1.2 1 340px;
  background: #0d1510;
  border: 1px solid #1d2f25;
  padding: clamp(22px, 3.5vw, 34px) clamp(18px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .45);
}

.manual-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1d2f25;
  padding-bottom: 14px;
}

.manual-title {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #9beebe;
}

.manual-head .logo {
  height: 30px;
  width: 31px;
  opacity: .75;
}

.manual-card p {
  font-size: 12.5px;
  line-height: 2;
  color: #8fc9a8;
}

.redacted {
  background: #030504;
  color: #030504;
  padding: 1px 4px;
  box-shadow: inset 0 0 0 1px #16241b;
}

.manual-footer {
  border-top: 1px solid #1d2f25;
  padding-top: 12px;
  font-size: 9.5px;
  letter-spacing: 2px;
  color: #3c6650;
}

/* ==== Careers =========================================================== */

.careers {
  background: #0d1510;
  border-top: 1px solid #1d2f25;
}

.careers .container {
  padding-top: clamp(56px, 8vw, 80px);
  padding-bottom: clamp(56px, 8vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.job-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #1d2f25;
}

.job {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6px;
  border-bottom: 1px solid #1d2f25;
  gap: 6px 20px;
}

.job:hover {
  background: #0e1811;
}

.job-title {
  font-size: 13px;
  letter-spacing: 1px;
  color: #9beebe;
}

.job-location {
  font-size: 11px;
  color: #44755b;
}

.job.filled:hover {
  background: transparent;
}

.job.filled .job-title,
.job.filled .job-location {
  color: #3c6650;
}

.careers-note {
  font-size: 11px;
  line-height: 1.8;
  color: #44755b;
  max-width: 560px;
}

/* ==== Contact / footer ================================================== */

.contact {
  background: #070c09;
  border-top: 1px solid #1d2f25;
  margin-top: auto;
}

.contact .container {
  padding-top: clamp(50px, 7vw, 70px);
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.footer-brand {
  flex: 1.2 1 260px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand .logo {
  width: 74px;
}

.footer-wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-wordmark-title {
  font-size: 13px;
  letter-spacing: 5px;
  color: #c8ffdf;
}

.footer-wordmark-subtitle {
  font-size: 6px;
  letter-spacing: 3px;
  color: #44755b;
}

.footer-address {
  font-size: 11px;
  line-height: 2;
  color: #6fae8c;
}

.redacted-coordinates {
  background: #1d2f25;
  color: #1d2f25;
  padding: 0 5px;
}

.footer-column {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 11.5px;
  letter-spacing: 1.5px;
}

.footer-heading {
  font-size: 10px;
  letter-spacing: 3px;
  color: #44755b;
}

.footer-column a {
  color: #9beebe;
  text-decoration: none;
}

.footer-column a:hover {
  color: #c8ffdf;
}

.footer-note {
  color: #6fae8c;
  line-height: 1.9;
  font-size: 11px;
}

.footer-bottom {
  border-top: 1px solid #1d2f25;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  font-size: 9.5px;
  letter-spacing: 2px;
  color: #3c6650;
}

.footer-motto {
  color: #44755b;
}

/* ==== Animations ======================================================== */

@keyframes blink {
  0%, 58% { opacity: 1; }
  59%, 100% { opacity: 0; }
}

@keyframes wave {
  0%, 100% { transform: scaleY(.18); }
  50% { transform: scaleY(1); }
}

/* ==== Reduced motion ==================================================== */

/* Stop the cursors and wave bars — the page reads fully with nothing
   moving (all seven transmissions are visible because site.js also checks
   this preference and never starts the typewriter, noise canvas, or stat
   drift). */
@media (prefers-reduced-motion: reduce) {
  .wave-bars i,
  .wave-bars-large i,
  .hero-cursor,
  .terminal-cursor {
    animation: none;
  }
}
