/* ConCal — About page. Standalone marketing stylesheet.
   Uses the shared ConCal design tokens (identical values to v2.css) so the
   nav, wordmark, buttons and theme behave exactly like the rest of the site.
   Blueprint-drawing motif: sheet dividers, crosshairs, revision table. */

:root {
  --bg: #0f1117; --surface: #1a1d27; --surface2: #22263a; --surface3: #2a2e42;
  --text: #e2e4f0; --text2: #8b90b0; --text3: #555a7a;
  --border: #2e3250; --border2: #3a3f5c;
  --accent: #4f7cff; --accent2: #3a62e0; --green: #2dd4bf; --orange: #f97316; --red: #f43f5e;
  --accent-wash: rgba(79,124,255,0.10); --accent-wash2: rgba(79,124,255,0.18); --accent-line: rgba(79,124,255,0.32);
  --green-line: rgba(45,212,191,0.30);
  --grid-line: rgba(139,144,176,0.07);
  --nav-bg: rgba(15,17,23,0.82);
  --frame-shadow: 0 32px 80px -32px rgba(0,0,0,0.65), 0 8px 24px -12px rgba(0,0,0,0.5);
  --card-shadow: none;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1000px;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f5f6fa; --surface: #ffffff; --surface2: #f0f1f5; --surface3: #e4e6f0;
  --text: #1a1d27; --text2: #4a4f6a; --text3: #9096b0;
  --border: #e0e2ed; --border2: #c8cad8;
  --accent: #3a62e0; --accent2: #2f50c4; --green: #0f9d8c;
  --accent-wash: rgba(58,98,224,0.07); --accent-wash2: rgba(58,98,224,0.13); --accent-line: rgba(58,98,224,0.26);
  --green-line: rgba(15,157,140,0.28);
  --grid-line: rgba(26,29,39,0.05);
  --nav-bg: rgba(245,246,250,0.85);
  --frame-shadow: 0 32px 72px -28px rgba(22,32,72,0.28), 0 8px 24px -12px rgba(22,32,72,0.14);
  --card-shadow: 0 2px 8px -4px rgba(22,32,72,0.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background .2s, color .2s;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }
a { color: inherit; }

/* ── Nav ── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px;
  background: var(--nav-bg); backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topnav .wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
.wordmark { font-weight: 800; letter-spacing: -.5px; font-size: 18px; color: var(--text); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.wordmark .cal { color: var(--accent); }
.wordmark svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: 8px; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; display: block; height: 2px; margin-top: 3px; background: var(--accent); border-radius: 2px; }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-spacer { height: 56px; }
.theme-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s, background .15s;
}
.theme-btn:hover { color: var(--text); border-color: var(--border2); background: var(--surface2); }
.theme-btn svg, .theme-btn .i-sun, .theme-btn .i-moon { width: 15px; height: 15px; }
.theme-btn .i-sun { display: none; }
html[data-theme="light"] .theme-btn .i-sun { display: block; }
html[data-theme="light"] .theme-btn .i-moon { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; font-weight: 600; font-family: var(--font); text-decoration: none;
  cursor: pointer; border: none; white-space: nowrap; font-size: 14px; padding: 0 20px; height: 44px;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 7px; }

/* ── Sheet-rule dividers (drawing-set motif) ── */
.sec-rule { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; height: 0; }
.sec-rule i { display: block; border-top: 1px dashed var(--border2); height: 0; }
.sec-rule .tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--text3); background: var(--bg);
  border: 1px dashed var(--border2); border-radius: 4px; padding: 3px 12px; white-space: nowrap;
}
.xh { position: absolute; top: -5.5px; width: 11px; height: 11px; pointer-events: none; color: var(--text3); }
.xh.l { left: 26.5px; } .xh.r { right: 26.5px; }
.xh::before, .xh::after { content: ""; position: absolute; background: currentColor; }
.xh::before { left: 0; right: 0; top: 5px; height: 1px; }
.xh::after { top: 0; bottom: 0; left: 5px; width: 1px; }

/* ── Eyebrow ── */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow .tick-l { width: 16px; height: 1px; background: var(--accent-line); }

/* ── Blueprint grid ── */
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(90% 70% at 50% 0%, #000 30%, transparent 80%);
}

/* ── Page hero ── */
.page-head { position: relative; overflow: hidden; padding: 72px 0 8px; }
.page-head .hero-grid-bg { z-index: 0; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head .eyebrow { margin-bottom: 18px; }
h1.page-title { font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -2px; line-height: 1.02; margin: 0; color: var(--text); text-wrap: balance; }
h1.page-title .acc { color: var(--accent); }
.page-sub { font-size: 17px; line-height: 1.6; color: var(--text2); max-width: 560px; margin: 20px 0 0; text-wrap: pretty; }

/* ── Section scaffolding ── */
section { padding: 44px 0 8px; }
.sec-head { max-width: 620px; margin-bottom: 40px; }
h2.sec-title { font-size: 34px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.08; margin: 14px 0 0; color: var(--text); text-wrap: balance; }
h2.sec-title .acc { color: var(--accent); }

/* ── Story ── */
.story-wrap { max-width: 720px; margin: 0 auto; padding: 8px 32px 0; }
.story-p { font-size: 17px; line-height: 1.8; color: var(--text2); margin: 0 0 22px; text-wrap: pretty; }
.story-p strong { color: var(--text); font-weight: 600; }
.story-p.lead::first-letter { font-weight: 800; font-size: 58px; line-height: .82; float: left; margin: 5px 14px 0 0; color: var(--accent); }
.story-quote { margin: 30px 0; padding: 20px 26px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; box-shadow: var(--card-shadow); }
.story-quote .q { font-size: 20px; font-weight: 700; letter-spacing: -.4px; line-height: 1.4; color: var(--text); }
.story-quote .cite { display: block; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text3); }

/* ── Revision history table ── */
.rev-wrap { max-width: 820px; margin: 0 auto; padding: 8px 32px 0; }
.rev-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--card-shadow); }
.rev-head, .rev-row { display: grid; grid-template-columns: 96px 96px 1fr; gap: 20px; align-items: baseline; padding: 15px 22px; }
.rev-head { background: var(--surface2); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text3); }
.rev-row { border-top: 1px dashed var(--border); }
.rev-row:first-of-type { border-top: none; }
.rev-row .rv { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .6px; color: var(--accent); }
.rev-row .rd { font-family: var(--mono); font-size: 12.5px; color: var(--text3); letter-spacing: .4px; }
.rev-row .rx { font-size: 15px; line-height: 1.55; color: var(--text2); }
.rev-row .rx b { color: var(--text); font-weight: 700; }
.rev-row.now { background: var(--accent-wash); }
.rev-row.now .rv, .rev-row.now .rx b { color: var(--accent); }

/* ── Mission / Vision ── */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.mv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px 30px; box-shadow: var(--card-shadow); transition: border-color .15s, transform .15s; }
.mv-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.mv-card .t { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.mv-card .t::before { content: ""; width: 16px; height: 1px; background: var(--accent-line); }
.mv-card p { font-size: 20px; line-height: 1.4; letter-spacing: -.4px; margin: 14px 0 0; color: var(--text); font-weight: 600; text-wrap: pretty; }

/* ── Founder note ── */
.founder-wrap { max-width: 720px; margin: 0 auto; padding: 8px 32px 0; }
.founder-card { position: relative; background: var(--surface); border: 1px solid var(--border2); border-radius: 14px; padding: 32px 34px; box-shadow: var(--card-shadow); overflow: hidden; }
.founder-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -32px -34px 24px; padding: 11px 22px; background: var(--surface2); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text3); }
.founder-card p { font-size: 16.5px; line-height: 1.72; color: var(--text2); margin: 0; text-wrap: pretty; }
.founder-card p strong { color: var(--text); font-weight: 600; }
.sig { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.sig .av { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: 0 0 auto; }
.sig .nm { font-weight: 700; font-size: 16px; color: var(--text); }
.sig .rl { font-family: var(--mono); font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--text3); margin-top: 2px; }

/* ── Issue-for-bid CTA ── */
.cta-card { position: relative; background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; padding: 56px 32px; text-align: center; overflow: hidden; box-shadow: var(--card-shadow); }
.cta-card .corner { position: absolute; width: 11px; height: 11px; color: var(--text3); }
.cta-card .corner::before, .cta-card .corner::after { content: ""; position: absolute; background: currentColor; }
.cta-card .corner::before { left: 0; right: 0; top: 5px; height: 1px; }
.cta-card .corner::after { top: 0; bottom: 0; left: 5px; width: 1px; }
.cta-card .c-tl { top: 10px; left: 10px; } .cta-card .c-tr { top: 10px; right: 10px; }
.cta-card .c-bl { bottom: 10px; left: 10px; } .cta-card .c-br { bottom: 10px; right: 10px; }
.cta-card h2 { font-size: 34px; font-weight: 800; letter-spacing: -1.2px; margin: 0 0 10px; color: var(--text); }
.cta-card h2 .acc { color: var(--accent); }
.cta-card p { font-size: 15px; color: var(--text2); margin: 0 auto 28px; max-width: 440px; line-height: 1.55; }
.cta-card .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-card .fine { margin: 20px 0 0; font-size: 12px; color: var(--text3); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 32px 0 40px; margin-top: 44px; }
.footer .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .wordmark { font-size: 15px; }
.foot-links { display: flex; gap: 20px; margin-left: auto; }
.foot-links a { font-size: 13px; color: var(--text2); text-decoration: none; transition: color .15s; }
.foot-links a:hover { color: var(--text); }
.foot-copy { width: 100%; font-family: var(--mono); font-size: 11px; color: var(--text3); margin-top: 8px; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .mv-grid { grid-template-columns: 1fr; }
  .story-quote .q { font-size: 18px; }
}
@media (max-width: 560px) {
  .wrap, .story-wrap, .rev-wrap, .founder-wrap { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none; }
  .rev-head, .rev-row { grid-template-columns: 64px 60px 1fr; gap: 12px; padding: 14px 16px; }
  .rev-row .rx { font-size: 14px; }
  .founder-strip { margin: -32px -34px 20px; }
  .cta-card { padding: 44px 22px; }
  .foot-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mv-card:hover { transform: none; }
}
