/* =========================================================================
 * velocity.report — homepage refresh
 * Aesthetic: technical instrument. Mono labels, tick marks, readouts.
 * Brand: emerald-600 primary, slate-950 base, gradient border emerald-700→950.
 * ========================================================================= */

:root {
  --bg: #07090c;
  --bg-2: #0b0f14;
  --panel: #0d1218;
  --panel-2: #111820;
  --panel-3: #161e28;
  --line: #1b2632;
  --line-2: #243140;
  --line-soft: #131c26;
  --text: #e6ebf2;
  --text-soft: #a7b2c0;
  --text-mute: #6b7787;
  --text-dim: #4a5563;
  --emerald: #10b981;
  --emerald-2: #34d399;
  --emerald-3: #047857;
  --emerald-4: #064e3b;
  --emerald-fg: #6ee7b7;
  --amber: #f59e0b;
  --amber-fg: #fbbf24;
  --signal: #38bdf8;
  --danger: #ef4444;

  --gb-from: #186952;
  --gb-to: #124538;
  --gb-border: linear-gradient(135deg, var(--gb-from), var(--gb-to));

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif-i: "Newsreader", ui-serif, Georgia, serif;

  /* density */
  --d-pad-section: 96px;
  --d-pad-card: 28px;
  --d-pad-card-mobile: 22px;
  --d-gap: 24px;
  --d-hero-pad: 24px;

  --max: 1240px;
}

/* compact density */
.density-compact {
  --d-pad-section: 56px;
  --d-pad-card: 18px;
  --d-gap: 16px;
  --d-hero-pad: 48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

/* Subtle grid background for instrument feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 80%);
}

a { color: var(--emerald-2); text-decoration: none; }
a:hover { color: var(--emerald-fg); }

/* ===== layout ===== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* Header styles live in /css/header.css (shared across all pages). */

/* ===== Mono label ===== */
.mono {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.mono-sm { font-family: var(--mono); font-size: 11px; }
.mono-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* eyebrow tick-mark + label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-soft);
}
.eyebrow .ticks {
  display: inline-flex; gap: 3px;
}
.eyebrow .ticks i {
  width: 1px; height: 10px; background: var(--text-dim);
}
.eyebrow .ticks i:nth-child(3) { background: var(--emerald); height: 12px; }

/* ===== Status pill ===== */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.28);
  color: var(--emerald-fg);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--emerald);
  box-shadow: 0 0 8px rgba(16,185,129,0.7);
}
.pill.amber {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.28);
  color: var(--amber-fg);
}
.pill.amber .dot { background: var(--amber); box-shadow: 0 0 8px rgba(245,158,11,0.7); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ===== Hero ===== */
.hero {
  padding: var(--d-hero-pad) 0 48px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 18px 0 18px;
  color: var(--text);
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(180deg, #6ee7b7 0%, #10b981 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  font-size: clamp(17px, 1.25vw, 19px);
  color: var(--text-soft);
  max-width: 540px;
  line-height: 1.55;
  margin: 0 0 28px;
}
.hero .sub strong { color: var(--text); font-weight: 600; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: background 150ms, border-color 150ms, transform 150ms;
  cursor: pointer; text-decoration: none;
}
.btn-primary {
  background: var(--emerald-3); color: white;
  border-color: rgba(16,185,129,0.35);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 6px 24px rgba(5,150,105,0.25);
}
.btn-primary:hover { background: var(--emerald); color: white; }
.btn-secondary {
  background: var(--panel-2); color: var(--text);
  border-color: var(--line-2);
}
.btn-secondary:hover { background: var(--panel-3); border-color: #2c3a4a; }
.btn-ghost {
  background: transparent; color: var(--text-soft);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-2); }

/* feature row (replaces bullets) */
.feat-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
}
.feat-row .item {
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--line);
}
.feat-row .item:last-child { border-right: none; }
.feat-row .item:not(:first-child) { padding-left: 18px; }
.feat-row .item .num {
  font-family: var(--mono); font-size: 11px; color: var(--text-mute);
  letter-spacing: 0.1em;
}
.feat-row .item .ttl {
  font-weight: 600; font-size: 14px; color: var(--text);
  margin: 6px 0 4px;
}
.feat-row .item .desc {
  font-size: 12.5px; color: var(--text-soft); line-height: 1.45;
}
@media (max-width: 720px) {
  .feat-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feat-row .item { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .feat-row .item:nth-child(2n) { border-right: none; }
  .feat-row .item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ===== Hero visual stack ===== */
.hero-vis {
  display: grid;
  gap: 18px;
  position: relative;
}
.hero-vis.layout-side { grid-template-columns: 1fr 1fr; }
.hero-vis.layout-stack { grid-template-columns: 1fr; }
.hero-vis.layout-single { grid-template-columns: 1fr; }
@media (max-width: 960px) {
  .hero-vis.layout-side { grid-template-columns: 1fr; }
}

.vis-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at top, rgba(16,185,129,0.04), transparent 60%),
    linear-gradient(180deg, #0c121a, #080c11);
  overflow: hidden;
}
.vis-panel .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.vis-panel .panel-head .label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-soft);
}
.vis-panel .panel-body {
  padding: 0;
  position: relative;
}
.vis-panel .panel-body img,
.vis-panel .panel-body svg.full {
  display: block; width: 100%; height: auto;
}
.vis-panel.sample {
  background:
    radial-gradient(ellipse at top right, rgba(16,185,129,0.07), transparent 55%),
    linear-gradient(180deg, #0a0f15, #060a0e);
}
.vis-panel.sample .panel-body { padding: 18px 14px 6px; }
.vis-panel.sample img { transform: rotate(-1.5deg); filter: drop-shadow(0 14px 28px rgba(0,0,0,0.55)); }

.vis-panel.lidar .panel-body { padding: 0; aspect-ratio: 800 / 451; overflow: hidden; }
.vis-panel.lidar .panel-body img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vis-panel.sample img { max-height: 360px; object-fit: contain; width: 100%; }

/* corner ticks on panels */
.corner-tick {
  position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--emerald-3); opacity: 0.7;
}
.corner-tick.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 14px; }
.corner-tick.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-top-right-radius: 14px; }
.corner-tick.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-bottom-left-radius: 14px; }
.corner-tick.br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 14px; }

/* ===== Status / pipeline strip ===== */
.pipeline {
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(16,185,129,0.02), transparent 50%) padding-box,
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--gb-border) border-box;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}
@media (max-width: 800px) {
  .pipeline { grid-template-columns: 1fr; }
}
.pipeline .gen {
  padding: 14px 22px;
  position: relative;
  /* Flex column so the meter + meta-row sit flush at the bottom and the
   * description fills whatever vertical space remains. With two cells
   * side-by-side, this is what makes the two timelines line up. */
  display: flex;
  flex-direction: column;
}
.pipeline .gen + .gen { border-left: 1px dashed var(--line-2); }
@media (max-width: 800px) {
  .pipeline .gen + .gen { border-left: none; border-top: 1px dashed var(--line-2); }
}
.pipeline .gen .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.pipeline .gen .head .key {
  display: inline-flex; align-items: baseline; gap: 10px;
}
.pipeline .gen .head .key .gen-no {
  font-family: var(--mono); font-size: 11px; color: var(--text-mute);
  letter-spacing: 0.1em;
}
.pipeline .gen .head .key .gen-name {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text);
}
.pipeline .gen .desc {
  color: var(--text-soft); font-size: 14px; line-height: 1.5; margin-bottom: 14px;
  /* No width cap — let the description flow as wide as the card so each
   * cell can wrap its own way and the bottom rows still align. */
  flex: 1 1 auto;
}
.pipeline .meter {
  height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden;
  position: relative;
}
.pipeline .meter .fill {
  height: 100%; background: linear-gradient(90deg, var(--emerald-3), var(--emerald));
  border-radius: 3px;
}
.pipeline .meter .fill.amber { background: linear-gradient(90deg, #b45309, var(--amber)); }
.pipeline .meta-row {
  display: flex; gap: 18px; margin-top: 10px;
  font-family: var(--mono); font-size: 11px; color: var(--text-mute);
  letter-spacing: 0.05em;
}
.pipeline .meta-row .v { color: var(--text-soft); }

/* ===== Section header ===== */
section { padding: var(--d-pad-section) 0; position: relative; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
  border-bottom: 1px solid var(--line); padding-bottom: 20px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .section-header .right { display: none; }
}
.section-header .left .eyebrow { margin-bottom: 12px; }
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.025em; line-height: 1.05;
  margin: 0; font-weight: 700; color: var(--text); text-wrap: balance;
}
.section-header .right {
  font-family: var(--mono); font-size: 11px; color: var(--text-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
  text-align: right;
}

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--d-gap);
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(16,185,129,0.02), transparent 50%) padding-box,
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--gb-border) border-box;
  padding: var(--d-pad-card);
  display: flex; flex-direction: column;
  gap: 14px;
  min-height: 280px;
}
.step .num {
  font-family: var(--mono); font-size: 11px; color: var(--text-mute);
  letter-spacing: 0.1em;
  display: flex; justify-content: space-between; align-items: center;
}
.step .num .step-no { color: var(--emerald-fg); }
.step h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.015em;
  margin: 0; color: var(--text);
}
.step p { color: var(--text-soft); font-size: 14px; line-height: 1.55; margin: 0; }
.step .illus {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  margin-top: 8px;
  min-height: 140px;
}

/* ===== Downloads ===== */
.dl-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--d-gap);
}
@media (max-width: 880px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }
.dl-section {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--gb-border) border-box;
  border-radius: 16px;
  padding: var(--d-pad-card);
  min-width: 0;
  overflow: hidden;
}
.dl-section .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.dl-section .head .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-soft);
}
.dl-section .head a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--emerald-2);
}
.dl-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(2,6,12,0.6);
  padding: 16px;
  min-width: 0;
}
.dl-card > * { min-width: 0; }
.dl-card + .dl-card { margin-top: 12px; }
.dl-card .title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--emerald-2);
}
.dl-card .title.plain { color: var(--text); }
.dl-card .meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  min-width: 0;
}
.dl-card .v { color: var(--text-soft); font-weight: 600; }
.dl-card .hash {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  display: flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,0.45); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 6px 4px 8px;
  overflow: hidden;
}
.dl-card .hash .h-text {
  font-family: var(--mono); font-size: 11px; color: var(--text-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
  cursor: text;
}
.dl-card .hash button,
.dl-card .cmd button {
  font-family: var(--mono); font-size: 11px; color: var(--text-soft);
  background: var(--panel-3); border: 1px solid var(--line-2);
  border-radius: 4px; padding: 2px 8px;
  cursor: pointer;
}
.dl-card .hash button:hover,
.dl-card .cmd button:hover { background: #1f2c39; color: var(--text); }
.dl-card .req {
  font-family: var(--mono); font-size: 11px; color: var(--text-mute);
}
.dl-card .desc { font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.dl-card .cmd {
  background: rgba(0,0,0,0.45); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 8px;
  font-family: var(--mono); font-size: 11px; color: var(--text-soft);
  display: flex; align-items: center; gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.dl-card .cmd .h-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ===== Research (LiDAR) ===== */
.research {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--gb-border) border-box;
  border-radius: 16px;
  padding: var(--d-pad-card);
}
.research-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start;
}
@media (max-width: 960px) { .research-grid { grid-template-columns: 1fr; } }
/* Research right column stacks the visualiser image and the CTAs/links under
 * it, so the copy on the left can breathe and the action surfaces have a
 * clear visual anchor. */
.research-grid .research-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.research-grid .research-actions .cta-row {
  margin: 0;
  flex-wrap: wrap;
}
.research-grid .research-actions .links {
  margin-top: 0;
}
.research h3 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  margin: 14px 0 14px; color: var(--text);
}
.research p { color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.research .links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.research .links a { color: var(--emerald-2); display: inline-flex; align-items: center; gap: 6px; }

.visualiser-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0f15;
}
.visualiser-panel .vp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--text-soft);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.visualiser-panel .vp-head .right { display: flex; gap: 12px; }
.visualiser-panel img, .visualiser-panel svg.full { display: block; width: 100%; height: auto; }

/* ===== Audience split ===== */
.audience {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--d-gap);
}
@media (max-width: 880px) { .audience { grid-template-columns: 1fr; } }
.aud-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--d-pad-card);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
}
.aud-card .role {
  font-family: var(--mono); font-size: 11px; color: var(--text-mute);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.aud-card h3 {
  font-size: 26px; font-weight: 700; letter-spacing: -0.02em;
  margin: 8px 0 12px; color: var(--text);
}
.aud-card p { color: var(--text-soft); font-size: 14.5px; line-height: 1.55; margin-bottom: 18px; }
.aud-card ul {
  margin: 0 0 22px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.aud-card ul li {
  font-size: 13.5px; color: var(--text-soft);
  display: flex; align-items: flex-start; gap: 10px;
}
.aud-card ul li::before {
  content: ""; flex: 0 0 6px; height: 6px; margin-top: 8px;
  background: var(--emerald); border-radius: 1px;
}
.aud-card .aud-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.aud-card.contributor ul li::before { background: var(--signal); }

/* ===== FAQ ===== */
.faq {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.faq-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }
.faq-grid .left h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: var(--text); letter-spacing: -0.02em; }
.faq-grid .left .mono { display: block; margin-bottom: 4px; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq-list .faq-item:first-child { border-top: none; padding-top: 0; }
.faq-item h4 {
  font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.faq-item p { font-size: 14.5px; color: var(--text-soft); margin: 0; line-height: 1.6; max-width: 65ch; }

/* ===== City Hall ===== */
.cityhall {
  text-align: center;
}
.cityhall .video {
  position: relative; padding-bottom: 56.25%;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  background: #000; margin: 24px 0 28px;
  max-width: 800px; margin-left: auto; margin-right: auto;
}
.cityhall .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cityhall blockquote {
  font-family: var(--serif-i); font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--text);
  max-width: 720px; margin: 0 auto 14px; line-height: 1.35;
}
.cityhall figcaption {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-mute);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 96px;
  padding: 48px 0 36px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.01));
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-mute);
  margin: 0 0 10px; font-weight: 600;
}
.foot-col a {
  display: block; padding: 4px 0;
  font-size: 14px; color: var(--text-soft);
}
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-mute);
  margin-top: 36px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.foot-bottom a { color: var(--text-soft); }
.foot-blurb { font-size: 13.5px; color: var(--text-soft); margin: 10px 0 0; max-width: 38ch; line-height: 1.5; }

/* ===== Instrument-mode extras (aesthetic=instrument) ===== */
.aesthetic-instrument .vis-panel,
.aesthetic-instrument .dl-section,
.aesthetic-instrument .research,
.aesthetic-instrument .aud-card,
.aesthetic-instrument .step {
  position: relative;
}
.aesthetic-instrument .vis-panel::before,
.aesthetic-instrument .step::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 12px 100%;
  pointer-events: none;
}
.aesthetic-instrument .step::before { background-size: 24px 100%; }

.aesthetic-instrument .pipeline {
  background:
    linear-gradient(to right, rgba(16,185,129,0.03) 0%, transparent 12%) padding-box,
    linear-gradient(to right, rgba(245,158,11,0.025) 50%, transparent 62%) padding-box,
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--gb-border) border-box;
}

.aesthetic-refined .corner-tick { display: none; }
.aesthetic-refined .eyebrow .ticks { display: none; }

/* ===== Patch: class-name adapters for static HTML ===== */
.status-section { padding: 20px 0 24px; }

.panel-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.mono-link { color: var(--emerald-2); }
.mono-link:hover { color: var(--emerald-fg); }

/* Downloads section adapters */
.dl-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.dl-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-soft);
}
.dl-link {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--emerald-2);
  white-space: nowrap;
}
.dl-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--emerald-2);
  min-width: 0;
}
.dl-title.plain { color: var(--text); }
.dl-card .desc { font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.dl-card .desc code {
  font-family: var(--mono); font-size: 12px; color: var(--text);
  background: rgba(0,0,0,0.4); padding: 1px 5px; border-radius: 4px;
  border: 1px solid var(--line);
}
.inline-link { color: var(--emerald-2); }
.inline-link:hover { color: var(--emerald-fg); text-decoration: underline; }

/* Pipeline title — was inline style */
.pipeline .gen .gen-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 10px;
}
/* (deduped: the .pipeline .gen .desc rule lives in the pipeline section
 * above; this previous override capped width to 36ch which is what made
 * the two timelines drop out of alignment when descriptions had different
 * lengths.) */

/* Research section */
.pill-row {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.pill.signal {
  background: rgba(56,189,248,0.08);
  border-color: rgba(56,189,248,0.28);
  color: #7dd3fc;
}
.pill.signal .dot {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56,189,248,0.7);
}

.visualiser-panel .vp-head .vp-right {
  display: flex; gap: 12px; align-items: center;
}
.visualiser-panel .vp-head .vp-right .rec { color: var(--danger); }
.visualiser-panel .vp-head .vp-right .lidar-tag { color: #7dd3fc; }
.visualiser-panel .vp-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--text-soft);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* FAQ */
.faq-blurb { color: var(--text-soft); font-size: 14px; margin: 0; }

/* City Hall heading */
.cityhall-h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.025em;
  margin: 14px 0 6px;
  color: var(--text);
}
.eyebrow.center { justify-content: center; }

/* Footer icons row */
.foot-icons { margin-top: 12px; display: flex; gap: 6px; }
.foot-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px; border-radius: 6px; border: 1px solid var(--line);
  color: var(--text-soft);
}
.foot-icons a:hover { color: var(--text); border-color: var(--line-2); }

.site-footer .brand { margin-bottom: 6px; }

/* small utility */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-soft { color: var(--text-soft); }
.text-mute { color: var(--text-mute); }
.muted-link { color: var(--text-soft); }
.muted-link:hover { color: var(--text); }
.lead { font-size: 15px; line-height: 1.6; color: var(--text-soft); }
.divider { height: 1px; background: var(--line); margin: 24px 0; border: none; }

/* Sample report stamp on hero image */
.sample-stamp {
  position: absolute; left: 50%; top: 56%;
  transform: translate(-58%, -50%) rotate(-6deg);
  background: rgba(5, 150, 105, 0.95);
  color: white;
  font-family: var(--mono);
  font-weight: 700; font-size: 14px; letter-spacing: 0.2em;
  padding: 8px 18px; border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  text-transform: uppercase;
  pointer-events: none;
}

/* ==========================================================================
 * Hero — LiDAR point-cloud background (above the fold)
 * Replaces the previous split radar/LiDAR panels with a full-bleed scene.
 * Class names are scoped under .hero-cloud so they don't collide with the
 * rest of the homepage CSS.
 * ========================================================================== */

.hero-cloud {
  position: relative;
  overflow: hidden;
  padding: var(--d-hero-pad) 0 56px;
  min-height: calc(100vh - 56px);
  /* Single dark base for the whole homepage. Matches --bg in :root and the
   * THREE.WebGLRenderer clear colour in /js/hero-scene.js. */
  background: var(--bg);
}
.hero-cloud .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-cloud #hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Atmospheric veil — three radial/linear gradients tuned to keep the hero
 * copy readable regardless of what the point cloud is doing behind it. */
.hero-cloud .hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(70% 65% at 32% 52%, rgba(7,9,12,.78) 0%, rgba(7,9,12,.55) 40%, rgba(7,9,12,.0) 75%),
    linear-gradient(180deg, rgba(7,9,12,.78) 0%, rgba(7,9,12,.0) 18%, rgba(7,9,12,.0) 60%, rgba(7,9,12,.85) 100%);
}
.hero-cloud .hero-content {
  position: relative;
  z-index: 2;
}
.hero-cloud .hero-grid {
  display: grid;
  /* Right column slightly wider so the stack image has room to read large. */
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .hero-cloud .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Solid (but still subtle) panel behind the copy column so the headline and
 * body read cleanly over the point cloud. Tightly hugs the copy edges and
 * has a faint border so it reads as an intentional panel rather than a fade. */
.hero-cloud .copy { position: relative; }
.hero-cloud .copy::before {
  content: "";
  position: absolute;
  /* Default (2-col / desktop): inset slightly tighter so the panel doesn't
   * push right up against the header, and the top gets a positive offset
   * (16px) so there's a clean gap above the headline. Bottom/left/right
   * keep negative insets so the panel still hugs the copy edges. */
  top: 16px; left: -28px; right: -28px; bottom: -28px;
  /* About a third of the previous 0.42 — the panel is now a hint of fill
   * rather than a clear darkening. Cars/bikes behind read through almost
   * unaltered; the blur does most of the legibility work. */
  background: rgba(7,9,12,0.14);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  /* No border — the panel reads as a soft frosted patch, not a card. */
  border: 0;
  border-radius: 14px;
  z-index: -1;
  pointer-events: none;
}
.hero-cloud .copy h1 {
  font-family: "EB Garamond", "Iowan Old Style", "Palatino", Georgia, serif;
  font-weight: 400;
  /* Smaller than the original clamp so the headline still reads as one or
   * two lines inside the narrower 26rem copy panel. */
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 8px 0 22px;
  color: var(--text);
  text-wrap: balance;
}
.hero-cloud .copy h1 .row    { display: block; }
.hero-cloud .copy h1 .second { color: var(--text-soft); }
.hero-cloud .copy .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 24px;
  max-width: 46ch;
}
.hero-cloud .copy .body {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0 0 30px;
  max-width: 54ch;
}
.hero-cloud .copy .body b { color: var(--text); font-weight: 600; }

/* CTAs — local to the hero so we don't fight the rest of the page's .btn rules.
 * Centred in the copy column so the two-button action row reads as the
 * primary call-to-action of the page rather than a left-aligned afterthought. */
.hero-cloud .ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 34px;
}
.hero-cloud .hc-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
/* Primary uses the site-wide emerald so this CTA reads as the same "button"
 * as the Download CTA in the header and the .btn-primary buttons further down
 * the page. Ghost stays neutral. */
.hero-cloud .hc-btn.primary {
  background: var(--emerald-3);
  color: white;
  border-color: rgba(16,185,129,0.35);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 6px 24px rgba(5,150,105,0.25);
}
.hero-cloud .hc-btn.primary:hover {
  background: var(--emerald);
  color: white;
  transform: translateY(-1px);
}
.hero-cloud .hc-btn.ghost {
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-color: var(--line-2);
}
.hero-cloud .hc-btn.ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: #3a4757;
  color: var(--text);
}
.hero-cloud .hc-btn svg { width: 14px; height: 14px; }

/* Three-point bullets — small emerald icons, matching the original main
 * homepage's heroicon-style markers. */
.hero-cloud .bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 50ch;
}
.hero-cloud .bullets .item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hero-cloud .bullets .item .marker {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--emerald-2);
}
.hero-cloud .bullets .item .marker svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-cloud .bullets b { color: var(--text); font-weight: 600; margin-right: 6px; }

/* PDF stack — three CSS-rendered "pages" rotated and offset to look stacked. */
.hero-cloud .stack-wrap {
  position: relative;
  perspective: 1400px;
  padding: 8px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-cloud .stack {
  position: relative;
  width: min(360px, 90%);
  aspect-ratio: 8.5 / 11;
  transform: rotateX(8deg) rotateY(-12deg) rotateZ(2deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 25px 35px rgba(0,0,0,.55));
}
.hero-cloud .stack .pg {
  position: absolute;
  inset: 0;
  background: #fafbfc;
  border: 1px solid #e3e8ee;
  border-radius: 5px;
  padding: 18px 20px;
  overflow: hidden;
  color: #1c2330;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.hero-cloud .stack .pg:nth-child(1) {
  transform: translate(18px, 18px) rotate(3.5deg);
  background: #eaecf0;
  border-color: #cdd3da;
  opacity: .85;
}
.hero-cloud .stack .pg:nth-child(2) {
  transform: translate(9px, 9px) rotate(1.5deg);
  background: #f3f5f8;
  border-color: #dbe0e8;
  opacity: .95;
}
.hero-cloud .stack .pg:nth-child(3) { transform: translate(0, 0) rotate(0deg); }
.hero-cloud .pg .head {
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e3e8ee;
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.hero-cloud .pg .title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 4px;
}
.hero-cloud .pg .sub {
  font-size: 9.5px;
  color: #475467;
  margin-bottom: 10px;
}
.hero-cloud .pg .pg-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.hero-cloud .pg .stat {
  flex: 1;
  background: #f1f3f7;
  border-radius: 4px;
  padding: 6px 7px;
}
.hero-cloud .pg .stat .lbl {
  font-size: 6.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7280;
}
.hero-cloud .pg .stat .val {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.hero-cloud .pg .stat .val .u {
  font-size: 8.5px;
  color: #6b7280;
  font-weight: 500;
  margin-left: 2px;
}
.hero-cloud .pg .chart {
  height: 60px;
  background: #f1f3f7;
  border-radius: 4px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.hero-cloud .pg .chart svg { width: 100%; height: 100%; display: block; }
.hero-cloud .pg .bars {
  height: 78px;
  background: #f8fafc;
  border-radius: 4px;
  padding: 6px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.hero-cloud .pg .bars .b {
  flex: 1;
  background: linear-gradient(180deg, #6aa9ff, #4c8be0);
  border-radius: 1px 1px 0 0;
  min-height: 6%;
}
.hero-cloud .pg .footer {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  font-size: 7px;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e3e8ee;
  padding-top: 6px;
}
.hero-cloud .stack-caption {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line-2);
  background: rgba(7,9,12,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 6px;
  align-self: center;
}
.hero-cloud .stack-caption:hover { color: var(--text); border-color: #3a4757; background: rgba(7,9,12,0.92); }
.hero-cloud .stack-caption .arrow { color: var(--emerald-2); }

/* Tagline strip — sits between hero and status section. */
.hero-tagline-bar {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.hero-tagline-bar .tagline {
  color: var(--text-mute);
  font-size: 13.5px;
  letter-spacing: .02em;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-tagline-bar .tagline .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-mute);
}

/* ==========================================================================
 * Brand serif — full split.
 * Homepage marketing headlines use EB Garamond; the body, nav, and every
 * other surface stays on Geist. Docs / community pages don't load this
 * file, so they remain 100% Geist by construction.
 * ========================================================================== */
.hero-cloud .copy h1,
.section-header h2,
.steps .step h3,
.research-grid h3,
.audience .aud-card h3,
.faq-grid .left h3,
.cityhall .cityhall-h2,
.cityhall blockquote {
    font-family: "EB Garamond", "Iowan Old Style", "Palatino", Georgia, serif;
    font-weight: 400;
}

/* Garamond at the same heavy weights as the previous Geist headlines reads
 * dense and cramped; ease the tracking and unbold a touch so the serif's
 * proportions get room. The hero h1 already lives at weight 400 + wider
 * tracking, so it stays as-is. */
.section-header h2,
.cityhall .cityhall-h2 {
    font-weight: 500;
    letter-spacing: -0.018em;
}
.steps .step h3,
.research-grid h3,
.audience .aud-card h3,
.faq-grid .left h3 {
    font-weight: 500;
    letter-spacing: -0.012em;
}
/* City Hall blockquote was italic Newsreader; keep italic but in Garamond. */
.cityhall blockquote {
    font-style: italic;
}

/* ==========================================================================
 * Narrower hero copy panel.
 * Caps the .copy column so the panel doesn't stretch full-width on a phone
 * (or fall halfway across the hero on desktop). Roughly 30% narrower than
 * the original column. Text inside already has per-element max-widths so
 * this mostly affects the panel chrome and CTA row.
 * ========================================================================== */
.hero-cloud .copy {
    max-width: 22rem;
}
@media (max-width: 880px) {
    /* On the single-column hero layout, centre the narrower panel so it
     * doesn't pin to the left edge on narrow phone screens. */
    .hero-cloud .copy { margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
 * Hero PDF — use the rendered stack.png instead of the CSS-built pages.
 * The CSS pages were a stand-in until we had a real rendered stack. The
 * static asset is sharper, smaller (when zoomed in), and matches what
 * lives elsewhere in the brand kit (og_image, etc.).
 * ========================================================================== */
/* Vertically centre the stack inside the hero column so it doesn't pin to
 * the top of the grid row when the copy column is taller. */
.hero-cloud .stack-wrap { align-self: center; }
.hero-cloud .stack-wrap.stack-image .stack {
    /* Strip the 3D tilt since stack.png is already pre-rotated/baked. */
    transform: none;
    aspect-ratio: auto;
    /* Two-column layout: large stack so it dominates the right column. */
    width: min(760px, 100%);
    /* Always horizontally centred inside the column. */
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    border: none;
    filter: none;
}
.hero-cloud .stack-wrap.stack-image .stack img {
    display: block;
    width: 100%;
    height: auto;
}
/* The stack itself is a link to the sample report PDF. Hover lift mirrors
 * the original main-branch homepage's stack interaction. */
.hero-cloud .stack-wrap.stack-image .stack-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 350ms ease, filter 350ms ease;
}
.hero-cloud .stack-wrap.stack-image .stack-link:hover {
    transform: translateY(-4px) scale(1.03);
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

/* Single-column hero (mobile / narrow): smaller stack, centred horizontally,
 * and the LiDAR canvas pinned to the viewport top so the user sees the
 * animation first, then scrolls the copy + stack up over it. We use
 * position:fixed (sticky doesn't engage because the .hero-cloud's
 * overflow:hidden turns it into a scroll container that has no actual
 * scroll), plus a JS-driven IntersectionObserver in /js/hero-scene.js
 * that adds .scrolled-past once the hero leaves the viewport so the
 * fixed canvas fades out cleanly behind the next section. */
@media (max-width: 880px) {
    .hero-cloud { padding-top: 0; min-height: 100vh; }
    .hero-cloud .hero-bg {
        position: fixed;
        inset: 0;
        z-index: 0;
        transition: opacity 350ms ease;
    }
    .hero-cloud.scrolled-past .hero-bg {
        opacity: 0;
        pointer-events: none;
    }
    /* Push the copy down so the canvas dominates the upper viewport, but
     * not so far that there's an obvious dead-zone of whitespace at the
     * very top. ~10rem (160px) shallower than the previous 55vh setting. */
    .hero-cloud .hero-content {
        padding-top: 55vh;
    }
    /* Mobile uses the same card padding rhythm as the pipeline and steps,
     * but keeps the hero shell borderless and frosted. The panel fills the
     * wrap width, then the content pads inward inside it. */
    .hero-cloud .copy {
      width: 100%;
      max-width: none;
      margin-left: 0;
      margin-right: 0;
      padding: var(--d-pad-card-mobile);
    }
    .hero-cloud .copy::before {
      top: 0;
        left: 0;
        right: 0;
      bottom: 0;
    }
    .pipeline {
      padding: 0;
    }
    .pipeline .gen {
      padding: var(--d-pad-card-mobile);
    }
    .step {
      padding: var(--d-pad-card-mobile);
    }
    /* Stack: smaller + explicitly centred (some flex-vs-block edge cases
     * left it pinned left in 1-col). */
    .hero-cloud .stack-wrap.stack-image { align-items: center; }
    .hero-cloud .stack-wrap.stack-image .stack-link { width: 100%; display: flex; justify-content: center; }
    .hero-cloud .stack-wrap.stack-image .stack {
        width: min(280px, 72%);
        margin-left: auto;
        margin-right: auto;
    }
}
