:root {
  color-scheme: light;
  --bg: #f8f5fb;
  --surface: #ffffff;
  --primary-text: #211528;
  --muted-text: #67566f;
  --border: #ded2e6;
  --primary-action: #5b247a;
  --commercial-value: #b01772;
  --qualified: #24745a;
  --watchlist: #6e4bb3;
  --urgent-risk: #b61f5c;
  --park-neutral: #4d5674;
  --violet-soft: #efe5f6;
  --magenta-soft: #fde7f3;
  --watchlist-soft: #eee8fb;
  --shadow: 0 18px 44px rgba(57, 32, 73, 0.11);
  --grid: rgba(91, 36, 122, 0.08);
  --max: 1160px;
  --header: 89px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15111d;
  --surface: #21182d;
  --primary-text: #f6eefb;
  --muted-text: #c9b8d6;
  --border: #3c2d4a;
  --primary-action: #b77af0;
  --commercial-value: #ff5db8;
  --qualified: #52d29f;
  --watchlist: #a891ff;
  --urgent-risk: #ff6fa8;
  --park-neutral: #9da8ca;
  --violet-soft: #30223d;
  --magenta-soft: #3a2034;
  --watchlist-soft: #2d2548;
  --shadow: 0 22px 52px rgba(5, 3, 8, 0.38);
  --grid: rgba(246, 238, 251, 0.05);
}

[data-theme="dark"] .brand-mark,
[data-theme="dark"] .console-mark,
[data-theme="dark"] .statement-logo {
  filter: brightness(0) invert(1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--primary-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--violet-soft), transparent 420px);
}

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

a:hover {
  color: var(--primary-action);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--primary-text);
  color: var(--surface);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px);
}

.nav-shell {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  min-height: var(--header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  width: min(340px, 36vw);
  height: auto;
  max-height: 68px;
  object-fit: contain;
}

.mono {
  color: var(--commercial-value);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

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

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted-text);
  font-size: 0.92rem;
  font-weight: 680;
}

.nav-links a:hover {
  background: var(--violet-soft);
  color: var(--primary-text);
}

.theme-toggle,
.nav-toggle {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary-text);
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  position: relative;
  background: currentColor;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.theme-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.theme-icon span {
  width: 8px;
  height: 16px;
  display: block;
  border-radius: 8px 0 0 8px;
  background: currentColor;
  justify-self: start;
}

[data-theme="dark"] .theme-icon span {
  justify-self: end;
  border-radius: 0 8px 8px 0;
}

main {
  overflow: hidden;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 54px;
  align-items: center;
  padding: 72px 0 54px;
}

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

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--commercial-value);
  font-size: 0.8rem;
  font-weight: 800;
}

.section-kicker {
  margin: 18px 0 10px;
}

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

h1 {
  margin-bottom: 18px;
  color: var(--primary-text);
  font-size: 4.4rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--primary-text);
  font-size: 2.15rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--primary-text);
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  color: var(--muted-text);
}

.lead {
  color: var(--primary-text);
  font-size: 1.22rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-action);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--primary-action);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 820;
  text-align: center;
}

.button:hover {
  color: #ffffff;
  filter: brightness(1.05);
}

.button.secondary {
  background: var(--surface);
  color: var(--primary-action);
}

.button.secondary:hover {
  color: var(--primary-action);
}

.hero-media {
  min-width: 0;
}

.signal-console,
.bid-console {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, var(--violet-soft));
  box-shadow: var(--shadow);
  padding: 22px;
}

.console-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.console-mark {
  width: min(220px, 46vw);
  height: auto;
  max-height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
}

.console-top strong {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
}

.console-label {
  display: block;
  color: var(--muted-text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

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

.signal-node {
  min-height: 82px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  background: var(--surface);
}

.signal-node span {
  color: var(--muted-text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.75rem;
}

.signal-node strong {
  color: var(--primary-text);
  font-size: 0.9rem;
}

.signal-node.active {
  border-color: color-mix(in srgb, var(--commercial-value) 46%, var(--border));
  background: var(--magenta-soft);
}

.console-table {
  display: grid;
  gap: 8px;
}

.console-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 10px;
  background: var(--surface);
}

.row-title {
  overflow: hidden;
  color: var(--primary-text);
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score {
  color: var(--commercial-value);
  font-weight: 860;
  text-align: right;
}

.pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 830;
  white-space: nowrap;
}

.pill.risk {
  border-color: color-mix(in srgb, var(--urgent-risk) 40%, var(--border));
  background: var(--magenta-soft);
  color: var(--urgent-risk);
}

.pill.qualified {
  border-color: color-mix(in srgb, var(--qualified) 42%, var(--border));
  background: color-mix(in srgb, var(--qualified) 13%, transparent);
  color: var(--qualified);
}

.pill.watch {
  border-color: color-mix(in srgb, var(--watchlist) 42%, var(--border));
  background: var(--watchlist-soft);
  color: var(--watchlist);
}

.pill.neutral {
  border-color: color-mix(in srgb, var(--park-neutral) 36%, var(--border));
  background: color-mix(in srgb, var(--park-neutral) 12%, transparent);
  color: var(--park-neutral);
}

.section {
  padding: 58px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 24px;
}

.section-head p {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 1px 2px rgba(33, 21, 40, 0.04);
}

.panel p {
  margin-bottom: 0;
}

.number {
  display: block;
  margin-bottom: 18px;
  color: var(--commercial-value);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.statement {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--commercial-value) 28%, var(--border));
  border-radius: 8px;
  background: var(--magenta-soft);
  padding: 30px;
}

.statement-logo {
  width: min(320px, 100%);
  height: auto;
  justify-self: center;
  object-fit: contain;
}

.statement p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--primary-text);
  font-size: 1.75rem;
  line-height: 1.28;
  font-weight: 830;
}

.stack-card {
  min-height: 236px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stack-card.accent {
  border-color: color-mix(in srgb, var(--commercial-value) 34%, var(--border));
  background: var(--magenta-soft);
}

.control-surface,
.boundary-grid,
.capture,
.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 34px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow);
}

.product-showcase {
  grid-template-columns: minmax(280px, 0.65fr) minmax(460px, 1.35fr);
  overflow: hidden;
}

.product-showcase h2 {
  max-width: 560px;
}

.product-frame {
  margin: 0;
}

.product-frame img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(33, 21, 40, 0.12);
}

.product-frame figcaption {
  margin-top: 10px;
  color: var(--muted-text);
  font-size: 0.86rem;
}

.metrics {
  display: grid;
  gap: 12px;
}

.metric-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
}

.metric-label {
  color: var(--primary-text);
  font-weight: 760;
}

.metric-row strong {
  color: var(--commercial-value);
  text-align: right;
}

.bar {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--violet-soft);
}

.bar span {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-colour);
}

.status-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.status-card .pill {
  justify-self: start;
}

.boundary-grid {
  align-items: start;
}

.boundary-list {
  display: grid;
  gap: 22px;
}

.boundary-list h3 {
  margin-bottom: 6px;
}

.boundary-list p {
  margin-bottom: 0;
}

.section.tight {
  padding-bottom: 76px;
}

.capture {
  background:
    linear-gradient(90deg, var(--violet-soft), transparent 62%),
    var(--surface);
}

.form {
  display: grid;
  gap: 10px;
}

.form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary-text);
  font: inherit;
  padding: 10px 12px;
}

.form-note {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.approval-list {
  display: grid;
  gap: 10px;
}

.approval-list span {
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary-text);
  font-size: 0.94rem;
  font-weight: 820;
  padding: 10px 12px;
}

.visually-hidden {
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.footer-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-shell p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--primary-action);
  font-weight: 760;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .section-head,
  .control-surface,
  .boundary-grid,
  .capture,
  .product-showcase {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    padding-top: 48px;
  }

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

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    width: min(var(--max), calc(100% - 28px));
  }

  .brand-mark {
    width: min(240px, 52vw);
    height: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 8px;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    width: 100%;
  }

  .section,
  .hero,
  .footer-shell {
    width: calc(100% - 28px);
  }

  .hero {
    gap: 22px;
    padding-top: 30px;
    padding-bottom: 26px;
  }

  .grid.four,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .signal-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0 0;
  }

  .signal-console,
  .bid-console {
    padding: 14px;
  }

  .console-top {
    padding-bottom: 12px;
  }

  .console-mark {
    width: min(150px, 48vw);
    height: auto;
  }

  .console-top .status,
  .console-table {
    display: none;
  }

  .signal-node {
    min-height: 58px;
    padding: 8px 6px;
  }

  .signal-node span {
    font-size: 0.67rem;
  }

  .signal-node strong {
    font-size: 0.72rem;
  }

  .statement {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .statement-logo {
    width: min(260px, 72vw);
    height: auto;
  }

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

  .hero-actions .button {
    width: auto;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
  }

  .metric-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .metric-row strong {
    text-align: left;
  }

  .footer-shell {
    min-height: 130px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .statement p {
    font-size: 1.32rem;
  }
}

@media (max-width: 460px) {
  .brand-mark {
    width: min(210px, 58vw);
  }

  .footer-links {
    display: grid;
  }

  .capture .button {
    width: 100%;
  }

  .signal-console,
  .bid-console,
  .control-surface,
  .boundary-grid,
  .capture,
  .product-showcase,
  .statement {
    padding: 18px;
  }

  .console-row {
    grid-template-columns: 1fr;
  }

  .score {
    text-align: left;
  }
}

/* Signal Surface style-guide alignment - 2026-05-27 */
:root {
  color-scheme: dark;
  --font-sans: "Geist", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --bg: #020202;
  --bg-soft: #0a0908;
  --surface: #101010;
  --surface-raised: #1f1d1c;
  --text: #eeeeee;
  --text-soft: #ccc9c7;
  --muted: #8a8380;
  --muted-2: #5c5855;
  --border: #3d3a39;
  --border-soft: rgba(255, 255, 255, 0.10);
  --fade-grey: rgba(238, 238, 238, 0.13);
  --accent: #a500a5;
  --accent-strong: #c000c0;
  --accent-deep: #780078;
  --signal: #75d0a8;
  --warning: #d6a84f;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --header-h: 72px;
  --gutter: 36px;
  --max-surface: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #eeeeee;
  --bg-soft: #fafafa;
  --surface: #fafafa;
  --surface-raised: #ffffff;
  --text: #020202;
  --text-soft: #3d3a39;
  --muted: #5c5855;
  --muted-2: #8a8380;
  --border: #cfccc8;
  --border-soft: rgba(2, 2, 2, 0.12);
  --fade-grey: rgba(2, 2, 2, 0.07);
  --accent: #a500a5;
  --accent-strong: #c000c0;
  --accent-deep: #780078;
  --signal: #2f8d6a;
  --warning: #8a5a00;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

body {
  background:
    radial-gradient(ellipse at 50% 62%, var(--fade-grey), transparent 44rem),
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 32rem),
    linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 86%, var(--surface-raised)) 54%, var(--bg) 100%),
    var(--bg);
  background-size: auto;
  color: var(--text);
  font-family: var(--font-sans);
}

body::before {
  content: none;
}

[data-theme="dark"] .brand-mark,
[data-theme="dark"] .console-mark,
[data-theme="dark"] .statement-logo {
  filter: brightness(0) invert(1);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  min-height: var(--header-h);
  height: var(--header-h);
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -24px 0 0;
  height: 160px;
  pointer-events: none;
  backdrop-filter: blur(64px) saturate(1.5);
  mask-image: linear-gradient(to bottom, #000 0%, #000 34%, rgba(0, 0, 0, .72) 58%, transparent 100%);
}

.nav-shell {
  width: auto;
  max-width: 1920px;
  min-height: var(--header-h);
  margin-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: min(286px, 34vw);
  max-height: 52px;
}

.nav-links {
  gap: 18px;
}

.nav-links a {
  min-height: 32px;
  border-radius: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  opacity: .82;
}

.nav-links a:hover {
  background: transparent;
  color: var(--accent);
  opacity: 1;
}

.theme-toggle,
.nav-toggle {
  width: 32px;
  height: 32px;
  border-color: var(--border-soft);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--surface-raised) 80%, transparent);
  color: var(--text);
}

.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.theme-icon {
  width: 16px;
  height: 16px;
  border-width: 1.75px;
}

.theme-icon span {
  width: 6px;
  height: 12px;
}

.hero,
.section,
.footer-shell {
  width: min(var(--max-surface), calc(100% - 40px));
}

.hero {
  min-height: 100svh;
  width: auto;
  max-width: 1920px;
  margin-inline: auto;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1fr);
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
  padding: calc(var(--header-h) + 72px) calc(var(--gutter) * 2) 96px;
}

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

h1 {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--text);
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
}

h2 {
  color: var(--text);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.06;
}

h3 {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

p {
  color: var(--text-soft);
}

.lead {
  max-width: 72ch;
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
}

.mono,
.section-kicker,
.number,
.console-label,
.metric-label,
.pill,
.status,
.footer-shell,
.button,
.command-pill,
.assurance-rail,
.console-row,
.console-item,
.console-log,
.approval-list {
  font-family: var(--font-mono);
}

.section-kicker,
.number {
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.command-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  color: var(--muted);
  padding: 0 14px;
  font-size: 12px;
  line-height: 1;
}

.hero-actions {
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  padding: 0 16px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.button:hover {
  color: var(--bg);
  background: color-mix(in srgb, var(--text) 90%, var(--accent));
  filter: none;
}

.button.secondary {
  border-color: var(--border-soft);
  background: color-mix(in srgb, var(--surface-raised) 82%, transparent);
  color: var(--text-soft);
}

.button.secondary:hover {
  border-color: var(--border);
  color: var(--text);
}

.assurance-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
  border: 1px solid var(--border-soft);
  border-left: 2px solid var(--accent);
}

.assurance-rail div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--border-soft);
}

.assurance-rail div:last-child {
  border-right: 0;
}

.assurance-rail span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.assurance-rail strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.icon-symbols {
  display: none;
}

.icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-small {
  width: 16px;
  height: 16px;
}

.panel-icon {
  display: block;
  margin-bottom: 18px;
}

.icon-signal {
  color: var(--signal);
}

.icon-warning {
  color: var(--warning);
}

.signal-console,
.bid-console {
  border: 1px solid var(--border-soft);
  border-radius: 0;
  background: color-mix(in srgb, #050505 88%, transparent);
  box-shadow: none;
  color: var(--muted);
  padding: 16px;
}

[data-theme="light"] .signal-console,
[data-theme="light"] .bid-console {
  background: var(--surface);
}

.console-top {
  align-items: center;
  border-bottom-color: var(--border-soft);
}

.console-top strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}

.console-label {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.status {
  min-height: 24px;
  border-color: var(--border-soft);
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
}

.console-progress {
  height: 10px;
  margin: 14px 0;
  background: color-mix(in srgb, var(--muted) 30%, transparent);
}

.console-progress span {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.console-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(220px, .8fr);
  gap: 12px;
  margin-bottom: 12px;
}

.console-pane,
.console-log {
  border: 1px solid var(--border-soft);
}

.console-item {
  display: grid;
  grid-template-columns: 28px 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 12px;
}

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

.console-item .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.console-item.active {
  background: var(--text);
  color: var(--bg);
}

.console-item.active .icon,
.console-item.active strong {
  color: var(--bg);
}

.console-item strong {
  color: var(--text-soft);
  font-weight: 500;
}

.console-log {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px;
}

.console-log p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.console-log span {
  display: inline-block;
  min-width: 46px;
  color: var(--accent);
  text-transform: uppercase;
}

.signal-flow {
  display: none;
}

.console-row {
  min-height: 44px;
  border-color: var(--border-soft);
  border-radius: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
}

.row-title {
  color: var(--text-soft);
  font-weight: 500;
}

.score {
  color: var(--accent);
}

.pill {
  min-height: 22px;
  border-radius: var(--radius-xs);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.pill.qualified {
  color: var(--signal);
}

.pill.watch {
  color: var(--accent);
}

.pill.risk,
.pill.neutral {
  color: var(--warning);
}

.section {
  padding: 104px 0;
}

.section-head {
  align-items: end;
  margin-bottom: 32px;
}

.grid {
  gap: 12px;
}

.panel,
.control-surface,
.boundary-grid,
.capture,
.product-showcase,
.statement {
  border-color: var(--border-soft);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: none;
}

.panel {
  padding: 18px;
}

.panel p,
.boundary-list p {
  color: var(--text-soft);
  font-size: 14px;
}

.stack-card.accent,
.statement {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border-soft));
  background: color-mix(in srgb, var(--surface) 82%, var(--accent) 5%);
}

.statement p {
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
}

.control-surface,
.boundary-grid,
.capture,
.product-showcase {
  padding: 24px;
}

.loop-surface {
  grid-template-columns: minmax(280px, .58fr) minmax(640px, 1.42fr);
  align-items: start;
}

.metric-row {
  grid-template-columns: minmax(160px, .72fr) minmax(0, 1fr) 58px;
}

.metric-label,
.metric-row strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.bar {
  height: 10px;
  border-color: var(--border-soft);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--muted) 28%, transparent);
}

.bar span {
  background: var(--bar-colour, var(--accent));
}

.product-frame img {
  border-color: var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: none;
}

.product-frame figcaption {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.approval-list span {
  min-height: 44px;
  border-color: var(--border-soft);
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: transparent;
}

.footer-shell {
  min-height: 72px;
  font-size: 11px;
  color: var(--muted);
}

.footer-shell p {
  color: var(--muted);
}

.footer-links {
  gap: 16px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 500;
}

.js [data-reveal],
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 980px) {
  .hero {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    padding: calc(var(--header-h) + 40px) 0 80px;
  }

  .console-layout {
    grid-template-columns: 1fr;
  }

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

  .assurance-rail div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
    --gutter: 16px;
  }

  .nav-shell {
    width: auto;
    margin-inline: var(--gutter);
  }

  .brand-mark {
    width: 150px;
  }

  .nav-links {
    top: calc(100% + 4px);
    border-radius: var(--radius-sm);
    border-color: var(--border-soft);
    background: var(--surface);
  }

  .nav-links a {
    min-height: 40px;
  }

  .hero {
    width: calc(100% - 32px);
    gap: 28px;
    align-items: start;
    padding-top: calc(var(--header-h) + 25px);
    padding-bottom: 64px;
  }

  .hero-copy {
    text-align: left;
  }

  h1 {
    font-size: clamp(36px, 12vw, 44px);
  }

  h2 {
    font-size: clamp(28px, 9vw, 34px);
  }

  .lead {
    font-size: 15px;
  }

  .command-pill {
    width: 100%;
    white-space: normal;
    line-height: 1.35;
    padding-block: 10px;
  }

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

  .hero-actions .button {
    min-height: 36px;
  }

  .assurance-rail {
    grid-template-columns: 1fr;
  }

  .assurance-rail div {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .assurance-rail div:last-child {
    border-bottom: 0;
  }

  .section {
    width: calc(100% - 32px);
    padding: 88px 0;
  }

  .signal-console,
  .bid-console,
  .control-surface,
  .boundary-grid,
  .capture,
  .product-showcase,
  .statement {
    padding: 16px;
  }

  .console-top {
    align-items: flex-start;
  }

  .console-table {
    display: grid;
  }

  .console-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .console-row .score {
    grid-column: 1 / -1;
    text-align: left;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }
}

/* Header template correction: Signal Surface light/dark header behaviour. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -24px 0 0;
  height: 160px;
  pointer-events: none;
  backdrop-filter: blur(64px) saturate(1.5);
  mask-image: linear-gradient(to bottom, #000 0%, #000 34%, rgba(0, 0, 0, .72) 58%, transparent 100%);
}

.nav-shell {
  width: 100%;
  max-width: 1920px;
  min-height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  flex: 0 0 auto;
}

.brand-mark {
  width: min(286px, 34vw);
  max-height: 52px;
  object-fit: contain;
}

.nav-links {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  min-height: 32px;
  padding: 0;
  color: var(--text);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  opacity: .84;
}

.nav-links a:hover {
  color: var(--accent);
  background: transparent;
  opacity: 1;
}

.nav-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}

.theme-toggle,
.nav-toggle {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--surface-raised) 80%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}

.theme-toggle:hover,
.nav-toggle:hover {
  border-color: var(--border);
  background: var(--surface-raised);
  color: var(--accent);
}

.nav-toggle {
  display: none;
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle-sun {
  display: block;
}

[data-theme="dark"] .brand-mark {
  filter: brightness(0) invert(1);
}

[data-theme="light"] .brand-mark {
  filter: none;
}

@media (max-width: 760px) {
  .site-header {
    padding-inline: var(--gutter);
  }

  .nav-shell {
    width: 100%;
    margin-inline: auto;
    gap: 10px;
  }

  .brand-mark {
    width: 150px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 4px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: none;
    padding: 8px;
  }

  .nav-links.is-open {
    display: grid;
  }
}

/* Practical pass: tighter project-home layout, default-light readability, reusable status table. */
.hero {
  min-height: auto;
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
  padding: calc(var(--header-h) + 24px) calc(var(--gutter) * 2) 48px;
}

.hero-media {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.project-status-table {
  justify-self: end;
  width: min(420px, 100%);
  border-collapse: collapse;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

.project-status-table th,
.project-status-table td {
  border-bottom: 1px solid var(--border-soft);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.project-status-table tr:last-child th,
.project-status-table tr:last-child td {
  border-bottom: 0;
}

.project-status-table th {
  width: 108px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
}

.project-status-table td {
  color: var(--text);
}

.project-decision-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-family: var(--font-mono);
}

.decision-card {
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: 14px;
}

.decision-card .icon {
  width: 24px;
  height: 24px;
}

.project-decision-panel span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.project-decision-panel strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.loop-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  counter-reset: loop;
}

.loop-card,
.loop-summary {
  min-width: 0;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: 14px;
}

.loop-card.accent {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border-soft));
  background: color-mix(in srgb, var(--surface) 84%, var(--accent) 5%);
}

.loop-number {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.loop-card h3 {
  margin-bottom: 8px;
}

.loop-card p,
.loop-summary p {
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 13px;
}

.loop-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
}

.loop-path li {
  position: relative;
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--border-soft);
  padding: 8px 7px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text);
  text-transform: uppercase;
}

.loop-path li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.loop-path span {
  font-size: 10px;
}

.loop-path small {
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.2;
  text-transform: none;
}

.loop-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-left: 2px solid var(--accent);
  position: relative;
  padding-left: 18px;
}

.loop-summary::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -13px;
  width: calc(100% - 10px);
  height: 12px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  pointer-events: none;
}

.loop-summary strong {
  color: var(--text);
  font-size: 15px;
}

.loop-summary p {
  margin: 0;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 1px;
}

.status-dot-active {
  background: var(--accent);
}

.section {
  padding: 52px 0;
}

.hero + .section {
  padding-top: 32px;
}

.evidence-surface {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(520px, 1.28fr);
  gap: 28px;
  align-items: start;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  padding: 24px;
}

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

.evidence-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
}

.evidence-table th,
.evidence-table td {
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.evidence-table th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.evidence-table td {
  color: var(--text-soft);
}

.evidence-table td:first-child {
  color: var(--text);
  font-weight: 600;
}

.site-footer {
  width: 100%;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.footer-shell {
  width: auto;
  max-width: 1920px;
  margin-inline: var(--gutter);
  justify-content: space-between;
  text-align: left;
}

.footer-shell p {
  text-align: left;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 24px) 0 56px;
  }

  .loop-surface {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 48px;
  }

  .project-status-table {
    justify-self: stretch;
    width: 100%;
  }

  .project-decision-panel {
    grid-template-columns: 1fr;
  }

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

  .loop-map,
  .loop-summary {
    grid-template-columns: 1fr;
  }

  .loop-path {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .loop-path li:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -7px;
    transform: translateX(50%) rotate(135deg);
  }

  .loop-summary::before {
    display: none;
  }

  .section {
    padding: 44px 0;
  }

  .evidence-surface {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .footer-shell {
    min-height: 96px;
    margin-inline: var(--gutter);
    align-items: flex-start;
  }
}
