:root {
  color-scheme: dark;
  --bg: #03070d;
  --bg-2: #08111d;
  --panel: #0b1724;
  --panel-2: #10243a;
  --line: rgba(115, 202, 255, 0.25);
  --line-strong: rgba(115, 202, 255, 0.48);
  --text: #f2fbff;
  --muted: #c4deeb;
  --cyan: #27d4ff;
  --green: #00f096;
  --amber: #ffd45a;
  --pink: #ff4f86;
  --violet: #a66cff;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(39, 212, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 212, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(0, 240, 150, 0.14), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(255, 212, 90, 0.10), transparent 28%),
    linear-gradient(180deg, #02050a 0%, #06111c 48%, #02050a 100%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(255, 79, 134, 0.08), transparent 18%, transparent 82%, rgba(39, 212, 255, 0.09));
  mix-blend-mode: screen;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
  padding: 0 clamp(18px, 4vw, 54px);
  background: rgba(2, 7, 13, 0.78);
  border-bottom: 1px solid rgba(115, 202, 255, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--white);
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  border-color: rgba(39, 212, 255, 0.34);
  background: rgba(39, 212, 255, 0.08);
}

.hero-section {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 72px) 56px;
  overflow: hidden;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.12) contrast(1.08);
}

.hero-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.78) 0%, rgba(2, 7, 13, 0.52) 44%, rgba(2, 7, 13, 0.12) 100%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.05) 0%, rgba(2, 7, 13, 0.16) 55%, rgba(2, 7, 13, 0.84) 100%);
}

.hero-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: end;
  gap: 34px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 850;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 30px;
  color: #e8f7ff;
  font-size: 21px;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-weight: 800;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.button.primary {
  color: #001016;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border-color: rgba(255, 255, 255, 0.24);
}

.button.secondary {
  color: var(--text);
  background: rgba(5, 16, 27, 0.72);
}

.hero-console {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 13, 22, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(115, 202, 255, 0.16);
}

.console-row:last-child {
  border-bottom: 0;
}

.console-row span {
  color: #d7edf7;
  font-size: 12px;
  font-weight: 900;
}

.console-row strong {
  color: var(--white);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
}

.mission-strip {
  width: min(calc(100% - 36px), var(--max));
  margin: -28px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 19, 31, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mission-strip div {
  min-height: 120px;
  padding: 24px;
  border-right: 1px solid rgba(115, 202, 255, 0.14);
}

.mission-strip div:last-child {
  border-right: 0;
}

.metric {
  display: block;
  margin-bottom: 9px;
  color: var(--amber);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 30px;
  font-weight: 900;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.section {
  padding: 100px clamp(18px, 5vw, 72px);
}

.section-intro {
  width: min(100%, var(--max));
  margin: 0 auto 36px;
}

.section-intro h2 {
  max-width: 860px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-intro p:not(.eyebrow) {
  max-width: 820px;
  color: #d1e8f4;
  font-size: 18px;
  line-height: 1.65;
}

.math-section {
  background:
    linear-gradient(180deg, rgba(2, 7, 13, 0), rgba(255, 79, 134, 0.055)),
    linear-gradient(90deg, rgba(0, 240, 150, 0.07), transparent 38%, rgba(39, 212, 255, 0.07));
}

.equation-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.equation-card {
  position: relative;
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 32, 50, 0.97), rgba(7, 16, 26, 0.97));
  overflow: hidden;
}

.equation-card::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--pink), var(--amber));
}

.card-index {
  display: block;
  margin-bottom: 34px;
  color: var(--amber);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.equation-card h3,
.ops-stack h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 22px;
  line-height: 1.15;
}

.equation-card p,
.ops-stack p,
.flow-node p,
.final-copy p {
  color: #cfe6f2;
  line-height: 1.58;
}

.equation-card code,
.latex-mini {
  display: block;
  margin-top: 22px;
  padding: 14px;
  min-height: 68px;
  border: 1px solid rgba(255, 212, 90, 0.28);
  border-radius: 6px;
  color: #fff3bd;
  background: rgba(255, 212, 90, 0.07);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.latex-mini {
  font-size: 14px;
}

.ops-section {
  background: rgba(5, 14, 23, 0.72);
}

.ops-layout {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 22px;
  align-items: stretch;
}

.ops-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ops-visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
}

.ops-stack {
  display: grid;
  gap: 14px;
}

.ops-stack article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 22, 35, 0.96);
}

.ops-stack article:nth-child(1) {
  border-color: rgba(39, 212, 255, 0.42);
}

.ops-stack article:nth-child(2) {
  border-color: rgba(0, 240, 150, 0.42);
}

.ops-stack article:nth-child(3) {
  border-color: rgba(255, 212, 90, 0.42);
}

.gallery-section,
.casebook-section {
  background: linear-gradient(180deg, rgba(2, 7, 13, 0.95), rgba(8, 17, 29, 0.82));
}

.casebook-section {
  display: grid;
  gap: 38px;
}

.case-study {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 18, 29, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.case-study:nth-of-type(even) {
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
}

.case-study:nth-of-type(even) .case-visual {
  order: 2;
}

.case-study.compact-case {
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
}

.case-study.compact-case:nth-of-type(even) {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.case-visual {
  position: relative;
  margin: 0;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #02070d;
  border-right: 1px solid rgba(115, 202, 255, 0.16);
  overflow: hidden;
}

.case-visual::before {
  position: absolute;
  inset: -18px;
  z-index: 0;
  content: "";
  background-image: var(--shot);
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.42) saturate(1.2);
  transform: scale(1.08);
}

.case-visual::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.18), rgba(2, 7, 13, 0.28)),
    linear-gradient(rgba(39, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 212, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.case-study:nth-of-type(even) .case-visual {
  border-right: 0;
  border-left: 1px solid rgba(115, 202, 255, 0.16);
}

.case-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  object-position: top center;
  border: 1px solid rgba(115, 202, 255, 0.18);
  border-radius: 6px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
}

.compact-case .case-visual img {
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(39, 212, 255, 0.08), transparent),
    #02070d;
}

.case-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 30px;
}

.case-kicker {
  margin: 0;
  color: var(--green);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-copy h3 {
  margin: 0;
  color: var(--white);
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: 0;
}

.case-copy p {
  color: #d2e9f4;
  line-height: 1.62;
}

.latex-block {
  max-width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(39, 212, 255, 0.28);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  color: #edfaff;
  background:
    linear-gradient(90deg, rgba(39, 212, 255, 0.075), transparent),
    rgba(2, 8, 14, 0.72);
  overflow-x: auto;
}

.latex-block::before,
.latex-mini::before {
  display: block;
  margin-bottom: 12px;
  color: var(--amber);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.latex-block::before {
  content: "Formulas for this screen";
}

.latex-mini::before {
  content: "Core formula";
}

.case-study:nth-of-type(3n) .latex-block {
  border-left-color: var(--amber);
}

.case-study:nth-of-type(4n) .latex-block {
  border-left-color: var(--pink);
}

.case-why {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(0, 240, 150, 0.28);
  border-radius: 6px;
  color: #dffdf2;
  background: rgba(0, 240, 150, 0.07);
}

.case-facts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-facts li {
  padding: 9px 11px;
  border: 1px solid rgba(115, 202, 255, 0.18);
  border-radius: 5px;
  color: #e4f4fb;
  background: rgba(6, 21, 34, 0.72);
  line-height: 1.45;
}

.case-facts strong {
  color: #fff;
}

.screen-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.screen-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 17, 28, 0.95);
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.screen-card.wide {
  grid-column: 1 / -1;
}

.screen-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid rgba(115, 202, 255, 0.18);
}

.screen-card.wide img {
  aspect-ratio: 16 / 7.5;
}

.screen-card figcaption {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.screen-card strong {
  color: var(--white);
  font-size: 18px;
}

.screen-card span {
  color: var(--muted);
  line-height: 1.5;
}

.signal-section {
  background:
    linear-gradient(180deg, rgba(255, 212, 90, 0.055), transparent),
    rgba(3, 7, 13, 0.88);
}

.signal-flow {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 18, 29, 0.92);
  overflow: hidden;
}

.flow-node {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border-right: 1px solid rgba(115, 202, 255, 0.17);
}

.flow-node:last-child {
  border-right: 0;
}

.flow-node span {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-node strong {
  display: block;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 20px;
  line-height: 1.2;
}

.flow-node::before {
  position: absolute;
  top: 60px;
  left: 24px;
  right: 24px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
}

.flow-node::after {
  position: absolute;
  top: 52px;
  right: 20px;
  width: 18px;
  height: 18px;
  content: "";
  border-top: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  transform: rotate(45deg);
}

.flow-node:last-child::after {
  display: none;
}

.final-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: stretch;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.final-copy,
.final-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 19, 31, 0.94);
  box-shadow: var(--shadow);
}

.final-copy {
  padding: 34px;
}

.final-copy h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.final-panel {
  display: grid;
  align-content: end;
  gap: 24px;
  padding: 34px;
  border-color: rgba(0, 240, 150, 0.34);
  background:
    linear-gradient(135deg, rgba(0, 240, 150, 0.10), rgba(255, 79, 134, 0.06)),
    rgba(8, 19, 31, 0.94);
}

.final-panel span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.final-panel strong {
  color: var(--white);
  font-size: 22px;
  line-height: 1.45;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(39, 212, 255, 0.42);
  border-radius: 6px;
  color: var(--text);
  background: rgba(7, 18, 29, 0.88);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

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

@media (max-width: 1040px) {
  h1 {
    font-size: 58px;
  }

  .hero-grid,
  .ops-layout,
  .final-section {
    grid-template-columns: 1fr;
  }

  .hero-console {
    max-width: 520px;
  }

  .mission-strip,
  .equation-grid,
  .signal-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-strip div:nth-child(2) {
    border-right: 0;
  }

  .mission-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(115, 202, 255, 0.14);
  }

  .flow-node:nth-child(2) {
    border-right: 0;
  }

  .flow-node:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(115, 202, 255, 0.17);
  }

  .case-study,
  .case-study:nth-of-type(even),
  .case-study.compact-case,
  .case-study.compact-case:nth-of-type(even) {
    grid-template-columns: 1fr;
  }

  .case-study:nth-of-type(even) .case-visual {
    order: 0;
  }

  .case-visual,
  .case-study:nth-of-type(even) .case-visual {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(115, 202, 255, 0.16);
  }

  .case-visual img {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 66px;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: calc(100vw - 32px);
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-links a {
    min-width: 0;
    padding: 9px 6px;
    font-size: 13px;
    text-align: center;
    white-space: normal;
  }

  .hero-section {
    min-height: 96vh;
    padding: 178px 18px 42px;
  }

  .hero-section::before {
    background:
      linear-gradient(180deg, rgba(2, 7, 13, 0.72) 0%, rgba(2, 7, 13, 0.38) 38%, rgba(2, 7, 13, 0.86) 100%);
  }

  h1 {
    max-width: 11.5ch;
    font-size: 38px;
    text-wrap: balance;
  }

  .hero-lede {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    font-size: 18px;
    overflow-wrap: break-word;
  }

  .button {
    width: 100%;
  }

  .hero-grid,
  .hero-copy,
  .hero-console {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .console-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 15px 16px;
  }

  .console-row strong {
    overflow-wrap: anywhere;
  }

  .mission-strip,
  .equation-grid,
  .screen-grid,
  .signal-flow {
    grid-template-columns: 1fr;
  }

  .mission-strip div {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid rgba(115, 202, 255, 0.14);
  }

  .mission-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 74px 18px;
  }

  .section-intro h2 {
    font-size: 34px;
  }

  .section-intro p:not(.eyebrow) {
    font-size: 16px;
  }

  .equation-card {
    min-height: 0;
  }

  .ops-visual img {
    min-height: 280px;
  }

  .screen-card.wide {
    grid-column: auto;
  }

  .screen-card.wide img,
  .screen-card img {
    aspect-ratio: 4 / 3;
  }

  .casebook-section {
    gap: 24px;
  }

  .case-copy {
    padding: 22px;
  }

  .case-copy h3 {
    font-size: 25px;
  }

  .case-visual img,
  .compact-case .case-visual img {
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    padding: 0;
  }

  .latex-block,
  .latex-mini {
    max-width: calc(100vw - 82px);
    overflow-x: auto;
  }

  .flow-node,
  .flow-node:nth-child(-n + 2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(115, 202, 255, 0.17);
  }

  .flow-node:last-child {
    border-bottom: 0;
  }

  .flow-node::after {
    top: auto;
    right: 24px;
    bottom: 18px;
    transform: rotate(135deg);
  }

  .final-section {
    width: auto;
    margin: 0 18px;
    padding-top: 74px;
    padding-bottom: 74px;
  }

  .final-copy,
  .final-panel {
    padding: 24px;
  }

  .final-copy h2 {
    font-size: 30px;
  }
}

/* Case-study cleanup: remove unreadable app status strips and prevent formula dead space. */
.case-visual img[src$="SatT1acker1.png"],
.case-visual img[src$="SatTracker3.png"] {
  clip-path: inset(0 0 38px 0);
  margin-bottom: -38px;
}

.case-copy {
  align-items: start;
}

.case-copy .latex-block {
  grid-row: auto !important;
  align-self: start;
  min-height: 0;
}

.latex-block {
  min-height: 0;
}

@media (max-width: 600px) {
  .topbar {
    gap: 12px;
  }

  .nav-links {
    grid-template-columns: 1fr;
    gap: 4px;
    max-width: 350px;
  }

  .nav-links a {
    padding: 8px 6px;
  }

  .hero-section {
    padding-top: 258px;
  }

  .hero-copy,
  .hero-console,
  .hero-actions,
  .hero-lede,
  .mission-strip {
    width: 100%;
    max-width: 350px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .mission-strip {
    margin-left: 18px;
    margin-right: 18px;
  }

  .latex-block,
  .latex-mini {
    max-width: 100%;
  }
}

/* Screenshot case studies: full screenshot first, technical readout second. */
.casebook-section {
  gap: 54px;
}

.case-study,
.case-study:nth-of-type(even),
.case-study.compact-case,
.case-study.compact-case:nth-of-type(even) {
  width: min(100%, 1360px);
  display: block;
  grid-template-columns: none;
  background: rgba(7, 18, 29, 0.98);
}

.case-visual,
.case-study:nth-of-type(even) .case-visual {
  display: block;
  min-height: 0;
  padding: clamp(12px, 1.5vw, 18px);
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(115, 202, 255, 0.22);
  background:
    linear-gradient(rgba(39, 212, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 212, 255, 0.045) 1px, transparent 1px),
    #02070d;
  background-size: 48px 48px, 48px 48px, auto;
}

.case-visual::before,
.case-visual::after {
  display: none;
}

.case-visual img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border: 1px solid rgba(115, 202, 255, 0.3);
  border-radius: 6px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.42);
}

.compact-case .case-visual {
  text-align: center;
}

.compact-case .case-visual img {
  width: auto;
  max-width: min(100%, 780px);
  padding: 0;
}

.case-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px 28px;
  align-items: start;
  padding: clamp(24px, 3vw, 38px);
}

.case-kicker,
.case-copy h3 {
  grid-column: 1;
}

.case-copy > p:not(.case-kicker):not(.case-why) {
  grid-column: 1;
}

.case-copy .latex-block {
  grid-column: 2;
  grid-row: 1 / span 4;
}

.case-why {
  grid-column: 1;
}

@media (max-width: 900px) {
  .casebook-section {
    gap: 34px;
  }

  .case-copy {
    display: block;
  }

  .case-copy > * + * {
    margin-top: 16px;
  }

  .case-copy .latex-block {
    max-width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Final balance and legibility pass. Keep dark mode clear, never clipped. */
*,
*::before,
*::after {
  min-width: 0;
}

h1,
h2,
h3,
p,
a,
span,
strong,
figcaption,
.case-copy,
.latex-block,
.console-row {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-weight: 760;
}

p,
.case-copy p,
.section-intro p:not(.eyebrow),
.ops-stack p,
.flow-node p {
  color: #e0f1f8;
  font-weight: 430;
}

.topbar,
.nav-links,
.brand,
.brand span {
  overflow: visible;
}

.brand span {
  white-space: normal;
  text-overflow: clip;
}

.nav-links a {
  font-weight: 520;
  line-height: 1.25;
}

.case-study,
.case-study:nth-of-type(even),
.case-study.compact-case,
.case-study.compact-case:nth-of-type(even) {
  width: min(100%, 1320px);
  border-color: rgba(115, 202, 255, 0.34);
}

.case-visual,
.case-study:nth-of-type(even) .case-visual {
  padding: clamp(8px, 1.2vw, 14px);
  background:
    linear-gradient(rgba(39, 212, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 212, 255, 0.038) 1px, transparent 1px),
    #02070d;
  background-size: 42px 42px, 42px 42px, auto;
}

.case-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.case-visual img[src$="SatT1acker1.png"] {
  clip-path: inset(0 0 18px 0);
  margin-bottom: -18px;
}

.case-copy {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.case-copy h3 {
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 740;
}

.latex-block {
  color: #f5fbff;
  background:
    linear-gradient(90deg, rgba(39, 212, 255, 0.095), transparent),
    rgba(3, 11, 18, 0.9);
}

mjx-container {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    top: 0;
    height: auto;
    overflow: visible;
  }

  .brand {
    width: 100%;
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: none;
  }

  .nav-links a {
    width: 100%;
    padding: 9px 8px;
    font-size: 13px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 54px;
    overflow: visible;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(37px, 11vw, 48px);
    line-height: 1.04;
  }

  .hero-copy,
  .hero-console,
  .hero-actions,
  .hero-lede,
  .mission-strip {
    width: 100%;
    max-width: 100%;
  }

  .hero-lede {
    width: 100%;
    max-width: 100%;
    font-size: 18px;
  }

  .case-copy {
    display: block;
    padding: 22px;
  }

  .case-copy h3 {
    font-size: 27px;
  }

  .case-copy > * + * {
    margin-top: 15px;
  }

  .case-visual,
  .case-study:nth-of-type(even) .case-visual {
    padding: 8px;
  }

  .latex-block,
  .latex-mini {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding: 12px;
  }

  .hero-section,
  .section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .mission-strip,
  .final-section {
    margin-left: 12px;
    margin-right: 12px;
  }

  .case-copy {
    padding: 18px;
  }
}

/* Phone hard stop: no horizontal overflow, no clipped copy. */
@media (max-width: 760px) {
  body,
  main,
  .hero-section,
  .section {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }

  .hero-grid,
  .section-intro,
  .equation-grid,
  .ops-layout,
  .screen-grid,
  .signal-flow,
  .case-study,
  .final-section {
    width: 100%;
    max-width: 100%;
  }

  .mission-strip {
    width: auto;
    max-width: none;
    margin-left: 16px;
    margin-right: 16px;
  }

  .final-section {
    width: auto;
    max-width: none;
    margin-left: 16px;
    margin-right: 16px;
  }

  .hero-copy,
  .hero-lede,
  .hero-actions,
  .hero-console {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 12px 16px;
  }

  .nav-links {
    grid-template-columns: 1fr;
    gap: 2px;
    width: 100%;
    max-width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
  }

  .hero-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy,
  .hero-lede,
  .hero-actions,
  .hero-console {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .hero-lede {
    line-height: 1.52;
  }
}

@media (max-width: 600px) {
  .hero-copy,
  .hero-actions,
  .hero-console,
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-lede {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .hero-copy .eyebrow {
    white-space: normal;
    font-size: 12px;
    line-height: 1.35;
  }

  .hero-copy h1 {
    font-size: 37px;
    line-height: 1.05;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions .button {
    width: 100%;
    max-width: 100%;
  }
}

/* Original satellite hero. Screenshots are reserved for the technical case studies. */
.hero-section {
  background:
    radial-gradient(circle at 72% 45%, rgba(39, 212, 255, 0.16), transparent 28%),
    radial-gradient(circle at 20% 72%, rgba(0, 240, 150, 0.10), transparent 30%),
    linear-gradient(180deg, #03070d 0%, #06111c 64%, #02050a 100%);
}

.hero-section::before {
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.88) 0%, rgba(2, 7, 13, 0.62) 43%, rgba(2, 7, 13, 0.24) 100%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.04) 0%, rgba(2, 7, 13, 0.18) 58%, rgba(2, 7, 13, 0.92) 100%);
}

.hero-scene {
  position: absolute;
  inset: 70px 0 0;
  z-index: -2;
  overflow: hidden;
  background: #02070d;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(1.08) contrast(1.05) brightness(0.96);
  transform: translateZ(0);
}

.earth-limb {
  position: absolute;
  right: -18vw;
  bottom: -46vw;
  width: min(82vw, 1160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.18), transparent 0 12%, rgba(27, 108, 167, 0.22) 13%, transparent 23%),
    radial-gradient(circle at 45% 38%, rgba(0, 240, 150, 0.16), transparent 0 10%, rgba(42, 121, 86, 0.14) 11%, transparent 18%),
    radial-gradient(circle at 35% 30%, #1f78bb 0%, #0e3a68 28%, #071a31 56%, #020812 72%);
  border: 2px solid rgba(115, 202, 255, 0.5);
  box-shadow:
    0 0 42px rgba(39, 212, 255, 0.42),
    inset 0 0 80px rgba(0, 0, 0, 0.78);
  display: none;
}

.terminator {
  position: absolute;
  right: 13vw;
  bottom: -10vw;
  width: 42vw;
  height: 58vw;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(2, 7, 13, 0.88), transparent 72%);
  transform: rotate(-16deg);
  display: none;
}

.orbit-shell {
  position: absolute;
  right: 11vw;
  bottom: 2vw;
  width: 62vw;
  height: 22vw;
  border: 1px solid rgba(39, 212, 255, 0.48);
  border-left-color: rgba(0, 240, 150, 0.72);
  border-radius: 50%;
  transform: rotate(-19deg);
  box-shadow: 0 0 20px rgba(39, 212, 255, 0.1);
}

.orbit-shell-b {
  right: 8vw;
  bottom: 8vw;
  width: 70vw;
  height: 25vw;
  border-color: rgba(255, 212, 90, 0.34);
  transform: rotate(14deg);
}

.orbit-shell-c {
  right: 18vw;
  bottom: 14vw;
  width: 45vw;
  height: 16vw;
  border-color: rgba(255, 79, 134, 0.38);
  transform: rotate(38deg);
}

.satellite-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 86px;
  height: 42px;
  opacity: 0.92;
}

.satellite-node-a {
  right: 14vw;
  bottom: 34vw;
  transform: rotate(-18deg);
}

.satellite-node-b {
  right: 5vw;
  bottom: 22vw;
  transform: rotate(21deg) scale(0.72);
}

.sat-body {
  width: 24px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  background: linear-gradient(135deg, #f5fbff, #56d8ff 45%, #0b324a);
  box-shadow: 0 0 22px rgba(39, 212, 255, 0.72);
}

.solar-panel {
  position: absolute;
  top: 12px;
  width: 28px;
  height: 16px;
  border: 1px solid rgba(39, 212, 255, 0.72);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, #06345a, #0bb7e7);
  background-size: 7px 100%, auto;
}

.panel-left {
  left: 0;
}

.panel-right {
  right: 0;
}

.ground-station {
  position: absolute;
  right: 45vw;
  bottom: 9vw;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 240, 150, 0.74);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(0, 240, 150, 0.08), 0 0 24px rgba(0, 240, 150, 0.36);
}

.ground-station span {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 2px;
  height: 24px;
  background: var(--green);
  transform: translateX(-50%);
}

.signal-cone {
  position: absolute;
  right: 38vw;
  bottom: 13vw;
  width: 18vw;
  height: 22vw;
  border-left: 1px solid rgba(0, 240, 150, 0.5);
  border-right: 1px solid rgba(0, 240, 150, 0.32);
  transform: rotate(-23deg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(0, 240, 150, 0.14), transparent 70%);
}

.data-label {
  position: absolute;
  padding: 8px 10px;
  border: 1px solid rgba(115, 202, 255, 0.36);
  border-radius: 6px;
  color: #dff7ff;
  background: rgba(4, 13, 22, 0.82);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.data-label-a {
  right: 28vw;
  bottom: 39vw;
}

.data-label-b {
  right: 7vw;
  bottom: 19vw;
}

/* Final clean hero: no overlay boxes or decorative marks over the aerospace image. */
.ground-station,
.signal-cone,
.data-label {
  display: none !important;
}

@media (max-width: 760px) {
  .hero-scene {
    inset: 0;
  }

  .earth-limb {
    right: -56vw;
    bottom: -32vw;
    width: 132vw;
  }

  .terminator {
    right: -8vw;
    bottom: 0;
    width: 78vw;
    height: 96vw;
  }

  .orbit-shell {
    right: -26vw;
    bottom: 25vw;
    width: 122vw;
    height: 46vw;
  }

  .orbit-shell-b {
    right: -38vw;
    bottom: 41vw;
    width: 138vw;
    height: 52vw;
  }

  .orbit-shell-c {
    right: -10vw;
    bottom: 54vw;
    width: 84vw;
    height: 32vw;
  }

  .satellite-node-a {
    right: 14vw;
    bottom: 64vw;
  }

  .satellite-node-b,
  .data-label,
  .signal-cone {
    display: none;
  }

  .ground-station {
    right: 58vw;
    bottom: 22vw;
  }
}

/* End-of-file case-study corrections. These intentionally win over earlier layout rules. */
.case-visual img[src$="SatT1acker1.png"],
.case-visual img[src$="SatTracker3.png"] {
  clip-path: inset(0 0 42px 0) !important;
  margin-bottom: -42px !important;
}

.ops-visual img[src$="SatTracker3.png"] {
  clip-path: inset(0 0 42px 0) !important;
  margin-bottom: -42px !important;
}

.case-copy {
  align-items: start !important;
}

.case-copy .latex-block {
  grid-row: auto !important;
  align-self: start !important;
  min-height: 0 !important;
}

.latex-block {
  min-height: 0 !important;
}

.case-copy {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr) !important;
  grid-template-areas:
    "kicker formula"
    "title formula"
    "body formula"
    "why formula" !important;
  align-items: start !important;
}

.case-kicker {
  grid-area: kicker !important;
}

.case-copy h3 {
  grid-area: title !important;
}

.case-copy > p:not(.case-kicker):not(.case-why) {
  grid-area: body !important;
}

.case-copy .latex-block {
  grid-area: formula !important;
}

.case-why {
  grid-area: why !important;
  margin-top: 2px !important;
}

@media (max-width: 900px) {
  .case-copy {
    display: block !important;
  }
}

/* Final density pass: no oversized empty space. */
.hero-section {
  min-height: 760px !important;
  align-items: center !important;
  padding-top: 104px !important;
  padding-bottom: 42px !important;
}

.section {
  padding-top: clamp(48px, 5vw, 76px) !important;
  padding-bottom: clamp(48px, 5vw, 76px) !important;
}

.section-intro {
  margin-bottom: 24px !important;
}

.mission-strip {
  margin-top: -16px !important;
}

.casebook-section {
  gap: 26px !important;
}

.case-copy {
  gap: 14px 22px !important;
  padding: clamp(20px, 2.4vw, 30px) !important;
}

.case-copy > * {
  margin-bottom: 0 !important;
}

.case-copy .latex-block {
  margin-top: 0 !important;
}

.latex-block {
  padding: 14px 16px !important;
}

.case-why {
  padding: 12px 14px !important;
}

.ops-layout,
.equation-grid,
.signal-flow,
.screen-grid {
  gap: 14px !important;
}

@media (max-width: 760px) {
  .topbar {
    gap: 8px !important;
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  .hero-section {
    min-height: auto !important;
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .hero-grid {
    gap: 18px !important;
  }

  .mission-strip {
    margin-top: 0 !important;
  }

  .casebook-section {
    gap: 20px !important;
  }

  .case-copy {
    padding: 18px !important;
  }

  .section {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 10px 14px !important;
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .nav-links a {
    padding: 7px 5px !important;
    font-size: 12px !important;
  }

  .hero-copy,
  .hero-actions,
  .hero-console,
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-lede {
    width: 320px !important;
    max-width: calc(100vw - 32px) !important;
  }

  .hero-copy .eyebrow {
    font-size: 11px !important;
  }

  .hero-copy h1 {
    font-size: 34px !important;
  }

  .hero-lede {
    font-size: 16px !important;
  }
}

@media (min-width: 901px) {
  .hero-section {
    min-height: 660px !important;
    padding-top: 86px !important;
    padding-bottom: 30px !important;
  }

  .section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  .section-intro {
    margin-bottom: 18px !important;
  }

  .mission-strip div {
    min-height: 92px !important;
    padding-top: 20px !important;
    padding-bottom: 18px !important;
  }

  .equation-card {
    min-height: 272px !important;
    padding: 20px !important;
  }

  .casebook-section {
    gap: 18px !important;
  }

  .case-visual,
  .case-study:nth-of-type(even) .case-visual {
    padding: 10px !important;
  }

  .case-copy {
    padding: 20px !important;
  }
}

/* Case studies: compact final layout. No open columns, no empty right-side voids. */
.case-copy {
  display: block !important;
  padding: 18px 22px 20px !important;
}

.case-copy > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.case-copy > * + * {
  margin-top: 12px !important;
}

.case-kicker {
  display: block !important;
}

.case-copy h3 {
  max-width: 920px !important;
  font-size: clamp(28px, 2.35vw, 38px) !important;
  line-height: 1.12 !important;
}

.case-copy > p:not(.case-kicker):not(.case-why) {
  max-width: 1080px !important;
}

.case-copy .latex-block {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 16px !important;
  padding: 14px 16px !important;
  grid-area: auto !important;
}

.case-why {
  display: block !important;
  max-width: 1080px !important;
  margin-top: 14px !important;
}

.casebook-section {
  gap: 18px !important;
}

/* Final capability panel: no bottom-pushed text or empty card space. */
.final-section {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 16px !important;
}

.final-copy,
.final-panel {
  min-width: 0 !important;
  align-self: stretch !important;
}

.final-copy {
  padding: 24px 26px !important;
}

.final-copy h2 {
  max-width: 680px !important;
  margin-bottom: 14px !important;
  font-size: clamp(24px, 2vw, 32px) !important;
  line-height: 1.16 !important;
  font-weight: 650 !important;
}

.final-copy p {
  margin-bottom: 16px !important;
  color: #d9edf6 !important;
  font-size: 16px !important;
  line-height: 1.52 !important;
}

.final-detail-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.final-detail-list li {
  padding: 10px 12px;
  border: 1px solid rgba(115, 202, 255, 0.18);
  border-radius: 5px;
  color: #e8f7ff;
  background: rgba(5, 17, 28, 0.68);
  font-size: 14px;
  line-height: 1.42;
}

.final-detail-list strong {
  color: #00f096;
  font-weight: 650;
}

.final-panel {
  display: flex !important;
  flex-direction: column !important;
  padding: 22px 24px !important;
}

.final-panel span {
  display: block !important;
  margin-bottom: 12px !important;
}

.final-panel strong {
  display: block !important;
  font-size: 15px !important;
  line-height: 1.28 !important;
  font-weight: 650 !important;
}

.final-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1;
  gap: 10px;
}

.final-capability-grid article {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px;
  border: 1px solid rgba(115, 202, 255, 0.18);
  border-radius: 5px;
  background: rgba(5, 17, 28, 0.66);
}

.final-capability-grid article strong {
  margin-bottom: 6px;
  color: #f4fbff !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
}

.final-capability-grid article p {
  margin: 0 0 8px;
  color: #d6eaf3;
  font-size: 13.6px;
  line-height: 1.38;
}

.final-capability-grid article ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.final-capability-grid article li {
  padding: 6px 8px;
  border-left: 2px solid rgba(0, 240, 150, 0.72);
  color: #e9f8ff;
  background: rgba(0, 240, 150, 0.055);
  font-size: 12.4px;
  line-height: 1.34;
}

@media (min-width: 901px) {
  .final-section {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }
}

@media (max-width: 1040px) {
  .final-section {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .final-capability-grid,
  .final-capability-grid article ul {
    grid-template-columns: 1fr !important;
  }
}

/* Small dialog screenshots need a compact side-by-side layout on PC. */
@media (min-width: 901px) {
  .case-study.compact-case,
  .case-study.compact-case:nth-of-type(even) {
    display: grid !important;
    grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr) !important;
    align-items: stretch !important;
    width: min(100%, 1180px) !important;
  }

  .case-study.compact-case .case-visual,
  .case-study.compact-case:nth-of-type(even) .case-visual {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 0 !important;
    padding: 14px !important;
    border-right: 1px solid rgba(115, 202, 255, 0.24) !important;
    border-bottom: 0 !important;
  }

  .case-study.compact-case .case-visual img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    clip-path: none !important;
  }

  .case-study.compact-case .case-copy {
    display: block !important;
    padding: 20px 22px !important;
  }

  .case-study.compact-case .case-copy > * + * {
    margin-top: 12px !important;
  }
}

/* PC case-study layout: readable, controlled screenshots without oversized image bands. */
@media (min-width: 901px) {
  .case-study:not(.compact-case),
  .case-study:nth-of-type(even):not(.compact-case) {
    width: min(100%, 1180px) !important;
  }

  .case-study:not(.compact-case) .case-visual,
  .case-study:nth-of-type(even):not(.compact-case) .case-visual {
    padding: 14px !important;
    text-align: center !important;
    background:
      linear-gradient(rgba(39, 212, 255, 0.038) 1px, transparent 1px),
      linear-gradient(90deg, rgba(39, 212, 255, 0.032) 1px, transparent 1px),
      #02070d !important;
    background-size: 42px 42px, 42px 42px, auto !important;
  }

  .case-study:not(.compact-case) .case-visual img {
    width: min(100%, 1040px) !important;
    max-width: 1040px !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .case-study:not(.compact-case) .case-copy {
    padding: 18px 20px 20px !important;
  }

  .case-study:not(.compact-case) .case-copy h3 {
    max-width: 760px !important;
  }

  .case-study:not(.compact-case) .case-copy > p:not(.case-kicker):not(.case-why),
  .case-study:not(.compact-case) .case-why {
    max-width: 900px !important;
  }
}

/* Final PC composition: normal screenshots paired with technical content. */
@media (min-width: 1041px) {
  .casebook-section {
    gap: 20px !important;
  }

  .case-study,
  .case-study:nth-of-type(even),
  .case-study.compact-case,
  .case-study.compact-case:nth-of-type(even) {
    display: grid !important;
    width: min(calc(100% - 48px), 1240px) !important;
    grid-template-columns: minmax(580px, 0.46fr) minmax(0, 0.54fr) !important;
    align-items: stretch !important;
  }

  .case-study.compact-case,
  .case-study.compact-case:nth-of-type(even) {
    grid-template-columns: minmax(560px, 0.43fr) minmax(0, 0.57fr) !important;
  }

  .case-study:nth-of-type(even) .case-visual,
  .case-study.compact-case:nth-of-type(even) .case-visual {
    order: 0 !important;
  }

  .case-visual,
  .case-study:nth-of-type(even) .case-visual,
  .case-study.compact-case .case-visual,
  .case-study.compact-case:nth-of-type(even) .case-visual {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 14px !important;
    border-left: 0 !important;
    border-right: 1px solid rgba(115, 202, 255, 0.22) !important;
    border-bottom: 0 !important;
    background:
      linear-gradient(rgba(39, 212, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(39, 212, 255, 0.035) 1px, transparent 1px),
      #02070d !important;
    background-size: 38px 38px, 38px 38px, auto !important;
  }

  .case-visual::before,
  .case-visual::after {
    display: none !important;
  }

  .case-visual img,
  .case-study:not(.compact-case) .case-visual img,
  .case-study.compact-case .case-visual img {
    width: auto !important;
    max-width: min(100%, 620px) !important;
    max-height: 460px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 !important;
  }

  .case-study.compact-case .case-visual img {
    max-width: min(100%, 520px) !important;
    max-height: 560px !important;
  }

  .case-visual img[src$="SatT1acker1.png"],
  .case-visual img[src$="SatTracker3.png"] {
    clip-path: inset(0 0 42px 0) !important;
    margin-bottom: -42px !important;
  }

  .case-copy,
  .case-study:not(.compact-case) .case-copy,
  .case-study.compact-case .case-copy {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 18px 24px !important;
  }

  .case-copy > *,
  .case-copy > * + *,
  .case-study.compact-case .case-copy > *,
  .case-study.compact-case .case-copy > * + * {
    margin: 0 !important;
  }

  .case-kicker,
  .case-copy h3,
  .case-copy > p:not(.case-kicker):not(.case-why),
  .case-copy .latex-block,
  .case-why {
    grid-area: auto !important;
  }

  .case-copy h3,
  .case-study:not(.compact-case) .case-copy h3 {
    max-width: none !important;
    font-size: clamp(24px, 1.75vw, 31px) !important;
    line-height: 1.13 !important;
  }

  .case-copy p,
  .case-copy > p:not(.case-kicker):not(.case-why),
  .case-why,
  .case-study:not(.compact-case) .case-copy > p:not(.case-kicker):not(.case-why),
  .case-study:not(.compact-case) .case-why {
    max-width: none !important;
  }

  .case-copy .latex-block,
  .case-study:not(.compact-case) .latex-block,
  .case-study.compact-case .latex-block {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 13px 15px !important;
  }

  .case-why {
    padding: 12px 14px !important;
  }

  .shot-readout {
    display: block !important;
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 1px solid rgba(39, 212, 255, 0.32) !important;
    border-radius: 5px !important;
    color: #e9fbff !important;
    background: rgba(4, 17, 27, 0.96) !important;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  .compact-case .shot-readout {
    display: none !important;
  }

  .case-facts {
    display: grid !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .case-facts li {
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(115, 202, 255, 0.18) !important;
    border-radius: 5px !important;
    color: #e3f5fb !important;
    background: rgba(6, 21, 34, 0.74) !important;
    line-height: 1.42 !important;
  }

  .case-facts strong {
    color: #ffffff !important;
  }
}

/* User-corrected PC composition: actual screenshots at normal desktop scale. */
@media (min-width: 1041px) {
  .casebook-section {
    gap: 18px !important;
  }

  .case-study,
  .case-study:nth-of-type(even),
  .case-study.compact-case,
  .case-study.compact-case:nth-of-type(even) {
    display: grid !important;
    width: min(calc(100% - 24px), 1390px) !important;
    grid-template-columns: minmax(620px, 0.54fr) minmax(0, 0.46fr) !important;
    align-items: stretch !important;
  }

  .case-study.compact-case,
  .case-study.compact-case:nth-of-type(even) {
    grid-template-columns: minmax(560px, 0.44fr) minmax(0, 0.56fr) !important;
  }

  .case-visual,
  .case-study:nth-of-type(even) .case-visual,
  .case-study.compact-case .case-visual,
  .case-study.compact-case:nth-of-type(even) .case-visual {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  .case-visual img,
  .case-study:not(.compact-case) .case-visual img {
    width: auto !important;
    max-width: min(100%, 760px) !important;
    max-height: 560px !important;
    height: auto !important;
    clip-path: none !important;
    margin: 0 !important;
  }

  .case-study.compact-case .case-visual img {
    width: auto !important;
    max-width: min(100%, 562px) !important;
    max-height: 586px !important;
    height: auto !important;
    clip-path: none !important;
    margin: 0 !important;
  }

  .shot-readout {
    display: block !important;
    max-width: min(100%, 760px) !important;
    color: #f2fcff !important;
    opacity: 1 !important;
  }

  .compact-case .shot-readout {
    display: none !important;
  }

  .visual-readout {
    display: grid !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 562px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(39, 212, 255, 0.28) !important;
    border-left: 3px solid var(--cyan) !important;
    border-radius: 6px !important;
    background: rgba(4, 17, 27, 0.9) !important;
  }

  .visual-readout span {
    color: var(--amber) !important;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
  }

  .visual-readout strong {
    color: #ffffff !important;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .visual-readout p {
    color: #d9eff8 !important;
    line-height: 1.5 !important;
  }

  .case-copy,
  .case-study:not(.compact-case) .case-copy,
  .case-study.compact-case .case-copy {
    justify-content: center !important;
    gap: 10px !important;
    padding: 20px 26px !important;
  }

  .case-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .case-facts li:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }
}

.reference-section {
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.9), rgba(2, 7, 13, 0.95)),
    linear-gradient(rgba(39, 212, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 212, 255, 0.026) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

.resource-grid,
.book-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

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

.book-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.resource-card,
.book-grid article {
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(115, 202, 255, 0.24);
  border-radius: 6px;
  background: rgba(7, 18, 29, 0.94);
}

.resource-card {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.resource-card:hover {
  border-color: rgba(39, 212, 255, 0.58);
  background: rgba(8, 26, 41, 0.98);
}

.resource-card span,
.book-grid span {
  color: var(--amber);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-card strong,
.book-grid strong {
  color: var(--white);
  font-size: 18px;
  line-height: 1.35;
}

.book-grid p {
  margin-top: 10px;
  color: #d2e9f4;
  line-height: 1.55;
}

@media (max-width: 1040px) {
  .resource-grid,
  .book-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Approved case-study pattern: match the Tools section flow across all screenshots. */
@media (min-width: 1041px) {
  .casebook-section {
    gap: 18px !important;
  }

  .case-study,
  .case-study:nth-of-type(even),
  .case-study.compact-case,
  .case-study.compact-case:nth-of-type(even) {
    display: grid !important;
    width: min(calc(100% - 48px), 1568px) !important;
    grid-template-columns: minmax(660px, 0.45fr) minmax(0, 0.55fr) !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }

  .case-study.compact-case,
  .case-study.compact-case:nth-of-type(even) {
    grid-template-columns: minmax(620px, 0.45fr) minmax(0, 0.55fr) !important;
  }

  .case-study:nth-of-type(even) .case-visual,
  .case-study.compact-case:nth-of-type(even) .case-visual {
    order: 0 !important;
  }

  .case-visual,
  .case-study:nth-of-type(even) .case-visual,
  .case-study.compact-case .case-visual,
  .case-study.compact-case:nth-of-type(even) .case-visual {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 16px !important;
    border-left: 0 !important;
    border-right: 1px solid rgba(115, 202, 255, 0.22) !important;
    border-bottom: 0 !important;
  }

  .case-visual img,
  .case-study:not(.compact-case) .case-visual img {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    clip-path: none !important;
    margin: 0 !important;
  }

  .case-study.compact-case .case-visual img {
    width: min(100%, 562px) !important;
    max-width: min(100%, 562px) !important;
    max-height: 586px !important;
    height: auto !important;
    object-fit: contain !important;
    clip-path: none !important;
    margin: 0 !important;
  }

  .case-study.compact-case .case-visual img[src$="NoradId.png"] {
    width: min(100%, 520px) !important;
    max-width: min(100%, 520px) !important;
  }

  .shot-readout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 1px solid rgba(39, 212, 255, 0.34) !important;
    border-radius: 5px !important;
    color: #f2fcff !important;
    background: rgba(4, 17, 27, 0.96) !important;
    opacity: 1 !important;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace !important;
    font-size: 12px !important;
    font-weight: 760 !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  .compact-case .shot-readout {
    display: none !important;
  }

  .case-study:not(.compact-case) .visual-readout {
    max-width: 100% !important;
  }

  .case-copy,
  .case-study:not(.compact-case) .case-copy,
  .case-study.compact-case .case-copy {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 26px 30px !important;
  }

  .case-copy > *,
  .case-copy > * + *,
  .case-study.compact-case .case-copy > *,
  .case-study.compact-case .case-copy > * + * {
    margin: 0 !important;
  }

  .case-facts {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .case-facts li,
  .case-facts li:last-child:nth-child(odd) {
    grid-column: auto !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 1px solid rgba(115, 202, 255, 0.22) !important;
    border-radius: 5px !important;
    color: #e9f8ff !important;
    background: rgba(6, 21, 34, 0.78) !important;
    line-height: 1.46 !important;
  }

  .case-copy .latex-block,
  .case-study:not(.compact-case) .latex-block,
  .case-study.compact-case .latex-block {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 15px 17px !important;
  }

  .case-why {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 14px 16px !important;
  }
}

/* Final section-by-section lock: approved screenshot-left / text-right format. */
@media (min-width: 1041px) {
  .casebook-section {
    gap: 18px !important;
  }

  .case-study,
  .case-study:nth-of-type(even),
  .case-study.compact-case,
  .case-study.compact-case:nth-of-type(even) {
    display: grid !important;
    width: min(calc(100% - 48px), 1568px) !important;
    grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr) !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }

  .case-study:nth-of-type(even) .case-visual,
  .case-study.compact-case:nth-of-type(even) .case-visual {
    order: 0 !important;
  }

  .case-visual,
  .case-study:nth-of-type(even) .case-visual,
  .case-study.compact-case .case-visual,
  .case-study.compact-case:nth-of-type(even) .case-visual {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 16px !important;
    border-left: 0 !important;
    border-right: 1px solid rgba(115, 202, 255, 0.22) !important;
    border-bottom: 0 !important;
  }

  .case-visual img,
  .case-study:not(.compact-case) .case-visual img,
  .case-study.compact-case .case-visual img,
  .case-study.compact-case .case-visual img[src$="NoradId.png"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    clip-path: none !important;
    margin: 0 !important;
  }

  .shot-readout,
  .visual-readout {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 5px !important;
    color: #f2fcff !important;
    background: rgba(4, 17, 27, 0.96) !important;
    opacity: 1 !important;
    text-align: left !important;
  }

  .shot-readout {
    border: 1px solid rgba(39, 212, 255, 0.34) !important;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace !important;
    font-size: 12px !important;
    font-weight: 760 !important;
    line-height: 1.45 !important;
  }

  .compact-case .shot-readout {
    display: none !important;
  }

  .visual-readout {
    gap: 8px !important;
    border: 1px solid rgba(39, 212, 255, 0.28) !important;
    border-left: 3px solid var(--cyan) !important;
  }

  .visual-readout span {
    color: var(--amber) !important;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
  }

  .visual-readout strong {
    color: #fff !important;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace !important;
    font-size: 15px !important;
    line-height: 1.42 !important;
  }

  .visual-readout p {
    color: #d9eff8 !important;
    line-height: 1.48 !important;
  }

  .case-copy,
  .case-study:not(.compact-case) .case-copy,
  .case-study.compact-case .case-copy {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 26px 30px !important;
  }

  .case-copy > *,
  .case-copy > * + * {
    margin: 0 !important;
  }

  .case-copy h3,
  .case-study:not(.compact-case) .case-copy h3 {
    max-width: none !important;
    font-size: clamp(28px, 2vw, 40px) !important;
    line-height: 1.12 !important;
  }

  .case-facts {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .case-facts li,
  .case-facts li:last-child:nth-child(odd) {
    grid-column: auto !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 1px solid rgba(115, 202, 255, 0.22) !important;
    border-radius: 5px !important;
    color: #e9f8ff !important;
    background: rgba(6, 21, 34, 0.78) !important;
    line-height: 1.46 !important;
  }

  .case-copy .latex-block,
  .case-study:not(.compact-case) .latex-block,
  .case-study.compact-case .latex-block {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 15px 17px !important;
  }

  .case-why {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 14px 16px !important;
  }
}

.reveal,
.reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Final math-card balance: equal boxes, aligned formulas, no clipped math. */
@media (min-width: 1041px) {
  .equation-grid {
    align-items: stretch !important;
    grid-auto-rows: 1fr !important;
  }

  .equation-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 440px !important;
    padding: 24px !important;
  }

  .equation-card h3 {
    min-height: 56px !important;
  }

  .equation-card p {
    flex: 1 1 auto !important;
    min-height: 108px !important;
  }

  .equation-card .latex-mini {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 126px !important;
    height: 126px !important;
    margin-top: auto !important;
    overflow: hidden !important;
  }

  .equation-card .latex-mini mjx-container {
    max-width: 100% !important;
    overflow: visible !important;
    font-size: 102% !important;
  }

  .equation-card .latex-mini mjx-container[jax="CHTML"][display="true"] {
    margin: 0.25em 0 0 !important;
  }
}

/* Final screenshot-card top alignment: no empty bay above screenshots. */
@media (min-width: 1041px) {
.case-visual,
  .case-study:nth-of-type(even) .case-visual,
  .case-study.compact-case .case-visual,
  .case-study.compact-case:nth-of-type(even) .case-visual {
    justify-content: flex-start !important;
  }
}

/* Premium motion layer: transform/opacity only, no layout shift. */
.hero-scene,
.earth-limb,
.orbit-shell,
.satellite-node,
.signal-cone,
.ground-station,
.data-label,
.hero-console,
.hero-copy,
.button,
.mission-strip,
.stat-card,
.equation-card,
.ops-stack article,
.case-study,
.flow-node,
.resource-card,
.book-grid article {
  will-change: transform, opacity;
}

.hero-star-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-star {
  position: absolute;
  width: var(--star-size, 2px);
  height: var(--star-size, 2px);
  border-radius: 999px;
  background: rgba(236, 250, 255, 0.9);
  box-shadow: 0 0 10px rgba(115, 202, 255, 0.58);
  opacity: var(--star-opacity, 0.62);
}

#hero-title .hero-word {
  display: inline-block;
  white-space: pre;
}

.orbit-shell {
  --orbit-base: -19deg;
  transform: rotate(var(--orbit-base));
  transform-origin: 50% 50%;
}

.orbit-shell-b {
  --orbit-base: 14deg;
}

.orbit-shell-c {
  --orbit-base: 38deg;
}

.signal-cone {
  transform-origin: 50% 100%;
}

.stat-strip {
  overflow: visible;
  background: rgba(7, 19, 31, 0.72);
  backdrop-filter: blur(18px);
}

.stat-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(39, 212, 255, 0.10), rgba(0, 240, 150, 0.045)),
    rgba(7, 19, 31, 0.62);
}

.stat-card::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(39, 212, 255, 0.22), transparent);
  opacity: 0;
  transform: translateX(-80%);
  pointer-events: none;
}

.stat-card::after {
  position: absolute;
  inset: 1px;
  content: "";
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a,
  .button,
  .console-row,
  .stat-card,
  .equation-card,
  .ops-stack article,
  .case-study,
  .flow-node,
  .resource-card,
  .book-grid article {
    transition:
      transform 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      background-color 180ms ease,
      color 180ms ease;
  }

  .nav-links a:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(39, 212, 255, 0.16);
  }

  .button:hover,
  .stat-card:hover,
  .equation-card:hover,
  .ops-stack article:hover,
  .flow-node:hover,
  .resource-card:hover,
  .book-grid article:hover {
    transform: translateY(-3px);
    border-color: rgba(39, 212, 255, 0.56);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), 0 0 28px rgba(39, 212, 255, 0.14);
  }

  .case-study:hover {
    border-color: rgba(39, 212, 255, 0.42);
    box-shadow: 0 24px 76px rgba(0, 0, 0, 0.42), 0 0 30px rgba(39, 212, 255, 0.10);
  }

  .orbit-shell:hover,
  .satellite-node:hover {
    filter: drop-shadow(0 0 18px rgba(39, 212, 255, 0.62));
  }

  .console-row:hover,
  tr:hover {
    background: rgba(39, 212, 255, 0.075);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-star,
  .earth-limb,
  .satellite-node,
  .orbit-shell,
  .signal-cone,
  .stat-card {
    animation: none !important;
    transform: none;
  }
}

/* Final hero polish: no CSS satellite overlays on the crisp aerospace image. */
.satellite-node {
  display: none !important;
}

.satellite-node::before {
  position: absolute;
  inset: -18px;
  z-index: -1;
  content: "";
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(39, 212, 255, 0.34), rgba(0, 240, 150, 0.12) 42%, transparent 72%);
  opacity: 0.88;
}

/* Final hero clarity: render the aerospace bitmap crisp, bright, and unobscured. */
.hero-bg-image {
  left: clamp(72px, 8vw, 150px) !important;
  right: auto !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  image-rendering: auto;
  backface-visibility: hidden;
}

.hero-section::before {
  background: none !important;
}

.hero-scene {
  background: #00050b !important;
}

.hero-copy {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 10px 30px rgba(0, 0, 0, 0.62);
}

/* Final button readability: normal crisp text, no doubled shadow weight. */
.button,
.hero-actions .button {
  font-weight: 600 !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.button.primary {
  color: #001016 !important;
}

.button.secondary {
  color: #f2fbff !important;
}

.feature-strip {
  width: min(calc(100% - 120px), 980px) !important;
  margin: -118px auto 42px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  gap: clamp(20px, 4vw, 58px);
}

.feature-strip .feature-card {
  min-height: 92px !important;
  padding: 8px 8px 10px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

.feature-strip .feature-card::before,
.feature-strip .feature-card::after {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .feature-strip .feature-card:hover {
    border-color: transparent !important;
    box-shadow: none !important;
  }

  .feature-strip .feature-card:hover .feature-icon {
    transform: translateY(-2px);
  }
}

.feature-card .feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 7px;
  color: #00f096;
  transition: transform 180ms ease;
}

.feature-card svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(0, 240, 150, 0.28));
}

.feature-card strong {
  display: block;
  margin-bottom: 3px;
  color: #f3fbff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: none;
}

.feature-card span:not(.feature-icon) {
  display: block;
  color: #d1e4ee;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.28;
  text-shadow: none;
}

/* Reference placement: icon rail belongs under the hero buttons, not in a separate band. */
.hero-copy .hero-feature-strip {
  width: min(100%, 500px) !important;
  margin: 44px 0 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(14px, 2vw, 26px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.hero-copy .hero-feature-strip .feature-card {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hero-copy .hero-feature-strip .feature-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
}

.hero-copy .hero-feature-strip .feature-card strong {
  font-size: 11.25px;
  font-weight: 550;
}

.hero-copy .hero-feature-strip .feature-card span:not(.feature-icon) {
  font-size: 9.6px;
  max-width: 104px;
  margin: 0 auto;
}

/* Compact stats: keep the original information, remove the oversized block. */
.compact-stat-strip {
  width: min(calc(100% - 80px), 980px) !important;
  margin: -10px auto 34px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  border: 1px solid rgba(115, 202, 255, 0.22) !important;
  border-radius: 6px !important;
  background: rgba(5, 18, 28, 0.76) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.26) !important;
  overflow: hidden !important;
}

.compact-stat-strip .compact-stat-card {
  min-height: 72px !important;
  padding: 13px 24px !important;
  border-right: 1px solid rgba(115, 202, 255, 0.16) !important;
  background: transparent !important;
}

.compact-stat-strip .compact-stat-card:last-child {
  border-right: 0 !important;
}

.compact-stat-strip .metric {
  display: inline-block !important;
  min-width: 7ch !important;
  min-height: 1.05em !important;
  margin-bottom: 6px !important;
  color: #00f096 !important;
  font-size: clamp(24px, 2.1vw, 31px) !important;
  font-weight: 600 !important;
  line-height: 1.05 !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums;
}

.compact-stat-strip .metric-label {
  color: #d5e8f2 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  text-shadow: none !important;
}

@media (max-width: 1040px) {
  .hero-copy .hero-feature-strip {
    width: min(100%, 480px) !important;
    margin: 38px 0 0 !important;
    gap: 14px !important;
  }

  .feature-strip {
    width: min(calc(100% - 36px), 720px) !important;
    margin: -74px auto 36px !important;
    gap: 12px;
  }

  .compact-stat-strip {
    width: min(calc(100% - 48px), 660px) !important;
    margin: 16px auto 28px !important;
  }
}

@media (max-width: 760px) {
  .hero-copy .hero-feature-strip,
  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 34px auto 0 !important;
    padding: 8px 0 !important;
  }

  .feature-strip .feature-card {
    min-height: 70px !important;
  }

  .hero-copy .hero-feature-strip .feature-icon {
    width: 29px;
    height: 29px;
  }

  .hero-copy .hero-feature-strip .feature-card strong {
    font-size: 10.75px;
  }

  .hero-copy .hero-feature-strip .feature-card span:not(.feature-icon) {
    font-size: 9.25px;
  }

  .compact-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(calc(100% - 28px), 420px) !important;
    margin: 14px auto 24px !important;
  }

  .compact-stat-strip .compact-stat-card {
    min-height: 44px !important;
    padding: 7px 10px !important;
  }

  .compact-stat-strip .metric {
    font-size: 16px !important;
  }

  .compact-stat-strip .metric-label {
    font-size: 9.5px !important;
  }

  .compact-stat-strip .compact-stat-card:nth-child(2) {
    border-right: 0 !important;
  }

  .compact-stat-strip .compact-stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(115, 202, 255, 0.16) !important;
  }
}

@media (max-width: 760px) {
  .hero-bg-image {
    left: 0 !important;
  }
}

.sat-body {
  width: 28px !important;
  height: 21px !important;
  border: 1px solid rgba(244, 253, 255, 0.96) !important;
  background:
    linear-gradient(135deg, #ffffff 0%, #b9f4ff 24%, #21d9ff 52%, #096095 100%) !important;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.45),
    0 0 28px rgba(39, 212, 255, 0.9),
    inset 0 0 12px rgba(255, 255, 255, 0.22) !important;
}

.solar-panel {
  width: 31px !important;
  height: 18px !important;
  border-color: rgba(74, 224, 255, 0.98) !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(180deg, #0a88cc 0%, #20e0ff 48%, #0472b6 100%) !important;
  background-size: 7px 100%, auto !important;
  box-shadow:
    0 0 10px rgba(39, 212, 255, 0.74),
    inset 0 0 10px rgba(255, 255, 255, 0.18);
}

/* Orbital dynamics section: restore centered, balanced copy flow. */
#orbital-engine .section-intro {
  width: min(100%, 1120px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

#orbital-engine .section-intro h2 {
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#orbital-engine .section-intro p:not(.eyebrow) {
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#orbital-engine .equation-grid {
  width: min(calc(100% - 32px), 1360px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  gap: 14px !important;
}

#orbital-engine .equation-card {
  min-height: 500px !important;
  padding: 28px 24px !important;
}

#orbital-engine .equation-card h3 {
  font-size: clamp(24px, 1.85vw, 29px) !important;
}

#orbital-engine .equation-card p {
  font-size: 16px !important;
  line-height: 1.55 !important;
}

#orbital-engine .equation-card .latex-mini {
  font-size: 16px !important;
  min-height: 168px !important;
  height: 168px !important;
  overflow: visible !important;
  padding: 16px 8px !important;
}

#orbital-engine .equation-card .latex-mini mjx-container {
  max-width: 100% !important;
  overflow: visible !important;
  font-size: 116% !important;
}

#orbital-engine .equation-card .latex-mini mjx-container[jax="CHTML"][display="true"] {
  margin: 0.15em 0 !important;
}

/* Operations console section: match the centered, balanced intro flow. */
#operations .section-intro {
  width: min(100%, 1120px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

#operations .section-intro h2 {
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#operations .section-intro p:not(.eyebrow) {
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#operations .ops-layout {
  width: min(calc(100% - 32px), 1360px) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

#operations .ops-visual,
#operations .ops-stack {
  min-height: 500px !important;
}

#operations .ops-visual img {
  min-height: 500px !important;
}

#operations .ops-stack {
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

#operations .ops-stack article {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 28px !important;
}

/* Application screens section: match the centered, balanced intro flow. */
#screens .section-intro {
  width: min(100%, 1120px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

#screens .section-intro h2 {
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#screens .section-intro p:not(.eyebrow) {
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Bottom section final override: balanced panels with readable capability text. */
#capability-stack.final-section {
  align-items: stretch !important;
}

#capability-stack .final-copy,
#capability-stack .final-panel {
  align-self: stretch !important;
}

#capability-stack .final-panel {
  padding: 24px 26px !important;
}

#capability-stack .final-capability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  height: 100% !important;
}

#capability-stack .final-capability-grid article {
  justify-content: flex-start !important;
  min-height: 0 !important;
  padding: 16px !important;
}

#capability-stack .final-capability-grid article strong {
  margin-bottom: 9px !important;
  font-size: 18px !important;
  line-height: 1.22 !important;
  font-weight: 650 !important;
}

#capability-stack .final-capability-grid article p {
  margin: 0 !important;
  color: #e3f2f8 !important;
  font-size: 15px !important;
  line-height: 1.46 !important;
}

@media (max-width: 760px) {
  #capability-stack .final-capability-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Application Screens case-study lock: consistent section-to-section sizing. */
@media (min-width: 1041px) {
  #screens.casebook-section {
    gap: 18px !important;
  }

  #screens .case-study,
  #screens .case-study:nth-of-type(even),
  #screens .case-study.compact-case,
  #screens .case-study.compact-case:nth-of-type(even) {
    width: min(calc(100% - 24px), 1390px) !important;
    min-height: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr) !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  #screens .case-study:nth-of-type(even) .case-visual,
  #screens .case-study.compact-case:nth-of-type(even) .case-visual {
    order: 0 !important;
  }

  #screens .case-visual,
  #screens .case-study:nth-of-type(even) .case-visual,
  #screens .case-study.compact-case .case-visual,
  #screens .case-study.compact-case:nth-of-type(even) .case-visual {
    min-height: 0 !important;
    height: 100% !important;
    justify-content: center !important;
    padding: 16px !important;
    gap: 10px !important;
  }

  #screens .case-visual img,
  #screens .case-study:not(.compact-case) .case-visual img,
  #screens .case-study.compact-case .case-visual img,
  #screens .case-study.compact-case .case-visual img[src$="NoradId.png"] {
    max-width: min(100%, 600px) !important;
    max-height: 330px !important;
    width: auto !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #screens .shot-readout,
  #screens .visual-readout,
  #screens .case-facts,
  #screens .case-copy .latex-block,
  #screens .case-why {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #screens .case-copy,
  #screens .case-study:not(.compact-case) .case-copy,
  #screens .case-study.compact-case .case-copy {
    min-height: 0 !important;
    height: 100% !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 16px !important;
  }

  #screens .case-copy h3,
  #screens .case-study:not(.compact-case) .case-copy h3 {
    font-size: clamp(24px, 1.7vw, 30px) !important;
    line-height: 1.12 !important;
  }

  #screens .case-copy p,
  #screens .case-copy > p:not(.case-kicker):not(.case-why),
  #screens .case-why {
    font-size: 14.5px !important;
    line-height: 1.42 !important;
  }

  #screens .case-facts {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  #screens .case-facts li,
  #screens .case-facts li:last-child:nth-child(odd) {
    grid-column: auto !important;
    padding: 7px 9px !important;
    font-size: 13px !important;
    line-height: 1.32 !important;
  }

  #screens .case-copy .latex-block,
  #screens .case-study:not(.compact-case) .latex-block,
  #screens .case-study.compact-case .latex-block {
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 12px 14px !important;
  }

  #screens .case-why {
    padding: 12px 14px !important;
  }
}

/* 2D map case-study: normal screenshot scale and balanced left/right content. */
@media (min-width: 1041px) {
  #screens .case-study:first-of-type {
    min-height: 720px !important;
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr) !important;
  }

  #screens .case-study:first-of-type .case-visual,
  #screens .case-study:first-of-type .case-copy {
    justify-content: center !important;
  }

  #screens .case-study:first-of-type .case-visual img {
    max-width: min(100%, 620px) !important;
    max-height: 420px !important;
  }

  #screens .case-study:first-of-type .shot-readout,
  #screens .case-study:first-of-type .visual-readout {
    max-width: min(100%, 620px) !important;
  }

  #screens .case-study:first-of-type .latex-block {
    overflow: visible !important;
    max-height: none !important;
  }

  #screens .case-study:first-of-type .visual-readout,
  #screens .case-study:first-of-type .case-why {
    min-height: 118px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  #screens .case-study:nth-of-type(2) {
    min-height: 720px !important;
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr) !important;
  }

  #screens .case-study:nth-of-type(2) .case-visual,
  #screens .case-study:nth-of-type(2) .case-copy {
    justify-content: center !important;
  }

  #screens .case-study:nth-of-type(2) .case-visual img {
    max-width: min(100%, 620px) !important;
    max-height: 420px !important;
  }

  #screens .case-study:nth-of-type(2) .shot-readout,
  #screens .case-study:nth-of-type(2) .visual-readout {
    max-width: min(100%, 620px) !important;
  }

  #screens .case-study:nth-of-type(2) .visual-readout,
  #screens .case-study:nth-of-type(2) .case-why {
    min-height: 172px !important;
    height: 172px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}

/* Section-specific balance repairs: 3D globe and tools workflow only. */
@media (min-width: 901px) {
  #screens .case-study:nth-of-type(2) .visual-readout,
  #screens .case-study:nth-of-type(2) .case-why {
    min-height: 172px !important;
    height: 172px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  #screens .case-study:nth-of-type(3) {
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr) !important;
  }

  #screens .case-study:nth-of-type(3) .case-visual img {
    width: min(100%, 562px) !important;
    max-width: min(100%, 562px) !important;
    max-height: 586px !important;
    height: auto !important;
  }
}

.site-contact {
  padding: 34px clamp(18px, 5vw, 72px) 46px;
  border-top: 1px solid rgba(115, 202, 255, 0.18);
  background: rgba(2, 7, 13, 0.94);
}

.site-contact-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
}

.site-contact span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-contact p {
  margin: 0;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.hero-iss-marker {
  position: absolute;
  right: clamp(42px, 5.4vw, 96px);
  bottom: clamp(146px, 17vw, 230px);
  z-index: 3;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-iss-label {
  display: grid;
  gap: 2px;
  line-height: 1.1;
  justify-items: center;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.88);
  will-change: opacity;
  animation: hero-label-fade-in 900ms ease-out 180ms both !important;
}

.hero-iss-label strong {
  color: #00f096;
  font-size: clamp(11px, 0.82vw, 13px);
  font-weight: 600;
}

.hero-ao91-marker {
  position: absolute;
  right: clamp(94px, 8.4vw, 150px);
  top: clamp(38px, 6.2vw, 82px);
  z-index: 3;
  pointer-events: none;
}

.hero-ao91-label {
  display: grid;
  line-height: 1.1;
  justify-items: center;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.88);
  will-change: opacity;
  animation: hero-label-fade-in 900ms ease-out 80ms both !important;
}

.hero-ao91-label strong {
  color: #00f096;
  font-size: clamp(11px, 0.82vw, 13px);
  font-weight: 600;
}

@media (max-width: 760px) {
  .hero-iss-marker {
    right: 9vw;
    bottom: 36vw;
  }

  .hero-ao91-marker {
    right: 13vw;
    top: 14vw;
  }
}

@keyframes hero-label-fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.equation-card.equation-card-reveal {
  opacity: 0;
  transform: translateY(56px) scale(0.96);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.equation-card.equation-card-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .equation-card.equation-card-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
