/* ============================================================
   PERIGEE: orbital infrastructure monitoring
   Art direction: mission control, deep space, NASA-grade calm.
   ============================================================ */

:root {
  /* field */
  --space:      #030612;
  --space-r:    #060B1C;   /* raised */
  --space-c:    #0A1226;   /* card */
  --space-d:    #020409;   /* deeper than field, for wells */

  /* support */
  --ice:        #9FC6FF;
  --white:      #E8EEF8;
  --orbit:      rgba(159, 198, 255, 0.3);
  --hair:       rgba(159, 198, 255, 0.15);
  --hair-soft:  rgba(159, 198, 255, 0.08);
  --hair-hot:   rgba(159, 198, 255, 0.34);

  /* accent: amber is alerts only. 1% of the page. */
  --amber:      #FFB454;
  --amber-dim:  rgba(255, 180, 84, 0.16);

  /* text */
  --body:       rgba(232, 238, 248, 0.70);
  --muted:      rgba(232, 238, 248, 0.50);
  --faint:      rgba(232, 238, 248, 0.34);

  /* type */
  --display: 'Archivo', 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* motion */
  --ease-orbit:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cubic:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* rhythm: 8px base */
  --gut: 32px;
  --max: 1280px;
  --sect: clamp(84px, 9.5vw, 132px);

  /* layered depth */
  --lift-1: 0 1px 1px rgba(0,0,0,.5), 0 4px 10px rgba(0,0,0,.35), 0 12px 30px rgba(0,0,0,.28);
  --lift-2: 0 1px 2px rgba(0,0,0,.6), 0 8px 24px rgba(0,0,0,.45), 0 30px 70px rgba(0,0,0,.4);
  --glow-ice: 0 0 0 1px rgba(159,198,255,.22), 0 8px 40px rgba(50,110,220,.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* must outrank the display values set on .btn and .deck-main svg */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--space);
  color: var(--body);
  font-family: var(--display);
  font-variation-settings: 'wdth' 100, 'wght' 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--ice); color: var(--space); }

/* subtle star-dust field behind the whole document */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1000px 620px at 78% 6%,  rgba(46,86,180,.13), transparent 62%),
    radial-gradient(760px 520px at 8% 92%,   rgba(30,60,140,.10), transparent 66%);
}

/* sensor grain: space photography never has clean blacks */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 9;
  opacity: .32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

main, nav, footer { position: relative; z-index: 1; }

/* column rails: a drafting-table grid the sections sit on. Fixed, so they read
   as a plot backdrop rather than page furniture. Panel sections (proof, deck)
   have their own fill and deliberately cover them. */
.rails {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
  display: flex;
  justify-content: space-between;
}
.rails i {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(159,198,255,.055) 14%, rgba(159,198,255,.055) 86%, transparent);
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* themed scrollbar */
html { scrollbar-color: rgba(159,198,255,.24) var(--space-d); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--space-d); }
::-webkit-scrollbar-thumb {
  background: rgba(159,198,255,.20);
  border: 3px solid var(--space-d);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(159,198,255,.38); }

/* ---------- type primitives ---------- */

.display {
  font-family: var(--display);
  font-variation-settings: 'wdth' 118, 'wght' 700;
  font-size: clamp(2.9rem, 6.9vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--white);
}

h2.sect-title {
  font-variation-settings: 'wdth' 112, 'wght' 660;
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--white);
}

h3 {
  font-variation-settings: 'wdth' 104, 'wght' 620;
  font-size: 1.24rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--white);
}

.mono {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ice);
}

.mono-data {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.lede { font-size: 1.0625rem; color: var(--body); max-width: 46ch; }

/* section eyebrow with a hairline rule running off it */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.eyebrow::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--hair-hot), transparent);
}
.eyebrow .idx { color: var(--faint); }

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--space);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform .5s var(--ease-expo), box-shadow .5s var(--ease-expo), background .3s var(--ease-orbit), color .3s var(--ease-orbit);
}
.btn > * { position: relative; z-index: 1; }
/* ice sweep on hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(159,198,255,.55) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-expo);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(159,198,255,.22); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: var(--hair-hot);
}
.btn--ghost:hover { background: rgba(159,198,255,.07); box-shadow: none; border-color: var(--ice); }
.btn--ghost::before { background: linear-gradient(100deg, transparent 20%, rgba(159,198,255,.16) 50%, transparent 80%); }

.btn--sm { min-height: 38px; padding: 0 15px; font-size: 0.6875rem; }

/* arrow that nudges */
.btn .arw { transition: transform .45s var(--ease-expo); }
.btn:hover .arw { transform: translateX(4px); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease-orbit), border-color .5s var(--ease-orbit), backdrop-filter .5s;
}
.nav.is-stuck {
  background: rgba(3, 6, 18, 0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--hair);
}
.nav-in {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--white);
}
.brand svg { display: block; overflow: visible; }
.brand .bt {
  font-variation-settings: 'wdth' 122, 'wght' 700;
  font-size: 1.0625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; border-radius: 2px; }
/* the mark's ellipse traces on hover */
.brand .orbit-ring { transition: transform .9s var(--ease-expo); transform-origin: 11px 11px; }
.brand:hover .orbit-ring { transform: rotate(180deg); }
.brand .orbit-dot { transition: fill .4s var(--ease-orbit); }
.brand:hover .orbit-dot { fill: var(--amber); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 9px 13px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .35s var(--ease-orbit);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 1px;
  background: var(--ice);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-expo);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; color: var(--white); }
.nav-cta { margin-left: 10px; }
#navCtaM { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 780px;
  height: 100svh;
  max-height: 1080px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}
/* legibility scrim under the copy column, feathered so the planet keeps its blacks */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3,6,18,.92) 0%, rgba(3,6,18,.72) 30%, rgba(3,6,18,0) 62%);
}
/* fade the canvas into the next section */
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 190px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--space) 88%);
}

.hero-in { position: relative; z-index: 3; width: 100%; }
.hero-copy { max-width: 640px; }

.hero .display .l { display: block; overflow: hidden; }
.hero .display .l > span {
  display: block;
  transform: translateY(105%);
  animation: riseIn 1.05s var(--ease-expo) forwards;
}
.hero .display .l:nth-child(1) > span { animation-delay: .12s; }
.hero .display .l:nth-child(2) > span { animation-delay: .20s; }
@keyframes riseIn { to { transform: translateY(0); } }

.hero-eye {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeUp .9s var(--ease-expo) .04s forwards;
}
.hero-sub {
  margin-top: 26px;
  font-size: 1.09rem;
  max-width: 47ch;
  opacity: 0;
  animation: fadeUp .9s var(--ease-expo) .34s forwards;
}
.hero-sub strong { color: var(--white); font-variation-settings: 'wdth' 100, 'wght' 600; }
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 38px;
  opacity: 0;
  animation: fadeUp .9s var(--ease-expo) .44s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* telemetry block: grounds the copy column and fills the hero's left field */
.hero-tel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 54px;
  max-width: 500px;
  border-top: 1px solid var(--hair);
  opacity: 0;
  animation: fadeUp .9s var(--ease-expo) .58s forwards;
}
.tel { padding: 16px 20px 0 0; }
.tel + .tel { padding-left: 20px; border-left: 1px solid var(--hair-soft); }
.tel dt {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tel dd { display: flex; align-items: baseline; gap: 5px; margin: 7px 0 9px; }
.tel dd b {
  font-family: var(--mono);
  font-size: 1.14rem;
  font-weight: 500;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.tel dd .u { font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tel .bar { display: block; height: 2px; background: rgba(159,198,255,.12); overflow: hidden; }
.tel .bar s {
  display: block; height: 100%; width: var(--w);
  background: var(--ice);
  transform-origin: left;
  transform: scaleX(0);
  animation: barIn 1.1s var(--ease-expo) .9s forwards;
}
@keyframes barIn { to { transform: scaleX(1); } }

/* live status pill, wired to the scene's ping loop */
.livepill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--hair);
  border-radius: 100px;
  background: rgba(6,11,28,.6);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color .5s var(--ease-orbit), color .5s var(--ease-orbit);
}
.livepill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 0 0 rgba(159,198,255,.5);
  animation: beacon 2.6s var(--ease-cubic) infinite;
}
@keyframes beacon {
  0%   { box-shadow: 0 0 0 0 rgba(159,198,255,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(159,198,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(159,198,255,0); }
}
.livepill.is-alert { border-color: rgba(255,180,84,.5); color: var(--amber); }
.livepill.is-alert .dot { background: var(--amber); animation-duration: .9s; }
.livepill.is-alert .dot { box-shadow: 0 0 0 0 rgba(255,180,84,.5); }

/* ---------- HUD instrument frame ---------- */

/* the frame tracks the content column, not the viewport edge */
.hud-outer { position: absolute; inset: 96px 0 58px; z-index: 2; pointer-events: none; }
.hud-outer .wrap { height: 100%; }
.hud {
  position: relative;
  height: 100%;
  pointer-events: none;
  border: 1px solid var(--hair-soft);
  opacity: 0;
  animation: fadeIn 1.4s var(--ease-orbit) .55s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.hud .cnr {
  position: absolute;
  width: 13px; height: 13px;
  border: 1px solid var(--hair-hot);
}
.hud .cnr.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud .cnr.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hud .cnr.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hud .cnr.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
/* readouts ride the frame line as HUD chips (a solid fill would show as a
   lighter box over the star field, so tint + blur instead) */
.hud .rd {
  position: absolute;
  padding: 2px 9px;
  background: rgba(3, 6, 18, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hud .rd b { color: var(--ice); font-weight: 500; }
.hud .rd--tl { top: -10px; left: 22px; }
.hud .rd--tr { top: -10px; right: 22px; }
.hud .rd--bl { bottom: -10px; left: 22px; display: flex; align-items: center; gap: 8px; }
.hud .rd--br { bottom: -10px; right: 22px; display: flex; align-items: center; gap: 8px; }
#nodeStat.is-alert { color: var(--amber); }
#nodeStat.is-alert b { color: var(--amber); }
/* tick marks along the frame: instrument scale */
.hud .scale {
  position: absolute; top: -1px; bottom: -1px; width: 1px;
  background: var(--hair-soft);
}
.hud .spark { display: block; }

/* node labels projected from 3D */
.tags { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tag {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ice);
  white-space: nowrap;
  will-change: transform, opacity;
  transition: color .45s var(--ease-orbit);
}
/* the label crosses the lit planet, so it needs its own ground to stay legible */
.tag .txt, .tag .val {
  padding: 1px 5px;
  background: rgba(3, 6, 18, .58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tag .val { margin-left: -6px; }
.tag .lead { width: 20px; height: 1px; background: currentColor; opacity: .55; flex: none; }
.tag .txt { opacity: .9; }
.tag .val { color: var(--faint); letter-spacing: 0.04em; }
/* near the right edge only the leader line moves, so the name still reads first */
.tag.flip .lead { order: 3; }
/* a degraded node's label locks up like a reticle */
.tag.is-alert { color: var(--amber); }
.tag.is-alert .val { color: var(--amber); opacity: .8; }
.tag .txt { border: 1px solid transparent; transition: border-color .4s var(--ease-orbit), box-shadow .4s var(--ease-orbit); }
.tag.is-alert .txt {
  border-color: rgba(255,180,84,.65);
  box-shadow: 0 0 14px rgba(255,180,84,.28), inset 0 0 10px rgba(255,180,84,.10);
  animation: retLock 1.1s var(--ease-cubic) infinite;
}
@keyframes retLock { 50% { border-color: rgba(255,180,84,.28); } }

/* scroll cue */
.cue {
  position: absolute;
  left: 50%; bottom: 80px;      /* clears the HUD frame's bottom rail */
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0;
  animation: fadeIn 1s var(--ease-orbit) 1.1s forwards;
}
.cue .bar { width: 1px; height: 34px; background: linear-gradient(180deg, var(--hair-hot), transparent); position: relative; overflow: hidden; }
.cue .bar::after {
  content: ''; position: absolute; top: -34px; left: 0; width: 1px; height: 34px;
  background: linear-gradient(180deg, transparent, var(--ice));
  animation: drop 2.4s var(--ease-cubic) infinite;
}
@keyframes drop { 0% { transform: translateY(0); } 60%,100% { transform: translateY(68px); } }

/* ---------- reveal ---------- */

.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-expo), transform .9s var(--ease-expo); }
.rv.in { opacity: 1; transform: none; }

/* ---------- proof strip ---------- */

/* translucent so the column rails still read through the panel sections */
.proof { padding: 62px 0; border-block: 1px solid var(--hair-soft); background: rgba(2, 4, 9, .62); }
.proof-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  margin-bottom: 34px; flex-wrap: wrap;
}
.proof-head .mono { color: var(--faint); }
.proof-head .stat { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint); font-variant-numeric: tabular-nums; }
.proof-head .stat b { color: var(--ice); font-weight: 500; }
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--hair-soft);
  border: 1px solid var(--hair-soft);
}
.logo {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 26px 8px;
  background: var(--space-d);
  color: var(--muted);
  transition: color .5s var(--ease-orbit), background .5s var(--ease-orbit);
}
.logo svg { flex: none; opacity: .8; }
.logo span {
  font-variation-settings: 'wdth' 112, 'wght' 640;
  font-size: 0.8125rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo:hover { color: var(--white); background: var(--space-c); }

/* ---------- generic section ---------- */

.sect { padding: var(--sect) 0; position: relative; }
.sect-head { max-width: 720px; margin-bottom: 64px; }
.sect-head .lede { margin-top: 18px; font-size: 1.0625rem; max-width: 54ch; }

/* title left, instrument legend right: fills the field beside the heading */
.sect-head--split { max-width: none; display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: end; }
.sect-head--split > div:first-child { max-width: 660px; }
.legend { border-left: 1px solid var(--hair); padding: 4px 0 4px 22px; min-width: 178px; }
.lg-h { font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 13px; }
.lg { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.lg span { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.06em; color: var(--muted); }
.lg .sw { width: 14px; flex: none; display: block; }
.lg .sw.ice { height: 6px; border-radius: 50%; width: 6px; background: var(--ice); margin: 0 4px; }
.lg .sw.amb { height: 6px; border-radius: 50%; width: 6px; background: var(--amber); box-shadow: 0 0 8px rgba(255,180,84,.7); margin: 0 4px; }
.lg .sw.dash { height: 1px; background: repeating-linear-gradient(90deg, var(--hair-hot) 0 5px, transparent 5px 8px); }
.lg .sw.halo { height: 10px; width: 10px; border-radius: 50%; background: radial-gradient(circle, rgba(255,180,84,.75), rgba(255,180,84,0) 70%); margin: 0 2px; }

/* ---------- mission log ---------- */

#log { border-top: 1px solid var(--hair-soft); }
.log-grid { display: grid; grid-template-columns: 1fr 1.45fr; gap: 56px; align-items: start; }

.log-aside .lede { margin-top: 18px; }
.log-facts { margin-top: 34px; display: grid; gap: 1px; background: var(--hair-soft); border: 1px solid var(--hair-soft); }
.log-fact { background: var(--space); padding: 16px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.log-fact dt { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.log-fact dd { font-family: var(--mono); font-size: 0.9375rem; color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* the console */
.console {
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, var(--space-c), var(--space-r));
  box-shadow: var(--lift-2);
  border-radius: 3px;
  overflow: hidden;
}
.console-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hair-soft);
  background: rgba(3,6,18,.5);
}
.console-bar .dots { display: flex; gap: 5px; }
.console-bar .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--hair-hot); display: block; }
.console-bar .ttl { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); }
.console-bar .rt { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.console-bar .clk {
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em;
  color: var(--ice); font-variant-numeric: tabular-nums;
}

.log-body { padding: 20px 0 8px; min-height: 372px; position: relative; }
/* the spine */
.log-body::before {
  content: '';
  position: absolute;
  left: 96px; top: 0; bottom: 0;
  width: 1px;
  background: var(--hair-soft);
}
.log-prog {
  position: absolute; left: 96px; top: 0;
  width: 1px; height: 0;
  background: linear-gradient(180deg, var(--ice), rgba(159,198,255,.25));
  transition: height .5s var(--ease-orbit);
}

.entry {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  padding: 0 18px 0 0;
  opacity: 0;
  transition: opacity .4s var(--ease-orbit);
}
.entry.on { opacity: 1; }
.entry-t {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--faint);
  padding: 9px 14px 9px 18px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.entry-m { padding: 9px 0 9px 20px; position: relative; }
.entry-m::before {
  content: '';
  position: absolute;
  left: -4px; top: 15px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--space-c);
  border: 1px solid var(--hair-hot);
  transition: background .4s var(--ease-orbit), border-color .4s var(--ease-orbit), box-shadow .4s;
}
.entry.on .entry-m::before { background: var(--ice); border-color: var(--ice); }
.entry[data-kind="alert"].on .entry-m::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 10px rgba(255,180,84,.6); }

.entry .chip {
  display: inline-block;
  min-width: 62px;
  margin-right: 10px;
  padding: 1px 7px;
  border: 1px solid var(--hair);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ice);
  text-align: center;
  vertical-align: 1px;
}
.entry[data-kind="alert"] .chip { color: var(--amber); border-color: rgba(255,180,84,.45); background: var(--amber-dim); }
.entry[data-kind="clear"] .chip { color: var(--white); border-color: var(--hair-hot); background: rgba(159,198,255,.07); }
.entry .txt { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.6; color: var(--body); letter-spacing: 0.005em; }
.entry .txt em { color: var(--white); font-style: normal; }
.entry .cur {
  display: inline-block;
  width: 7px; height: 13px;
  margin-left: 2px;
  background: var(--ice);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.entry.done .cur { display: none; }

.log-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--hair-soft);
  background: rgba(3,6,18,.5);
}
.log-foot .meta { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.log-foot .meta b { color: var(--ice); font-weight: 500; }

/* ---------- instruments (feature grid) ---------- */

.inst { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair-soft); border: 1px solid var(--hair-soft); }
.card {
  position: relative;
  background: var(--space);
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: background .55s var(--ease-orbit);
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), rgba(159,198,255,.09), transparent 70%);
  opacity: 0;
  transition: opacity .6s var(--ease-orbit);
}
.card:hover { background: var(--space-r); }
.card:hover::after { opacity: 1; }

/* the hero HUD's corner motif, reused as a hover lock-on */
.card .lock {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .5s var(--ease-orbit), transform .6s var(--ease-expo);
}
.card:hover .lock { opacity: 1; transform: none; }
.card .lock .cnr { position: absolute; width: 10px; height: 10px; border: 1px solid var(--hair-hot); }
.card .lock .cnr.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.card .lock .cnr.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.card .lock .cnr.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.card .lock .cnr.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* per-card entrance: the grid frame lands first, then each cell fills */
.inst.rv .card > *:not(.lock) {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .75s var(--ease-expo), transform .75s var(--ease-expo);
}
.inst.rv.in .card > *:not(.lock) { opacity: 1; transform: none; }
.inst.rv .card:nth-child(1) > * { transition-delay: 60ms; }
.inst.rv .card:nth-child(2) > * { transition-delay: 130ms; }
.inst.rv .card:nth-child(3) > * { transition-delay: 200ms; }
.inst.rv .card:nth-child(4) > * { transition-delay: 270ms; }
.inst.rv .card:nth-child(5) > * { transition-delay: 340ms; }
.inst.rv .card:nth-child(6) > * { transition-delay: 410ms; }

.card .ico { margin-bottom: 22px; color: var(--ice); }
.card .ico svg { display: block; overflow: visible; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.9375rem; color: var(--muted); }
.card .k {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.16em; color: var(--faint);
}

/* animated bits inside cards */
.card:hover .sweep { animation-play-state: running; }
.sweep { transform-origin: center; animation: spin 9s linear infinite; animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
.card:hover .pulse-r { animation: pulseR 2s var(--ease-cubic) infinite; }
@keyframes pulseR { 0% { r: 3; opacity: 1; } 100% { r: 15; opacity: 0; } }
.dash-flow { stroke-dasharray: 4 5; animation: flow 1.4s linear infinite; animation-play-state: paused; }
.card:hover .dash-flow { animation-play-state: running; }
@keyframes flow { to { stroke-dashoffset: -18; } }

/* ---------- flight deck (product showcase) ---------- */

#deck { background: rgba(2, 4, 9, .62); border-block: 1px solid var(--hair-soft); }
.deck-shell {
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--space-c), var(--space));
  box-shadow: var(--lift-2);
  overflow: hidden;
}
.deck-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px;
  height: 42px;
  border-bottom: 1px solid var(--hair-soft);
  background: rgba(2,4,9,.6);
}
.deck-bar .tab {
  padding: 6px 12px;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--faint);
  border: 1px solid transparent;
  border-radius: 2px;
  background: none;
  cursor: pointer;
  transition: color .35s var(--ease-orbit), background .35s var(--ease-orbit), border-color .35s;
}
.deck-bar .tab:hover { color: var(--white); }
.deck-bar .tab[aria-selected="true"] { color: var(--space); background: var(--ice); border-color: var(--ice); }
.deck-bar .tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.deck-bar .rt { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.deck-bar .clk { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em; color: var(--faint); font-variant-numeric: tabular-nums; }

.deck-grid { display: grid; grid-template-columns: 208px 1fr 216px; min-height: 430px; }
.deck-rail { border-right: 1px solid var(--hair-soft); padding: 16px 0; }
.deck-rail--r { border-right: 0; border-left: 1px solid var(--hair-soft); }
.rail-h { padding: 0 16px 12px; font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--faint); }
.region {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border: 0; background: none; width: 100%; text-align: left;
  cursor: pointer;
  transition: background .35s var(--ease-orbit);
}
.region:hover { background: rgba(159,198,255,.05); }
.region.is-sel { background: rgba(159,198,255,.09); }
.region:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.region .st { width: 5px; height: 5px; border-radius: 50%; background: var(--ice); flex: none; }
.region.is-alert .st { background: var(--amber); box-shadow: 0 0 8px rgba(255,180,84,.8); }
.region .nm { font-family: var(--mono); font-size: 0.6875rem; color: var(--body); letter-spacing: 0.03em; flex: 1; }
.region.is-alert .nm { color: var(--amber); }
.region .ms { font-family: var(--mono); font-size: 0.625rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.region svg { flex: none; }

/* fixed height so swapping panels never jumps the layout, and so a panel
   can't stack under its siblings */
.deck-main { position: relative; height: 452px; }
.deck-main svg { position: absolute; inset: 16px; display: block; width: calc(100% - 32px); height: calc(100% - 32px); }

/* observed traffic flows along the dependency arcs; the hot path runs faster.
   Dashes stay dense so the arcs still read as connections, not dotted sketch. */
#p-topo .dep { stroke-dasharray: 9 4; animation: depFlow 2.4s linear infinite; }
#p-topo .dep.hotpath { animation-duration: .9s; }
@keyframes depFlow { to { stroke-dashoffset: -26; } }
#p-topo .halo { transform-box: fill-box; transform-origin: center; animation: halo 2.6s var(--ease-cubic) infinite; }
@keyframes halo { 50% { opacity: .45; transform: scale(1.14); } }
#p-topo .gnode rect { transition: stroke .4s var(--ease-orbit); }
#p-track #trackSat, #p-track #trackSatGlow { transition: none; }

.mini { padding: 14px 16px; border-bottom: 1px solid var(--hair-soft); }
.mini:last-child { border-bottom: 0; }
.mini .lab { font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.mini .big { font-family: var(--mono); font-size: 1.35rem; color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mini .big.amber { color: var(--amber); }
.mini .sub { font-family: var(--mono); font-size: 0.5625rem; color: var(--faint); margin-top: 3px; letter-spacing: 0.05em; }

.deck-foot {
  border-top: 1px solid var(--hair-soft);
  padding: 12px 16px;
  background: rgba(2,4,9,.6);
  display: flex; align-items: center; gap: 16px;
}
.deck-foot .lab { font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); flex: none; }
.deck-foot .ribbon { flex: 1; height: 34px; }

/* ---------- pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair-soft); border: 1px solid var(--hair); }
.tier {
  position: relative;
  background: var(--space);
  padding: 36px 30px 34px;
  display: flex; flex-direction: column;
  transition: background .5s var(--ease-orbit), box-shadow .5s var(--ease-orbit);
}
.tier:hover { background: var(--space-r); box-shadow: inset 0 0 0 1px rgba(159,198,255,.16), var(--lift-1); z-index: 1; }
.tier.is-hot { background: var(--space-c); box-shadow: inset 0 0 0 1px rgba(159,198,255,.10); }
.tier.is-hot:hover { box-shadow: inset 0 0 0 1px rgba(159,198,255,.24), var(--lift-2); }
.tier.is-hot::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice), transparent);
}
.tier .flag {
  position: absolute; top: 0; right: 0;
  padding: 4px 10px;
  background: var(--ice); color: var(--space);
  font-family: var(--mono); font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.tier .nm { font-family: var(--mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.19em; text-transform: uppercase; color: var(--ice); }
.tier .px { display: flex; align-items: baseline; gap: 4px; margin: 20px 0 4px; }
.tier .px .n {
  font-variation-settings: 'wdth' 116, 'wght' 700;
  font-size: 3.1rem; line-height: 1; letter-spacing: -0.045em; color: var(--white);
}
.tier .px .u { font-family: var(--mono); font-size: 0.6875rem; color: var(--faint); letter-spacing: 0.06em; }
.tier .bl { font-size: 0.875rem; color: var(--muted); min-height: 40px; }
.tier ul { list-style: none; margin: 26px 0 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
.tier li { display: flex; gap: 10px; font-size: 0.875rem; color: var(--body); line-height: 1.45; min-width: 0; }
.tier li svg { flex: none; margin-top: 4px; color: var(--ice); }
.tier .btn { width: 100%; margin-top: auto; }
.tier hr { border: 0; border-top: 1px solid var(--hair-soft); margin: 0; }

.px-note { margin-top: 22px; font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em; color: var(--faint); text-align: center; }

/* ---------- final CTA ---------- */

.final { position: relative; padding: clamp(110px, 14vw, 180px) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--hair-soft); }
.final canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.final::after {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(700px 340px at 50% 50%, rgba(3,6,18,.86), rgba(3,6,18,.5) 60%, transparent);
}
.final-in { position: relative; z-index: 2; }
.final .display { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.final .lede { margin: 22px auto 0; text-align: center; }
.final .hero-cta { justify-content: center; }

/* the arc that sweeps under the final CTA, turning slowly like the hero rings */
.final .arc {
  position: absolute; left: 50%; bottom: -60%;
  transform: translateX(-50%); transform-origin: 50% 50%;
  z-index: 1; pointer-events: none;
  animation: arcTurn 120s linear infinite;
}
@keyframes arcTurn {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg); }
}

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--hair); background: var(--space-d); padding: 72px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { font-size: 0.875rem; color: var(--muted); max-width: 30ch; }
.foot-col h4 { font-family: var(--mono); font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 15px; }
.foot-col ul { list-style: none; display: grid; gap: 9px; }
.foot-col a {
  font-size: 0.875rem; color: var(--muted); text-decoration: none;
  transition: color .3s var(--ease-orbit);
  display: inline-flex; align-items: center; gap: 6px;
}
.foot-col a:hover { color: var(--white); }
.foot-col a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.foot-col a .ex { opacity: 0; transform: translateX(-3px); transition: opacity .3s var(--ease-orbit), transform .3s var(--ease-orbit); }
.foot-col a:hover .ex { opacity: .6; transform: none; }

.foot-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  padding: 6px 11px;
  border: 1px solid var(--hair);
  border-radius: 100px;
  font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.foot-status .d { width: 5px; height: 5px; border-radius: 50%; background: var(--ice); animation: beacon 2.6s var(--ease-cubic) infinite; }

.foot-rule { height: 1px; background: var(--hair-soft); margin: 54px 0 24px; }
.foot-bot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-bot .sm { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.06em; color: var(--faint); }
.credit {
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.06em;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--hair-hot);
  padding-bottom: 2px;
  transition: color .3s var(--ease-orbit), border-color .3s var(--ease-orbit);
}
.credit:hover { color: var(--ice); border-color: var(--ice); }
.credit:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .log-grid { grid-template-columns: 1fr; gap: 40px; }
  .inst { grid-template-columns: repeat(2, 1fr); }
  .deck-grid { grid-template-columns: 176px 1fr; }
  .deck-rail--r { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .logos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }

  .nav-links { display: none; }
  #navCtaM { display: inline-flex; }
  .nav-in { height: 60px; }

  /* the planet owns the top band, the copy starts below it */
  .hero { min-height: 100svh; height: auto; padding: 39vh 0 60px; align-items: flex-end; }
  .hero-copy { max-width: 100%; }
  .hero::after {
    background: linear-gradient(180deg, rgba(3,6,18,0) 16%, rgba(3,6,18,.5) 28%, rgba(3,6,18,.92) 38%, rgba(3,6,18,.97) 100%);
  }
  .hero-tel { margin-top: 40px; max-width: 100%; }
  .tel { padding-right: 12px; }
  .tel + .tel { padding-left: 14px; }
  .hero .display { font-size: clamp(2.5rem, 12.4vw, 3.6rem); }
  .hero-sub { font-size: 1rem; }
  .hero-cta { margin-top: 28px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .cue { display: none; }

  .hud-outer { inset: 78px 0 26px; }
  .hud .scale { display: none; }          /* ticks were striping the headline */
  .hud .rd { font-size: 0.5rem; letter-spacing: 0.1em; }
  .hud .rd--tr, .hud .rd--br { display: none; }
  .hud .rd--tl { left: 14px; }
  .hud .rd--bl { left: 14px; }

  .tag { font-size: 0.5rem; }
  .tag .lead { width: 12px; }
  .tag .val { display: none; }

  .inst { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .tier.is-hot { order: -1; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logo { padding: 20px 8px; }

  .deck-grid { grid-template-columns: 1fr; }
  .deck-rail { border-right: 0; border-bottom: 1px solid var(--hair-soft); display: flex; flex-direction: column; }
  .deck-bar { overflow-x: auto; scrollbar-width: none; }
  .deck-bar::-webkit-scrollbar { display: none; }
  .deck-main { min-height: 260px; }

  .sect-head--split { grid-template-columns: 1fr; gap: 30px; }
  .legend { border-left: 0; border-top: 1px solid var(--hair); padding: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
  .lg-h { grid-column: 1 / -1; }

  .log-body::before, .log-prog { left: 68px; }
  .entry { grid-template-columns: 68px 1fr; }
  .entry-t { padding-left: 10px; font-size: 0.5625rem; }
  .entry-m { padding-left: 14px; }
  .entry .chip { display: inline-block; margin-bottom: 5px; }
  .entry .txt { font-size: 0.75rem; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-bot { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* ---- touch targets: everything tappable clears 44px ---- */
  .btn--sm { min-height: 44px; }
  .brand { padding: 8px 0; }
  .deck-bar { height: 52px; }
  .deck-bar .tab { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; padding: 6px 14px; }
  .region { min-height: 44px; padding: 11px 16px; }
  .foot-col ul { gap: 0; }
  .foot-col a { min-height: 44px; display: inline-flex; align-items: center; }
  .credit { min-height: 44px; display: inline-flex; align-items: center; }
  .cue { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero .display .l > span { transform: none; }
  .hero-eye, .hero-sub, .hero-cta, .hud, .cue { opacity: 1; }
  .rv { opacity: 1; transform: none; }
  .entry { opacity: 1; }
  .entry .cur { display: none; }
}
