
:root {
  --black: #08090C;
  --navy: #1A1B1C;
  --rl: #B8CCDB;
  --rl-pale: #E8EFF5;
  --rl-wash: #F3F6F9;
  --rl-ink: #3E6E87;
  --rl-dim: #8AAABF;
  --white: #FFFFFF;
  --grey-1: #DDE1E6;
  --grey-2: #8D96A0;
  --grey-3: #5A6472;
  --grey-4: #2E3744;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--sans); font-size: 12.5px; line-height: 1.55;
  font-variant-numeric: tabular-nums;
  color: var(--black); background: var(--rl-wash);
  -webkit-font-smoothing: antialiased; overflow: hidden; height: 100vh;
}

.shell {
  display: grid;
  grid-template-rows: 72px 1fr 52px;
  grid-template-columns: 232px 1fr;
  height: 100vh;
}

/* ═══ TOP BAR ═══ */
.topbar {
  grid-column: 1 / -1; background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; border-bottom: 1px solid rgba(184,204,219,0.1);
}
.topbar-brand {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  color: var(--white); text-decoration: none; letter-spacing: 0.02em;
}
.topbar-brand-tag {
  font-family: var(--sans); font-size: 9px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rl); margin-left: 12px; position: relative; top: -1px;
}
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-right a {
  font-size: 11px; font-weight: 500; color: var(--rl);
  text-decoration: none; transition: color 120ms; letter-spacing: 0.02em;
}
.topbar-right a:hover { color: var(--white); }
.topbar-cta {
  font-size: 10px !important; font-weight: 600 !important;
  color: var(--navy) !important; background: var(--rl);
  padding: 7px 20px; border-radius: 3px; letter-spacing: 0.06em;
  text-transform: uppercase; transition: background 120ms;
}
.topbar-cta:hover { background: var(--white) !important; }

/* ═══ PERSISTENT FOOTER ═══ */
.site-footer {
  grid-column: 1 / -1; background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; font-family: var(--sans); font-size: 10px;
  color: var(--rl); letter-spacing: 0.02em;
  border-top: 1px solid rgba(184,204,219,0.1);
}
.site-footer a {
  color: var(--rl); text-decoration: none; transition: color 120ms;
}
.site-footer a:hover { color: var(--white); }
.site-footer-links { display: flex; gap: 20px; }

/* ═══ SIDEBAR ═══ */
.sidebar {
  background: var(--white); border-right: 1px solid var(--grey-1);
  padding: 20px 0; overflow-y: auto; display: flex; flex-direction: column;
}
.sb-section { padding: 0 14px; margin-bottom: 20px; }
.sb-label {
  font-family: var(--sans); font-size: 9px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey-2); margin-bottom: 8px; padding: 0 8px;
}
.sb-link {
  display: block; padding: 4px 8px; border-radius: 3px;
  font-size: 11.5px; font-weight: 500; color: var(--grey-4);
  text-decoration: none; cursor: pointer; transition: all 100ms;
}
.sb-link:hover { background: var(--rl-wash); color: var(--black); }
.sb-link.active { background: var(--rl-pale); color: var(--black); font-weight: 600; }
.sb-sub {
  font-size: 10.5px; color: var(--grey-3); padding: 3px 8px 3px 20px;
  display: block; text-decoration: none; border-radius: 3px;
  cursor: pointer; transition: all 100ms; line-height: 1.5;
}
.sb-sub:hover { background: var(--rl-wash); color: var(--black); }
.sb-sub.active { background: var(--rl-pale); color: var(--black); font-weight: 600; }
.sb-spacer { flex: 1; }
.sb-footer {
  padding: 14px 22px; border-top: 1px solid var(--grey-1);
  font-size: 10px; color: var(--grey-2); line-height: 1.5;
}
.sb-footer-brand {
  font-family: var(--serif); font-size: 11px; font-weight: 700;
  color: var(--grey-4); margin-bottom: 2px; display: block;
}

/* ═══ MAIN ═══ */
.main { overflow-y: auto; padding: 48px 42px 56px; position: relative; }
.main-inner { max-width: 860px; }
.anchor { scroll-margin-top: 12px; }
.section-rule { border: none; border-top: 1px solid var(--grey-1); margin: 32px 0; }


/* ─── Headings ─── */
.page-title {
  font-family: var(--serif); font-size: 28px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.01em; color: var(--black);
  margin-bottom: 10px; max-width: 600px;
}
.page-sub {
  font-size: 12.5px; color: var(--grey-3); max-width: 540px;
  margin-bottom: 24px; line-height: 1.65;
}

.s-label {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rl-ink); margin-bottom: 5px;
}
.s-title {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  line-height: 1.2; margin-bottom: 8px; color: var(--black);
}
.s-desc {
  font-size: 12.5px; color: var(--grey-3); max-width: 520px;
  margin-bottom: 18px; line-height: 1.6;
}

/* ─── Info strip (white/bordered) ─── */
.info-strip {
  background: var(--white); border-radius: 2px;
  border: 1px solid var(--grey-1);
  padding: 16px 18px; margin-bottom: 18px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.info-cell {
  padding-right: 14px;
  border-right: 1px solid var(--grey-1);
}
.info-cell:last-child { border-right: none; padding-right: 0; }
.info-cell:not(:first-child) { padding-left: 14px; }
.info-cell dt {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey-2); margin-bottom: 2px;
}
.info-cell dd { font-size: 12px; color: var(--grey-3); line-height: 1.4; }

/* ─── Meta row (no box) ─── */
.meta-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-bottom: 14px;
}
.meta-item {
  padding-right: 16px; font-size: 11.5px; color: var(--grey-3); line-height: 1.45;
}
.meta-item:not(:first-child) { padding-left: 16px; border-left: 1px solid var(--grey-1); }
.meta-label {
  display: block; font-family: var(--mono); font-size: 8.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey-2); margin-bottom: 2px;
}

/* ─── Metrics (navy background) ─── */
.metrics {
  display: flex; border-radius: 2px; overflow: hidden; margin: 16px 0 4px;
  background: var(--navy);
}
.metric {
  flex: 1; padding: 14px 14px; text-align: center;
  border-right: 1px solid rgba(184,204,219,0.1);
}
.metric:last-child { border-right: none; }
.metric-val {
  font-family: var(--mono); font-size: 24px; font-weight: 600;
  color: var(--white); line-height: 1; margin-bottom: 3px;
}
.metric-label {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  color: var(--rl); text-transform: uppercase; letter-spacing: 0.06em;
}

/* ─── Row list ─── */
.row-list { border-top: 1px solid var(--grey-1); }
.row {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--grey-1);
}
.row-idx {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--rl-ink); padding-top: 1px;
}
.row h3 {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  color: var(--black); margin-bottom: 3px; letter-spacing: 0.01em;
}
.row-meta {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--grey-2); margin-bottom: 3px;
}
.row p {
  font-size: 12.5px; color: var(--grey-3); line-height: 1.55;
}
.row-user { grid-template-columns: 36px 1fr 200px; }
.row-pull {
  border-left: 2px solid var(--navy); padding: 0 0 0 14px;
  font-size: 12.5px; font-weight: 600; color: var(--black);
  line-height: 1.4; display: flex; align-items: center;
}

/* ─── Value proposition strip ─── */
.vp-strip {
  background: var(--navy); border-radius: 2px;
  padding: 14px 18px; margin-bottom: 18px;
}
.vp-text {
  font-family: var(--serif); font-size: 12.5px; font-weight: 400;
  color: var(--white); line-height: 1.5; font-style: italic;
}

/* ─── Audience strip ─── */
.audience {
  display: flex; gap: 0; margin-bottom: 18px;
  border-bottom: 1px solid var(--grey-1);
}
.audience-cell {
  flex: 1; padding: 8px 12px 8px 0;
}
.audience-cell:last-child { }
.audience-cell dt {
  font-family: var(--mono); font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--grey-2); margin-bottom: 1px;
}
.audience-cell dd { font-size: 11.5px; color: var(--grey-4); line-height: 1.4; }

/* ─── Capability table ─── */
.cap-table { width: 100%; border-collapse: collapse; }
.cap-table thead th {
  font-family: var(--mono); font-size: 8.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-2);
  text-align: left; padding: 5px 8px; border-bottom: 2px solid var(--navy);
}
.cap-table tbody td {
  padding: 7px 8px; border-bottom: 1px solid var(--grey-1);
  font-size: 11.5px; vertical-align: top; line-height: 1.45;
}
.cap-table tbody tr:hover { background: var(--rl-wash); }
.cap-name { font-weight: 700; color: var(--black); width: 160px; font-size: 11.5px; }
.cap-what { color: var(--grey-3); }
.cap-why { color: var(--grey-4); font-weight: 500; font-size: 11px; width: 190px; }

/* ─── Category header row ─── */
.cat-header {
  display: flex; align-items: baseline; gap: 10px;
  padding: 14px 0 6px; margin-top: 8px;
}
.cat-idx {
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  color: var(--rl-ink);
}
.cat-title { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--black); letter-spacing: -0.01em; }
.cat-count { font-family: var(--sans); font-size: 10px; font-weight: 500; color: var(--grey-2); }
.cat-desc {
  font-size: 12px; color: var(--grey-3); margin-bottom: 14px;
  max-width: 600px; line-height: 1.5; padding-left: 38px;
}

/* ─── Deliverables ─── */
.deliv-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; margin-top: 14px;
}
.deliv {
  display: flex; gap: 8px; align-items: baseline;
  padding: 7px 10px; border-bottom: 1px solid var(--grey-1);
}
.deliv-icon {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  color: var(--rl-ink); flex-shrink: 0;
}
.deliv-text { font-size: 11.5px; color: var(--grey-3); line-height: 1.4; }
.deliv-text strong { color: var(--black); font-weight: 600; }

/* ─── Process strip ─── */
.process-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 14px;
}
.process-step {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--grey-1);
}
.process-num {
  font-family: var(--mono); font-size: 16px; font-weight: 600;
  color: var(--rl-dim); margin-bottom: 6px;
}
.process-step h4 {
  font-size: 12px; font-weight: 700; color: var(--black);
  margin-bottom: 3px;
}
.process-step p { font-size: 11px; color: var(--grey-3); line-height: 1.45; }

/* ─── Workflow pipeline ─── */
.wf-pipeline {
  margin-top: 14px;
  border: 1px solid var(--grey-1); border-radius: 2px;
  overflow: hidden; background: var(--white);
}
.wf-pipeline-header {
  background: var(--navy); padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.wf-pipeline-header h4 {
  font-size: 11px; font-weight: 700; color: var(--white);
}
.wf-pipeline-header span {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  color: var(--rl);
}
.wf-phases {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 0;
}
.wf-phase {
  padding: 8px 6px;
  border-right: 1px solid var(--grey-1);
  border-bottom: 1px solid var(--grey-1);
  text-align: center; transition: all 120ms;
}
.wf-phase:hover { background: var(--rl-wash); }
.wf-phase-num {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  color: var(--rl-ink); margin-bottom: 2px;
}
.wf-phase-label {
  font-size: 9.5px; font-weight: 600; color: var(--black);
  line-height: 1.25;
}
.wf-phase.gate { background: var(--rl-pale); }
.wf-phase.gate .wf-phase-num { color: var(--navy); }
.wf-legend {
  display: flex; gap: 14px; padding: 6px 14px;
  border-top: 1px solid var(--grey-1);
  font-size: 9px; color: var(--grey-2);
}
.wf-legend-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 1px; margin-right: 4px; vertical-align: middle;
}
.wf-legend-dot.gate-dot { background: var(--rl-pale); border: 1px solid var(--rl); }
.wf-legend-dot.std-dot { background: var(--white); border: 1px solid var(--grey-1); }

.wf-phases-7 { grid-template-columns: repeat(7, 1fr); }

/* ─── CTA bar ─── */
.cta-bar {
  margin-top: 24px; background: var(--navy); border-radius: 2px;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.cta-bar h3 {
  font-family: var(--serif); font-size: 14px; font-weight: 700;
  color: var(--white); line-height: 1.25;
}
.cta-bar p { font-size: 12px; color: var(--rl); margin-top: 3px; }
.btn-rl {
  display: inline-flex; align-items: center; height: 32px; padding: 0 16px;
  background: var(--rl); color: var(--navy); font-size: 11.5px; font-weight: 700;
  border: none; border-radius: 2px; text-decoration: none; cursor: pointer;
  letter-spacing: 0.02em; flex-shrink: 0;
}
.btn-rl:hover { background: var(--rl-dim); }

/* ─── Streaming Demo ─── */
.demo-container {
  border: 1px solid var(--grey-1); border-radius: 2px;
  overflow: hidden; background: var(--white);
}
.demo-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--navy);
}
.demo-deal-name {
  font-family: var(--serif); font-size: 13px; font-weight: 700;
  color: var(--white); margin-right: 12px;
}
.demo-deal-meta {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--rl);
}
.demo-deal-info { display: flex; align-items: baseline; gap: 12px; }
.demo-run-btn {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  color: var(--navy); background: var(--rl);
  padding: 6px 16px; border: none; border-radius: 2px;
  cursor: pointer; letter-spacing: 0.02em; transition: background 120ms;
}
.demo-run-btn:hover { background: var(--rl-dim); }
.demo-run-btn.running {
  background: rgba(184,204,219,0.3); color: var(--rl-dim);
  cursor: default;
}
.demo-progress {
  height: 3px; background: var(--grey-1);
}
.demo-progress-bar {
  height: 100%; width: 0%; background: var(--rl-ink);
  transition: width 300ms linear;
}
.demo-terminal {
  background: var(--navy); padding: 16px 18px;
  min-height: 360px; max-height: 420px; overflow-y: auto;
  font-family: var(--mono); font-size: 11px; line-height: 1.6;
}
.demo-placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.demo-placeholder-text {
  color: var(--rl); font-family: var(--sans); font-size: 12px;
  text-align: center; max-width: 400px; line-height: 1.6;
}
.demo-placeholder-text strong { color: var(--white); }
.demo-status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px; background: #0D1628;
  border-top: 1px solid rgba(184,204,219,0.08);
}
.demo-status-phase {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--rl); letter-spacing: 0.04em;
}
.demo-status-time {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--rl);
}
.demo-line {
  margin-bottom: 1px; white-space: nowrap; overflow: hidden;
}
.demo-phase-header {
  color: var(--white); font-weight: 600; font-size: 11px;
  margin-top: 10px; margin-bottom: 4px; letter-spacing: 0.04em;
}
.demo-phase-header:first-child { margin-top: 0; }
.demo-data { color: var(--rl); font-size: 10.5px; }
.demo-data .demo-label { color: var(--rl); }
.demo-data .demo-val { font-weight: 600; }
.demo-data .demo-val.pass { color: #34D399; }
.demo-data .demo-val.fail { color: #F87171; }
.demo-data .demo-val.neutral { color: var(--white); }
.demo-gate {
  color: var(--white); font-weight: 600; font-size: 10.5px;
  background: rgba(184,204,219,0.06); padding: 2px 6px;
  border-left: 2px solid var(--rl-ink); margin: 4px 0;
}

.demo-terminal::-webkit-scrollbar { width: 4px; }
.demo-terminal::-webkit-scrollbar-track { background: transparent; }
.demo-terminal::-webkit-scrollbar-thumb { background: rgba(184,204,219,0.15); border-radius: 2px; }

/* ─── Gate description list ─── */
.gate-list { margin-top: 16px; }
.gate-item {
  padding: 10px 0; border-bottom: 1px solid var(--grey-1);
  display: grid; grid-template-columns: 60px 1fr; gap: 10px;
}
.gate-item:first-child { border-top: 1px solid var(--grey-1); }
.gate-phase {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--navy); background: var(--rl-pale); padding: 3px 6px;
  border-radius: 2px; text-align: center; align-self: start;
}
.gate-text { font-size: 12px; color: var(--grey-3); line-height: 1.5; }
.gate-text strong { color: var(--black); font-weight: 600; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--grey-1); border-radius: 2px; }

/* ─── Contact Form ─── */
.contact-form { max-width: 480px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey-2); margin-bottom: 5px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--grey-1);
  border-radius: 2px; font-family: var(--sans); font-size: 12.5px;
  color: var(--black); background: var(--white); transition: border-color 120ms;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--rl-ink);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--grey-2); }
.form-select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238D96A0'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.form-check {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 12px; color: var(--grey-3);
}
.form-check input[type="checkbox"] {
  width: 14px; height: 14px; accent-color: var(--rl-ink); cursor: pointer;
}
.form-submit {
  display: inline-flex; align-items: center; height: 36px; padding: 0 24px;
  background: var(--navy); color: var(--white); font-family: var(--sans);
  font-size: 11.5px; font-weight: 700; border: none; border-radius: 2px;
  cursor: pointer; letter-spacing: 0.02em; transition: background 120ms;
}
.form-submit:hover { background: var(--grey-4); }
.form-submit:disabled { opacity: 0.5; cursor: default; }
.form-success {
  background: var(--navy); border-radius: 2px; padding: 24px;
  text-align: center; display: none;
}
.form-success h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.form-success p { font-size: 12.5px; color: var(--rl); line-height: 1.6; }
.form-error {
  font-size: 11px; color: #D94444; margin-top: 8px; display: none;
}

@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { max-width: 100%; }
}

/* ─── PF Watermark ─── */
.pf-watermark {
  position: fixed; bottom: 60px; right: 80px;
  font-family: var(--serif); font-size: 200px; font-weight: 700;
  color: rgba(136,170,191,0.055); line-height: 1;
  pointer-events: none; z-index: 0; user-select: none;
  letter-spacing: -0.06em;
}
.pf-watermark .wm-f {
  position: relative; top: -0.12em;
}

/* ─── Mobile hamburger ─── */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative; padding: 0;
}
.mobile-toggle span {
  display: block; width: 20px; height: 2px; background: var(--rl);
  position: absolute; left: 8px; transition: all 200ms;
}
.mobile-toggle span:nth-child(1) { top: 11px; }
.mobile-toggle span:nth-child(2) { top: 17px; }
.mobile-toggle span:nth-child(3) { top: 23px; }
.mobile-toggle.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }
.mobile-nav-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 999;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--white); z-index: 1000; overflow-y: auto;
  transform: translateX(100%); transition: transform 250ms ease;
  padding: 20px 0; box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .sb-section { padding: 0 20px; margin-bottom: 20px; }
.mobile-nav .sb-label { font-size: 10px; padding: 0 4px; margin-bottom: 8px; }
.mobile-nav .sb-link {
  font-size: 15px; padding: 10px 4px; border-bottom: 1px solid var(--grey-1);
  border-radius: 0;
}
.mobile-nav .sb-sub {
  font-size: 13px; padding: 8px 4px 8px 16px;
  border-bottom: 1px solid var(--grey-1); border-radius: 0;
}
.mobile-nav-close {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 20px; border-bottom: 1px solid var(--grey-1); margin-bottom: 16px;
}
.mobile-nav-close-brand {
  font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--black);
}
.mobile-nav-close-btn {
  background: none; border: none; font-size: 24px; color: var(--grey-2);
  cursor: pointer; padding: 0; line-height: 1;
}

@media (max-width: 900px) {

  /* ═══ LAYOUT ═══ */
  .shell { grid-template-columns: 1fr; grid-template-rows: 56px 1fr auto; min-height: 100vh; }
  .sidebar { display: none; }
  body { overflow: auto; height: auto; font-size: 14px; line-height: 1.6; }
  .main { overflow: visible; padding: 32px 20px 60px; }
  .main-inner { max-width: 100%; }

  /* ═══ HEADER ═══ */
  .topbar { padding: 0 18px; }
  .topbar-brand { font-size: 15px; }
  .topbar-brand-tag { display: none; }
  .topbar-right a:not(.topbar-cta) { display: none; }
  .topbar-cta { padding: 5px 12px; font-size: 9px !important; }
  .mobile-toggle { display: block; }

  /* ═══ FOOTER — boost contrast on navy bg ═══ */
  .site-footer {
    padding: 12px 18px; flex-wrap: wrap; justify-content: center; gap: 4px;
    color: var(--rl);
  }
  .site-footer > span { width: 100%; text-align: center; font-size: 9px; }
  .site-footer-links { gap: 12px; font-size: 9px; }
  .site-footer a { color: var(--rl); }

  /* ═══ TYPE SCALE ═══
     Page title:    22px serif  — the biggest thing on screen
     Section title: 18px serif  — "Triple-Agent Quality Assurance"
     Category head: 16px serif  — "01 Origination & Deal Execution"
     Sub-item h3:   13.5px sans — "17-Phase Underwriting Workflow"
     Body:          14px sans   — description text
     Rationale:     12px sans   — italic credit rationale
     Labels:        9-10px sans — uppercase labels
  */
  /* L1: Page title — 26px serif */
  .page-title { font-size: 26px; max-width: 100%; margin-bottom: 12px; }
  .page-sub { font-size: 14px; max-width: 100%; margin-bottom: 24px; line-height: 1.6; }

  /* L2: Section title — 22px serif ("Five Autonomous Workflows") */
  .s-label { font-size: 10px; margin-bottom: 5px; }
  .s-title { font-size: 22px; margin-bottom: 10px; }
  .s-desc { font-size: 14px; max-width: 100%; margin-bottom: 20px; line-height: 1.6; }

  /* L3: Category headers — 20px sans bold ("01 Origination & Deal Execution") */
  .cat-header {
    flex-wrap: wrap; gap: 4px 8px;
    padding: 22px 0 8px; margin-top: 0;
    border-top: 2px solid var(--navy);
  }
  .cat-idx { font-size: 16px; }
  .cat-title { font-size: 20px; }
  .cat-count { font-size: 10px; width: 100%; margin-top: 2px; }
  .cat-desc {
    font-size: 14px; padding-left: 0; max-width: 100%;
    margin-bottom: 16px; line-height: 1.55;
  }
  /* Don't double-border when a section-rule already precedes */
  .section-rule + .anchor > .cat-header { border-top: none; padding-top: 4px; }

  /* ═══ AUDIENCE STRIP ═══ */
  .audience { flex-direction: column; margin-bottom: 18px; }
  .audience-cell { padding: 10px 0; border-bottom: 1px solid var(--grey-1); }
  .audience-cell:last-child { border-bottom: none; }
  .audience-cell dt { font-size: 9px; margin-bottom: 2px; }
  .audience-cell dd { font-size: 13px; }

  /* ═══ VALUE PROP STRIP — boost contrast on navy bg ═══ */
  .vp-strip { padding: 14px 16px; margin-bottom: 18px; }
  .vp-text { font-size: 13px; color: var(--rl-pale); }

  /* ═══ METRICS — boost contrast on navy bg ═══ */
  .metrics { flex-wrap: wrap; border-radius: 3px; margin: 20px 0 8px; }
  .metric { min-width: 50%; padding: 14px 10px; }
  .metric-val { font-size: 20px; color: var(--white); }
  .metric-label { font-size: 8px; color: var(--rl); }

  /* ═══ INFO STRIP ═══ */
  .info-strip { grid-template-columns: 1fr 1fr; padding: 10px 12px; }
  .info-cell { padding: 6px 0; }
  .info-cell dt { font-size: 9px; }
  .info-cell dd { font-size: 12px; }

  /* ═══ META ROW ═══ */
  .meta-row { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
  .meta-item { font-size: 12px; padding: 0; }
  .meta-item:not(:first-child) { padding-left: 0; border-left: none; }

  /* ═══ CAPABILITY TABLES — stacked cards ═══ */
  .cap-table { margin-top: 4px; }
  .cap-table, .cap-table thead, .cap-table tbody,
  .cap-table tr, .cap-table th, .cap-table td {
    display: block; width: 100%; padding-left: 0; padding-right: 0;
  }
  .cap-table thead { display: none; }
  .cap-table tbody tr {
    padding: 16px 0; border-bottom: 1px solid var(--grey-1);
  }
  /* L4: Sub-item titles — 15px sans bold */
  .cap-table .cap-name {
    width: 100%; font-size: 15px; font-weight: 700;
    padding: 0 0 5px 0; color: var(--black);
  }
  .cap-table .cap-what {
    font-size: 14px; padding: 0; line-height: 1.55; color: var(--grey-3);
  }
  .cap-table .cap-why {
    width: 100%; font-size: 12px; padding: 8px 0 0 0;
    color: var(--rl-ink); font-style: italic; line-height: 1.5;
  }

  /* ═══ DELIVERABLES GRID ═══ */
  .deliv-grid { grid-template-columns: 1fr; margin-top: 10px; }
  .deliv { padding: 10px 0; }
  .deliv-icon { font-size: 10px; }
  .deliv-text { font-size: 13px; }

  /* ═══ PROCESS STRIP ═══ */
  .process-strip { grid-template-columns: 1fr; margin-top: 10px; }
  .process-step { padding: 14px 0; }
  /* L4: Process titles — 15px */
  .process-step h4 { font-size: 15px; margin-bottom: 4px; }
  .process-step p { font-size: 13px; line-height: 1.55; }
  .process-num { font-size: 12px; margin-bottom: 4px; }

  /* ═══ ROW LIST — subsection items ═══ */
  .row-list { margin-top: 4px; }
  .row { display: block; padding: 16px 0; }
  .row-idx {
    font-size: 9px; display: block; margin-bottom: 4px;
    color: var(--rl-ink); letter-spacing: 0.04em;
  }
  /* L4: Row sub-item titles — 15px sans bold */
  .row h3 { font-size: 15px; margin-bottom: 6px; }
  .row-meta { font-size: 9px; margin-bottom: 4px; }
  .row p { font-size: 13px; line-height: 1.55; color: var(--grey-3); }
  .row-user { display: block; }
  .row-pull {
    border-left: none; border-top: 1px solid var(--grey-1);
    padding: 10px 0 0; margin-top: 10px; font-size: 13px;
  }

  /* ═══ WORKFLOW PIPELINE — boost contrast on navy bg ═══ */
  .wf-pipeline { margin-top: 12px; }
  .wf-phases { grid-template-columns: repeat(3, 1fr) !important; }
  .wf-phases-7 { grid-template-columns: repeat(3, 1fr) !important; }
  .wf-phase { padding: 8px 4px; }
  .wf-phase-num { font-size: 8px; color: var(--rl); }
  .wf-phase-label { font-size: 8.5px; }
  .wf-legend { flex-wrap: wrap; font-size: 8px; }
  .wf-pipeline-header span { color: var(--rl); }

  /* ═══ CTA BAR — boost contrast on navy bg ═══ */
  .cta-bar { flex-direction: column; gap: 12px; text-align: center; padding: 20px 16px; }
  .cta-bar h3 { font-size: 15px; color: var(--white); }
  .cta-bar p { font-size: 12px; color: var(--rl); }
  .btn-rl { height: 40px; padding: 0 24px; font-size: 12px; }

  /* ═══ STREAMING DEMO — boost contrast on navy bg ═══ */
  .demo-header { flex-wrap: wrap; gap: 6px; padding: 10px 14px; }
  .demo-deal-name { font-size: 12px; color: var(--white); }
  .demo-deal-meta { font-size: 9px; color: var(--rl); }
  .demo-terminal { min-height: 240px; max-height: 320px; padding: 12px 14px; font-size: 10px; }
  .demo-line { white-space: pre-wrap; word-break: break-word; }
  .demo-data { color: var(--rl); }
  .demo-data .demo-label { color: var(--rl-pale); }
  .demo-status-phase, .demo-status-time { color: var(--rl); }
  .demo-placeholder-text { color: var(--rl); }

  /* ═══ GATE LIST ═══ */
  .gate-item { grid-template-columns: 48px 1fr; gap: 8px; padding: 10px 0; }
  .gate-phase { font-size: 9px; padding: 3px 4px; }
  .gate-text { font-size: 13px; line-height: 1.5; }

  /* ═══ SECTION SPACING ═══ */
  .section-rule { margin: 36px 0; }

  /* ═══ WATERMARK ═══ */
  .pf-watermark { font-size: 100px; bottom: 50px; right: 16px; }
}

@media (max-width: 480px) {
  .main { padding: 28px 16px 52px; }
  .page-title { font-size: 24px; }
  .s-title { font-size: 20px; }
  .cat-title { font-size: 18px; }
  .cat-idx { font-size: 14px; }
  .info-strip { grid-template-columns: 1fr; }
  .metrics { border-radius: 3px; }
  .metric { min-width: 50%; padding: 10px 6px; }
  .metric-val { font-size: 18px; }
  .wf-phases { grid-template-columns: repeat(2, 1fr) !important; }
  .wf-phases-7 { grid-template-columns: repeat(2, 1fr) !important; }
  .meta-row { grid-template-columns: 1fr; }
  .pf-watermark { display: none; }
}

  