/*
  CUEPRI SITE STYLES
  Editorial-technical system. Reference: /brand/site_style_guide.md
  Apply to every page on cuepri.com.
*/

:root {
  --bg:        oklch(0.972 0.006 85);
  --bg-2:      oklch(0.945 0.008 85);
  --bg-3:      oklch(0.92  0.010 85);
  --ink:       oklch(0.20 0.012 80);
  --ink-2:     oklch(0.36 0.012 80);
  --ink-3:     oklch(0.58 0.010 80);
  --rule:      oklch(0.86 0.010 80);
  --rule-2:    oklch(0.78 0.010 80);

  --accent:       #0C6D36;
  --accent-ink:   #0A5C2D;
  --accent-soft:  #C8F0D4;
  --accent-light: #82CB9C;

  --serif: "Domine", "Iowan Old Style", Georgia, serif;
  --sans:  "DM Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: 32px;
  --max:    1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -0.015em;
}
.brand .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  transform: translateY(-3px);
}
.brand .tag {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(-2px);
}
.nav-links {
  display: flex; gap: 28px; justify-content: center; align-items: center;
  font-size: 14px; color: var(--ink-2);
}
.nav-links > a, .nav-links .nav-trigger { color: var(--ink-2); transition: color 150ms; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links .nav-trigger.active { color: var(--ink); }

/* Dropdown trigger + menu */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit;
  cursor: pointer;
  font-family: var(--sans);
}
.nav-trigger:hover { color: var(--ink); }
.nav-trigger .caret {
  font-size: 10px;
  color: var(--ink-3);
  transform: translateY(1px);
  transition: transform 200ms;
}
.nav-dropdown:hover .nav-trigger .caret,
.nav-dropdown:focus-within .nav-trigger .caret { transform: translateY(1px) rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 360px;
  background: var(--bg);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  padding: 8px;
  display: flex; flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms, transform 180ms;
  z-index: 60;
}
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Hover-bridge above the menu so the cursor doesn't fall into a gap. */
.nav-menu::before {
  content: "";
  position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
}
.nav-menu a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 0;
  transition: background 150ms;
}
.nav-menu a + a { border-top: 1px solid var(--rule); }
.nav-menu a:hover { background: var(--bg-2); }
.nav-menu a .key {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
  padding-top: 2px;
}
.nav-menu a:hover .key { color: var(--accent); }
.nav-menu a .t {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  color: var(--ink); line-height: 1.35;
}
.nav-menu a .d {
  font-family: var(--sans); font-size: 12.5px;
  color: var(--ink-3); line-height: 1.5;
  margin-top: 2px;
}
.nav-cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  transition: background 200ms, color 200ms;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-cta .arrow { transition: transform 200ms; }
.nav-cta:hover .arrow { transform: translateX(2px); }

/* ============== TYPOGRAPHY ============== */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .num { color: var(--accent); }
.eyebrow .sep { width: 24px; height: 1px; background: var(--rule-2); display: inline-block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.display {
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.display .accent { color: var(--accent); }
.h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  padding-bottom: 0.08em;
  font-weight: 700;
}
.h2 .accent { color: var(--accent); }
.h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 700;
}
.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 500;
  text-wrap: pretty;
  max-width: 56ch;
}

.mono { font-family: var(--mono); }

/* ============== SECTION SHELL ============== */
section {
  padding: clamp(80px, 11vw, 160px) 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
section:first-of-type { border-top: none; }

.section-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
}
.section-grid > .meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.7;
  position: sticky; top: 88px; align-self: start;
}
.section-grid > .meta .num {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 14px;
}
.section-grid > .meta .rule {
  width: 36px; height: 1px; background: var(--ink); display: block; margin: 16px 0;
}

/* ============== FADE-UP REVEAL ============== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-stagger] { transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============== HERO ============== */
.hero {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(60px, 8vw, 120px);
  border-top: none;
}
.hero-grid { display: block; }

.hero h1 .line { display: block; }
.hero .ledeblock {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.hero .ledeblock .lede {
  max-width: 56ch;
  font-size: clamp(17px, 1.4vw, 19px);
}
.hero .ledeblock .ctas {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: transform 200ms, background 200ms, color 200ms, border-color 200ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: var(--accent); border-color: var(--accent); }
.btn .arrow { transition: transform 200ms; }
.btn:hover .arrow { transform: translateX(3px); }

.btn.ghost {
  background: transparent; color: var(--ink); border-color: var(--rule-2);
}
.btn.ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

/* ============== HERO PROOF BAR ============== */
.proof {
  margin-top: clamp(80px, 10vw, 130px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 200px repeat(3, 1fr);
  align-items: stretch;
}
.proof.cols-4 {
  grid-template-columns: 200px repeat(4, 1fr);
}
.proof .label-cell {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 28px 24px 28px 0;
  display: flex; align-items: center;
}
.proof .cell {
  padding: 28px 24px;
  border-left: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 8px;
}
.proof .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 3.8vw, 48px);
  line-height: 1; letter-spacing: -0.02em;
}
.proof .cap {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--ink-2); line-height: 1.4;
}

/* ============== SIDE-BY-SIDE SPLIT ============== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.split > div {
  padding: 56px 48px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.split > div + div { border-left: 1px solid var(--rule); }
.split .tag {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.split .tag::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3);
}
.split .now .tag::before { background: var(--accent); }
.split .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(96px, 12vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink-3);
  font-feature-settings: "lnum";
}
.split .now .num { color: var(--accent); }
.split .unit { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.split .cap { color: var(--ink); font-size: 15px; max-width: 32ch; }

/* ============== CAPABILITY TILES (verb-led, 3-up) ============== */
.caps {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.cap-tile {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 320px;
  position: relative;
  background: var(--bg);
  transition: background 200ms;
}
.cap-tile:hover { background: var(--bg-2); }
.cap-tile .verb-num {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.14em;
}
.cap-tile .verb-num .n { color: var(--accent); }
.cap-tile h4 {
  font-family: var(--serif); font-size: 22px;
  line-height: 1.2; letter-spacing: -0.018em; font-weight: 700;
  text-wrap: balance;
}
.cap-tile p { color: var(--ink-2); font-size: 14.5px; font-weight: 500; line-height: 1.55; margin: 0; }
.cap-tile .anchor {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3);
}
.cap-tile .anchor b {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent);
  font-size: 17px;
  letter-spacing: -0.015em;
}

/* ============== TRIPTYCH (heavier 3-up) ============== */
.triptych {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.triptych > div {
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.triptych > div + div { border-left: 1px solid var(--rule); }
.triptych .badge {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.triptych .badge::before {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.triptych h4 {
  font-family: var(--serif); font-size: 24px;
  line-height: 1.2; letter-spacing: -0.018em; font-weight: 700;
  text-wrap: balance;
}
.triptych p { color: var(--ink-2); font-size: 14.5px; font-weight: 500; line-height: 1.55; margin: 0; }

/* ============== SEGMENTATION CARDS ============== */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 72px;
}
.seg .card {
  border: 1px solid var(--rule);
  padding: 44px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 22px;
  transition: border-color 200ms, transform 200ms;
  position: relative;
  min-height: 360px;
}
.seg .card:hover { border-color: var(--ink); transform: translateY(-2px); }
.seg .card .label {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  display: flex; justify-content: space-between; align-items: center;
}
.seg .card .label .key { color: var(--ink-3); }
.seg .card h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 18ch;
  font-weight: 700;
}
.seg .card .val { color: var(--ink-2); font-size: 15px; line-height: 1.55; font-weight: 500; }
.seg .card .cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}
.seg .card .cta .arrow { transition: transform 200ms; }
.seg .card:hover .cta .arrow { transform: translateX(4px); color: var(--accent); }

/* ============== PROOF METRICS GRID ============== */
.metrics {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.metric {
  padding: 36px 28px 44px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start;
}
.metric .k {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1; letter-spacing: -0.03em;
  color: var(--ink);
}
.metric .v {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
}
.metric .v::before {
  content: ""; display: inline-block; width: 16px; height: 1px; background: var(--rule-2);
  vertical-align: middle; margin-right: 10px;
}
.metric.accent .k { color: var(--accent); }

/* ============== PAIN CARDS (observation-led) ============== */
.pain {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.pain > div {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 18px;
  background: var(--bg);
  transition: background 200ms;
}
.pain > div:hover { background: var(--bg-2); }
.pain .lead {
  font-family: var(--serif); font-size: 22px;
  line-height: 1.25; letter-spacing: -0.018em; font-weight: 700;
  color: var(--ink); text-wrap: balance;
}
.pain .body {
  color: var(--ink-2); font-size: 14.5px; font-weight: 500; line-height: 1.55;
}

/* ============== PARTNERSHIP MODELS ============== */
.partners {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.partners > div {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg);
  transition: background 200ms;
}
.partners > div:hover { background: var(--bg-2); }
.partners h4 {
  font-family: var(--serif); font-size: 18px;
  line-height: 1.25; letter-spacing: -0.015em; font-weight: 700;
}
.partners p {
  color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 1.55; margin: 0;
}
.partners .price {
  margin-top: auto;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}

/* ============== BEFORE / AFTER TABLE (2-col compare) ============== */
.bafter {
  margin-top: 72px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  max-width: 940px;
}
.bafter .head {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}
.bafter .head > div {
  padding: 18px 24px;
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.bafter .head > div::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3); flex: none;
}
.bafter .head > div + div {
  border-left: 1px solid var(--rule);
  color: var(--accent);
}
.bafter .head > div + div::before { background: var(--accent); }
.bafter .row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
  transition: background 200ms;
}
.bafter .row:last-child { border-bottom: none; }
.bafter .row:hover { background: var(--bg-2); }
.bafter .row > div {
  padding: 20px 24px;
  font-family: var(--sans); font-size: 15px; line-height: 1.55; font-weight: 500;
  color: var(--ink-3);
}
.bafter .row > div + div {
  border-left: 1px solid var(--rule);
  color: var(--ink);
}

/* ============== FLOWS (workflow rows: name | steps | metric) ============== */
.flows {
  margin-top: 72px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.flows .flow {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 32px;
  align-items: baseline;
  padding: 26px 24px;
  border-bottom: 1px solid var(--rule);
  transition: background 200ms;
}
.flows .flow:last-child { border-bottom: none; }
.flows .flow:hover { background: var(--bg-2); }
.flows .flow .name {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.flows .flow .name::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.flows .flow .steps {
  font-family: var(--sans); font-size: 15px; line-height: 1.6; font-weight: 500;
  color: var(--ink);
}
.flows .flow .steps i {
  font-style: normal;
  color: var(--accent); font-weight: 700;
  margin: 0 8px;
}
.flows .flow .metric {
  font-family: var(--mono); font-size: 11.5px;
  font-style: italic;
  color: var(--ink-3);
  text-align: right;
  letter-spacing: 0.06em;
}

/* ============== FOOTER LINK (text CTA) ============== */
.footer-link {
  margin-top: 48px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color 200ms, border-color 200ms;
}
.footer-link .arrow { transition: transform 200ms; }
.footer-link:hover { color: var(--accent); border-color: var(--accent); }
.footer-link:hover .arrow { transform: translateX(3px); }

/* ============== FINAL CTA (DARK INVERSION) ============== */
.final {
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid var(--ink);
}
.final .section-grid > .meta { color: rgba(255,255,255,0.6); }
.final .section-grid > .meta .num { color: var(--bg); }
.final .section-grid > .meta .rule { background: rgba(255,255,255,0.4); }
.final h2 { color: var(--bg); }
.final h2 .accent { color: var(--accent-light); }
.final .lede { color: rgba(255,255,255,0.85); }
.final .ctas { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.final .btn {
  background: var(--bg); color: var(--ink); border-color: var(--bg);
}
.final .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.final .btn.ghost {
  background: transparent; color: var(--bg); border-color: rgba(255,255,255,0.4);
}
.final .btn.ghost:hover { background: transparent; color: var(--accent-light); border-color: var(--accent-light); }

.final .ledger {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 32px;
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
}
.final .ledger b { color: var(--bg); font-weight: 500; display: block; margin-bottom: 6px; font-family: var(--mono); }

/* ============== FOOTER ============== */
footer.foot {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.foot-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.foot .brand { color: var(--bg); }
.foot h5 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--bg); margin: 0 0 14px; font-weight: 500; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot li a:hover { color: var(--bg); }
.foot .legal {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
}

/* ============== PILLAR TILES (5-up framework grid) ============== */
.pillars {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.pillar-tile {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 300px;
  background: var(--bg);
  transition: background 200ms;
}
.pillar-tile:hover { background: var(--bg-2); }
.pillar-tile .idx {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
}
.pillar-tile h4 {
  font-family: var(--serif); font-size: 20px;
  line-height: 1.2; letter-spacing: -0.018em; font-weight: 700;
}
.pillar-tile p { color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 1.55; margin: 0; }

/* ============== STORY PANELS (vertical narrative) ============== */
.story {
  margin-top: 72px;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--ink);
}
.story-panel {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}
.story-panel .when {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
}
.story-panel h3 {
  font-family: var(--serif); font-size: 24px;
  line-height: 1.25; letter-spacing: -0.018em; font-weight: 700;
  margin: 0 0 16px;
  text-wrap: balance;
}
.story-panel .body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--ink-2); font-weight: 500;
  max-width: 64ch;
}

/* ============== TEAM CARDS ============== */
.team {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.team .person {
  border: 1px solid var(--rule);
  padding: 40px 36px;
  display: flex; flex-direction: column; gap: 20px;
  background: var(--bg);
  transition: border-color 200ms;
}
.team .person:hover { border-color: var(--ink); }
.avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 28px; font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.team .person .name {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  letter-spacing: -0.018em;
}
.team .person .role {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  margin-top: -12px;
}
.team .person .bio {
  font-family: var(--sans); font-size: 14.5px; line-height: 1.6;
  color: var(--ink-2); font-weight: 500;
}

/* ============== THESIS PANEL ============== */
.thesis {
  margin-top: 72px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 64px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
}
.thesis .label {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
}
.thesis .body {
  font-family: var(--serif); font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45; font-weight: 400;
  color: var(--ink);
  max-width: 56ch;
  text-wrap: pretty;
}
.thesis .body .accent { color: var(--accent); font-weight: 700; }
.thesis .sig {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  margin-top: 32px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

/* ============== CUSTOMER DEPLOYMENT CARDS ============== */
.deploys {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.deploys .card {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg);
}
.deploys .card .name {
  font-family: var(--serif); font-size: 20px;
  line-height: 1.2; letter-spacing: -0.018em; font-weight: 700;
}
.deploys .card .modality {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
}
.deploys .card .desc {
  color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 1.55;
}

/* ============== API ENDPOINT PREVIEW ============== */
.endpoint {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.endpoint .code {
  background: var(--ink);
  padding: 32px;
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  color: var(--accent-light);
  white-space: pre-wrap;
  overflow-x: auto;
}
.endpoint .code .label {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.endpoint .code .v { color: var(--bg); }
.endpoint .caps-list {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 32px;
  display: flex; flex-direction: column; gap: 22px;
}
.endpoint .caps-list .item .t {
  font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink);
  margin-bottom: 4px;
}
.endpoint .caps-list .item .d {
  font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); font-weight: 500;
}

/* ============== INTEGRATION PATHS ============== */
.paths {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.paths .path {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg);
  transition: background 200ms;
}
.paths .path:hover { background: var(--bg-2); }
.paths .path .when {
  font-family: var(--serif); font-size: 36px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1;
  color: var(--accent);
}
.paths .path h4 {
  font-family: var(--serif); font-size: 18px;
  line-height: 1.25; letter-spacing: -0.015em; font-weight: 700;
}
.paths .path p {
  color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 1.55; margin: 0;
}
.paths .path .when-to {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  font-family: var(--sans); font-size: 13px; color: var(--ink); font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  border-top: 1px dashed var(--rule);
}

/* ============== COMPLIANCE BADGES (light context) ============== */
.badges {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.badges .b {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
}
.badges .b:last-child { border-right: none; }
.badges .b strong {
  font-family: var(--serif); font-size: 18px; color: var(--ink);
  font-weight: 700; letter-spacing: -0.018em;
  text-transform: none;
}

/* ============== SECURITY CAPABILITIES GRID (6-up) ============== */
.sec-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.sec-grid > div {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.sec-grid > div h5 {
  font-family: var(--serif); font-size: 16px; line-height: 1.25;
  letter-spacing: -0.015em; font-weight: 700; margin: 0 0 8px;
}
.sec-grid > div p {
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; line-height: 1.55; margin: 0;
}

/* ============== PULL QUOTE ============== */
.pullquote {
  margin: 48px 0;
  padding: 8px 0 8px 18px;
  border-left: 2px solid var(--accent);
  font-family: var(--sans); font-size: 16px; font-weight: 700;
  color: var(--ink); line-height: 1.55;
}

/* ============== WHY-NOW STAT TRIPTYCH (about) ============== */
.why-stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.why-stats > div {
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.why-stats > div + div { border-left: 1px solid var(--rule); }
.why-stats .stat {
  font-family: var(--serif); font-size: clamp(48px, 5vw, 64px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  color: var(--accent);
}
.why-stats .label {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink); font-weight: 500;
}
.why-stats .body {
  color: var(--ink-2); font-size: 14.5px; font-weight: 500; line-height: 1.55;
}

/* ============== PRODUCTION-PROOF BRIDGE (customers) ============== */
.bridge {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.bridge a {
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg);
  transition: background 200ms;
}
.bridge a + a { border-left: 1px solid var(--rule); }
.bridge a:hover { background: var(--bg-2); }
.bridge .label {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
}
.bridge h3 {
  font-family: var(--serif); font-size: 24px; line-height: 1.2;
  letter-spacing: -0.018em; font-weight: 700;
}
.bridge p {
  color: var(--ink-2); font-size: 14.5px; font-weight: 500; line-height: 1.55; margin: 0;
}
.bridge .cta {
  margin-top: auto;
  font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.bridge .cta .arrow { transition: transform 200ms; }
.bridge a:hover .cta { color: var(--accent); }
.bridge a:hover .cta .arrow { transform: translateX(4px); }

[data-count] { font-variant-numeric: tabular-nums; }

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .section-grid, .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-grid > .meta { position: static; }
  .hero .ledeblock { gap: 24px; }
  .proof, .proof.cols-4 { grid-template-columns: 1fr 1fr; }
  .proof .label-cell { grid-column: 1 / -1; padding: 20px 0; border-bottom: 1px solid var(--rule); }
  .proof .cell:nth-child(2) { border-left: none; }
  .split, .seg, .team, .endpoint, .bridge { grid-template-columns: 1fr; }
  .split > div + div { border-left: none; border-top: 1px solid var(--rule); }
  .bridge a + a { border-left: none; border-top: 1px solid var(--rule); }
  .caps, .triptych, .pain, .pillars, .paths, .deploys, .why-stats { grid-template-columns: repeat(2, 1fr); }
  .triptych > div + div, .why-stats > div + div { border-left: 1px solid var(--rule); }
  .partners, .badges, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .flows .flow { grid-template-columns: 1fr; gap: 12px; }
  .flows .flow .metric { text-align: left; }
  .final .ledger { grid-template-columns: 1fr 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .story-panel, .thesis { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .caps, .triptych, .pain, .partners, .pillars, .paths, .deploys, .badges, .sec-grid, .why-stats { grid-template-columns: 1fr; }
  .triptych > div + div, .why-stats > div + div { border-left: none; }
  .metrics { grid-template-columns: 1fr; }
  .seg .card { padding: 28px; }
  .split > div { padding: 36px 28px; }
  .bafter .head, .bafter .row { grid-template-columns: 1fr; }
  .bafter .head > div + div, .bafter .row > div + div { border-left: none; border-top: 1px solid var(--rule); }
  .foot-inner { grid-template-columns: 1fr; }
  .foot .legal { flex-direction: column; gap: 8px; }
}
