:root {
  color-scheme: dark;
  --bg: #0d0f0d;
  --bg-soft: #151813;
  --ink: #f4f0e6;
  --muted: #b8b2a4;
  --line: rgba(244, 240, 230, 0.16);
  --line-strong: rgba(244, 240, 230, 0.28);
  --green: #60d39f;
  --coral: #f2745f;
  --amber: #e9c85c;
  --violet: #9aa2ff;
  --cyan: #61d8e4;
  --panel: rgba(21, 24, 19, 0.82);
  --panel-strong: rgba(29, 33, 26, 0.94);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(244, 240, 230, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 230, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
  z-index: -2;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

canvas {
  display: block;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: transform 160ms ease;
}

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

.sky-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.42;
  pointer-events: none;
  z-index: -3;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 13, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--amber) 0 13%, transparent 14%),
    conic-gradient(from 40deg, transparent 0 24%, var(--green) 24% 30%, transparent 30% 58%, var(--coral) 58% 64%, transparent 64% 100%);
  box-shadow: 0 0 28px rgba(96, 211, 159, 0.2);
}

.brand-name,
.brand-kicker {
  display: block;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.brand-kicker {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--green);
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero-section {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 42px);
  padding: clamp(38px, 6vh, 68px) clamp(18px, 4vw, 48px) clamp(64px, 9vw, 112px);
  max-width: 1440px;
  margin: 0 auto;
}

.hero-copy {
  justify-self: center;
  width: 100%;
  min-width: 0;
  max-width: 920px;
  padding-bottom: 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.02;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
  hyphens: manual;
}

.title-word {
  display: inline-block;
  white-space: nowrap;
}

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 6.9rem);
  max-width: none;
}

.hero-copy h1 {
  font-size: clamp(2.55rem, 7.2vw, 6.1rem);
}

.hero-text {
  max-width: 820px;
  margin: 24px 0 0;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(244, 240, 230, 0.54);
}

.button-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}

.button-secondary {
  background: rgba(244, 240, 230, 0.07);
  color: var(--ink);
}

.button-icon {
  width: 18px;
  height: 18px;
}

.button-icon svg,
.icon-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero-instrument {
  width: 100%;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
  margin-bottom: 0;
}

.hero-signal-grid {
  width: 100%;
  max-width: 1320px;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

.instrument-header,
.panel-toolbar,
.lab-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.instrument-header {
  padding: 0 4px 12px;
}

.instrument-header span:last-child {
  min-width: 0;
  color: var(--amber);
  text-align: right;
}

.instrument-header span:first-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.transit-canvas,
.laser-canvas {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 8, 0.9);
  box-shadow: var(--shadow);
}

.hero-transit,
.hero-laser {
  height: min(44vh, 480px);
  min-height: 340px;
}

.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(78px, 10vw, 128px) clamp(18px, 4vw, 48px);
}

.section-tight {
  padding-top: clamp(70px, 8vw, 108px);
}

.analysis-spotlight {
  max-width: 1440px;
  border-top: 1px solid var(--line);
}

.analysis-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 30px;
}

.analysis-intro .section-heading {
  margin-bottom: 0;
}

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

.tess-map-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #080908;
  box-shadow: var(--shadow);
}

.tess-map-header,
.tess-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
}

.tess-map-header {
  border-bottom: 1px solid var(--line);
}

.tess-map-header > div span,
.tess-map-header > div strong {
  display: block;
}

.tess-map-header > div span {
  margin-bottom: 3px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tess-map-header > div strong {
  font-size: 1.05rem;
}

.tess-sector-map {
  display: block;
  width: 100%;
  height: clamp(280px, 43vw, 610px);
  background: #080908;
}

.tess-map-footer {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 19px;
  height: 9px;
  border: 1px solid;
}

.legend-swatch.planned {
  border-color: rgba(97, 216, 228, 0.55);
  background: rgba(97, 216, 228, 0.12);
}

.legend-swatch.analyzed {
  border-color: var(--amber);
  background: rgba(233, 200, 92, 0.3);
}

.section-heading {
  max-width: 1040px;
  margin-bottom: 34px;
}

.section-heading h2,
.band-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 4.1rem);
  max-width: 24ch;
}

.section-heading p,
.band-copy p {
  color: var(--muted);
  font-size: 1rem;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}

.split-heading p:last-child {
  margin: 0;
}

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

.frontier-card,
.feature-matrix article {
  position: relative;
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.frontier-primary {
  border-color: rgba(96, 211, 159, 0.48);
  background:
    linear-gradient(145deg, rgba(96, 211, 159, 0.12), rgba(242, 116, 95, 0.05)),
    var(--panel);
}

.card-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--amber);
  font-weight: 900;
}

.frontier-card h3 {
  margin: 56px 0 14px;
  font-size: clamp(1.28rem, 2.2vw, 1.75rem);
}

.frontier-card p {
  color: var(--muted);
  margin-bottom: 28px;
}

.inline-link {
  color: var(--green);
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.frontier-evidence {
  margin-top: clamp(82px, 10vw, 126px);
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.evidence-intro {
  max-width: 880px;
  margin-bottom: 34px;
}

.evidence-intro h3 {
  max-width: 20ch;
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.3vw, 3.5rem);
  line-height: 1.08;
}

.evidence-intro > p:last-child {
  max-width: 76ch;
  color: var(--muted);
}

.evidence-figure {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(97, 216, 228, 0.035), transparent 42%),
    rgba(13, 15, 13, 0.86);
  box-shadow: var(--shadow);
}

.evidence-figure + .evidence-figure {
  margin-top: 26px;
  background:
    linear-gradient(145deg, rgba(233, 200, 92, 0.035), transparent 42%),
    rgba(13, 15, 13, 0.86);
}

.chart-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.28fr);
  gap: clamp(22px, 5vw, 62px);
  align-items: end;
}

.chart-heading > div:first-child > span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-heading h3 {
  max-width: 24ch;
  margin: 0 0 10px;
  font-size: clamp(1.38rem, 2.35vw, 2.35rem);
  line-height: 1.12;
}

.chart-heading p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
}

.chart-stat {
  min-height: 72px;
  padding-left: 18px;
  border-left: 2px solid var(--amber);
}

.chart-stat span,
.chart-stat strong {
  display: block;
}

.chart-stat span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chart-stat strong {
  font-size: clamp(1.08rem, 1.65vw, 1.38rem);
  line-height: 1.2;
}

.survey-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 12px;
}

.survey-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(244, 240, 230, 0.045);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.survey-button:hover,
.survey-button:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
}

.survey-button.active,
.survey-button[aria-pressed="true"] {
  border-color: rgba(96, 211, 159, 0.62);
  background: rgba(96, 211, 159, 0.12);
  color: var(--ink);
}

.interactive-chart {
  position: relative;
  width: 100%;
  height: clamp(350px, 43vw, 510px);
}

.interactive-chart.occurrence-chart {
  height: clamp(410px, 50vw, 590px);
}

.interactive-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(244, 240, 230, 0.09);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-axis-line {
  stroke: rgba(244, 240, 230, 0.3);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-tick,
.chart-axis-title,
.chart-reference-label {
  fill: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.chart-tick {
  font-size: 11px;
}

.chart-axis-title {
  fill: rgba(244, 240, 230, 0.82);
  font-size: 12px;
  font-weight: 750;
}

.chart-reference-line {
  stroke: rgba(233, 200, 92, 0.52);
  stroke-width: 1.1;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
}

.chart-reference-label {
  fill: var(--amber);
  font-size: 11px;
  font-weight: 850;
}

.chart-total-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.chart-series-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chart-series-band {
  /* Opacity is set per chart state in app.js: all-survey views retain their full color. */
}

.chart-hover-line {
  stroke: rgba(244, 240, 230, 0.42);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.chart-hit-area {
  fill: transparent;
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 150px;
  max-width: 240px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(13, 15, 13, 0.96);
  color: var(--ink);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
  pointer-events: none;
  font-size: 0.78rem;
  line-height: 1.4;
}

.chart-tooltip b,
.chart-tooltip span {
  display: block;
}

.chart-tooltip span {
  color: var(--muted);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 18px;
  min-height: 24px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i {
  width: 18px;
  height: 3px;
  display: inline-block;
  background: var(--legend-color);
}

.chart-note {
  max-width: 90ch;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.methods-disclosure {
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.methods-disclosure summary {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 850;
}

.methods-disclosure summary::-webkit-details-marker {
  display: none;
}

.methods-disclosure summary::after {
  content: "+";
  color: var(--green);
  font-size: 1.45rem;
  font-weight: 500;
}

.methods-disclosure[open] summary::after {
  content: "-";
}

.methods-disclosure summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.methods-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 5vw, 64px);
  padding: 8px 0 38px;
}

.methods-content section {
  min-width: 0;
}

.methods-content h4 {
  margin: 0 0 12px;
  font-size: 1.32rem;
}

.methods-content p {
  color: var(--muted);
  font-size: 0.9rem;
}

.method-equations {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.method-table-wrap {
  width: 100%;
  margin: 18px 0;
}

.method-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.76rem;
  line-height: 1.35;
}

.method-table th,
.method-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.method-table th {
  color: var(--ink);
  font-weight: 850;
}

.method-table td {
  color: var(--muted);
}

.method-table th:nth-child(1),
.method-table td:nth-child(1) {
  width: 25%;
}

.method-table th:nth-child(2),
.method-table td:nth-child(2) {
  width: 20%;
}

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

.population-grid span {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.population-grid b {
  display: block;
  color: var(--ink);
}

.methods-content .method-caveat {
  padding-left: 13px;
  border-left: 2px solid var(--amber);
  color: var(--ink);
}

.telescope-section {
  padding-top: clamp(58px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

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

.telescope-card {
  min-height: 430px;
  display: grid;
  grid-template-rows: 220px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.telescope-card > div:last-child {
  padding: 18px;
}

.telescope-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.telescope-card h3 {
  margin: 0 0 10px;
  font-size: 1.34rem;
}

.telescope-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.telescope-media {
  position: relative;
  margin: 0;
  min-height: 210px;
  border-bottom: 1px solid var(--line);
  background: #080908;
  overflow: hidden;
}

.telescope-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
  object-fit: cover;
}

.telescope-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 15, 13, 0.66), transparent 54%);
  pointer-events: none;
}

.telescope-media figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  max-width: calc(100% - 24px);
  padding: 4px 7px;
  border: 1px solid rgba(244, 240, 230, 0.22);
  border-radius: 999px;
  background: rgba(13, 15, 13, 0.68);
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 850;
}

.megaminer-band {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
}

.megaminer-band > * {
  width: min(100%, var(--max));
}

.megaminer-band .band-copy {
  justify-self: end;
  max-width: 720px;
}

.pipeline-diagram {
  width: min(100%, 980px);
  display: grid;
  gap: 16px;
}

.pipeline-topline {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.compute-node,
.orchestration-node,
.pipeline-node,
.pipeline-evidence {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 240, 230, 0.055);
}

.compute-node,
.orchestration-node {
  min-height: 120px;
  padding: 18px;
}

.compute-node {
  background:
    linear-gradient(135deg, rgba(97, 216, 228, 0.09), rgba(244, 240, 230, 0.035)),
    rgba(244, 240, 230, 0.055);
}

.orchestration-node {
  position: relative;
  background:
    linear-gradient(135deg, rgba(96, 211, 159, 0.18), rgba(97, 216, 228, 0.08)),
    rgba(244, 240, 230, 0.055);
}

.orchestration-node::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -17px;
  width: 1px;
  height: 17px;
  background: rgba(96, 211, 159, 0.55);
}

.compute-node strong,
.orchestration-node strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.08rem;
}

.compute-node span,
.orchestration-node span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pipeline-node {
  position: relative;
  min-height: 230px;
  padding: 16px;
}

.pipeline-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 10px;
  height: 2px;
  background: rgba(96, 211, 159, 0.62);
}

.pipeline-node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  right: -13px;
  border-left: 8px solid rgba(96, 211, 159, 0.78);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.pipeline-node.source {
  border-color: rgba(97, 216, 228, 0.36);
  background:
    linear-gradient(135deg, rgba(97, 216, 228, 0.16), rgba(244, 240, 230, 0.04)),
    rgba(244, 240, 230, 0.055);
}

.pipeline-node span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  margin-bottom: 18px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pipeline-node.source span {
  color: var(--cyan);
}

.pipeline-node strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.12;
}

.pipeline-node p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.pipeline-evidence {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(233, 200, 92, 0.1), rgba(244, 240, 230, 0.035)),
    rgba(244, 240, 230, 0.055);
}

.pipeline-evidence figure {
  position: relative;
  margin: 0;
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #080908;
}

.pipeline-evidence img {
  width: 100%;
  height: 100%;
  min-height: 124px;
  display: block;
  object-fit: cover;
}

.pipeline-evidence figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 6px;
  border: 1px solid rgba(244, 240, 230, 0.2);
  border-radius: 999px;
  background: rgba(13, 15, 13, 0.72);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 850;
}

.pipeline-evidence strong {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 1.06rem;
}

.pipeline-evidence p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.flow-grid div {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 240, 230, 0.055);
}

.flow-grid span {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.flow-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.spectral-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px;
  align-items: stretch;
}

.spectrum-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.spectrum-panel {
  padding: 16px;
}

.spectrum-canvas {
  width: 100%;
  height: 250px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0b0a;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(96, 211, 159, 0.35);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-line {
  width: 24px;
  height: 3px;
  border-radius: 999px;
}

.legend-line.absorption {
  background: var(--cyan);
}

.legend-line.candidate {
  background: var(--coral);
}

.legend-line.mask {
  background: var(--amber);
}

.archive-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.archive-controls.compact {
  flex-direction: row;
  flex-wrap: wrap;
}

.chip,
.mode-button,
.icon-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(244, 240, 230, 0.06);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.chip {
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
  font-weight: 800;
}

.chip:hover,
.chip:focus-visible,
.mode-button:hover,
.mode-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(244, 240, 230, 0.45);
}

.chip.active,
.mode-button.active {
  background: rgba(96, 211, 159, 0.16);
  border-color: rgba(96, 211, 159, 0.55);
}

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

.archive-card {
  display: grid;
  gap: 14px;
  min-height: 340px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.archive-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.archive-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.archive-score {
  min-width: 54px;
  color: var(--amber);
  font-weight: 900;
  text-align: right;
}

.archive-meta {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}

.archive-meta span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(244, 240, 230, 0.08);
}

.archive-meta b {
  color: var(--ink);
  font-weight: 750;
}

.meter {
  height: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(244, 240, 230, 0.08);
}

.meter i {
  display: block;
  height: 100%;
  width: var(--score);
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--green));
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-self: end;
}

.tag-row span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.lab-hero {
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(420px, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(44px, 7vh, 78px) clamp(18px, 4vw, 48px);
}

.lab-copy {
  max-width: 570px;
}

.lab-copy h1 {
  max-width: 10ch;
}

.lab-copy p:last-child {
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.lab-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 240, 230, 0.055);
}

.lab-tab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.lab-tab:hover,
.lab-tab:focus-visible,
.lab-tab.active {
  color: var(--ink);
  border-color: rgba(96, 211, 159, 0.45);
  background: rgba(96, 211, 159, 0.14);
}

.megaminer-pipeline-section {
  border-top: 1px solid var(--line);
}

.lab-pipeline-graph {
  overflow-x: auto;
  padding-bottom: 8px;
}

.graph-frame {
  position: relative;
  min-width: 1160px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(244, 240, 230, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 230, 0.026) 1px, transparent 1px),
    rgba(21, 24, 19, 0.86);
  background-size: 54px 54px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-areas:
    "compute compute orchestrator orchestrator orchestrator"
    ". . bus bus bus"
    "flow flow flow flow flow"
    ". . . output output";
  gap: 26px 18px;
}

.graph-frame::before {
  content: "";
  grid-area: bus;
  align-self: center;
  justify-self: stretch;
  height: 2px;
  margin: 8px 8%;
  background: linear-gradient(90deg, transparent, rgba(96, 211, 159, 0.58), transparent);
}

.graph-compute,
.graph-orchestrator,
.graph-node,
.graph-output {
  border: 2px solid rgba(97, 216, 228, 0.28);
  border-radius: var(--radius);
  background: rgba(8, 10, 8, 0.84);
}

.graph-compute {
  grid-area: compute;
  min-height: 132px;
  padding: 16px;
}

.graph-orchestrator {
  grid-area: orchestrator;
  min-height: 132px;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(96, 211, 159, 0.22), rgba(97, 216, 228, 0.1)),
    rgba(8, 10, 8, 0.84);
}

.graph-orchestrator::before,
.graph-orchestrator::after {
  content: "";
  position: absolute;
  bottom: -28px;
  width: 2px;
  height: 28px;
  background: rgba(96, 211, 159, 0.5);
  transform-origin: top;
}

.graph-orchestrator::before {
  left: 31%;
  transform: rotate(54deg);
}

.graph-orchestrator::after {
  right: 31%;
  transform: rotate(-54deg);
}

.graph-compute strong,
.graph-orchestrator strong,
.graph-output strong {
  display: block;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.18;
}

.graph-compute span,
.graph-orchestrator span,
.graph-output p {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.graph-flow {
  grid-area: flow;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.graph-node {
  position: relative;
  min-height: 240px;
  padding: 16px;
}

.graph-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  width: 24px;
  height: 3px;
  background: rgba(96, 211, 159, 0.68);
}

.graph-node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 6px);
  right: -29px;
  border-left: 9px solid rgba(96, 211, 159, 0.86);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.graph-node span {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.graph-node strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.12;
}

.graph-node p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.42;
}

.graph-source {
  border-color: rgba(97, 216, 228, 0.42);
}

.graph-ai {
  border-color: rgba(96, 211, 159, 0.42);
}

.graph-ai::marker {
  display: none;
}

.graph-output {
  grid-area: output;
  position: relative;
  min-height: 130px;
  padding: 16px;
  border-color: rgba(233, 200, 92, 0.4);
}

.graph-output::before {
  content: "";
  position: absolute;
  right: 20%;
  top: -26px;
  width: 2px;
  height: 26px;
  background: rgba(233, 200, 92, 0.58);
}

.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 6.1rem);
}

.dashboard-map {
  margin-bottom: 16px;
}

.dashboard-detail-link {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 18px;
}

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

.dashboard-grid article {
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.dashboard-grid span {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-grid strong {
  display: block;
  margin: 44px 0 10px;
  font-size: 1.18rem;
}

.dashboard-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.bezier-simulator {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 4vw, 48px) 58px;
}

.bezier-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.32fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
  margin-bottom: 18px;
}

.bezier-topline h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.75rem, 6.8vw, 6.4rem);
}

.bezier-topline p:not(.eyebrow) {
  max-width: 920px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
}

.bezier-status {
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.bezier-status span,
.bezier-panel-header span,
.bezier-slider-grid span {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bezier-status strong {
  display: block;
  margin: 28px 0 8px;
  color: var(--amber);
  font-size: 1.2rem;
}

.bezier-status small,
.bezier-panel-header small {
  color: var(--muted);
}

.bezier-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 15, 13, 0.76);
  box-shadow: var(--shadow);
}

.bezier-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bezier-model-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bezier-model-button {
  min-height: 44px;
  padding: 0 12px;
  font-weight: 850;
}

.bezier-model-button.active {
  border-color: rgba(96, 211, 159, 0.74);
  background: rgba(96, 211, 159, 0.16);
  color: var(--ink);
}

.bezier-actions {
  justify-content: flex-end;
}

.bezier-slider-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bezier-slider-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(244, 240, 230, 0.11);
  border-radius: var(--radius);
  background: rgba(244, 240, 230, 0.04);
}

.bezier-slider-grid input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.bezier-check {
  align-content: center;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.bezier-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.bezier-custom-guide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(233, 200, 92, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(233, 200, 92, 0.13), rgba(96, 211, 159, 0.07)),
    rgba(13, 15, 13, 0.82);
}

.bezier-custom-guide[hidden] {
  display: none;
}

.bezier-custom-guide span,
.bezier-custom-count {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bezier-custom-guide strong {
  display: block;
  margin-top: 3px;
  font-size: 1.02rem;
}

.bezier-custom-guide p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.bezier-custom-count {
  min-width: 116px;
  padding: 10px 12px;
  border: 1px solid rgba(233, 200, 92, 0.36);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(233, 200, 92, 0.08);
}

.bezier-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 14px;
  min-height: min(72vh, 720px);
}

.bezier-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 15, 13, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.bezier-panel-header strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

.bezier-stage-canvas,
.bezier-curve-canvas {
  width: 100%;
  height: min(66vh, 640px);
  min-height: 520px;
  background: #080908;
}

.bezier-stage-canvas.is-editable {
  cursor: crosshair;
  outline: 2px solid rgba(233, 200, 92, 0.5);
  outline-offset: -2px;
}

.lab-console {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 15, 13, 0.8);
  box-shadow: var(--shadow);
  padding: 14px;
}

.lab-toolbar {
  padding: 0 2px 12px;
}

.toolbar-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.lab-toolbar strong {
  color: var(--amber);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.lab-transit {
  height: min(62vh, 680px);
  min-height: 460px;
}

.mode-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mode-button {
  min-height: 44px;
  padding: 0 8px;
  font-weight: 850;
}

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

.feature-matrix article {
  min-height: 230px;
}

.feature-matrix span {
  display: block;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-matrix strong {
  display: block;
  margin: 34px 0 10px;
  font-size: 1.15rem;
}

.feature-matrix p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-flow-section {
  border-top: 1px solid var(--line);
}

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

@media (max-width: 1040px) {
  .hero-section,
  .lab-hero,
  .split-heading,
  .megaminer-band {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .lab-copy h1 {
    max-width: 13ch;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-instrument {
    min-height: 0;
  }

  .analysis-intro {
    grid-template-columns: 1fr;
  }

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

  .megaminer-band .band-copy {
    justify-self: start;
    max-width: 760px;
  }

  .frontier-grid,
  .archive-grid,
  .telescope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-matrix,
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spectral-workbench {
    grid-template-columns: 1fr;
  }

  .methods-content {
    grid-template-columns: 1fr;
  }

  .archive-controls {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pipeline-topline,
  .pipeline-flow {
    grid-template-columns: 1fr;
  }

  .orchestration-node::after,
  .pipeline-node:not(:last-child)::after,
  .pipeline-node:not(:last-child)::before {
    display: none;
  }

  .pipeline-node {
    min-height: 0;
  }

  .pipeline-evidence {
    grid-template-columns: 1fr;
  }

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

  .bezier-topline,
  .bezier-controls,
  .bezier-workspace {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .brand {
    min-width: 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  h1 {
    font-size: clamp(2.25rem, 14vw, 4.4rem);
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 2.15rem;
    overflow-wrap: normal;
  }

  .hero-instrument {
    margin-bottom: 0;
  }

  .hero-signal-grid {
    grid-template-columns: 1fr;
    max-width: 980px;
  }

  .hero-transit,
  .hero-laser {
    min-height: 320px;
    height: 340px;
  }

  .lab-transit {
    min-height: 360px;
    height: 390px;
  }

  .analysis-actions {
    flex-direction: column;
  }

  .analysis-actions .button {
    width: 100%;
  }

  .tess-map-header,
  .tess-map-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tess-sector-map {
    height: 260px;
  }

  .frontier-grid,
  .archive-grid,
  .telescope-grid,
  .feature-matrix,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .frontier-card {
    min-height: 280px;
  }

  .chart-heading {
    grid-template-columns: 1fr;
  }

  .chart-stat {
    min-height: 0;
  }

  .survey-selector {
    gap: 6px;
  }

  .survey-button {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 96px;
    padding: 0 9px;
  }

  .interactive-chart {
    height: 370px;
  }

  .interactive-chart.occurrence-chart {
    height: 460px;
  }

  .methods-disclosure summary {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px 0;
  }

  .methods-disclosure summary small {
    width: calc(100% - 32px);
    margin-left: 0;
  }

  .population-grid {
    grid-template-columns: 1fr;
  }

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

  .mode-button {
    min-height: 46px;
  }

  .site-footer {
    flex-direction: column;
  }

  .graph-frame {
    min-width: 0;
    min-height: 0;
    display: grid;
    gap: 14px;
    padding: 16px;
  }

  .graph-compute,
  .graph-orchestrator,
  .graph-flow,
  .graph-output {
    position: static;
    width: auto;
    min-height: 0;
    transform: none;
  }

  .graph-orchestrator::before,
  .graph-orchestrator::after,
  .graph-output::before,
  .graph-node:not(:last-child)::after,
  .graph-node:not(:last-child)::before {
    display: none;
  }

  .graph-flow,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .bezier-simulator {
    padding-top: 34px;
  }

  .bezier-topline h1 {
    font-size: 2.32rem;
    overflow-wrap: normal;
  }

  .bezier-model-group,
  .bezier-slider-grid {
    grid-template-columns: 1fr;
  }

  .bezier-control-group,
  .bezier-actions,
  .bezier-panel-header,
  .bezier-custom-guide {
    align-items: stretch;
    flex-direction: column;
  }

  .bezier-custom-guide {
    display: flex;
  }

  .bezier-actions .button,
  .bezier-actions .icon-button {
    width: 100%;
  }

  .bezier-custom-count {
    width: 100%;
  }

  .bezier-stage-canvas,
  .bezier-curve-canvas {
    min-height: 380px;
    height: 430px;
  }
}

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

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