@font-face {
  font-family: "Rethink Sans";
  src: url("../fonts/rethinksans.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --primary: #35a86b;
  --primary-dark: #02756e;
  --deep: #0d3f42;
  --deep-2: #102a34;
  --ink: #162331;
  --muted: #63727f;
  --cream: #f4f6f2;
  --sand: #f3efe3;
  --mist: #eef6f7;
  --ice: #f4f8fb;
  --surface: #ffffff;
  --surface-2: #fbfbfa;
  --line: #dfe6df;
  --blue: #5ab9f0;
  --blue-soft: #edf7fd;
  --amber: #ffcf7a;
  --red: #f7471b;
  --shadow: 0 12px 18px -8px rgba(34, 56, 101, 0.14);
  --shadow-strong: 0 24px 60px rgba(13, 64, 64, 0.16);
  --radius: 8px;
  --radius-lg: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #eef5f4 0, var(--cream) 520px);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body.flight-body {
  overflow: hidden;
  background: #04070b;
}

img,
svg,
canvas {
  max-width: 100%;
}

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--deep);
}

code {
  padding: 0.05em 0.32em;
  border-radius: 4px;
  color: #0c4743;
  background: rgba(73, 176, 101, 0.12);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.92em;
}

h1,
h2,
h3,
h4,
.brand,
.nav-link,
.button,
.eyebrow,
.stat-number,
.table th,
button,
input,
select {
  font-family: "Rethink Sans", Arial, sans-serif;
}

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

h1 {
  font-size: 56px;
  line-height: 1.08;
  margin-bottom: 22px;
}

h2 {
  font-size: 42px;
  line-height: 1.12;
  margin-bottom: 18px;
}

h3 {
  font-size: 28px;
  line-height: 1.24;
  margin-bottom: 12px;
}

h4 {
  font-size: 20px;
  line-height: 1.3;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

.narrow {
  width: min(780px, calc(100% - 44px));
  margin-inline: auto;
}

.site-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 14px 18px;
  pointer-events: none;
}

.site-header {
  max-width: 1280px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: rgba(13, 64, 64, 0.94);
  border: 1px solid rgba(193, 248, 183, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 58%, #ffd88a 0 11%, transparent 12%),
    radial-gradient(circle at 66% 40%, #ffe3a6 0 11%, transparent 12%),
    linear-gradient(145deg, #0e5a58, #06282e);
  box-shadow: inset 0 0 0 1px rgba(193, 248, 183, 0.28), 0 0 24px rgba(121, 219, 255, 0.28);
}

.brand-core {
  display: none;
}

.brand-orbit {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(193, 248, 183, 0.66);
  border-radius: 50%;
}

.brand-orbit.orbit-a {
  transform: rotate(28deg) scaleX(1.24);
}

.brand-orbit.orbit-b {
  border-color: rgba(193, 248, 183, 0.48);
  transform: rotate(-34deg) scaleX(1.18);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.is-active {
  color: #082d2d;
  background: #c1f8b7;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(128px, 15vh, 184px) 0 clamp(72px, 10vh, 116px);
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(4, 20, 25, 0.94) 0%, rgba(8, 45, 48, 0.78) 46%, rgba(8, 45, 48, 0.28) 100%),
    radial-gradient(circle at 78% 42%, rgba(255, 216, 138, 0.14), transparent 28%),
    url("../img/generated/hero-c3po-survey.jpg?v=20260709ze") center / cover no-repeat,
    #06101c;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 680px);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 36px;
}

.hero-emblem {
  position: relative;
  width: 94px;
  height: 94px;
  margin-bottom: 24px;
  border: 1px solid rgba(193, 248, 183, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 58%, rgba(255, 208, 120, 0.34), transparent 18px),
    radial-gradient(circle at 68% 35%, rgba(121, 219, 255, 0.34), transparent 16px),
    rgba(6, 27, 35, 0.44);
  box-shadow: 0 0 44px rgba(121, 219, 255, 0.2), inset 0 0 26px rgba(193, 248, 183, 0.06);
}

.hero-orbit {
  position: absolute;
  inset: 20px 8px;
  border: 1px solid rgba(193, 248, 183, 0.72);
  border-radius: 50%;
}

.hero-orbit-a {
  transform: rotate(-22deg);
}

.hero-orbit-b {
  border-color: rgba(121, 219, 255, 0.52);
  transform: rotate(34deg);
}

.hero-star,
.hero-spark {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 22px currentColor;
}

.hero-star-a {
  left: 24px;
  top: 51px;
  width: 20px;
  height: 20px;
  color: #ffd078;
  background: currentColor;
}

.hero-star-b {
  right: 21px;
  top: 29px;
  width: 16px;
  height: 16px;
  color: #79dbff;
  background: currentColor;
}

.hero-spark-a,
.hero-spark-b {
  display: none;
}

.hero-spark-a {
  left: 45px;
  top: 24px;
}

.hero-spark-b {
  right: 28px;
  bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  background: var(--primary);
  content: "";
}

.lead {
  max-width: 720px;
  color: #43525c;
  font-size: 21px;
  line-height: 1.58;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.24);
}

.hero .lead {
  color: rgba(238, 251, 255, 0.86);
}

.hero .eyebrow {
  color: #c1f8b7;
}

.hero .eyebrow::before {
  background: #c1f8b7;
}

.hero .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.hero .button.secondary:hover {
  color: #062c2c;
  background: #c1f8b7;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: #fff;
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--deep);
  background: #fff;
  border-color: var(--line);
}

.button.secondary:hover {
  color: var(--deep);
  border-color: #bdd7cf;
  background: var(--blue-soft);
}

.button.dark {
  background: var(--deep);
}

.button.dark:hover {
  background: #12313f;
}

.button.small {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 14px;
}

.section {
  padding: 78px 0;
}

.section.tight {
  padding: 48px 0;
}

.section.surface {
  background: var(--surface);
}

.section.product-band {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faf6 100%);
}

.section.workbench-band {
  background:
    radial-gradient(circle at 10% 0%, rgba(90, 185, 240, 0.18), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(193, 248, 183, 0.12), transparent 26%),
    linear-gradient(135deg, #0c252c 0%, #123540 100%);
  color: #eaf7ff;
}

.section.workbench-band .section-heading h2 {
  color: #fff;
}

.section.workbench-band .eyebrow {
  color: #c1f8b7;
}

.section.workbench-band .eyebrow::before {
  background: #c1f8b7;
}

.section.workbench-band .section-heading p {
  color: rgba(234, 247, 255, 0.72);
}

.section.series-band {
  background:
    linear-gradient(180deg, #f4f8fb 0%, #ffffff 50%, #eef6f7 100%);
}

.section.sand {
  background: var(--sand);
}

.section.mist {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0)),
    var(--mist);
}

.section.dark-visual {
  background: #0c252c;
}

.section.deep {
  color: #eaf7ef;
  background:
    radial-gradient(circle at 20% 0%, rgba(193, 248, 183, 0.16), transparent 28%),
    linear-gradient(135deg, var(--deep), #102b38);
}

.section.deep h2,
.section.deep h3,
.section.deep .stat-number {
  color: #fff;
}

.section.deep p,
.section.deep .muted {
  color: rgba(255, 255, 255, 0.75);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 620px;
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section.deep .stat-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(193, 248, 183, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.section.deep .stat-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -38px auto;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(193, 248, 183, 0.08);
}

.stat-icon {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(193, 248, 183, 0.12);
  box-shadow: inset 0 0 0 1px rgba(193, 248, 183, 0.18);
}

.stat-icon::before,
.stat-icon::after {
  content: "";
  position: absolute;
}

.stat-icon-pairs::before,
.stat-icon-stars::before {
  left: 9px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd88a;
  box-shadow: 14px -1px 0 #ffe3a6;
}

.stat-icon-pairs::after {
  left: 7px;
  top: 11px;
  width: 28px;
  height: 16px;
  border: 1.5px solid rgba(193, 248, 183, 0.72);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.stat-icon-stars::after {
  left: 10px;
  top: 29px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: rgba(193, 248, 183, 0.72);
}

.stat-icon-papers::before {
  left: 11px;
  top: 8px;
  width: 18px;
  height: 25px;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(13, 63, 66, 0.24);
}

.stat-icon-papers::after {
  left: 15px;
  top: 14px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #0d3f42;
  box-shadow: 0 6px 0 rgba(13, 63, 66, 0.52), 0 12px 0 rgba(13, 63, 66, 0.32);
}

.stat-icon-elements::before {
  left: 10px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd88a;
  box-shadow: 13px 0 0 #ffe3a6, 6px 13px 0 #c1f8b7;
}

.stat-icon-elements::after {
  left: 9px;
  top: 20px;
  width: 26px;
  height: 1.5px;
  background: rgba(193, 248, 183, 0.48);
  transform: rotate(-28deg);
}

.section.deep .stat-label {
  color: rgba(255, 255, 255, 0.72);
}

.stat-number {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.two-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.feature-card,
.paper-card,
.result-card,
.tool-panel,
.table-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card,
.paper-card,
.result-copy {
  padding: 24px;
}

.feature-card {
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(73, 176, 101, 0.38);
  box-shadow: var(--shadow-strong);
}

.feature-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.feature-top {
  display: grid;
  gap: 12px;
  padding: 20px 20px 0;
}

.feature-card > a {
  margin: 18px 20px 20px;
}

.icon-box {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--deep);
  background: #c1f8b7;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.icon-box::before,
.icon-box::after {
  position: absolute;
  content: "";
}

.icon-database::before {
  left: 12px;
  right: 12px;
  top: 10px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50% / 18%;
  box-shadow: 0 8px 0 -2px currentColor, 0 16px 0 -2px currentColor;
}

.icon-database::after {
  left: 14px;
  right: 14px;
  top: 17px;
  height: 2px;
  background: currentColor;
}

.icon-spectrum::before {
  left: 9px;
  right: 9px;
  bottom: 11px;
  height: 20px;
  background:
    linear-gradient(90deg, transparent 0 9%, currentColor 9% 13%, transparent 13% 28%, currentColor 28% 32%, transparent 32% 49%, currentColor 49% 53%, transparent 53% 70%, currentColor 70% 74%, transparent 74%),
    linear-gradient(180deg, transparent 0 58%, currentColor 58% 68%, transparent 68%);
}

.icon-spectrum::after {
  left: 10px;
  right: 10px;
  top: 13px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  transform: rotate(-5deg);
}

.icon-flight::before {
  inset: 11px 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: rotate(-25deg) scaleX(1.24);
}

.icon-flight::after {
  left: 18px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 9px 6px 0 -1px currentColor;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--deep);
  background: var(--blue-soft);
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.tag.green {
  background: #e4f8df;
}

.tag.amber {
  background: #fff0d2;
}

.tag.red {
  color: #7d1c0b;
  background: #ffe3db;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.paper-card.highlight {
  border-color: rgba(73, 176, 101, 0.5);
  background: linear-gradient(180deg, #ffffff 0%, #f6fff4 100%);
}

.paper-meta {
  color: var(--muted);
  font-size: 15px;
}

.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.paper-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(13, 64, 66, 0.12);
  border-radius: var(--radius);
  color: var(--deep);
  background: rgba(255, 255, 255, 0.68);
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.paper-action:hover,
.paper-main {
  color: #062c2c;
  border-color: rgba(73, 176, 101, 0.34);
  background: #e4f8df;
}

.result-card:nth-child(2) .paper-action,
.result-card:nth-child(4) .paper-action {
  color: #eaf7ff;
  border-color: rgba(193, 248, 183, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.result-card:nth-child(2) .paper-action:hover,
.result-card:nth-child(2) .paper-main,
.result-card:nth-child(4) .paper-action:hover,
.result-card:nth-child(4) .paper-main {
  color: #062c2c;
  background: #c1f8b7;
}

.mini-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-block;
  color: currentColor;
}

.mini-icon::before,
.mini-icon::after {
  position: absolute;
  content: "";
}

.mini-paper::before {
  inset: 2px 4px 1px 3px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.mini-paper::after {
  left: 6px;
  right: 6px;
  top: 7px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.mini-video::before {
  left: 2px;
  top: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.mini-video::after {
  right: 1px;
  top: 6px;
  border-left: 6px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.mini-audio::before {
  left: 2px;
  top: 6px;
  width: 5px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 5px -3px 0 -2px currentColor;
}

.mini-audio::after {
  right: 2px;
  top: 4px;
  width: 7px;
  height: 10px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.mini-graphic::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.mini-graphic::after {
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 5px;
  background:
    linear-gradient(135deg, transparent 48%, currentColor 49% 58%, transparent 59%),
    linear-gradient(45deg, transparent 42%, currentColor 43% 54%, transparent 55%);
}

.media-band {
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 46px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(6, 28, 35, 0.08), rgba(6, 28, 35, 0.94)),
    url("../img/generated/flight-c3po-binaries.jpg?v=20260709ze") center / cover no-repeat;
  overflow: hidden;
}

.applet-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.applet-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(193, 248, 183, 0.14);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
}

.applet-panel-flight {
  background: #06101c;
}

.applet-head {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(238, 246, 247, 0.62), rgba(255, 255, 255, 0.2)),
    #fff;
  text-align: left;
}

.applet-panel-flight .applet-head {
  border-color: rgba(121, 219, 255, 0.2);
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(121, 219, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(6, 18, 28, 0.98), rgba(13, 64, 64, 0.92));
}

.applet-panel-flight .applet-head h3,
.applet-panel-flight .applet-head a {
  color: #fff;
}

.applet-icon {
  display: inline-block;
  position: relative;
  overflow: hidden;
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
  border-radius: 14px;
  color: var(--deep);
  background-color: rgba(193, 248, 183, 0.16);
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(13, 63, 66, 0.12);
}

.applet-icon::before,
.applet-icon::after {
  position: absolute;
  content: "";
}

.applet-panel-flight .applet-icon {
  color: #c1f8b7;
  background-color: rgba(193, 248, 183, 0.12);
  box-shadow: inset 0 0 0 1px rgba(193, 248, 183, 0.22);
}

.applet-head h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 26px;
}

.applet-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.applet-panel-flight .applet-head p {
  color: #b7cadb;
}

.applet-head > div,
.applet-head > a {
  width: 100%;
}

.applet-frame {
  width: 100%;
  height: 560px;
  display: block;
  border: 0;
  background: #fff;
}

.flight-frame-embed {
  height: 680px;
  background: #04070b;
}

.mobile-applet-placeholder {
  display: none;
  min-height: 360px;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: 26px;
  border-top: 1px solid rgba(13, 64, 66, 0.1);
  background:
    radial-gradient(circle at 12% 18%, rgba(121, 219, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #f8fbfa, #edf6f5);
}

.applet-panel-flight .mobile-applet-placeholder {
  color: #eaf7ff;
  border-top-color: rgba(121, 219, 255, 0.18);
  background:
    radial-gradient(circle at 18% 16%, rgba(193, 248, 183, 0.16), transparent 28%),
    linear-gradient(135deg, #06101c, #123540);
}

.mobile-applet-placeholder h4 {
  margin: 0;
  color: var(--deep);
  font-size: 24px;
}

.applet-panel-flight .mobile-applet-placeholder h4 {
  color: #fff;
}

.mobile-applet-placeholder p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.applet-panel-flight .mobile-applet-placeholder p {
  color: rgba(234, 247, 255, 0.76);
}

.placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.media-band h2 {
  color: #fff;
}

.media-band p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
}

.page-hero {
  padding: 132px 0 42px;
}

.page-hero .lead {
  max-width: 820px;
}

.control-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.tool-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.tool-chip-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.tool-chip-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--deep);
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 16px;
}

.tool-chip-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.input,
.select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}

.check {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-dark);
}

.table-panel {
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #314047;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 800;
}

.table tbody tr:hover {
  background: #f6fbf9;
}

.table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.table tbody tr:nth-child(even) {
  background: #f4f8f8;
}

.table tbody tr:nth-child(even):hover,
.table tbody tr:nth-child(odd):hover {
  background: #eaf5f2;
}

.table-empty {
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 14px;
}

.viewer-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.tool-panel {
  padding: 18px;
}

.star-list {
  height: 590px;
  margin-top: 14px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.star-item {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid transparent;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.star-item:hover,
.star-item.is-active {
  border-left-color: var(--primary);
  background: #fff;
}

.star-item strong {
  font-size: 15px;
}

.star-item span {
  color: var(--muted);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 13px;
}

.plot-card {
  min-height: 720px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 18px;
}

.plot-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.plot-title {
  margin: 0;
}

.plot-meta {
  color: var(--muted);
  font-size: 14px;
}

.plot-shell {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fbfbfa);
}

#spectrumCanvas {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
}

.plot-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 30px;
}

.result-stack {
  display: grid;
  gap: 42px;
}

.result-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  min-height: 360px;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.result-card::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--primary);
  content: "";
  z-index: 1;
}

.result-card:nth-child(even) {
  grid-template-columns: 0.95fr 1.05fr;
}

.result-card:nth-child(even) .result-image {
  order: -1;
}

.result-card:nth-child(even)::before {
  left: auto;
  right: 0;
}

.result-card:nth-child(2) {
  color: #f7fff9;
  background: linear-gradient(135deg, #123540, #0a2028);
}

.result-card:nth-child(2) .paper-meta,
.result-card:nth-child(2) p,
.result-card:nth-child(2) a,
.result-card:nth-child(4) .paper-meta,
.result-card:nth-child(4) p,
.result-card:nth-child(4) a {
  color: rgba(247, 255, 249, 0.78);
}

.result-card:nth-child(2) h2,
.result-card:nth-child(4) h2 {
  color: #fff;
}

.result-card:nth-child(3) {
  background: linear-gradient(135deg, #ffffff, #edf7fd);
}

.result-card:nth-child(3)::before {
  background: var(--blue);
}

.result-card:nth-child(4) {
  color: #f7fff9;
  background: linear-gradient(135deg, #0d3f42, #234c3f);
}

.result-card:nth-child(4)::before {
  background: #c1f8b7;
}

.result-card:nth-child(5) {
  background: linear-gradient(135deg, #fffaf0, #ffffff);
}

.result-card:nth-child(5)::before {
  background: var(--amber);
}

.result-card:nth-child(6) {
  background: linear-gradient(135deg, #ffffff, #fff2ee);
}

.result-card:nth-child(6)::before {
  background: var(--red);
}

.result-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 32px;
}

.result-copy .tag {
  align-self: flex-start;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.result-copy h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.result-copy .paper-meta {
  margin-bottom: 12px;
}

.result-copy > a,
.result-copy .actions a {
  font-family: "Rethink Sans", Arial, sans-serif;
  font-weight: 800;
}

.result-image {
  min-height: 360px;
  background: #dceee8 center / cover no-repeat;
}

.result-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.site-footer {
  position: relative;
  padding: 78px 0 34px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(13, 64, 66, 0.95), rgba(12, 37, 44, 0.98)),
    var(--deep);
}

.site-footer::after {
  position: absolute;
  inset: 0 0 0 38%;
  opacity: 0.12;
  background-image:
    linear-gradient(135deg, rgba(193, 248, 183, 0.28) 1px, transparent 1px),
    linear-gradient(45deg, rgba(121, 219, 255, 0.22) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-bottom: 46px;
  margin-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-kicker {
  display: block;
  margin-bottom: 10px;
  color: #c1f8b7;
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-cta h2 {
  max-width: 780px;
  margin-bottom: 0;
  color: #fff;
  font-size: 46px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, 0.75fr));
  gap: 38px;
  align-items: start;
}

.footer-brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.footer-mark {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
}

.footer-brand-block p {
  margin-bottom: 0;
}

.footer-summary {
  max-width: 390px;
  margin: 18px 0;
}

.footer-title {
  color: #fff;
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.footer-pill,
.database-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border: 1px solid rgba(193, 248, 183, 0.3);
  border-radius: 999px;
  color: #dff9d8;
  background: rgba(193, 248, 183, 0.08);
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.site-footer h3 {
  margin-bottom: 16px;
  color: #c1f8b7;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  display: grid;
  gap: 2px;
}

.footer-list strong {
  color: #fff;
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 15px;
}

.footer-list span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  line-height: 1.35;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
  color: #c1f8b7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.flight-page {
  position: fixed;
  inset: 0;
}

#flightCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.flight-cockpit {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 220px rgba(0, 6, 18, 0.72), inset 0 0 72px rgba(2, 28, 42, 0.42);
}

.flight-cockpit::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(121, 219, 255, 0.08);
  border-radius: 18px;
  content: "";
}

.flight-cockpit::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: radial-gradient(120% 150% at 50% 170%, rgba(50, 86, 130, 0.2), transparent 60%);
  content: "";
}

.flight-reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(193, 248, 183, 0.22);
  border-radius: 50%;
  display: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(121, 219, 255, 0.14), inset 0 0 14px rgba(193, 248, 183, 0.08);
}

.flight-reticle::before,
.flight-reticle::after {
  position: absolute;
  background: rgba(193, 248, 183, 0.42);
  content: "";
  display: none;
}

.flight-reticle::before {
  left: 50%;
  top: -24px;
  bottom: -24px;
  width: 1px;
  transform: translateX(-50%);
}

.flight-reticle::after {
  top: 50%;
  left: -24px;
  right: -24px;
  height: 1px;
  transform: translateY(-50%);
}

.flight-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 46%, rgba(1, 5, 10, 0.24) 75%, rgba(0, 0, 0, 0.66) 100%),
    linear-gradient(180deg, rgba(7, 18, 28, 0.22), transparent 26%, transparent 70%, rgba(7, 18, 28, 0.34));
}

.flight-header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.flight-header > * {
  pointer-events: auto;
}

.flight-chip,
.flight-panel,
.flight-controls,
.flight-dock {
  border: 1px solid rgba(121, 219, 255, 0.22);
  border-radius: var(--radius);
  color: #eaf7ff;
  background: rgba(6, 16, 28, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.flight-chip {
  min-height: 54px;
  padding: 10px 14px;
}

.flight-chip strong {
  display: block;
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 16px;
}

.flight-chip span {
  display: block;
  color: #9fb7cb;
  font-size: 12px;
}

.flight-panel {
  position: fixed;
  right: 16px;
  top: 92px;
  z-index: 4;
  width: 388px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 188px);
  overflow-y: auto;
  padding: 16px;
}

.flight-panel h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 24px;
}

.flight-panel p {
  margin-bottom: 10px;
  color: #b7cadb;
  font-size: 13px;
}

.flight-jump {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.flight-jump .button {
  width: 100%;
}

.flight-instructions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.flight-instructions span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(121, 219, 255, 0.16);
  border-radius: 999px;
  color: #cfe9f7;
  background: rgba(121, 219, 255, 0.07);
  font-size: 11px;
}

.flight-instructions kbd {
  color: #fff;
  font: inherit;
  font-weight: 800;
}

.flight-note {
  margin: 10px 0 14px;
  color: #9fb1bf;
  font-size: 13px;
  line-height: 1.45;
}

.flight-select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(121, 219, 255, 0.2);
  border-radius: var(--radius);
  padding: 7px 9px;
  color: #eaf7ff;
  background: rgba(255, 255, 255, 0.07);
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 13px;
}

.flight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.flight-metric {
  min-height: 62px;
  padding: 8px;
  border: 1px solid rgba(121, 219, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.flight-metric span {
  display: block;
  color: #86a7ba;
  font-size: 11px;
}

.flight-metric strong {
  color: #fff;
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 15px;
}

.flight-stars {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.flight-star {
  padding: 8px;
  border: 1px solid rgba(121, 219, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.flight-star strong,
.flight-star span {
  display: block;
}

.flight-star strong {
  color: #fff;
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 13px;
}

.flight-star span {
  color: #9fb7cb;
  font-size: 12px;
  line-height: 1.42;
}

.flight-subhead {
  margin-top: 12px;
  color: #86a7ba;
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.flight-abundance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.flight-abundance-row span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: #eaf7ff;
  background: rgba(193, 248, 183, 0.12);
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.flight-controls {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  width: min(680px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

.flight-controls .button {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 14px;
}

.flight-status {
  min-width: 0;
  color: #b7cadb;
  font-size: 13px;
}

.flight-status strong {
  color: #fff;
}

.flight-dock {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 4;
  width: 212px;
  max-height: min(48vh, 360px);
  display: grid;
  gap: 6px;
  padding: 10px;
  overflow-y: auto;
}

.flight-dock-title {
  display: grid;
  gap: 2px;
  padding: 2px 2px 7px;
  color: #fff;
  font-family: "Rethink Sans", Arial, sans-serif;
}

.flight-dock-title strong {
  font-size: 12px;
}

.flight-dock-title span {
  color: #9fb7cb;
  font-size: 11px;
}

.flight-dock button {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(121, 219, 255, 0.14);
  border-radius: var(--radius);
  color: #cfe9f7;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-family: "Rethink Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.flight-dock button:hover,
.flight-dock button.is-active {
  color: #062c2c;
  background: #c1f8b7;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

body.is-embedded {
  min-height: 100vh;
  overflow: auto;
  background: #fff;
  font-size: 15px;
}

body.is-embedded .site-header-wrap,
body.is-embedded .site-footer,
body.is-embedded .page-hero {
  display: none;
}

body.is-embedded .section,
body.is-embedded .section.tight {
  padding: 14px;
}

body.is-embedded .container {
  width: 100%;
}

body.is-embedded #catalogStats {
  display: none;
}

body.is-embedded .control-bar {
  grid-template-columns: minmax(220px, 1fr) auto auto;
  margin-bottom: 12px;
}

body.is-embedded .table {
  font-size: 13px;
}

body.is-embedded .table th,
body.is-embedded .table td {
  padding: 9px 10px;
}

body.is-embedded .viewer-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
}

body.is-embedded .tool-panel {
  padding: 12px;
  box-shadow: none;
}

body.is-embedded .star-list {
  height: 394px;
}

body.is-embedded .plot-card {
  min-height: 500px;
}

body.is-embedded .plot-shell,
body.is-embedded #spectrumCanvas {
  min-height: 358px;
}

body.flight-body.is-embedded {
  overflow: hidden;
  background: #04070b;
}

body.flight-body.is-embedded .flight-header {
  top: 12px;
  left: 12px;
  right: 12px;
}

body.flight-body.is-embedded .flight-header .button {
  display: none;
}

body.flight-body.is-embedded .flight-panel {
  right: 12px;
  top: 78px;
  width: 348px;
  max-height: calc(100vh - 160px);
}

body.flight-body.is-embedded .flight-controls {
  bottom: 12px;
  width: min(620px, calc(100vw - 24px));
}

body.flight-body.is-embedded .flight-dock {
  left: 12px;
  bottom: 12px;
  width: 184px;
  max-height: 210px;
}

@media (max-width: 980px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero {
    min-height: 100svh;
    padding-top: 126px;
    background:
      linear-gradient(180deg, rgba(4, 20, 25, 0.94), rgba(8, 45, 48, 0.72)),
      url("../img/generated/hero-c3po-survey.jpg?v=20260709ze") center / cover no-repeat,
      #06101c;
  }

  .hero-grid,
  .applet-showcase,
  .applet-panel,
  .viewer-layout,
  .tool-chip-grid,
  .result-card,
  .result-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .applet-panel-flight {
    grid-row: auto;
  }

  .applet-head {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .applet-panel-flight .applet-head {
    border-bottom-color: rgba(121, 219, 255, 0.2);
  }

  .flight-frame-embed {
    height: 620px;
  }

  .result-card:nth-child(even) .result-image {
    order: 0;
  }

  .stat-grid,
  .card-grid,
  .paper-grid,
  .two-grid,
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-cta {
    grid-template-columns: 1fr;
  }

  .footer-actions {
    justify-content: flex-start;
  }

  .control-bar {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 90px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(13, 64, 64, 0.98);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link {
    border-radius: var(--radius);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 23px;
  }

  .container,
  .narrow {
    width: min(100% - 28px, var(--container));
  }

  .site-header-wrap {
    padding: 10px;
  }

  .site-header {
    min-height: 64px;
    padding: 0 12px;
  }

  .brand {
    font-size: 19px;
  }

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

  .section,
  .page-hero {
    padding: 44px 0;
  }

  .page-hero {
    padding-top: 112px;
  }

  .stat-grid,
  .card-grid,
  .paper-grid,
  .two-grid,
  .control-bar {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .plot-header,
  .flight-controls,
  .footer-cta,
  .footer-main,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .footer-main {
    gap: 28px;
  }

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

  .footer-cta h2 {
    font-size: 32px;
  }

  .footer-bottom {
    display: grid;
  }

  .media-band {
    padding: 28px;
  }

  .applet-head {
    min-height: auto;
    align-items: start;
  }

  .applet-frame {
    height: 520px;
  }

  body.mobile-lite [data-mobile-lite] .applet-frame {
    display: none;
  }

  body.mobile-lite [data-mobile-lite] .mobile-applet-placeholder {
    display: grid;
  }

  .flight-frame-embed {
    height: 560px;
  }

  body.is-embedded .control-bar,
  body.is-embedded .viewer-layout {
    grid-template-columns: 1fr;
  }

  .star-list {
    height: 380px;
  }

  .plot-card {
    min-height: auto;
  }

  .plot-shell,
  #spectrumCanvas {
    min-height: 390px;
  }

  .flight-panel {
    left: 16px;
    top: auto;
    bottom: 124px;
    width: auto;
    max-height: 48vh;
  }

  .flight-dock {
    display: none;
  }

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

  .flight-jump {
    grid-template-columns: 1fr;
  }
}
