/* Corvino Labs — plain, legible, monochrome. */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F4F4F3;
  --bg-ink: #111111;
  --text: #111111;
  --text-mid: #444444;
  --text-dim: #6B6B6B;
  --line: #DFDFDD;
  --line-mid: #BFBFBC;
  --line-ink: #111111;

  --sans: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: var(--sans);
  --radius: 6px;

  --wrap: 1080px;
  --prose: 34rem;
  --nav-h: 60px;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
::selection { background: #111; color: #fff; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.18; letter-spacing: -0.018em; }
h3 { font-size: 1.06rem; line-height: 1.35; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem); }
.prose { max-width: var(--prose); }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.55; color: var(--text-mid); }

section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
section.plain { border-top: 0; }
section.tint { background: var(--bg-alt); }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1.1rem;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 1.5rem; width: 100%; }
.wordmark {
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
}
.wordmark .mark { width: 9px; height: 9px; background: var(--text); flex: none; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { font-size: 0.9rem; text-decoration: none; color: var(--text-mid); white-space: nowrap; }
.nav-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
@media (max-width: 760px) {
  .nav-links { gap: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links .nav-hide-sm { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.3rem; border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--line-ink);
  background: var(--bg-ink); color: #fff;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-mid); }
.btn.ghost:hover { border-color: var(--line-ink); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.arrow-link {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border-bottom: 1px solid var(--line-mid); padding-bottom: 2px;
}
.arrow-link:hover { border-bottom-color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: clamp(4rem, 11vw, 7.5rem) 0 clamp(3.5rem, 8vw, 5.5rem); border-top: 0; }
.hero h1 { max-width: 20ch; }
.hero .lede { max-width: 46ch; margin-top: 1.4rem; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 2.5rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid > .cell { background: var(--bg); padding: clamp(1.4rem, 3vw, 2rem); }
.tint .grid > .cell { background: var(--bg-alt); }
.grid > .cell h3 { margin-bottom: 0.5rem; }
.grid > .cell p { color: var(--text-mid); font-size: 0.96rem; }
@media (max-width: 800px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.num {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em;
  color: var(--text-dim); display: block; margin-bottom: 0.9rem;
}

/* ---------- steps ---------- */
.steps { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.step .k { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); padding-top: 0.35rem; }
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--text-mid); font-size: 0.98rem; max-width: 56ch; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ---------- offering cards ---------- */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.offer { border: 1px solid var(--line-mid); border-radius: var(--radius); padding: clamp(1.6rem, 3.5vw, 2.4rem); display: flex; flex-direction: column; background: var(--bg); }
.offer .tag { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-dim); }
.offer h3 { font-size: 1.45rem; margin: 0.8rem 0 0.6rem; letter-spacing: -0.015em; }
.offer p { color: var(--text-mid); font-size: 0.98rem; }
.offer ul { margin: 0.4rem 0 1.6rem; padding-left: 1.1rem; color: var(--text-mid); font-size: 0.95rem; }
.offer li { margin-bottom: 0.4rem; }
.offer .foot { margin-top: auto; }
@media (max-width: 800px) { .offers { grid-template-columns: 1fr; } }

/* ---------- quote / proof ---------- */
.quote { font-weight: 500; font-size: clamp(1.3rem, 2.8vw, 1.75rem); line-height: 1.35; letter-spacing: -0.01em; max-width: 30ch; }
.quote-attr { margin-top: 1.2rem; font-size: 0.9rem; color: var(--text-dim); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 2.5rem; }
.stat { background: var(--bg); padding: 1.5rem; }
.tint .stat { background: var(--bg-alt); }
.stat .v { font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 0.6rem; font-size: 0.88rem; color: var(--text-dim); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* ---------- simple list ---------- */
.checks { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.checks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.7rem; color: var(--text-mid); }
.checks li::before { content: "—"; position: absolute; left: 0; color: var(--text-dim); }
.checks strong { color: var(--text); font-weight: 600; }

/* ---------- table ---------- */
.table-scroll { overflow-x: auto; margin-top: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); background: var(--bg-alt); }
tbody th { font-weight: 600; width: 11rem; }
td { color: var(--text-mid); }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* ---------- cta ---------- */
.cta { background: var(--bg-ink); color: #fff; border-top: 0; }
.cta h2 { color: #fff; }
.cta p { color: #C9C9C9; }
.cta .btn { background: #fff; color: #111; border-color: #fff; }
.cta .btn:hover { background: #EDEDED; }
.cta .btn.ghost { background: transparent; color: #fff; border-color: #555; }
.cta .btn.ghost:hover { border-color: #fff; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3.5rem; font-size: 0.88rem; color: var(--text-dim); }
footer .row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: baseline; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
footer .links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- diagram set pieces (light, static) ---------- */
.figure { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 1.1rem; }
.tint .figure { background: var(--bg); }
.figure-cap { margin-top: 0.8rem; font-size: 0.8rem; color: var(--text-dim); }

.board { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.4rem; }
.board .col { flex: 1 0 150px; }
.board .card em { font-style: normal; color: var(--text-dim); font-size: 0.72rem; }

.board .col-t { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); padding-bottom: 0.55rem; border-bottom: 1px solid var(--line); margin-bottom: 0.6rem; }
.board .card { border: 1px solid var(--line); border-radius: 5px; background: var(--bg-alt); padding: 0.55rem 0.6rem; font-size: 0.78rem; color: var(--text-mid); margin-bottom: 0.45rem; }
.board .card.on { background: var(--bg-ink); color: #fff; border-color: var(--bg-ink); font-weight: 500; }

.org { display: grid; gap: 0.6rem; }
.org .boss { border: 1px solid var(--line-ink); border-radius: 5px; padding: 0.65rem 0.8rem; font-size: 0.85rem; font-weight: 600; }
.org .kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.6rem; }
.org .kid { border: 1px solid var(--line); border-radius: 5px; padding: 0.65rem 0.8rem; background: var(--bg-alt); }
.org .kid b { display: block; font-size: 0.82rem; font-weight: 600; }
.org .kid span { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.org .role { font-size: 0.68rem; color: var(--text-dim); margin-top: 0.4rem; }

.meter { margin-top: 1.1rem; }
.meter .lbls { display: flex; justify-content: space-between; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.35rem; }
.meter .track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter .fill { height: 100%; background: var(--bg-ink); border-radius: 999px; }

.pillrow { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.2rem; }
.pill { border: 1px solid var(--line-mid); border-radius: 999px; padding: 0.3rem 0.75rem; font-size: 0.78rem; color: var(--text-mid); }

td.us { color: var(--text); font-weight: 500; background: var(--bg-alt); }
.note { font-size: 0.8rem; color: var(--text-dim); margin-top: 1rem; max-width: 60ch; }

/* ---------- workflow pipeline ---------- */
.pipe { display: flex; align-items: stretch; overflow-x: auto; padding-bottom: 0.4rem; }
.pipe .stage { flex: 1 0 auto; min-width: 132px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 0.9rem; background: var(--bg); }
.pipe .stage.key { border-color: var(--line-ink); border-width: 2px; }
.pipe .stage.human { background: var(--bg-ink); border-color: var(--bg-ink); color: #fff; }
.pipe .stage.human .st-w { color: #A8A8A8; }
.pipe .arw { display: flex; align-items: center; padding: 0 0.45rem; color: var(--text-dim); flex: none; }
.pipe .st-t { font-size: 0.82rem; font-weight: 600; line-height: 1.25; }
.pipe .st-w { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-dim); margin-top: 0.4rem; }

/* ---------- review thread ---------- */
.thread { border-left: 2px solid var(--line); padding-left: 1.2rem; display: grid; gap: 1.3rem; }
.thread .who { font-size: 0.85rem; font-weight: 600; }
.thread .who span { font-weight: 400; color: var(--text-dim); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.09em; margin-left: 0.45rem; }
.thread .body { font-size: 0.92rem; color: var(--text-mid); margin-top: 0.35rem; }
.thread .cmd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.76rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px; padding: 0.45rem 0.6rem; margin-top: 0.5rem; color: var(--text-mid); overflow-x: auto; white-space: nowrap; }

/* ---------- audit trail ---------- */
.trail { display: grid; gap: 0.7rem; }
.trail .ev { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.9rem; font-size: 0.85rem; align-items: baseline; }
.trail .ev .w { font-weight: 600; }
.trail .ev .d { color: var(--text-mid); }
@media (max-width: 520px) { .trail .ev { grid-template-columns: 1fr; gap: 0.1rem; } }

/* ---------- tool tiles (foundation: harnesses) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 2.5rem; }
.tile { background: var(--bg); padding: 1rem 1.1rem; }
.tint .tile { background: var(--bg-alt); }
.tile b { display: block; font-size: 0.93rem; font-weight: 600; }
.tile span { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-dim); margin-top: 0.3rem; }
.tile.more { background: var(--bg-alt); }
.tint .tile.more { background: var(--bg); }
.tile.more b { font-weight: 400; color: var(--text-mid); }

/* ---------- surfaces (nexus: where it shows up) ---------- */
.surfaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.surface { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 1rem 1.1rem; }
.tint .surface { background: var(--bg); }
.surface .sh { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); margin-bottom: 0.75rem; }
.surface .from { font-size: 0.82rem; font-weight: 600; }
.surface .from em { font-style: normal; font-weight: 400; color: var(--text-dim); font-size: 0.72rem; margin-left: 0.35rem; }
.surface .line { font-size: 0.85rem; color: var(--text-mid); margin-top: 0.3rem; }
