@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap");

:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #f8fbf9;
  --ink: #0f2d24;
  --ink-soft: #375f53;
  --line: rgba(16, 44, 35, 0.14);
  --line-strong: rgba(16, 44, 35, 0.24);
  --brand: #146b4e;
  --brand-dark: #0f4d39;
  --accent: #c57a3d;
  --danger: #b24545;
  --ok: #1f9e6b;
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-hero: 0 30px 70px rgba(10, 25, 20, 0.1);
  --shadow-card: 0 16px 36px rgba(10, 24, 18, 0.08);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1300px 620px at -10% -20%, rgba(20, 107, 78, 0.1), transparent 62%),
    radial-gradient(980px 540px at 110% -20%, rgba(197, 122, 61, 0.1), transparent 60%),
    linear-gradient(170deg, #f7faf8, #eef4f1);
}

.hidden { display: none !important; }

.connection-banner {
  width: min(1280px, calc(100% - 1.4rem));
  margin: 0 auto;
  margin-top: 0;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(178, 69, 69, 0.3);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(255, 246, 246, 0.96), rgba(255, 236, 236, 0.95));
  color: #6f2929;
  box-shadow: 0 10px 28px rgba(84, 32, 32, 0.12);
}

body.ui-pitch-safe .connection-banner,
body.ui-pitch-live .connection-banner {
  display: none !important;
}

.connection-banner strong { font-size: 0.9rem; }
.connection-banner span { flex: 1; font-size: 0.84rem; }

.topbar {
  width: min(1520px, calc(100% - 1.4rem));
  margin: 0.9rem auto 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 248, 0.84));
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand .kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: #2c5b4c;
  font-weight: 700;
}

.brand strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.mode-badge {
  border-radius: 999px;
  border: 1px solid rgba(16, 44, 35, 0.18);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.32rem 0.56rem;
}

.toplinks {
  display: flex;
  gap: 0.56rem;
  flex-wrap: wrap;
}

.toplinks a {
  text-decoration: none;
  color: #1c4e3d;
  border: 1px solid rgba(16, 44, 35, 0.18);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.36rem 0.66rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-shell {
  width: min(1520px, calc(100% - 1.4rem));
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  gap: 1rem;
  align-items: start;
}

.hero-card {
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(circle at 86% 12%, rgba(197, 122, 61, 0.2), transparent 34%),
    radial-gradient(circle at 14% 88%, rgba(20, 107, 78, 0.12), transparent 34%),
    linear-gradient(152deg, #f2faf5, #e8f4ec 58%, #e4f0e9);
  box-shadow: var(--shadow-hero);
  padding: 1.7rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: #2f6653;
}

.hero-card h1 {
  margin: 0.6rem 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero-card .sub {
  margin: 0.95rem 0 0;
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 1.03rem;
  line-height: 1.55;
}

.chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips span {
  border-radius: 999px;
  border: 1px solid rgba(16, 44, 35, 0.22);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.32rem 0.6rem;
  color: #1e4e3d;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  min-height: 2.3rem;
  padding: 0.48rem 0.78rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: #f1fff7;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 9px 20px rgba(12, 47, 35, 0.18);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(12, 47, 35, 0.22);
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #a7642f);
}

.btn-ghost {
  color: #244a3c;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 44, 35, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rhythm {
  margin-top: 1.1rem;
  border: 1px solid rgba(16, 44, 35, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  padding: 0.75rem;
}

.rhythm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.rhythm-head strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.94rem;
}

.rhythm-head span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #46695c;
}

.rhythm-grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.rhythm-grid article {
  border: 1px solid rgba(16, 44, 35, 0.18);
  border-radius: 10px;
  padding: 0.5rem 0.58rem;
  background: rgba(255, 255, 255, 0.8);
}

.rhythm-grid p {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #3c6557;
}

.rhythm-grid span {
  margin-top: 0.18rem;
  display: block;
  font-size: 0.82rem;
  color: #26493d;
}

.hero-proof-snapshot {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.46rem;
}

.hero-proof-snapshot article {
  border: 1px solid rgba(16, 44, 35, 0.18);
  border-radius: 11px;
  padding: 0.48rem 0.56rem;
  background: rgba(255, 255, 255, 0.82);
}

.hero-proof-snapshot article.wide {
  grid-column: 1 / -1;
}

.hero-proof-snapshot span {
  display: block;
  font-size: 0.73rem;
  color: #58766a;
  font-weight: 700;
}

.hero-proof-snapshot strong {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.9rem;
  color: #16382c;
}

.hero-side {
  display: grid;
  gap: 0.8rem;
  align-self: start;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 249, 0.9));
  box-shadow: var(--shadow-card);
  padding: 0.9rem;
}

.side-card h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
}

.side-card p,
.side-card li {
  color: #2f574a;
  line-height: 1.48;
  font-size: 0.88rem;
}

.side-actions {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.48rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.side-actions .btn {
  width: 100%;
}

.side-card code {
  display: inline-block;
  margin-top: 0.32rem;
  border: 1px solid rgba(16, 44, 35, 0.18);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 0.24rem 0.44rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.side-card ol {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.3rem;
}

.side-card .link-group {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.36rem;
}

.side-card .link-group a {
  text-decoration: none;
  border: 1px solid rgba(16, 44, 35, 0.2);
  border-radius: 999px;
  padding: 0.32rem 0.56rem;
  color: #1d4d3d;
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
  background: rgba(255, 255, 255, 0.88);
}

.source {
  margin-top: 0.56rem;
  color: #4f6f62;
  font-size: 0.75rem;
  line-height: 1.45;
}

.source a,
.source a:visited {
  color: #1f5a47;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 90, 71, 0.26);
}

.source a:hover {
  color: #174535;
  border-bottom-color: rgba(23, 69, 53, 0.44);
}

.status-pill {
  margin: 0.55rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border-radius: 999px;
  padding: 0.34rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.status-pill.connected {
  background: rgba(31, 158, 107, 0.12);
  border: 1px solid rgba(31, 158, 107, 0.3);
  color: #196546;
}

.status-pill.connected::before { background: var(--ok); }

.status-pill.safe {
  background: rgba(31, 158, 107, 0.12);
  border: 1px solid rgba(31, 158, 107, 0.3);
  color: #1b6848;
}

.status-pill.safe::before { background: #2aa16f; }

.status-pill.disconnected {
  background: rgba(178, 69, 69, 0.12);
  border: 1px solid rgba(178, 69, 69, 0.28);
  color: #7d2e2e;
}

.status-pill.disconnected::before { background: var(--danger); }

.status-pill.checking {
  background: rgba(197, 122, 61, 0.12);
  border: 1px solid rgba(197, 122, 61, 0.33);
  color: #80502e;
}

.status-pill.checking::before { background: var(--accent); }

.muted {
  margin: 0.45rem 0 0;
  color: #4f6b5f;
  font-size: 0.81rem;
}

.small-note {
  margin: 0.45rem 0 0;
  color: #4d6f62;
  font-size: 0.78rem;
}

.main-grid {
  width: min(1520px, calc(100% - 1.4rem));
  margin: 1rem auto 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(166deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 249, 0.9));
  box-shadow: var(--shadow-card);
  padding: 1rem;
}

.panel-head h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.28rem;
}

.panel-head p {
  margin: 0.4rem 0 0.85rem;
  font-size: 0.92rem;
  color: #4a685c;
}

.panel-proof { grid-column: 1; }
.panel-pitch { grid-column: 2; }
.panel-funding { grid-column: 1 / -1; }
.panel-context { grid-column: 1 / -1; }
.panel-ops { grid-column: 1 / -1; }
.panel-runs { grid-column: 1 / -1; }

.panel-funding p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #315548;
}

.panel-funding .funding-callout {
  margin: 0;
  border: 1px solid rgba(16, 44, 35, 0.16);
  border-left: 4px solid rgba(20, 107, 78, 0.5);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(247, 252, 249, 0.95), rgba(241, 248, 244, 0.9));
  padding: 0.62rem 0.72rem;
}

.panel-funding .link-group {
  margin-top: 0.58rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.panel-funding .link-group a {
  text-decoration: none;
  border: 1px solid rgba(16, 44, 35, 0.18);
  border-radius: 999px;
  padding: 0.34rem 0.6rem;
  color: #1d4f3d;
  font-size: 0.79rem;
  font-weight: 700;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 247, 0.92));
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.panel-funding .link-group a:hover {
  border-color: rgba(20, 107, 78, 0.4);
  background: linear-gradient(170deg, rgba(245, 252, 248, 0.95), rgba(236, 247, 240, 0.95));
  transform: translateY(-1px);
}

.panel-funding .source {
  margin-top: 0.66rem;
  border: 1px solid rgba(16, 44, 35, 0.14);
  border-radius: 10px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.72), rgba(244, 249, 246, 0.72));
  padding: 0.44rem 0.56rem;
  color: #5f7b70;
  font-size: 0.73rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.56rem;
}

.metric {
  border: 1px solid rgba(16, 44, 35, 0.18);
  border-radius: 12px;
  background: #fbfefd;
  padding: 0.54rem;
}

.metric--wide { grid-column: 1 / -1; }

.metric-label {
  display: block;
  font-size: 0.72rem;
  color: #5d776b;
  font-weight: 700;
}

.metric-value {
  display: block;
  margin-top: 0.16rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
}

.proof-foot {
  margin-top: 0.65rem;
  border-top: 1px dashed rgba(16, 44, 35, 0.25);
  padding-top: 0.55rem;
}

.proof-foot p {
  margin: 0.12rem 0;
  font-size: 0.82rem;
}

.metric-definitions {
  margin-top: 0.42rem;
  border: 1px solid rgba(16, 44, 35, 0.14);
  border-radius: 10px;
  background: rgba(247, 252, 249, 0.9);
  padding: 0.42rem 0.52rem;
}

.metric-definitions p {
  margin: 0.12rem 0;
  font-size: 0.76rem;
  color: #36594d;
}

#summaryLink {
  display: inline-block;
  margin-top: 0.45rem;
  font-weight: 700;
  color: #1c503e;
  text-decoration: none;
  border-bottom: 2px solid rgba(28, 80, 62, 0.3);
}

.console {
  margin: 0.7rem 0 0;
  min-height: 170px;
  border-radius: 14px;
  border: 1px solid rgba(16, 44, 35, 0.2);
  background: linear-gradient(155deg, #0f2f24, #133f31);
  color: #dbf4e8;
  padding: 0.8rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.console.loading {
  color: transparent;
  position: relative;
}

.console.loading::after {
  content: "Benchmark running...";
  color: #d8f2e6;
  position: absolute;
  left: 0.8rem;
  top: 0.75rem;
}

.narrative-block {
  border: 1px solid rgba(16, 44, 35, 0.16);
  border-radius: 13px;
  background: #fbfefd;
  padding: 0.62rem;
  margin-bottom: 0.56rem;
}

.narrative-block h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.94rem;
}

.narrative-block p {
  margin: 0.42rem 0;
  font-size: 0.92rem;
  color: #2f5549;
  line-height: 1.5;
}

.narrative-block.ask {
  border-color: rgba(197, 122, 61, 0.34);
  background: linear-gradient(160deg, rgba(255, 247, 236, 0.9), rgba(255, 241, 223, 0.86));
}

.copy-btn {
  border: 1px solid rgba(16, 44, 35, 0.2);
  border-radius: 9px;
  background: #f2f8f5;
  color: #26473b;
  padding: 0.32rem 0.52rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.56rem;
}

.context-grid figure {
  margin: 0;
  border: 1px solid rgba(16, 44, 35, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: #f8fcfa;
}

.context-grid figure.wide {
  grid-column: 1 / -1;
}

.context-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}

.context-grid figure.wide img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #091911;
  padding: 0.2rem;
}

.context-grid figcaption {
  padding: 0.5rem 0.58rem;
  font-size: 0.74rem;
  color: #4d6f62;
}

.context-grid figcaption a {
  color: #1f4f3d;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 79, 61, 0.3);
}

.ops-grid {
  display: grid;
  gap: 0.65rem;
}

.subpanel {
  border: 1px solid rgba(16, 44, 35, 0.16);
  border-radius: 13px;
  background: #fbfefd;
  padding: 0.7rem;
}

.subpanel h3 {
  margin: 0 0 0.5rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
}

label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #335a4d;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid rgba(16, 44, 35, 0.2);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}

input,
select {
  width: 100%;
  min-height: 2.24rem;
  padding: 0.46rem 0.6rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52rem 0.66rem;
  align-items: center;
}

#mapJson {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  padding: 0.68rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.48;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  align-items: center;
}

.actions-row {
  margin-top: 0.58rem;
}

.field-error {
  margin: 0.45rem 0 0;
  padding: 0.46rem 0.54rem;
  border: 1px solid rgba(178, 69, 69, 0.3);
  border-radius: 10px;
  color: #7b2d2d;
  font-size: 0.78rem;
  background: rgba(255, 240, 240, 0.9);
}

.runs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.48rem;
}

.runs li {
  border: 1px solid rgba(16, 44, 35, 0.16);
  border-radius: 11px;
  background: #fbfefd;
  padding: 0.5rem 0.56rem;
  display: grid;
  gap: 0.16rem;
  cursor: pointer;
}

.runs li:hover {
  border-color: rgba(16, 44, 35, 0.3);
}

.run-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.73rem;
  color: #2b5042;
}

.run-meta {
  font-size: 0.82rem;
  color: #2d5547;
  font-weight: 700;
}

.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(7, 19, 15, 0.34);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tour-card {
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(16, 44, 35, 0.22);
  background: #fff;
  padding: 0.96rem;
  box-shadow: var(--shadow-card);
}

.tour-step {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: #4d7063;
}

.tour-card h3 {
  margin: 0.36rem 0 0;
  font-family: "Manrope", sans-serif;
}

.tour-card p { margin: 0.52rem 0 0; color: #365c50; }

.tour-actions {
  margin-top: 0.84rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  border-radius: 11px;
  border: 1px solid rgba(16, 44, 35, 0.3);
  background: linear-gradient(145deg, rgba(13, 43, 33, 0.95), rgba(10, 33, 25, 0.96));
  color: #e3f9ef;
  padding: 0.62rem 0.72rem;
  font-size: 0.82rem;
  box-shadow: var(--shadow-card);
}

.tour-focus {
  animation: pulse 0.9s ease;
}

body.ui-pitch-safe .ops-section,
body.ui-pitch-live .ops-section {
  display: none;
}

body.ui-pitch-safe .hero-shell {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
}

body.ui-pitch-live .hero-shell {
  grid-template-columns: 1fr;
}

body.ui-pitch-live .hero-side {
  max-width: 620px;
}

body.ui-pitch-safe .main-grid,
body.ui-pitch-live .main-grid {
  grid-template-columns: 1fr;
}

body.ui-pitch-safe .panel-proof,
body.ui-pitch-live .panel-proof,
body.ui-pitch-safe .panel-pitch,
body.ui-pitch-live .panel-pitch,
body.ui-pitch-safe .panel-context,
body.ui-pitch-live .panel-context,
body.ui-pitch-safe .panel-funding,
body.ui-pitch-live .panel-funding {
  grid-column: 1;
}

body.ui-pitch-live .mode-badge {
  color: #0f513c;
  border-color: rgba(31, 158, 107, 0.38);
  background: rgba(31, 158, 107, 0.14);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(197, 122, 61, 0); }
  35% { box-shadow: 0 0 0 6px rgba(197, 122, 61, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(197, 122, 61, 0); }
}

@media (max-width: 1160px) {
  .hero-shell { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr; }
  .main-grid { grid-template-columns: 1fr; }
  .panel-proof,
  .panel-pitch,
  .panel-funding,
  .panel-context,
  .panel-ops,
  .panel-runs { grid-column: 1; }
}

@media (max-width: 900px) {
  .hero-proof-snapshot,
  .rhythm-grid,
  .field-grid,
  .metric-grid,
  .context-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof-snapshot article.wide,
  .context-grid figure.wide {
    grid-column: auto;
  }

  .hero-side { grid-template-columns: 1fr; }
  .side-actions { grid-template-columns: 1fr; }
  body.ui-pitch-safe .main-grid,
  body.ui-pitch-live .main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand { flex-wrap: wrap; }

  .hero-card {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
