/* =========================================================
   CrossDock Exchange — landing page
   Institutional logistics palette: deep ink, teal accent,
   warm off-white surfaces, restrained copper for data only.
   ========================================================= */

:root,
[data-theme='light'] {
  color-scheme: light;
  /* surfaces */
  --bg: #f4f1ec; /* warm off-white */
  --surface: #fbfaf6;
  --surface-2: #efebe3;
  --border: #d9d3c6;
  --border-strong: #b8b0a0;
  --grid: #e3ddd0;

  /* text */
  --ink: #0b1d2a; /* deep navy ink */
  --ink-2: #2a3a47;
  --muted: #5a6571;
  --faint: #93989e;

  /* accents */
  --accent: #0e6b6f; /* teal */
  --accent-hover: #0a5256;
  --accent-soft: #6fa5a8;
  --accent-tint: #d8e7e7;

  --copper: #a66a2e; /* small data highlights only */
  --copper-tint: #f1e3d2;

  --score-good: #0e6b6f;
  --score-mid: #a66a2e;
  --score-low: #8a4a4a;

  /* type scale */
  --font-display: 'Switzer', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Switzer', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 30px;
  --text-3xl: 44px;
  --text-hero: clamp(40px, 6vw, 76px);

  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 1200px;

  --shadow-sm: 0 1px 0 rgba(11, 29, 42, 0.04);
  --shadow-md: 0 12px 32px -16px rgba(11, 29, 42, 0.18);
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0c1116;
  --surface: #131a20;
  --surface-2: #1a232a;
  --border: #283742;
  --border-strong: #3a4d5b;
  --grid: #1f2a33;

  --ink: #ecebe4;
  --ink-2: #c8cbcf;
  --muted: #8e98a3;
  --faint: #5b6772;

  --accent: #4fb1b4;
  --accent-hover: #6fc4c7;
  --accent-soft: #2f8a8d;
  --accent-tint: #15323a;

  --copper: #d8a06a;
  --copper-tint: #2a1f12;

  --score-good: #4fb1b4;
  --score-mid: #d8a06a;
  --score-low: #c08383;

  --shadow-md: 0 12px 32px -16px rgba(0, 0, 0, 0.6);
}

/* =================== Base =================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 10px 14px; border-radius: var(--radius);
  font-size: var(--text-sm); z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =================== Header =================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 68px;
}

.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand-logo { width: 166px; height: auto; display: block; flex: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-word {
  display: inline-flex; align-items: baseline; gap: 8px; line-height: 1;
  font-family: var(--font-display);
}
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.brand-suffix {
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}

.primary-nav {
  display: flex; gap: 28px;
  font-size: var(--text-sm); color: var(--ink-2);
}
.primary-nav a { padding: 6px 0; position: relative; transition: color .15s; }
.primary-nav a:hover { color: var(--accent); }
.primary-nav a:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px; color: var(--ink-2);
  transition: border-color .15s, color .15s;
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-moon { display: block; }

@media (max-width: 880px) {
  .primary-nav { display: none; }
  .header-cta { display: none; }
}

/* =================== Buttons =================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  font-size: var(--text-sm); font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-large { padding: 14px 22px; font-size: var(--text-base); }
.btn-arrow { width: 14px; height: 14px; transition: transform .15s; }
.btn:hover .btn-arrow { transform: translateX(2px); }

/* =================== Hero =================== */
.hero { padding: 72px 0 56px; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, var(--bg) 92%),
    repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 40px);
  opacity: .45;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 80%);
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 1.0;
  font-weight: 600;
  letter-spacing: -0.028em;
  margin: 0 0 22px;
  color: var(--ink);
  max-width: 14ch;
  text-wrap: balance;
}
.hero-headline em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 32px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual { margin: 0; }
.visual-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.visual-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--text-xs); color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 10px;
}
.visual-status { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot-live { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

.lane-svg {
  width: 100%; height: auto; aspect-ratio: 480 / 320;
  background: var(--surface-2);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.lane-svg .node-label { font-family: var(--font-mono); font-size: 9px; fill: var(--ink-2); }
.lane-svg .pill-text { font-family: var(--font-mono); font-size: 10px; fill: var(--ink); letter-spacing: 0.06em; }

.visual-rows {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.visual-rows .row,
.visual-rows .row-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.6fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
}
.visual-rows .row-head {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding-bottom: 6px;
  margin-bottom: 4px;
}
.visual-rows .row + .row { border-top: 1px dashed var(--border); }
.visual-rows .row .num { text-align: right; color: var(--accent); font-weight: 500; }
.visual-rows .row-muted { color: var(--muted); }
.visual-rows .row-muted .num { color: var(--copper); }

.visual-caption {
  margin: 12px 4px 0;
  font-size: var(--text-xs);
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 48px 0 40px; }
}

/* =================== Credibility =================== */
.credibility {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 0;
}
.cred-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.cred-grid li {
  padding: 4px 24px;
  border-left: 1px solid var(--border);
}
.cred-grid li:first-child { border-left: 0; padding-left: 0; }
.cred-label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}
.cred-value {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 880px) {
  .cred-grid { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .cred-grid li { border-left: 0; padding: 8px 0; }
  .cred-grid li:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--border); }
}

/* =================== Section base =================== */
.section { padding: 96px 0; border-top: 1px solid var(--border); }
@media (max-width: 880px) { .section { padding: 64px 0; } }

.section-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 22ch;
}
.section-lede {
  font-size: var(--text-lg);
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0;
}
.section-head { margin-bottom: 56px; }

/* =================== Problem =================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.col-intro .section-title { max-width: 18ch; }
.problem-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 32px;
}
.problem-list li { border-top: 1px solid var(--border); padding-top: 18px; }
.problem-list h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.problem-list p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }

@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .problem-list { grid-template-columns: 1fr; gap: 24px; }
}

/* =================== Exchange flow =================== */
.flow {
  list-style: none; margin: 0 0 56px; padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.flow-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex; flex-direction: column;
}
.flow-step:hover { border-color: var(--border-strong); }
.step-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: inline-block;
}
.flow-step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}
.flow-step p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--border-strong);
}
.flow-arrow svg { width: 36px; height: 12px; }

@media (max-width: 1024px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-arrow { display: none; }
}
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; }
}

/* Matrix */
.matrix {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.matrix-head, .matrix-row {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 0.8fr 0.7fr 0.7fr 1.4fr 0.7fr;
  gap: 16px;
  align-items: center;
  padding: 14px 22px;
}
.matrix-head {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.matrix-head .num { text-align: right; }
.matrix-row { border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--ink); }
.matrix-row:first-of-type { border-top: 0; }
.matrix-row .num { font-family: var(--font-mono); text-align: right; }
.matrix-row strong { font-weight: 600; }
.matrix-row-muted { color: var(--muted); }
.matrix-row-winner {
  background: linear-gradient(90deg, var(--accent-tint) 0%, transparent 80%);
}
.tag {
  display: inline-block; margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--accent); color: var(--surface);
}
.score {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--accent);
}
.matrix-row-muted .score { color: var(--score-low); }
.matrix-row:nth-child(3) .score { color: var(--score-good); }
.matrix-row:nth-child(4) .score { color: var(--score-mid); }
.matrix-foot {
  padding: 14px 22px;
  font-size: var(--text-xs);
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  margin: 0;
}

@media (max-width: 880px) {
  .matrix-head { display: none; }
  .matrix-row {
    grid-template-columns: 1fr 1fr;
    padding: 14px 18px;
    row-gap: 6px;
  }
  .matrix-row > span:nth-child(1) { grid-column: 1 / -1; font-size: var(--text-base); }
  .matrix-row .num { text-align: left; }
}

/* =================== Participants =================== */
.participants-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}
.part-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex; flex-direction: column;
  grid-column: span 2;
  transition: border-color .15s, background .15s;
}
.part-card:hover { border-color: var(--border-strong); }
.part-card-large { grid-column: span 4; grid-row: span 2; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.part-card-large h3 { color: var(--bg); }
.part-card-large p { color: color-mix(in srgb, var(--bg) 80%, transparent); }
.part-card-large .part-bullets { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.part-card-large .part-tag { background: transparent; color: var(--accent-soft); border-color: var(--accent-soft); }

.part-card-wide { grid-column: span 4; }

.part-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--muted);
  margin-bottom: 16px;
  align-self: flex-start;
}
.part-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ink);
}
.part-card p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.part-bullets {
  margin: 18px 0 0; padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent);
}
.part-bullets li {
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 20%, transparent);
  position: relative; padding-left: 18px;
}
.part-bullets li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 8px; height: 1px; background: currentColor; opacity: .5;
}

@media (max-width: 980px) {
  .participants-grid { grid-template-columns: 1fr 1fr; }
  .part-card, .part-card-large, .part-card-wide { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 640px) {
  .participants-grid { grid-template-columns: 1fr; }
  .part-card, .part-card-large, .part-card-wide { grid-column: span 1; }
}

/* =================== Scope =================== */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 64px;
}
.scope-card {
  background: var(--surface);
  padding: 26px 24px;
  display: flex; flex-direction: column;
  min-height: 200px;
  transition: background .15s;
}
.scope-card:hover { background: var(--surface-2); }
.scope-card header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.scope-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
  flex: 1;
}
.scope-card p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.phase {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  flex: none;
}
.phase-1 { background: var(--accent-tint); color: var(--accent); }
.phase-2 { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); }
.phase-3 { background: var(--copper-tint); color: var(--copper); }

@media (max-width: 1024px) { .scope-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .scope-grid { grid-template-columns: 1fr; } }

/* Timeline */
.timeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.timeline-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.timeline-track {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  position: relative;
}
.timeline-track::before {
  content: ''; position: absolute;
  top: 6px; left: 4%; right: 4%;
  height: 1px; background: var(--border-strong);
  z-index: 0;
}
.timeline-track li {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  text-align: center;
  z-index: 1;
}
.timeline-track .dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
}
.timeline-track .dot-accent { background: var(--accent); border-color: var(--accent); }
.t-label {
  font-size: var(--text-xs);
  color: var(--ink-2);
  font-weight: 500;
  max-width: 12ch;
  line-height: 1.3;
}
@media (max-width: 880px) {
  .timeline-track { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; }
  .timeline-track::before { display: none; }
  .timeline-track li { flex-direction: row; align-items: center; gap: 10px; text-align: left; }
  .t-label { max-width: none; }
}

/* =================== CTA =================== */
.cta { background: var(--surface); }
.cta-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}
.cta-copy .section-title { max-width: 20ch; }
.cta-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.cta-aside {
  border-left: 1px solid var(--border);
  padding-left: 32px;
}
.aside-head {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.aside-list {
  list-style: none; margin: 0; padding: 0;
}
.aside-list li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--ink);
}
.aside-list li:first-child { border-top: 0; }

@media (max-width: 880px) {
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-aside { border-left: 0; border-top: 1px solid var(--border); padding: 24px 0 0; }
}

/* =================== Footer =================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.footer-brand {
  display: flex; gap: 14px; align-items: flex-start;
  flex-direction: column;
}
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-logo { width: 190px; max-width: 100%; height: auto; }
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}
.footer-tagline {
  display: block;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 4px;
  max-width: 30ch;
}
.footer-note {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 80ch;
}
.footer-meta {
  grid-column: 1 / -1;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--muted);
}
.footer-meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer-meta a:hover { color: var(--accent); }
.footer-sep { color: var(--faint); }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* Numerals */
.num, .step-num, .matrix-row .num, .visual-rows .row, .visual-rows .row-head {
  font-variant-numeric: tabular-nums lining-nums;
}
