/* Proof pages: case studies, hub, founder, about, reviews. Loaded only by templates/proof_*.j2, after v2-pages.css, on the v2
   tokens (sitewide restyle 2026-10-21). The chart panel is a dark "app window" in both themes: its bar palette was validated
   on a navy surface (tools/proof.py). */

/* ---------- numbers band (case studies): light grid paper, big figures ---------- */
.cs-numbers { position: relative; padding: 72px 0 80px; background-color: var(--bg-2); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 52px 52px; }
.cs-numbers .kicker { margin: 0 0 22px; }
.tw { overflow-x: auto; }
.cs-num { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cs-num th, .cs-num td { text-align: left; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line-2); vertical-align: baseline; }
.cs-num thead th { font: 700 12px/1.3 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs-numbers .cs-num tbody td:first-child { color: var(--ink-2); font-weight: 500; }
.cs-numbers .cs-num tbody td + td { font: 800 clamp(22px, 2.2vw, 30px)/1 var(--f-head); letter-spacing: -.02em; color: var(--ink-2); }
.cs-numbers .cs-num tbody td:last-child { color: var(--accent-ink); }
.cs-numbers .cs-num thead th:empty { padding: 0; }
.xprose .cs-num { font-size: 16px; margin-top: 8px; }
.xprose .cs-num td { color: var(--ink-2); }
.xprose .cs-num td:first-child { color: var(--ink); font-weight: 700; width: 28%; }

/* ---------- chart: a dark app window on the light band ---------- */
.cs-chart { --c: 30px; position: relative; margin: 30px 0 0; padding: 24px 24px 18px; background: var(--navy); color: var(--navy-ink); box-shadow: inset 0 0 0 1px var(--navy-line), var(--shadow);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.cs-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 14px; padding: 0; font-size: 14px; color: var(--navy-ink); }
.cs-legend .sw { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; }
.cs-svg { display: block; width: 100%; height: auto; overflow: visible; }
.cs-svg text { font-family: var(--f-body); }
.cs-svg .tk, .cs-svg .xl { fill: #8A9BB8; font-size: 12px; font-weight: 500; }
.cs-svg .yr { fill: #A9BAD8; font-size: 12px; font-weight: 700; }
.cs-svg .vl { fill: #E8EEF9; font-size: 12px; font-weight: 700; }
.plot.narrow { display: none; }
.plot.narrow .cs-svg text { font-size: 11px; }
.cs-bar, .cs-bar:focus-visible { outline: none; }
.cs-bar .m { transition: filter 100ms var(--ease); }
.cs-bar.on .m, .cs-bar:focus-visible .m { filter: brightness(1.28); }
.cs-bar:focus-visible .hit { stroke: var(--cyan); stroke-width: 2; }
.cs-tip { position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); padding: 8px 12px; background: #16284A; box-shadow: inset 0 0 0 1px #2A3E66, 0 12px 30px -12px rgba(0, 0, 0, .7); font-size: 13px; line-height: 1.4; color: #C3D0E6; white-space: nowrap; }
.cs-tip b { display: block; color: #fff; font-size: 15px; }
.cs-chart figcaption { margin-top: 12px; font-size: 14px; color: var(--navy-muted); }
.cs-table { margin-top: 12px; }
.cs-table summary { cursor: pointer; font: 700 14px var(--f-head); color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.cs-table table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.cs-table th, .cs-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid #22345A; text-align: right; color: #C3D0E6; }
.cs-table th:first-child { text-align: left; font-weight: 500; }
.cs-table thead th { color: #8A9BB8; font-weight: 600; }

/* ---------- case-study cards (hub): each one is a link ---------- */
.cs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cs-card { --c: 28px; position: relative; isolation: isolate; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))); transition: transform 240ms var(--ease); }
.cs-card:hover { transform: translateY(-4px); }
.cs-card .shot { display: block; padding: 18px 18px 0; background: var(--stage); border-bottom: 1px solid var(--line); }
.cs-card .shot img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 467; object-fit: cover; object-position: top; border: 5px solid #0b0f19; border-bottom: 0; border-radius: 9px 9px 0 0; }
.cs-card .txt { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px 24px 28px; }
.cs-card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.015em; }
.cs-card .sum { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.cs-card .kicker { margin: 0; }
.cs-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--f-head); color: var(--accent-ink); }
.cs-card .go .arr { width: 16px; height: 16px; transition: transform 240ms var(--ease); }
.cs-card:hover .go .arr { transform: translateX(6px); }

/* ---------- reviews: big quote rows ---------- */
.rv-score { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 26px; color: var(--ink-2); font-size: 15px; }
.rv-score b { font: 800 26px var(--f-head); color: var(--ink); }
.rv-score a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; fill: #F5B73B; }
.rv-list { border-top: 1px solid var(--line-2); }
.rv { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px 56px; margin: 0; padding: 40px 0; border-bottom: 1px solid var(--line-2); }
.rv figcaption { display: grid; gap: 6px; align-content: start; font-size: 14px; color: var(--muted); }
.rv figcaption .stars { margin-bottom: 6px; }
.rv figcaption b { font: 700 19px var(--f-head); color: var(--ink); }
.rv blockquote { margin: 0; }
.rv blockquote p { margin: 0; font: 600 clamp(19px, 1.8vw, 24px)/1.5 var(--f-head); letter-spacing: -.01em; color: var(--ink); max-width: 62ch; }
.rv-btn { margin-top: 30px; }
.cs-chart + .xprose, .xrows + .xprose, .xprose + .xrows { margin-top: 28px; }

/* ---------- founder ---------- */
.fd-role { margin-top: 14px; font: 700 16px var(--f-head); letter-spacing: .02em; color: var(--accent-ink); }
.fd-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--sp-7); align-items: center; padding: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); --c: 30px;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
/* the portrait is a circle the photo fills (the ring is part of the photo); it was `.ph`, the page-hero class, which gave it 156 px of padding above and 120 below */
.fd-ph { position: relative; display: block; width: 100%; max-width: 240px; aspect-ratio: 1; margin-inline: auto; border-radius: 50%; overflow: hidden; background: #02060F; box-shadow: 0 0 0 1px var(--line), 0 18px 44px -18px rgba(0, 140, 230, .55); }
.fd-ph img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 50%; }
.fd-card h3 { font-size: 26px; }
.fd-card .fd-role { margin-top: 6px; font-size: 14px; }
.fd-card p { color: var(--ink-2); }
.fd-card p + p { margin-top: 12px; }
.fd-go a { color: var(--accent-ink); font: 700 15px var(--f-head); text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cs-cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .rv { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 30px 0; }
  .cs-numbers { padding: 48px 0 54px; }
}
@media (max-width: 640px) {
  .plot.wide { display: none; }
  .plot.narrow { display: block; }
  .cs-chart { padding: 18px 14px 14px; }
  .cs-num th, .cs-num td { padding: 12px 10px 12px 0; }
  .cs-num thead th { font-size: 11px; letter-spacing: .06em; }
  .cs-numbers .cs-num tbody td:first-child { font-size: 15px; }
  .cs-numbers .cs-num tbody td + td { font-size: 19px; }
  .xprose .cs-num { font-size: 15px; }
  .xprose .cs-num td:first-child { width: 34%; }
  .fd-card { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px 18px; }
  .fd-card h3 { font-size: 21px; }
}
